/* --- Base Styles & Variables --- */
:root {
    /* Color Palette: Clean & Trustworthy with a touch of Fun */
    --primary-blue: #005BAC;    /* 信頼感のある青 (メインカラー) */
    --secondary-blue: #003F7D;  /* 深い青 (グラデーション用) */
    --light-blue: #E6F0F9;      /* 明るい青 (背景やアクセント) */
    --dark-text: #333333;       /* メインのテキストカラー */
    --gray-text: #666666;       /* サブテキスト・説明文 */
    --border-color: #DEE2E6;    /* 境界線 */
    --background-color: #FFFFFF; /* 全体の背景色 */
    --light-gray-bg: #F8F9FA;    /* セクション背景色 */

    /* Accent Colors */
    --accent-gold: #FFC107;     /* 楽しさ・報酬のアクセント */
    --accent-green: #28a745;     /* 成功・達成のアクセント */
    --accent-red: #E53935;       /* イベント・強調のアクセント */

    /* Typography */
    --font-body: 'Noto Sans JP', sans-serif;
    --font-display: 'Oswald', sans-serif; /* わくわく感を出す見出し用フォント */

    /* Layout */
    --header-height: 70px;
    --container-width: 1100px;
    --border-radius: 8px;
    --border-radius-large: 12px;
}

/* --- Reset & Basic Setup --- */
*, *::before, *::after {
text-align: center;

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background-color);
    color: var(--dark-text);
    font-family: var(--font-body);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

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

a:hover {
    color: #00417c;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--dark-text);
    font-family: var(--font-body);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px; /* 角を丸くして親しみやすく */
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background-color: #ffca2c;
}

.btn.btn-primary {
    background-color: var(--primary-blue);
    color: #fff;
}

.btn.btn-primary:hover {
    background-color: #00417c;
}

.btn.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--dark-text);
    box-shadow: none;
}
.btn.btn-outline:hover {
    background-color: var(--light-blue);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: none;
    box-shadow: none;
}


/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    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: 40px;
}

.global-nav-pc {
    display: none;
}
@media (min-width: 992px) {
    .global-nav-pc {
        display: block;
    }
    .global-nav-pc ul {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 25px;
    }
    .global-nav-pc a {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--dark-text);
        position: relative;
        padding: 5px 0;
    }
    .global-nav-pc a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-blue);
        transition: width 0.3s ease;
    }
    .global-nav-pc a:hover::after {
        width: 100%;
    }
    .global-nav-pc .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    .global-nav-pc .btn:hover::after {
        display: none;
    }
}


.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(--primary-blue);
    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 Panel */
.global-nav-mobile {
    display: flex;
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--background-color);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    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;
}
.global-nav-mobile ul li {
    margin-bottom: 30px;
}
.global-nav-mobile a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 10px 20px;
}
.global-nav-mobile .btn {
    margin-top: 20px;
}


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

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.alt-bg {
    background-color: var(--light-gray-bg);
}

/* --- Hero Section --- */
.hero {
    padding: 60px 0;
    background-color: var(--light-blue);
    overflow: hidden;
}
.hero .container {
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
@media (min-width: 992px) {
    .hero {
        padding: 80px 0;
    }
    .hero .container {
        flex-direction: row;
        gap: 50px;
    }
}
.hero-content {
    flex: 1;
    text-align: center;
}
@media (min-width: 992px) {
    .hero-content {
        text-align: left;
    }
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1.3;
    text-align: center;
}
@media (min-width: 992px) {
    .hero-title {
        text-align: left;
    }
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    color: var(--gray-text);
    margin: 20px 0 30px;
    text-align: center;
}
@media (min-width: 992px) {
    .hero-subtitle {
        text-align: left;
    }
}
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
@media (min-width: 768px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}
@media (min-width: 992px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-badges {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
@media (min-width: 992px) {
    .hero-badges {
        justify-content: flex-start;
    }
}
.badge {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--dark-text);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.badge i {
    color: var(--accent-gold);
}


/* --- Problem/Empathy Section --- */
.problem-list {
    list-style: none;
    max-width: 650px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.problem-list li {
    background-color: var(--light-blue);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}
.problem-list li i {
    color: var(--primary-blue);
    font-size: 1.3rem;
}
.solution-lead {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-text);
    line-height: 1.7;
    margin-top: 40px;
}
.solution-lead strong {
    color: var(--primary-blue);
    background: linear-gradient(to top, var(--light-blue) 50%, transparent 50%);
    padding: 0 5px;
}

/* --- Manga Story Section --- */
.manga-container {
    max-width: 700px;
    margin: 40px auto 0;
}
.manga-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
}

/* --- Info Grid Section (Features/Benefits) --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.info-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.info-card-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    background-color: var(--light-blue);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    min-height: 3.2em;
}
.info-card-text {
    color: var(--gray-text);
    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;
}

/* --- Learning Contents Section --- */
.learning-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;
}
.learning-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    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 rgba(0,0,0,0.07);
}
.learning-card img { margin: 0 auto 20px;  width: auto; }
.learning-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
}
.learning-card p { font-size: 0.9rem; color: var(--gray-text); }


/* --- Team/Creator Section --- */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 900px;
    margin: 60px auto 0;
}
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}
@media (min-width: 768px) {
    .team-card {
        flex-direction: row;
        text-align: left;
        gap: 40px;
    }
    .team-card:nth-child(even) {
        flex-direction: row-reverse;
    }
}
.team-member-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--background-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.team-member-info {
    flex: 1;
}
.team-member-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
}
.team-member-title span {
    display: block;
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 5px;
}
.team-member-text {
    color: var(--gray-text);
}


/* --- Pricing & Results Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
}
@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .pricing-grid.triple {
        grid-template-columns: repeat(3, 1fr);
    }
}
.pricing-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.pricing-card-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}
.pricing-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    min-height: 2.5em;
}
.pricing-card-description {
    color: var(--gray-text);
    flex-grow: 1;
    margin-bottom: 20px;
}
.extra-feature {
    background-color: var(--light-gray-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: auto;
    text-align: left;
}
.extra-feature h4 {
    font-weight: 700;
    margin-bottom: 10px;
}
.achievement-list {
    list-style: none;
    text-align: left;
}
.achievement-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.achievement-list i {
    color: var(--accent-green);
}

/* Google Review Card */
.review-card {
    border: 2px solid var(--accent-gold);
}
.rating-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.rating-stars {
    font-size: 1.8rem;
    color: #fbbc05;
}
.rating-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-text);
}
.review-quotes {
    margin: 15px 0 25px;
    text-align: left;
    flex-grow: 1;
}
.review-quote-item {
    background: var(--light-gray-bg);
    border-left: 4px solid var(--accent-gold);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.review-text {
    font-style: italic;
    color: var(--gray-text);
    margin-bottom: 10px;
}
.review-source {
    font-size: 0.85rem;
    color: #999;
    text-align: right;
}

/* --- Access & Gallery Section --- */
.access-gallery-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media(min-width: 992px) {
    .access-gallery-container {
        grid-template-columns: 1fr 1fr;
    }
}
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 400px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.access-info {
    text-align: center;
    line-height: 2;
}
@media(min-width: 992px) {
    .access-info {
        text-align: left;
    }
}
.access-info strong {
    font-size: 1.3rem;
    color: var(--dark-text);
}
.access-info p { margin-bottom: 5px; }
.access-info i { margin-right: 10px; color: var(--primary-blue); width: 20px; text-align: center; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}
.gallery-item img {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, filter 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}


/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
}
.faq-question:hover {
    color: var(--primary-blue);
}
.faq-question i {
    color: var(--primary-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}
.faq-question.active i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-bottom 0.4s ease-out;
    padding: 0 15px;
    color: var(--gray-text);
}
.faq-answer p, .faq-answer ul {
    margin-bottom: 15px;
}
.faq-answer ul {
    padding-left: 20px;
    list-style: none;
}
.faq-answer ul li {
    margin-bottom: 10px;
    position: relative;
}
.faq-answer ul li::before {
    content: "✓";
    color: var(--accent-green);
    position: absolute;
    left: -20px;
    font-weight: bold;
}


/* --- Contact Form Section --- */
#contact-form-section {
    background-color: var(--light-blue);
}
.contact-form-title {
    color: var(--primary-blue);
}
#contact-form {
    max-width: 800px;
    margin: 40px auto 0;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-group.full-width {
        grid-column: 1 / -1;
    }
}
.form-group label {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.required-badge {
    background-color: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 91, 172, 0.2);
}
.privacy-policy-note {
    font-size: 0.8rem;
    color: var(--gray-text);
    text-align: center;
    margin-top: 20px;
}
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}
.form-group input.invalid, .form-group select.invalid {
    border-color: #dc3545;
}

/* Form Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    text-align: left;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-title { font-size: 1.8rem; text-align: center; margin-bottom: 10px; }
.modal-lead { text-align: center; margin-bottom: 30px; color: var(--gray-text); }
.confirmation-details p { margin-bottom: 15px; border-bottom: 1px dashed var(--border-color); padding-bottom: 15px; }
.confirmation-details strong { display: block; margin-bottom: 5px; color: var(--dark-text); font-weight: 700; }
.confirm-inquiry-box { background: var(--light-gray-bg); padding: 10px 15px; border-radius: 4px; min-height: 50px; white-space: pre-wrap; word-break: break-all; }
.modal-buttons { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
@media (min-width: 768px) {
    .modal-buttons {
        flex-direction: row;
        justify-content: center;
    }
}
#transient-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 5px;
    color: #fff;
    z-index: 1001;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#transient-message.success { background-color: var(--accent-green); }
#transient-message.error { background-color: #dc3545; }


/* --- Floating 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: rgba(255, 255, 255, 0.95); /* ライトテーマの背景色 */
        backdrop-filter: blur(8px);
        padding: 15px 10px;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1); /* ライトテーマ用の影 */
        z-index: 998;
        border-top: 1px solid var(--border-color);
        /* アニメーションを追加 */
        animation: slideInUp 0.5s ease-out forwards;
        animation-delay: 1.2s; /* 1.2秒待ってから表示 */
        opacity: 0; /* アニメーション開始前は透明 */
    }

    .floating-cta .btn {
        display: block;
        width: 100%;
        padding: 15px;
        font-size: 1.1rem; /* 文字を少し大きく */
        font-weight: 700;
        text-align: center;
        background-color: var(--accent-gold); /* 強調色を使用 */
        color: var(--dark-text);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* ボタンの影 */
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
    
    .floating-cta .btn:hover {
        background-color: var(--secondary-blue); /* ホバー時の色 */
        color: var(--dark-text);
    }
    
    /* クリック時の挙動を追加 */
    .floating-cta .btn:active {
        transform: translateY(2px);
    }

    /* アイコンのスタイルを追加 */
    .floating-cta .btn i {
        margin-right: 10px;
    }

    /* アニメーションのキーフレームを定義 */
    @keyframes slideInUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* --- Footer --- */
.site-footer-main {
    background-color: var(--light-gray-bg);
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}
.footer-logo {
    max-width: 250px;
    margin: 0 auto 20px;
}
.footer-info {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 20px;
}
.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(--gray-text);
    font-weight: 500;
}
.footer-nav a:hover {
    color: var(--primary-blue);
}
.copyright {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 30px;
}

/* --- Utility Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    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);
}
.fade-in.visible {
text-align: center;


    opacity: 1;
    transform: translateY(0);
}
.sp-only { display: block; }
.pc-only { display: none; }
@media (min-width: 768px) {
    .sp-only { display: none; }
    .pc-only { display: block; }
}


/* Google FontsにOswaldを追加 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Oswald:wght@500;700&display=swap');

/* --- わくわく感を出すための汎用クラス --- */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* --- index.php: クエストカードの進化 --- */
.quest-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark-text);
}
.quest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 91, 172, 0.1);
}
.quest-card-icon {

    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.quest-card:hover .quest-card-icon {
    transform: scale(1.1) rotate(-5deg);
}
.quest-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
}
.quest-card-description {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* --- features.php: 専用スタイル --- */
.feature-hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: var(--background-color);
    position: relative;
    overflow: hidden;
}
.feature-hero::before { /* 背景の装飾 */
    content: '\f135'; /* fa-rocket */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 30rem;
    color: rgba(255,255,255,0.05);
    top: 50%;
    left: 10%;
    transform: translateY(-50%) rotate(-20deg);
}
.feature-hero .container {
    position: relative;
    z-index: 2;
}
.feature-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--background-color);
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.feature-hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 20px auto 0;
}

/* 各機能セクションのスタイル */
.feature-section {
    padding: 100px 0;
    overflow: hidden;
}
.feature-section.alt-bg {
    background-color: var(--light-blue);
}
.feature-section-content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 50px;
}
@media(min-width: 992px) {
    .feature-section-content {
        grid-template-columns: 1fr 1fr;
    }
    .feature-section-content.reverse {
        grid-template-columns: 1fr 1fr;
    }
    /* 左右反転の制御 */
    .feature-section-content.reverse .feature-text {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
     .feature-section-content.reverse .feature-visual {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
}

.feature-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.feature-title .quest-number {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    letter-spacing: 2px;
}
.feature-text p {
    color: var(--gray-text);
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.feature-visual {
    position: relative;
}
.feature-visual img {
    border-radius: var(--border-radius-large);
    box-shadow: 0 15px 40px rgba(0, 91, 172, 0.15);
    transition: transform 0.3s ease;
}
.feature-visual:hover img {
    transform: scale(1.03);
}

/* ランクシステムのテーブル */
.rank-table {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    font-size: 1rem;
    margin-top: 30px;
}
.rank-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    border-bottom: 1px solid var(--border-color);
}
.rank-table-row:last-child { border: none; }
.rank-table-row div { padding: 15px; }
.rank-table-row .header {
    background: var(--light-blue);
    font-weight: 700;
}
.rank-table-row .rank-icon { font-size: 1.2rem; margin-right: 5px; }

/* アバターギャラリー */
.avatar-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.avatar-gallery img {
    border-radius: 50%;
    border: 4px solid var(--background-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.avatar-gallery img:hover {
    transform: scale(1.1) rotate(10deg);
    z-index: 2;
}

/* 学習コンテンツカード */
.learning-card-feature {
    background-color: var(--background-color);
    border-radius: var(--border-radius-large);
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.learning-card-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 91, 172, 0.12);
}
.learning-card-feature img { margin: 0 auto 20px;  
 height: width: auto; }
.learning-card-feature h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.learning-card-feature p { color: var(--gray-text); font-size: 1rem; }

/* イベントセクションのビジュアル */
.event-visual .main-image {
    margin-bottom: 15px;
}
.event-visual .sub-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}














/* ... (既存の:rootやResetなどのスタイルはそのまま) ... */

/* --- Header & Navigation (for_parents.phpではロゴが白背景に馴染むように) --- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color); 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: 40px; }


/* ▼▼▼【修正箇所】PCナビゲーションの表示制御を明確化 ▼▼▼ */
.global-nav-pc {
    display: none; /* デフォルトでは非表示 */
}
@media (min-width: 992px) {
    .global-nav-pc {
        display: block; /* 992px以上で表示 */
    }
    .global-nav-pc ul { list-style: none; display: flex; align-items: center; gap: 25px; }
    .global-nav-pc a { font-size: 0.9rem; font-weight: 700; color: var(--dark-text); position: relative; padding: 5px 0; }
    .global-nav-pc a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-blue); transition: width 0.3s ease; }
    .global-nav-pc a:hover::after { width: 100%; }
    .global-nav-pc .btn { padding: 10px 25px; font-size: 0.9rem; }
    .global-nav-pc .btn:hover::after { display: none; }
}


/* ▼▼▼【修正箇所】ハンバーガーメニューの表示制御を明確化 ▼▼▼ */
.hamburger-menu {
    display: block; /* デフォルトで表示 */
    background: none; border: none; cursor: pointer; z-index: 1001; padding: 5px;
}
@media (min-width: 992px) {
    .hamburger-menu {
        display: none; /* 992px以上で非表示 */
    }
}
.hamburger-menu span { display: block; width: 28px; height: 3px; background-color: var(--primary-blue); margin: 6px 0; transition: all 0.4s ease; border-radius: 2px; }
/* (ハンバーガーのactiveスタイルは変更なし) */


/* ▼▼▼【修正箇所】モバイルナビゲーションの背景 ▼▼▼ */
.global-nav-mobile {
    display: flex; position: fixed; top: var(--header-height); right: -100%; width: 100%; height: calc(100vh - var(--header-height));
    background-color: var(--background-color); /* 保護者向けページは白背景 */
    z-index: 999; transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    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; }
.global-nav-mobile ul li { margin-bottom: 30px; }
.global-nav-mobile a { font-size: 1.5rem; font-weight: 700; color: var(--primary-blue); padding: 10px 20px; }
.global-nav-mobile .btn { margin-top: 20px; }

/* ... (以降のスタイルは変更なし) ... */






/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    /* 保護者向けデザインのヘッダー背景 */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    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: 40px;
    width: auto;
}

/* ▼▼▼ 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: 25px;
    }
    .global-nav-pc a {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--dark-text);
        position: relative;
        padding: 5px 0;
    }
    .global-nav-pc a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-blue);
        transition: width 0.3s ease;
    }
    .global-nav-pc a:hover::after {
        width: 100%;
    }
    .global-nav-pc .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    .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(--primary-blue);
    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(--background-color);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    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;
}
.global-nav-mobile ul li {
    margin-bottom: 30px;
}
.global-nav-mobile a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 10px 20px;
}
.global-nav-mobile .btn {
    margin-top: 20px;
}










/* --- Sub CTA Section --- */
.sub-cta-section {
    padding: 60px 0;
    background-color: var(--light-gray-bg); /* 白基調のページ用 */
}
/* わくわくデザイン用の上書き */
body:not(.parent-page) .sub-cta-section {
    background-color: var(--navy-blue); /* ダークテーマのページ用 */
    border-top: 1px solid var(--light-navy);
}

.sub-cta-title {
    font-family: var(--font-title, 'Noto Sans JP'); /* フォントのフォールバック */
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-text); /* 白基調のページ用 */
}
body:not(.parent-page) .sub-cta-title {
    color: var(--white); /* ダークテーマのページ用 */
}


.sub-cta-text {
    color: var(--gray-text); /* 白基調のページ用 */
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}
body:not(.parent-page) .sub-cta-text {
    color: var(--slate); /* ダークテーマのページ用 */
}

.btn.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: none;
}
.btn.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 91, 172, 0.2);
}
body:not(.parent-page) .btn.btn-secondary {
    border-color: var(--gold);
    color: var(--gold);
}
body:not(.parent-page) .btn.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--dark-blue);
     box-shadow: 0 0 20px rgba(247, 215, 148, 0.5);
}


/* --- Floating CTA (スマートフォン & PC) --- */

/* デフォルトでは両方のCTAを非表示に設定 */
.floating-cta,
.floating-cta-pc {
    display: none;
    position: fixed;
    z-index: 998;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 1s; /* 1秒待ってから表示 */
    opacity: 0; /* アニメーション開始前は透明 */
}

/* ▼▼▼ スマートフォン専用CTA (〜767px) ▼▼▼ */
@media (max-width: 767px) {
    /* フッターがボタンに隠れないように、bodyに下の余白を追加 */
    body {
        padding-bottom: 85px; /* ボタンの高さに合わせて調整 */
    }

    .floating-cta {
        display: block; /* SP表示 */
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        padding: 15px 10px;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
        animation-name: slideInUp; /* SP用のアニメーションを指定 */
    }

    .floating-cta .btn-cta {
        display: flex; /* アイコンとテキストを中央揃えにするためにflexを使用 */
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
        font-weight: 700;
        text-align: center;
        border-radius: 50px;
        text-decoration: none;
        background-color: var(--primary-blue);
        color: #fff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
    
    .floating-cta .btn-cta:hover {
        background-color: var(--secondary-blue);
    }
    
    .floating-cta .btn-cta:active {
        transform: translateY(2px);
    }

    .floating-cta .btn-cta i {
        margin-right: 10px;
        font-size: 1.2em; /* アイコンを少し大きく */
    }
}

/* ▼▼▼ PC専用CTA (768px〜) ▼▼▼ */
@media (min-width: 768px) {
    .floating-cta-pc {
        display: block; /* PC表示 */
        bottom: 30px;
        right: 30px;
    }

    .floating-cta-pc .btn-cta-pc {
        display: flex;
        align-items: center;
        gap: 15px;
        background-color: var(--primary-blue);
        color: #fff;
        padding: 20px 25px;
        border-radius: 50px;
        box-shadow: 0 8px 20px rgba(0, 91, 172, 0.25);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .floating-cta-pc .btn-cta-pc:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 12px 25px rgba(0, 91, 172, 0.3);
        background-color: var(--secondary-blue);
    }

    .floating-cta-pc .cta-pc-text {
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.4;
    }

    .floating-cta-pc .fa-circle-arrow-right {
        font-size: 2.5rem; /* アイコンのサイズ */
        transition: transform 0.3s ease;
    }

    .floating-cta-pc .btn-cta-pc:hover .fa-circle-arrow-right {
        transform: translateX(5px);
    }
}

/* --- アニメーションのキーフレーム定義 --- */
/* 汎用フェードイン */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* SP用：下からスライドイン */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}