/* =====================================================
   Information Page Styles (追加分)
===================================================== */

/* コンテナ全体の余白と背景 */
.info-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* ページ見出しの装飾（パステルカラーを使用） */
.info-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.info-title {
    display: inline-block;
    font-size: 2rem;
    color: var(--accent-main);
    background: var(--bg-item);
    padding: 10px 40px;
    border-radius: 50px;
    border: 3px solid var(--accent-main);
    box-shadow: 0 6px 0 var(--pastel-shadow-orange);
    margin-bottom: 1rem;
}

/* カード風のセクション */
.card-layout {
    background: var(--bg-item);
    border: 2px solid var(--border-soft);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    line-height: 1.8;
    color: var(--text-main);
}

/* リスト形式（サイトマップや規約など） */
.info-content ul {
    list-style: none;
    padding: 0;
}

.info-content li {
    padding: 12px 15px;
    border-bottom: 1px dashed var(--border);
    display: flex;
    align-items: center;
}

.info-content li::before {
    content: '★';
    color: var(--accent-main);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* 強調テキスト */
.text-important {
    color: var(--accent-danger);
    font-weight: bold;
    background: linear-gradient(transparent 70%, var(--pre-school-item-bg) 70%);
}

/* 押しやすいボタンデザイン */
.btn-primary {
    display: inline-block;
    background: var(--accent-main);
    color: #fff;
    padding: 15px 50px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 0 var(--pastel-shadow-orange);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--pastel-shadow-orange);
    background: var(--btn-hover-bg);
    color: var(--accent-main);
}

/* ダークモード時の微調整 */
body[data-theme="dark"] .info-title {
    box-shadow: 0 6px 0 var(--pastel-shadow-orange);
    background: var(--bg-card);
}

body[data-theme="dark"] .text-important {
    background: linear-gradient(transparent 70%, #4d1e3a 70%);
}

/* =====================================================
   About Page Custom Styles
===================================================== */

/* ヒーローエリア */
.about-hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-page));
    border-radius: 30px;
    margin-bottom: 2rem;
    border: 3px solid var(--accent-main);
}

.about-title {
    font-size: 2.5rem;
    color: var(--accent-main);
    text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--pastel-shadow-orange);
    margin-bottom: 1rem;
}

.about-lead {
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.2rem;
}

/* キャラクター挨拶の間隔 */
.character-greeting {
    margin: 2rem 0;
}

/* 3つのヒミツ（グリッド） */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.feature-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px) rotate(2deg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* 開発秘話の装飾 */
.story-box {
    background: var(--bg-item);
    border-left: 8px solid var(--accent-main);
    padding: 2rem;
    border-radius: 0 20px 20px 0;
    line-height: 2;
    position: relative;
    overflow: hidden;
}

.story-box::after {
    content: '✏️';
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 4rem;
    opacity: 0.1;
}

/* CTAエリア */
.contact-cta {
    margin-top: 4rem;
    text-align: center;
}

.cta-box {
    background: var(--japanese-item-bg);
    padding: 2.5rem;
    border-radius: 30px;
    margin-top: 1.5rem;
    border: 3px dashed var(--japanese-bg);
}

/* レスポンシブ調整 */
@media (max-width: 600px) {
    .about-title {
        font-size: 1.8rem;
    }
}

/* =====================================================
   Contact Page Custom Styles (1rem = 10px)
===================================================== */

.contact-page {
    max-width: 80rem;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* 導入の吹き出しエリア */
.contact-intro-bubble {
    margin-bottom: 3rem;
}

/* フォームカードの微調整 */
.contact-form-card {
    padding: 4rem 3rem;
    border: 0.3rem solid var(--accent-main);
}

/* 各入力アイテム */
.form-item {
    margin-bottom: 2.5rem;
}

.form-item label {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-guide {
    font-size: 1.3rem;
    color: var(--text-sub);
    margin-bottom: 0.8rem;
}

/* 必須ラベル */
.badge-required {
    background: var(--accent-danger);
    color: #fff;
    font-size: 1.1rem;
    padding: 0.2rem 0.8rem;
    border-radius: 1rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* 入力フィールドの装飾 */
.wakuwaku-form input[type="text"],
.wakuwaku-form input[type="email"],
.wakuwaku-form select,
.wakuwaku-form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    border: 0.2rem solid var(--border-light);
    border-radius: 1.2rem;
    background: var(--bg);
    color: var(--text-main);
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.wakuwaku-form input:focus,
.wakuwaku-form select:focus,
.wakuwaku-form textarea:focus {
    outline: none;
    border-color: var(--accent-main);
    box-shadow: 0 0 1rem rgba(255, 157, 0, 0.2);
}

/* セレクトボックスの矢印対応 */
.select-wrapper {
    position: relative;
}

/* 送信ボタンの強化 */
.form-submit {
    text-align: center;
    margin-top: 4rem;
}

.submit-btn {
    font-size: 2rem;
    padding: 1.8rem 6rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.icon-send {
    font-style: normal;
    font-size: 2.4rem;
}

/* エラー表示の吹き出し */
.error-bubble {
    background: #fff2f2;
    border: 0.2rem solid var(--accent-danger);
    color: var(--accent-danger);
    padding: 1.5rem;
    border-radius: 1.5rem;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
}

/* 戻るリンク */
.back-link-area {
    text-align: center;
    margin-top: 3rem;
}

.back-link {
    font-size: 1.5rem;
    color: var(--text-sub);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
    color: var(--accent-main);
}

/* サンクスページ用 */
.thanks-container {
    text-align: center;
    padding: 5rem 2rem;
}

.thanks-message {
    font-size: 1.8rem;
    margin-top: 2rem;
    line-height: 1.8;
}

.action-area {
    margin-top: 3rem;
}

/* レスポンシブ */
@media (max-width: 60rem) {
    .contact-form-card {
        padding: 3rem 1.5rem;
    }
}

/* =====================================================
   Sitemap Styling (1rem = 10px)
===================================================== */

.sm-wrapper {
    max-width: 110rem;
    margin: 4rem auto;
    padding: 0 2rem;
}

.sm-section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- クイックアクセス（フラット表示） --- */
.sm-utility-section {
    margin-bottom: 5rem;
}

.sm-utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1.2rem;
}

.sm-utility-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.8rem;
    background: var(--bg-card);
    border-radius: 1.2rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: 0.2s;
}

.sm-utility-item:hover {
    transform: translateY(-2px);
    background: var(--bg-item);
}

.sm-u-icon {
    font-size: 2rem;
}

/* --- コンテンツマップ（Bentoボックス） --- */
.sm-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 2.5rem;
}

.sm-bento-box {
    background: var(--bg-item);
    border-radius: 2.5rem;
    border: 2px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sm-bento-header {
    background: var(--sub-c);
    padding: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

body[data-theme="dark"] .sm-bento-header {
    background: var(--sub-c-d);
}

.sm-h-title {
    color: var(--text-main);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

.sm-bento-body {
    padding: 2.5rem;
}

/* 学年・カテゴリー単位のグループ */
.sm-grade-group {
    margin-bottom: 2rem;
}

.sm-grade-label {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 1rem;
    text-decoration: none;
}

.sm-grade-label:hover {
    text-decoration: underline;
}

/* チップ形式のリンク */
.sm-link-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.sm-chip {
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    border-radius: 2rem;
    text-decoration: none;
    color: var(--text-main);
    background: var(--bg-history-item);
    border: 1px solid transparent;
    transition: 0.2s;
}

.sm-chip:hover {
    background: var(--bg);
    border-color: var(--sub-c);
    transform: scale(1.05);
}

.game-chip {
    background: var(--bg-card);
    font-weight: bold;
}

.sm-empty-text {
    font-size: 1.4rem;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
}

/* レスポンシブ */
@media (max-width: 48rem) {
    .sm-utility-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sm-bento-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Information Page Styles (Dark Mode Compatible)
===================================================== */

/* コンテナ全体の余白と背景 */
.info-container,
.terms-page {
    max-width: 90rem;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* ページ見出しの装飾 */
.info-header {
    text-align: center;
    margin-bottom: 3rem;
}

.info-title {
    display: inline-block;
    font-size: 2.2rem;
    color: var(--accent-main);
    background: var(--bg-item);
    /* ダークモードで自動切替 */
    padding: 1rem 4rem;
    border-radius: 5rem;
    border: 0.3rem solid var(--accent-main);
    box-shadow: 0 0.6rem 0 var(--pastel-shadow-orange);
    margin-bottom: 1rem;
}

/* カード風のセクション（共通） */
.card-layout {
    background: var(--bg-item);
    border: 0.2rem solid var(--border-soft);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    color: var(--text-main);
}

/* --- 利用規約：お子様向けセクション --- */
.kids-card {
    border: 0.4rem solid var(--accent-main);
    /* 背景を固定の白から変数に変更 */
    background: var(--bg-item);
}

.kids-card-title {
    font-size: 2.2rem;
    color: var(--accent-main);
    margin-bottom: 2.5rem;
    text-align: center;
}

.kids-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kids-list li {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-history-item);
    /* ダークモードでは少し暗い青/グレー */
    border-radius: 1.5rem;
}

.kids-icon {
    font-size: 3rem;
    background: var(--bg-item);
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
}

.kids-text strong {
    display: block;
    font-size: 1.8rem;
    color: var(--text-main);
}

.kids-text p {
    font-size: 1.5rem;
    color: var(--text-sub);
    margin: 0;
}

/* --- 利用規約：正式な規約セクション --- */
.legal-notice {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    margin: 4rem 0 2rem;
    text-align: center;
}

.legal-notice p {
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 0;
}

.legal-document {
    background: var(--bg-item);
    /* ダークモード対応 */
    padding: 4rem;
    border-radius: 1rem;
    border: 0.1rem solid var(--border-soft);
    box-shadow: inset 0 0 2rem rgba(0, 0, 0, 0.05);
}

/* ダークモード時の内側シャドウ調整 */
body[data-theme="dark"] .legal-document {
    box-shadow: inset 0 0 2rem rgba(0, 0, 0, 0.3);
}

.legal-body {
    font-size: 1.4rem;
    color: var(--text-main);
    line-height: 1.8;
}

.legal-body h2 {
    font-size: 1.8rem;
    border-left: 0.5rem solid var(--accent-main);
    margin: 3.5rem 0 1.5rem;
    padding-left: 1.2rem;
    color: var(--text-main);
}

.legal-body ul {
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.legal-body li {
    margin-bottom: 0.8rem;
}

/* 戻るリンクエリア */
.back-link-area {
    text-align: center;
    margin-top: 5rem;
    padding-bottom: 5rem;
}

.back-link {
    font-size: 1.6rem;
    color: var(--text-sub);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 3rem;
    transition: background 0.2s;
}

.back-link:hover {
    background: var(--bg-card);
    color: var(--accent-main);
}

/* レスポンシブ */
@media (max-width: 600px) {
    .legal-document {
        padding: 2.5rem 1.5rem;
    }

    .kids-icon {
        width: 5rem;
        height: 5rem;
        font-size: 2.4rem;
    }
}

/* --- プライバシーポリシー：ハイライトボックス --- */
.highlight-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-card);
    /* ライト: 薄い青、ダーク: 深みのある青/グレー */
    padding: 2.5rem;
    border-radius: 1.5rem;
    margin-bottom: 4rem;
    border: 0.2rem solid var(--accent-main);
}

.highlight-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.highlight-text strong {
    display: block;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.highlight-text p {
    font-size: 1.5rem;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

/* モバイル対応 */
@media (max-width: 600px) {
    .highlight-box {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
}

/* --- 保護者ページ専用スタイル --- */
.parents-section {
    margin-bottom: 4rem;
}

.parents-section:last-child {
    margin-bottom: 0;
}

.parents-h2 {
    font-size: 2rem;
    color: var(--text-main);
    border-left: 0.6rem solid var(--accent-main);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.safety-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.safety-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-history-item);
    /* ダークモードで適切に反転 */
    padding: 2rem;
    border-radius: 1.5rem;
    align-items: flex-start;
}

.safety-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
}

.safety-content strong {
    display: block;
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.safety-content p {
    font-size: 1.45rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

.notice-area {
    background: var(--bg-card);
    /* 補足情報を少し目立たせる */
    padding: 2rem;
    border-radius: 1.5rem;
}

.notice-area a {
    color: var(--link);
    font-weight: bold;
}

/* モバイル対応 */
@media (max-width: 600px) {
    .safety-item {
        padding: 1.5rem;
    }

    .safety-icon {
        font-size: 2.4rem;
    }
}

/* --- ガイドページ専用スタイル --- */
.guide-section {
    margin-bottom: 5rem;
}

.guide-h2 {
    font-size: 2rem;
    color: var(--text-main);
    background: var(--bg-card);
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border-radius: 3rem;
    margin-bottom: 2.5rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: 2rem;
}

.guide-card {
    background: var(--bg-item);
    border: 0.2rem solid var(--border-soft);
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
}

.guide-card:hover {
    transform: translateY(-0.5rem);
    border-color: var(--accent-main);
}

.guide-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.guide-card h3 {
    font-size: 1.8rem;
    color: var(--accent-main);
    margin-bottom: 1.2rem;
}

.guide-card p {
    font-size: 1.4rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

/* 特別なカード（グループ機能など） */
.accent-card {
    border: 0.2rem dashed var(--accent-main);
}

.guide-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-main);
    color: #fff;
    font-size: 1.1rem;
    padding: 0.2rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
}

.parent-mini-guide {
    margin-top: 6rem;
}

/* モバイル調整 */
@media (max-width: 600px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .guide-h2 {
        font-size: 1.8rem;
        width: 100%;
        text-align: center;
    }
}