/* css/style.css */

/* --- Base Styles & Variables --- */
:root {
    --dark-blue: #0a192f;        /* 深い夜空の色 */
    --navy-blue: #112240;       /* 少し明るいネイビー */
    --light-navy: #233554;      /* UI要素の背景色 */
    --gold: #f7d794;            /* 魔法の輝き・アクセント */
    --light-gold: #ffebc1;      /* ハイライト・ホバー */
    --slate: #8892b0;           /* 通常のテキスト */
    --light-slate: #a8b2d1;     /* 明るいテキスト */
    --white: #ccd6f6;           /* 見出しなどの白 */
    --green-aurora: #64ffda;    /* 魔法のオーラ（アクセント2）*/
    
    --font-title: 'Cinzel', serif; /* 荘厳なタイトル用フォント */
    --font-body: 'Noto Sans JP', sans-serif; /* 読みやすい本文用フォント */
    
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-blue);
    color: var(--slate);
    font-family: var(--font-body);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-track {
    background: var(--dark-blue);
}
body::-webkit-scrollbar-thumb {
    background-color: var(--light-navy);
    border-radius: 10px;
}


img {
max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

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

a:hover {
    color: var(--light-gold);
}

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

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 0 5%;
    display: flex;
    align-items: center;
    transition: top 0.3s ease-out;
    border-bottom: 1px solid rgba(136, 146, 176, 0.2);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo:hover img {
    opacity: 0.8;
}


.hamburger-menu {
    display: block; /* モバイルでは表示 */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--gold);
    margin: 6px 0;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--light-navy);
    z-index: 999;
    padding-top: 120px;
    transition: right 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: -10px 0 30px -15px rgba(2,12,27,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.global-nav.active {
    right: 0;
}

.global-nav ul {
    list-style: none;
    width: 100%;
}

.global-nav ul li {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.global-nav.active ul li {
    opacity: 1;
    transform: translateY(0);
}
.global-nav.active ul li:nth-child(1) { transition-delay: 0.1s; }
.global-nav.active ul li:nth-child(2) { transition-delay: 0.15s; }
.global-nav.active ul li:nth-child(3) { transition-delay: 0.2s; }
.global-nav.active ul li:nth-child(4) { transition-delay: 0.25s; }
.global-nav.active ul li:nth-child(5) { transition-delay: 0.3s; }


.global-nav ul li a {
    font-family: var(--font-title);
    font-size: 22px;
    color: var(--white);
    padding: 10px 20px;
    display: block;
}

.global-nav .login-link {
    display: inline-block;
    border: 1px solid var(--gold);
    padding: 12px 40px;
    border-radius: 5px;
    margin-top: 20px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: bold;
}

/* --- Main Content & Sections --- */
main {
    padding-top: var(--header-height);
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--white);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
}

.section-title::before,
.section-title::after {
    content: '';
    display: block;
    width: clamp(50px, 20vw, 200px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}
.section-title::before {
    background: linear-gradient(to left, transparent, var(--gold));
}

.section-subtitle {
    text-align: center;
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: transparent;
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gold);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(247, 215, 148, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--gold);
    box-shadow: 0 0 15px rgba(247, 215, 148, 0.3);
}

.btn:hover::before {
    width: 100%;
}


/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition-delay: 0.1s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Footer --- */
.site-footer-main {
    background-color: #061221;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(136, 146, 176, 0.2);
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    margin-bottom: 30px;
}

.footer-nav a {
    color: var(--slate);
    font-size: 0.9rem;
    font-family: var(--font-title);
    letter-spacing: 1px;
}
.footer-nav a:hover {
    color: var(--gold);
}

.login-link-footer {
    display: inline-block;
    border: 1px solid var(--gold);
    padding: 8px 25px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
    color: var(--light-navy);
}



/* --- Hero Section (index.php) --- */
.hero {
    height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    /* ユーザー提供の画像をヒーローセクションの背景として使用 */
    background-image: linear-gradient(to bottom, rgba(10, 25, 47, 0), rgba(10, 25, 47, 1)), url('../images/home.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--dark-blue), transparent);
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    text-shadow: 0 0 25px rgba(100, 255, 218, 0.3), 0 0 10px rgba(247, 215, 148, 0.3);
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--gold);
    margin-bottom: 30px;
    font-weight: normal;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    animation: bounce 2.5s infinite;
    opacity: 0.7;
}
.scroll-down i {
    font-size: 24px;
    margin-top: 5px;
}

/* --- Quest Section (index.php) --- */
.quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.quest-card {
    background: linear-gradient(145deg, var(--navy-blue), var(--dark-blue));
    border: 1px solid var(--light-navy);
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}

.quest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px -15px rgba(2,12,27,0.9);
    border-color: var(--gold);
}

.quest-card-icon {
    margin-bottom: 20px;


    filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.5));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.quest-card:hover .quest-card-icon {
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.8));
    transform: scale(1.1);
}

.quest-card-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.quest-card-title span {
    display: block;
    font-size: 1rem;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: bold;
}

.quest-card-description {
    font-size: 0.95rem;
    color: var(--slate);
    flex-grow: 1;
}

/* --- CTA Section --- */
.cta-section {
    background-color: transparent;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--light-navy), transparent);
}

.cta-section .container {
    padding: 0 5%;
}

.cta-section p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- For Students & Parents & FAQ Page --- */
.page-hero {
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0);
    z-index: 1;
}
.page-hero .container {
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

.page-hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--white);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.page-hero-subtitle {
    color: var(--light-gold);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
}

.info-grid-section.alt-bg {
    background-color: var(--navy-blue);
    border-top: 1px solid var(--light-navy);
    border-bottom: 1px solid var(--light-navy);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: var(--light-navy);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--green-aurora);
}

.info-card-icon {
    font-size: 2.5rem;
    color: var(--green-aurora);
    margin-bottom: 20px;
}

.info-card-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.info-card-text {
    color: var(--slate);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.info-card-image {
    max-width: 100%;
    margin-top: auto;
    padding-top: 20px;
    border-radius: 4px;
}

.step-flow {
    max-width: 700px;
    margin: 40px auto 0;
    position: relative;
    padding-left: 40px;
}

.step-flow::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background-color: var(--light-navy);
}

.step-item {
    position: relative;
    margin-bottom: 40px;
}

.step-number {
    position: absolute;
    left: -40px;
    top: 0;
    background: var(--gold);
    color: var(--dark-blue);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-family: var(--font-title);
    border: 2px solid var(--dark-blue);
    z-index: 1;
}

.step-title {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 5px;
    font-family: var(--font-title);
}
.step-item p {
    color: var(--slate);
}

.step-arrow {
    display: none; /* Replaced by the vertical line */
}

/* --- FAQ Page --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--gold);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-navy);
}

.faq-category-title:first-of-type {
    margin-top: 0;
}

.faq-item {
    border-bottom: 1px solid var(--light-navy);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--white);
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 700;
    transition: color 0.3s ease;
}
.faq-question:hover {
    color: var(--gold);
}

.faq-question span {
    flex-grow: 1;
    padding-right: 15px;
}

.faq-question i {
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 15px;
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.8;
}

.faq-answer p, .faq-answer ul {
    margin-bottom: 15px;
}

.faq-answer ul {
    padding-left: 20px;
}

.faq-answer ul li {
    margin-bottom: 10px;
    position: relative;
}
.faq-answer ul li::before {
    content: "◈";
    color: var(--gold);
    position: absolute;
    left: -20px;
    top: 1px;
    font-size: 0.8rem;
}



/* --- Features Page Specifics --- */
.feature-hero {
    text-align: center;
    background-image: linear-gradient(to bottom, rgba(10, 25, 47, 0.2), var(--dark-blue)), url('../images/student.png');
    background-size: cover;
    background-position: center 50%;
}
.feature-hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.feature-hero-subtitle {
    color: var(--light-gold);
    font-size: 1.2rem;
}

.feature-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--light-navy);
    overflow: hidden;
}

.feature-section.alt {
    background-color: var(--navy-blue);
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.feature-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 15px;
    text-align: left;
}
.feature-title::before, .feature-title::after { display: none; } /* Reset general title style */

.feature-title span {
    display: block;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 5px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 1px;
}

.feature-text p {
    margin-bottom: 20px;
    max-width: 600px;
}

.main-feature-image {
    border-radius: 8px;
    border: 1px solid var(--light-navy);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}

.sub-images {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.sub-images img {
    width: 45%;
    max-width: 180px;
    border-radius: 8px;
    border: 1px solid var(--light-navy);
    box-shadow: 0 5px 15px -10px rgba(2,12,27,0.7);
}

.feature-image-grid.large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.feature-image-grid img {
    border-radius: 8px;
    border: 1px solid var(--light-navy);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.feature-image-grid img:hover {
    transform: scale(1.05) translateZ(0);
    filter: brightness(1.1);
}

.subsection-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--gold);
    text-align: center;
    margin-top: 80px;
    margin-bottom: 30px;
}

.rank-table-container {
    margin-top: 40px;
}
.rank-table {
    background-color: var(--light-navy);
    border: 1px solid var(--light-navy);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9rem;
}
.rank-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    border-bottom: 1px solid var(--navy-blue);
    align-items: center;
}
.rank-row:last-child { border-bottom: none; }
.rank-row div { padding: 12px 15px; }
.rank-row .header {
    background-color: var(--navy-blue);
    font-weight: 700;
    color: var(--white);
}
.rank-row div:not(:last-child) { border-right: 1px solid var(--navy-blue); }
.rank-row div[colspan="2"] {
    grid-column: span 2;
    text-align: center;
    font-style: italic;
    color: var(--light-slate);
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 2fr));
    gap: 25px;
    margin-top: 40px;
}
.learning-card {
    background-color: var(--light-navy);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px -10px rgba(2,12,27,0.7);
}
.learning-card img { margin: 0 auto 20px; }
.learning-card h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 10px;
}
.learning-card p { font-size: 0.9rem; color: var(--slate); }

/* --- Animations & Responsive --- */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -15px);
    }
    60% {
        transform: translate(-50%, -7px);
    }
}

@media (min-width: 768px) {
    .quest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-content {
        grid-template-columns: repeat(2, 1fr);
    }
    #quest2 .feature-content, #quest4 .feature-content {
        grid-template-columns: repeat(2, 1fr); /* 逆順はJSで制御する方が柔軟 */
    }
    .feature-title {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .quest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}









/* --- スマートフォン表示でのタイトル見切れ防止 --- */
@media (max-width: 767px) {
    .section-title {
        /* flexレイアウトを解除し、テキストの自然な改行を許可 */
        display: block;
        white-space: normal;
        padding: 0 15px; /* 画面端との余白を確保 */
        gap: 0; /* flexアイテム間のギャップをリセット */
    }

    .section-title::before {
        /* スマホ表示では左側の線を非表示に */
        display: none;
    }

    .section-title::after {
        /* 右側の線を、タイトルの下に表示される中央の線として再定義 */
        display: block;
        width: 80px;
        height: 2px;
        background: var(--gold); /* グラデーションを単色に変更 */
        margin: 15px auto 0; /* タイトルの下にマージンを設けて配置 */
    }
}


/* css/style.css の一番最後に追加 */

/* --- Hero Section Dynamic Enhancements --- */

/* パーティクル用コンテナのスタイル */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* hero-content の下になるように */
}

/* Canvas要素が親コンテナいっぱいに広がるように */
#particles-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ヒーローセクションのコンテンツはパーティクルの上に */
.hero .hero-content {
    position: relative;
    z-index: 2;
    /* アニメーションの初期状態 */
    opacity: 0; 
}

/* ヒーロータイトルのアニメーション定義 */
@keyframes title-animation {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* サブタイトルのアニメーション定義 */
@keyframes subtitle-animation {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* JSで is-visible クラスが付与されたらアニメーションを開始 */
.hero .hero-content.is-visible {
    opacity: 1; /* コンテナ自体をまず表示 */
}



/* 輝きを強化するテキストシャドウ */
.hero-title {
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(100, 255, 218, 0.4), /* オーロラ色 */
        0 0 40px rgba(247, 215, 148, 0.4); /* ゴールド */
}

.hero-subtitle {
    text-shadow: 0 0 10px rgba(10, 25, 47, 0.8);
}

/* スクロールダウンアイコンにも登場アニメーションを追加 */
.scroll-down {
    animation: bounce 2.5s infinite, fadeIn-scroll 1.5s ease-out 1.5s forwards;
    opacity: 0; /* 初期状態は非表示 */
}

@keyframes fadeIn-scroll {
    from { opacity: 0; }
    to { opacity: 0.7; }
}




.global-nav .btn {
    display: inline-block;
    border: 1px solid var(--gold);
    padding: 12px 40px;
    border-radius: 5px;
    margin-top: 20px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: bold;
}







/* ========================================================================= */
/* ▼▼▼【超思考による追加CSS】ここから ▼▼▼ */
/* ========================================================================= */

/* --- index.php: 保護者向けCTAセクション --- */
.parent-cta-section {
    background-color: var(--navy-blue);
    padding: 0px 0;
    border-top: 1px solid var(--light-navy);
    border-bottom: 1px solid var(--light-navy);
}

.parent-cta-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: var(--white);
    margin-bottom: 10px;
}

.parent-cta-subtitle {
    color: var(--slate);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn.btn-secondary {
    background-color: var(--gold);
    color: var(--dark-blue);
    border-color: var(--gold);
    font-weight: 700;
}

.btn.btn-secondary:hover {
    background-color: var(--light-gold);
    border-color: var(--light-gold);
    color: var(--dark-blue);
    box-shadow: 0 0 20px rgba(247, 215, 148, 0.5);
}

.btn i {
    margin-right: 8px;
}

/* --- for_parents.php: 問題提起セクション --- */
.problem-list-container {
    max-width: 650px;
    margin: 40px auto;
    background-color: rgba(17, 34, 64, 0.5);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--light-navy);
}

.problem-list {
    list-style: none;
    padding-left: 0;
    font-size: 1.1rem;
}

.problem-list li {
    color: var(--white);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.problem-list li i {
    color: var(--green-aurora);
    margin-right: 15px;
    font-size: 1.2rem;
}

.solution-lead {
    font-size: 1.2rem;
    color: var(--light-gold);
}

.solution-lead strong {
    color: var(--green-aurora);
    font-weight: bold;
}

/* --- for_parents.php: お客様の声セクション --- */
.testimonial-section {
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--navy-blue);
    border: 1px solid var(--light-navy);
    padding: 30px;
    border-radius: 8px;
    position: relative;
    padding-top: 50px;
}

.testimonial-icon {
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    color: var(--slate);
    margin-bottom: 20px;
}

.testimonial-author {
    text-align: right;
    font-weight: 700;
    color: var(--white);
}

/* --- for_parents.php: 最終CTAセクション --- */
.final-cta-section {
    background-color: var(--navy-blue);
    padding: 80px 0;
    border-top: 1px solid var(--light-navy);
}

.final-cta-title {
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 20px;
}

.final-cta-text {
    color: var(--slate);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.btn.btn-large {
    padding: 18px 45px;
    font-size: 1.2rem;
    transform: scale(1);
    transition: transform 0.3s ease;
}
.btn.btn-large:hover {
    transform: scale(1.05);
}

.cta-contact-info {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.6;
}

/* --- レスポンシブ対応 --- */
.sp-only { display: none; }
.pc-only { display: inline; }

@media (max-width: 767px) {
    .sp-only { display: inline; }
    .pc-only { display: none; }
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* ========================================================================= */
/* ▲▲▲【超思考による追加CSS】ここまで ▲▲▲ */
/* ========================================================================= */







/* ================================================================== */
/* ▼▼▼【for_parents.php用】共感の鏡セクションのスタイル ▼▼▼ */
/* ================================================================== */

#problems .problem-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px auto;
    max-width: 900px;
}

#problems .problem-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#problems .problem-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.5);
    border: 1px solid var(--light-navy);
}

#problems .problem-list-container {
    width: 100%;
    background-color: transparent;
    padding: 0;
    border: none;
}

#problems .problem-list {
    list-style: none;
    padding-left: 0;
    font-size: 1rem;
}

#problems .problem-list li {
    color: var(--slate);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

#problems .problem-list li i {
    color: var(--gold);
    margin-right: 12px;
    margin-top: 5px;
    font-size: 0.9rem;
}

#problems .solution-lead {
    font-size: 1.2rem;
    color: var(--light-gold);
    line-height: 1.7;
}

#problems .solution-lead strong {
    color: var(--green-aurora);
    font-weight: 700;
}

/* PC表示（横並び） */
@media (min-width: 768px) {
    #problems .problem-content-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    #problems .problem-image {
        flex: 0 0 45%; /* 幅を45%に固定 */
        max-width: none;
    }

    #problems .problem-list-container {
        flex: 1;
    }

    #problems .problem-list {
        font-size: 1.1rem;
    }
}


/* --- その他のセクションの画像スタイル --- */
.step-image {
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid var(--light-navy);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.testimonial-section {
    background-color: var(--dark-blue);
}

.testimonial-card {
    text-align: center;
    padding: 30px;
    padding-top: 60px; /* アイコン分のスペース */
    background-color: var(--navy-blue);
    position: relative;
}

.testimonial-author-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--dark-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.testimonial-author-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text::before {
    content: '“';
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.5;
    position: absolute;
    top: 15px;
    left: 20px;
}
.testimonial-author-name {
    margin-top: 15px;
    font-weight: 700;
    color: var(--white);
}

.page-hero {
    background-attachment: fixed;
}









/* css/style.css の末尾に追記 */

.cta-button-group {
    margin-bottom: 30px;
}

.cta-button-group .btn {
    margin: 10px 5px; /* ボタン同士の余白を調整 */
}

/* 最終連絡先情報の調整 */
.cta-contact-info {
    margin-top: 20px;
}





/* ========================================================================= */
/* ▼▼▼【提案2】追従CTAボタン (スマートフォン専用) ▼▼▼ */
/* ========================================================================= */
.floating-cta {
    display: none; /* デフォルトでは非表示 */
}

@media (max-width: 767px) {
    /* フッターがボタンに隠れないように、bodyに下の余白を追加 */
    body {
        padding-bottom: 90px; /* ボタンの高さ分 */
    }

    .floating-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(to top, rgba(10, 25, 47, 1), rgba(17, 34, 64, 0.95));
        padding: 15px 10px;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
        z-index: 998; /* ナビゲーションメニューよりは下 */
        border-top: 1px solid var(--light-navy);
        animation: slideInUp 0.5s ease-out forwards;
        animation-delay: 1.2s; /* 1.2秒待ってから表示 */
        opacity: 0; /* アニメーション開始前は透明 */
    }

    .floating-cta .btn-cta {
        display: block;
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
        font-weight: bold;
        text-align: center;
        background-color: var(--gold);
        color: var(--dark-blue);
        border: none;
        border-radius: 5px;
        box-shadow: 0 4px 15px rgba(247, 215, 148, 0.4);
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
    
    .floating-cta .btn-cta:hover {
        background-color: var(--light-gold);
        color: var(--dark-blue);
    }

    .floating-cta .btn-cta:active {
        transform: translateY(2px);
    }
    
    .floating-cta .btn-cta i {
        margin-right: 10px;
    }

    @keyframes slideInUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}








/* ========================================================================= */
/* ▼▼▼【2025/07/16 追加CSS】ここから ▼▼▼ */
/* ========================================================================= */

/* --- 漫画ストーリーセクション --- */
#manga-story {
    padding-top: 60px;
    padding-bottom: 60px;
}
.manga-container {
    max-width: 700px;
    margin: 30px auto 0;
}
.manga-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px -15px rgba(2, 12, 27, 0.8);
    border: 3px solid var(--light-navy);
}

/* --- 保護者のメリット解説セクションのアイコン修正 --- */
#why-sutasaku-works .info-card-icon i {
    font-size: 2.2rem;
}


/* --- スマートフォン用 追従CTAボタンの文言変更対応 --- */
@media (max-width: 767px) {
    .floating-cta .btn-cta i {
        margin-right: 8px; /* アイコンとテキストの間隔調整 */
    }
}


/* --- PC用 追従CTAボタン --- */
.floating-cta-pc {
    display: none; /* デフォルトは非表示 */
}

/* PC（幅1024px以上）で表示 */
@media (min-width: 768px) {
    /* スマホ用の追従ボタンは非表示に */
    .floating-cta {
        display: none;
    }

    .floating-cta-pc {
        display: block;
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 998;
    }

    .btn-cta-pc {
        display: flex;
        align-items: center;
        gap: 12px;
        background-color: var(--gold);
        color: var(--dark-blue);
        padding: 12px 20px;
        border-radius: 50px; /* 角を丸くする */
        box-shadow: 0 8px 20px rgba(247, 215, 148, 0.4);
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .btn-cta-pc:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 12px 25px rgba(247, 215, 148, 0.5);
        color: var(--dark-blue);
    }

    .cta-pc-text {
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.4;
        text-align: center;
    }

    .btn-cta-pc i {
        font-size: 1.8rem;
        transition: transform 0.3s ease;
    }
    
    .btn-cta-pc:hover i {
        transform: rotate(360deg);
    }
}


/* ========================================================================= */
/* ▲▲▲【2025/07/16 追加CSS】ここまで ▲▲▲ */
/* ========================================================================= */


/* --- 料金・実績セクション用スタイル --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 2fr));
    gap: 25px;
    margin-top: 40px;
}
.pricing-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}
.pricing-card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.pricing-card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
}
.pricing-card-description {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 20px;
    flex-grow: 1; /* 内容が少なくても高さを揃える */
}

/* --- 特徴・実績リストのスタイル --- */
.plan-features, .extra-feature {
    background-color: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-top: auto; /* カード下部に固定 */
    text-align: left;
}
.plan-features h4, .extra-feature h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-blue);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}
.feature-list, .achievement-list {
    list-style: none;
    padding: 0;
    text-align: left;
}
.feature-list li, .achievement-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start; /* 上揃えに変更 */
}
.feature-list .fa-check, .achievement-list .fa-check-circle {
    color: #28a745;
    margin-right: 10px;
    margin-top: 4px; /* アイコンの位置を微調整 */
}
.feature-list li strong {
    display: block;
    color: #333;
    font-size: 1rem;
}

.achievement-list li {
    align-items: center; /* 実績リストは中央揃えのまま */
}

.fa-shield-alt {
    color: #28a745; /* 強調したいので緑色に */
}













/* ========================================================================= */
/* ▼▼▼【2025/07/18 追加CSS】ここから ▼▼▼ */
/* ========================================================================= */

/* ↓↓↓ この #pricing-and-results .pricing-grid のルールを丸ごと差し替えてください ↓↓↓ */

#pricing-and-results .pricing-grid {
    display: grid;
    gap: 25px;
    align-items: stretch; /* カードの高さを揃える */
    grid-template-columns: 1fr; /* モバイルではデフォルトで1列表示 */
}

/* タブレットサイズ以上で2列表示に切り替え */
@media (min-width: 768px) {
    #pricing-and-results .pricing-grid {
        grid-template-columns: repeat(2, 1fr); /* 2列に固定 */
    }
}

/* ↑↑↑ 差し替えここまで ↑↑↑ */

#pricing-and-results .pricing-card {
    background-color: var(--navy-blue);
    border: 1px solid var(--light-navy);
    color: var(--slate);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#pricing-and-results .pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px -15px rgba(2,12,27,0.9);
}


#pricing-and-results .pricing-card-icon {
    font-size: 2.5rem;
    color: var(--green-aurora);
    margin-bottom: 20px;
}

#pricing-and-results .pricing-card-icon .fa-google {
    color: #4285F4; /* Googleのブランドカラー */
}

#pricing-and-results .pricing-card-title {
    color: var(--white);
    font-family: var(--font-title);
    min-height: 3em; /* タイトルの高さを2行分確保 */
}

#pricing-and-results .pricing-card-description {
    color: var(--slate);
    font-size: 0.95rem;
    flex-grow: 1;
}

#pricing-and-results .extra-feature {
    background-color: var(--dark-blue);
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}
#pricing-and-results .extra-feature h4 {
    color: var(--gold);
    border-bottom: 1px solid var(--light-navy);
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-size: 1rem;
}
#pricing-and-results .extra-feature p {
    font-size: 0.9rem;
    color: var(--slate);
}


/* --- Google評価表示用のスタイル --- */
.rating-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rating-stars {
    font-size: 1.8rem;
    color: #fbbc05; /* Googleの星の色 */
}

.rating-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--white);
    font-family: var(--font-title);
}

.btn.btn-outline {
    background: transparent;
    border-color: var(--slate);
    color: var(--slate);
}
.btn.btn-outline:hover {
    background-color: rgba(136, 146, 176, 0.1);
    border-color: var(--white);
    color: var(--white);
}

/* --- 合格実績セクションのスタイル --- */
#school-achievements {
    margin-top: 60px;
    text-align: center;
}

.subsection-title-center {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
}
.subsection-title-center::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--gold);
}

.achievement-list-center {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
}

.achievement-list-center li {
    font-size: 1rem;
    color: var(--slate);
    background-color: var(--light-navy);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.achievement-list-center li i {
    color: var(--green-aurora);
    margin-right: 10px;
}
.achievement-list-center li:hover {
    color: var(--white);
}


/* ========================================================================= */
/* ▲▲▲【2025/07/18 追加CSS】ここまで ▲▲▲ */
/* ========================================================================= */










/* --- Googleレビューカードの専用スタイル --- */
.review-card {
    grid-column: 1 / -1; /* グリッド内で1行を専有 */
    background-color: var(--navy-blue);
    border: 1px solid var(--gold); /* 強調するためにゴールドの枠線 */
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .review-card {
        grid-column: span 2; /* PC大画面では2カラム分の幅 */
    }
}

.review-card .pricing-card-title {
    color: var(--gold); /* タイトルをゴールドに */
}

.review-quotes {
    margin-top: 15px;
    margin-bottom: 25px;
    text-align: left;
    flex-grow: 1; /* スペースを埋める */
}

.review-quote-item {
    background-color: var(--dark-blue);
    border-left: 4px solid var(--green-aurora);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.review-quote-item:last-child {
    margin-bottom: 0;
}

.review-text {
    font-style: italic;
    color: var(--slate);
    margin-bottom: 10px;
}

.review-source {
    font-size: 0.85rem;
    color: var(--light-navy);
    text-align: right;
}

.all-reviews-btn {
    margin-top: auto; /* ボタンをカードの最下部に配置 */
}

/* 実績リストの調整 */
.achievement-list {
    text-align: left;
    padding-left: 10px;
}










/* --- 教室の様子とアクセスセクション --- */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--light-navy);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.5);
    margin-bottom: 25px;
}

.access-info {
    text-align: center;
    color: var(--slate);
    line-height: 2;
    margin-bottom: 40px;
}
.access-info p {
    margin-bottom: 5px;
}
.access-info strong {
    font-size: 1.2rem;
    color: var(--white);
}
.access-info i {
    margin-right: 8px;
    color: var(--gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--light-navy);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}









/* --- 作り手の顔セクション --- */
#our-team.alt-bg {
    background-color: var(--navy-blue);
    border-top: 1px solid var(--light-navy);
    border-bottom: 1px solid var(--light-navy);
    /* ▼▼▼【修正】セクション自体の左右パディングを確保 ▼▼▼ */
    padding-left: 15px;
    padding-right: 15px;
    /* ▲▲▲ 修正ここまで ▲▲▲ */
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.team-member-photo {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* 写真を丸く切り抜く */
    border: 4px solid var(--gold);
    box-shadow: 0 10px 30px -10px rgba(2,12,27,0.7);
}

.team-member-info {
    text-align: center;
}

.team-member-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.team-member-title span {
    display: block;
    font-size: 1rem;
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: bold;
    margin-bottom: 5px;
}

.team-member-text {
    text-align: left;
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.8;
    /* ▼▼▼【追加】テキストの折り返しを適切に処理 ▼▼▼ */
    word-break: break-word;
    /* ▲▲▲ 追加ここまで ▲▲▲ */
}

/* PC表示 */
@media (min-width: 768px) {
    .team-card {
        flex-direction: row;
        text-align: left;
        gap: 40px;
    }

    .team-member-info {
        text-align: left;
    }
    
    /* 開発者カードを逆レイアウトに */
    .team-card:nth-child(even) {
        flex-direction: row-reverse;
    }
}






/* ========================================================================= */
/* ▼▼▼【2025/07/25 追加CSS】ここから ▼▼▼ */
/* ========================================================================= */

/* --- スマートフォン表示でのタイトル見切れ防止 --- */
@media (max-width: 767px) {
    .section-title {
        /* flexレイアウトを解除し、テキストの自然な改行を許可 */
        display: block;
        white-space: normal;
        padding: 0 15px; /* 画面端との余白を確保 */
        gap: 0; /* flexアイテム間のギャップをリセット */
    }

    .section-title::before {
        /* スマホ表示では左側の線を非表示に */
        display: none;
    }

    .section-title::after {
        /* 右側の線を、タイトルの下に表示される中央の線として再定義 */
        display: block;
        width: 80px;
        height: 2px;
        background: var(--gold); /* グラデーションを単色に変更 */
        margin: 15px auto 0; /* タイトルの下にマージンを設けて配置 */
    }
}

/* ========================================================================= */
/* ▲▲▲【2025/07/25 追加CSS】ここまで ▲▲▲ */
/* ========================================================================= */






/* --- クイックメニュー --- */
.quick-nav-section {
    padding: 40px 0;
}
.quick-nav-box {
    background-color: var(--navy-blue);
    border: 1px solid var(--light-navy);
    border-radius: 8px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}
.quick-nav-box h3 {
    font-family: var(--font-title);
    color: var(--gold);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}
.quick-nav-box h3 i {
    margin-right: 10px;
}
.quick-nav-box ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.quick-nav-box ul li a {
    display: block;
    background-color: var(--light-navy);
    padding: 12px 20px;
    border-radius: 5px;
    color: var(--slate);
    font-weight: bold;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}
.quick-nav-box ul li a:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateX(5px);
    border-left-color: var(--green-aurora);
}
.quick-nav-box ul li a span {
    color: var(--gold);
    display: block;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

@media (min-width: 768px) {
    .quick-nav-box ul {
        grid-template-columns: 1fr 1fr;
    }
}







/* --- セクションブレイク --- */
.section-break {
    text-align: center;
    margin: 0 auto;
    width: 80%;
    position: relative;
    padding: 30px 0;
}
.section-break::before,
.section-break::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--light-navy));
}
.section-break::before {
    left: 0;
    background: linear-gradient(to left, transparent, var(--light-navy));
}
.section-break::after {
    right: 0;
}
.section-break i {
    font-size: 1.2rem;
    color: var(--gold);
    opacity: 0.7;
}








/* --- 中間CTA --- */
.mid-cta-section {
    padding: 60px 0;
    border-top: 1px solid var(--light-navy);
    border-bottom: 1px solid var(--light-navy);
}
.mid-cta-title {
    font-family: var(--font-title);
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 15px;
}
.mid-cta-text {
    color: var(--slate);
    max-width: 600px;
    margin: 0 auto 30px;
}








/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    /* わくわくデザインのヘッダー背景 */
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(136, 146, 176, 0.2);
    display: flex;
    align-items: center;
    transition: top 0.3s ease-out;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px; /* ロゴサイズを調整 */
    width: auto;
    transition: opacity 0.3s ease;
}
.logo:hover img {
    opacity: 0.8;
}

/* ▼▼▼ PC Navigation (わくわくデザイン) ▼▼▼ */
.global-nav-pc {
    display: none; /* モバイルでは非表示 */
}
@media (min-width: 992px) {
    .global-nav-pc {
        display: block; /* PCで表示 */
    }
    .global-nav-pc ul {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 30px;
    }
    .global-nav-pc a {
        font-family: var(--font-title);
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--white);
        padding-bottom: 5px;
        position: relative;
    }
    .global-nav-pc a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--gold);
        transition: width 0.3s ease;
    }
    .global-nav-pc a:hover::after {
        width: 100%;
    }
    .global-nav-pc .btn {
        padding: 10px 25px;
        font-size: 1rem;
        border-color: var(--gold);
        color: var(--gold);
        background: transparent;
    }
    .global-nav-pc .btn:hover {
        background-color: rgba(247, 215, 148, 0.1);
        color: var(--light-gold);
    }
    .global-nav-pc .btn i {
        margin-right: 8px;
    }
    .global-nav-pc .btn:hover::after { display: none; }
}

/* ▼▼▼ Hamburger Menu (わくわくデザイン) ▼▼▼ */
.hamburger-menu {
    display: block; /* モバイルで表示 */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}
@media (min-width: 992px) {
    .hamburger-menu {
        display: none; /* PCで非表示 */
    }
}
.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--gold);
    margin: 6px 0;
    transition: all 0.4s ease;
    border-radius: 2px;
}
.hamburger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


/* ▼▼▼ Mobile Navigation (わくわくデザイン) ▼▼▼ */
.global-nav-mobile {
    display: flex;
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    /* わくわくデザインのモバイルナビ背景 */
    background-color: var(--light-navy);
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: -10px 0 30px -15px rgba(2,12,27,0.7);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.global-nav-mobile.active {
    right: 0;
}
.global-nav-mobile ul {
    list-style: none;
    text-align: center;
    width: 100%;
}
.global-nav-mobile ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.global-nav-mobile.active ul li {
    opacity: 1;
    transform: translateY(0);
}
.global-nav-mobile.active ul li:nth-child(1) { transition-delay: 0.1s; }
.global-nav-mobile.active ul li:nth-child(2) { transition-delay: 0.15s; }
.global-nav-mobile.active ul li:nth-child(3) { transition-delay: 0.2s; }
.global-nav-mobile.active ul li:nth-child(4) { transition-delay: 0.25s; }
.global-nav-mobile.active ul li:nth-child(5) { transition-delay: 0.3s; }

.global-nav-mobile a {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--white);
    padding: 15px 20px;
    display: block;
}
.global-nav-mobile .btn {
    margin-top: 20px;
    padding: 12px 40px;
    border-color: var(--gold);
    color: var(--gold);
}
.global-nav-mobile .btn:hover {
    background-color: rgba(247, 215, 148, 0.1);
}







/* --- Footer Logo Size Control --- */
.footer-logo {
    width: 100%;
    max-width: 200px; /* フッターロゴの最大幅を200pxに設定 */
    margin: 0 auto 30px; /* 下のマージンを調整 */
}

.footer-logo img {
    width: 100%;
    height: auto;
}