/* 基本スタイル */
:root {
    --main-color: #3A5199;
    --accent-color: #F2C94C;
    --bg-color: #F5F5F5;
    --text-color: #333333;
    --jodo-shinshu-color: #8A4D76;
    --soto-shu-color: #4D8A6A;
    --shingon-chizan-color: #8A4D4D;
    --nichiren-shu-color: #8A6A4D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 1rem;
}

a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--main-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ヘッダースタイル */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--main-color);
}

/* ドロップダウンメニュー */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ヒーローセクション */
.hero {
    background-color: var(--main-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* イントロセクション */
.intro {
    padding: 60px 0;
    background-color: white;
}

.intro h2 {
    text-align: center;
    margin-bottom: 30px;
}

.intro p {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: justify;
}

/* 宗派選択セクション */
.sect-selection {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.sect-selection h2 {
    text-align: center;
    margin-bottom: 30px;
}

.sect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.sect-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 20px;
    text-align: center;
}

.sect-card:hover {
    transform: translateY(-10px);
}

.sect-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.sect-icon.jodo-shinshu {
    background-color: var(--jodo-shinshu-color);
}

.sect-icon.soto-shu {
    background-color: var(--soto-shu-color);
}

.sect-icon.shingon-chizan {
    background-color: var(--shingon-chizan-color);
}

.sect-icon.nichiren-shu {
    background-color: var(--nichiren-shu-color);
}

.sect-card h3 {
    margin-bottom: 10px;
}

.sect-card p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* 比較プレビューセクション */
.comparison-preview {
    padding: 60px 0;
    background-color: white;
}

.comparison-preview h2 {
    text-align: center;
    margin-bottom: 30px;
}

.chart-container {
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-preview p {
    text-align: center;
    margin-bottom: 20px;
}

.comparison-preview .btn {
    display: block;
    max-width: 200px;
    margin: 0 auto;
}

/* フッタースタイル */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .sect-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .sect-grid {
        grid-template-columns: 1fr;
    }
}
