/* ----------------------------------------
    Style5_youji.css
    幼児教育センター向け：ピンク系統
---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@700&display=swap');

/* 1. 全体レイアウト */
body {
    font-family: "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #222;
}

/* スクリーンリーダー専用（読み上げ用） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* フォーカス時の視認性（キーボード操作用） */
a:focus, button:focus {
    outline: 3px solid #FFAB91 !important;
    outline-offset: 2px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

html {
    scrollbar-gutter: stable;
}

/* 2. 固定ヘッダー（背景：白 / 文字：黒 / 影：薄いピンク） */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(233, 30, 99, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-group {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #222;
}

.pref-logo {
    height: 50px;
    width: auto;
    margin-right: 2px;
}

/* タイトルフォントを Zen Maru Gothic に */
.center-name {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #000 !important;
    font-size: 1.4rem !important;
    letter-spacing: 0rem;
}

.header-spacer {
    height: 70px;
}

/* PDFリンクボタンの装飾 */
.pdf-download-area {
    margin: 40px 0;
    text-align: center;
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px; /* 少しスリムに調整 */
    background-color: #E91E63; /* センターのテーマピンク */
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px; /* 角丸を強めて親しみやすく */
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2); /* ピンク系の影 */
    transition: all 0.3s ease;
}

/* ホバー時は少し明るいピンクにして、浮き上がる演出 */
.pdf-btn:hover {
    background-color: #f06292; 
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.3);
    text-decoration: none;
}

/* PDFアイコン（擬似要素）の調整 */
.pdf-btn::before {
    content: "PDF";
    font-family: sans-serif;
    font-size: 0.75rem;
    background: #ffffff;
    color: #E91E63; /* 文字色をボタン背景と同じピンクに */
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 12px;
    line-height: 1;
    font-weight: 900;
}

@media screen and (max-width: 768px) {
    .header-container { 
        height: 60px; 
        padding: 0 10px; /* ロゴを左に寄せる */
    }
    .pref-logo { 
        height: 38px; /* ロゴを少し小さく */
        margin-right: 6px; 
    }
    .center-name { 
        font-size: 1.15rem !important; /* スマホで1行に収めるサイズ */
        white-space: nowrap; 
        letter-spacing: -0.02em; 
        display: block;
    }
    .header-spacer { height: 60px; }
    .breadcrumb { display: none; }
}

/* 3. PC用ナビゲーション（最適化版） */
.button-container {
    display: flex;
    justify-content: center; /* ボタンを中央寄せ */
    gap: 12px;               /* ボタン同士の適度な間隔 */
    margin: 20px 0 40px 0;
    padding: 20px;
    background-color: #FFF9FA; /* ごく薄いピンク背景 */
    border-radius: 8px;
    border: 1px solid #FCE4EC;
    box-sizing: border-box;
}

/* ボタン本体：文字量に合わせて幅を自動調整 */
.button-container a.button-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* --- 横幅の巨大化を防ぐ設定 --- */
    flex: 0 1 auto;          /* 伸びすぎず、必要に応じて縮む */
    width: auto;             /* 文字幅に合わせる */
    min-width: 200px;        /* ボタンらしい最低限の幅を確保 */
    padding: 10px 25px;      /* 左右にしっかり余白を作る */
    /* ------------------------------ */
    height: 64px;
    background-color: #fff;
    color: #E91E63;
    text-decoration: none;
    border: 2px solid #E91E63;
    border-radius: 6px;
    font-weight: bold;
    box-sizing: border-box;
    transition: all 0.2s ease;
    line-height: 1.25;
}


/* 現在地のスタイル（ピンク背景・白文字） */
.button-container a.button-link[aria-current="page"] {
    background-color: #E91E63;
    color: #fff;
}

/* ホバー時の挙動 */
.button-container a.button-link:hover {
    background-color: #FFF0F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 30, 99, 0.15);
}

/* 2行表示用ラベルの調整（共通化） */
.button-link .sub-label,
.button-link .sub-text,
.button-link .main-label {
    font-size: 14px;
    font-weight: bold;
    display: block;
}

.pc-only { display: none !important; }

/* 4. 装飾パーツ */
.breadcrumb {
    font-size: 14px;
    margin: 15px 0 20px 0;
}
.breadcrumb a { color: #D81B60; text-decoration: underline; }

.page-title {
    text-align: center;
    margin: 10px 0;
    padding: 5px 0;
}
.page-title h2 {
    font-size: 26px;
    font-weight: 600;
    color: #E91E63;
    margin: 0;
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}
.page-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #E91E63;
}

h3 {
    border-left: 6px solid #E91E63;
    padding-left: 15px;
    margin: 50px 0 20px 0;
    font-size: 22px;
    color: #333;
    scroll-margin-top: 90px;
}

/* PCでは隠し、スマホ（768px以下）でのみ改行を有効にする */
.sp-br {
    display: none;
}

@media screen and (max-width: 768px) {
    .sp-br {
        display: inline;
    }
}


/* 5. スマホ用メニュー（ハンバーガー） */
.hamburger-btn {
    background-color: #E91E63;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 55px; height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.hamburger-icon { font-size: 22px; line-height: 1; }
.hamburger-text { font-size: 10px; font-weight: bold; margin-top: 2px; }

.menu-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1998;
}
.menu-backdrop.show { display: block; }

.menu-overlay {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 85%; max-width: 300px; max-height: 85vh;
    background-color: #fff;
    z-index: 1999;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}
.menu-overlay.show { display: flex !important; }

.menu-scroll-area {
    overflow-y: auto;
    padding: 20px 15px;
    flex: 1;
}
.menu-overlay a {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    background-color: #FFF9FA;
    color: #E91E63;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #FCE4EC;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}
.menu-overlay a.current {
    background-color: #E91E63;
    color: #fff;
}

/* 6. 戻るボタン */
#back-to-top {
    position: fixed;
    bottom: 25px; right: 25px;
    z-index: 900;
    width: 50px; height: 50px;
    background-color: rgba(233, 30, 99, 0.8);
    border: 2px solid #fff; border-radius: 50%;
    cursor: pointer;
    opacity: 0; visibility: hidden; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
#back-to-top::after {
    content: "";
    width: 12px; height: 12px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: translateY(3px) rotate(45deg);
}
#back-to-top.show { opacity: 1; visibility: visible; }

/* ページ内目次 */
.accordion-content {
    background-color: #FFF9FA;
    border: 1px solid #FCE4EC;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin-bottom: 8px; }
.toc-list li a { color: #D81B60; text-decoration: none; }
.toc-list li a:hover { text-decoration: underline; }

/* 7. メニュー内固定フッター */
.menu-footer {
    display: flex;
    width: 100%; height: 60px;
    border-top: 3px solid #FCE4EC;
    flex-shrink: 0;
}

.menu-top-link, .menu-close-btn {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.menu-top-link { background-color: #E91E63 !important; color: #fff !important; text-decoration: none; }
.menu-close-btn { background-color: #616161 !important; color: #fff !important; }

.back-arrow {
    display: inline-block;
    width: 8px; height: 8px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
    margin-right: 8px;
}
/* 5. PCとスマホの表示切り替え（ここが重要） */

/* まず、PC専用要素はデフォルトで非表示にする */
.pc-only { display: none !important; }

/* 画面が768px以上のとき（PC版）の挙動 */
@media screen and (min-width: 769px) {
    .pc-only { 
        display: flex !important; /* PCでは表示させる */
    }
    
    /* PCではハンバーガーメニューを隠す */
    .hamburger-container {
        display: none;
    }
}

@media print {
    /* 固定ヘッダーの固定を解除し、印刷時は隠す（または通常配置にする） */
    .sticky-header {
        position: static !important; /* 固定を解除 */
        display: none !important;    /* 印刷にメニューが不要なら非表示に */
    }

    /* メニューボタンや「トップへ戻る」ボタン、フッターのメニューも印刷から除外 */
    .hamburger-btn, 
    #back-to-top, 
    .menu-backdrop, 
    .menu-overlay,
    .pc-nav {
        display: none !important;
    }

    /* ヘッダーの余白（spacer）も不要なので消す */
    .header-spacer {
        display: none !important;
    }

    /* メインコンテンツの幅を100%にして、余計な余白を削る */
    .main-wrapper {
        width: 100% !important;
        margin: 10 !important;
        padding: 10 !important;
    }

    /* 背景色を白、文字色を黒にしてインクを節約 */
    body {
        background-color: #fff !important;
        color: #000 !important;
    }

    /* ページ改ざんの防止（大きなセクションの途中で切れないようにする） */
    .qa-container, .column-section {
        page-break-inside: avoid;
    }
}