/* =========================================
   0. 全体
========================================= */

body {
    margin: 0;
    font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
    background: #fffdfc;
    color: #6b5e55;
    line-height: 1.8;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   1. 大きなヘッダー（固定写真＋グラデ＋フェードイン）
========================================= */

/* ▼ ヘッダー全体の高さ */
.site-header {
    position: relative;
    height: 360px; /* ← ゆったり版 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}



/* ▼ 写真本体（フェードイン） */
.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    animation: headerFade 1.8s ease-out forwards;
}

/* ▼ 白いグラデーション（上から下へ） */
.header-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.7),
        rgba(255,255,255,0)
    );
    pointer-events: none;
}

/* ▼ フェードインアニメーション */
@keyframes headerFade {
    0%   { opacity: 0; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

/* ▼ ロゴや文字を前面に出す */
.site-header-inner {
    position: relative;
    z-index: 10;
}

/* ▼ ロゴの文字色など */
.site-title,
.site-subtitle {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(0,0,0,0.35);
}

.site-subtitle {
    margin-top: 8px;
    font-size: 15px;
    color: #8d7f75;
}

/* ▼ スマホは少し低め */
@media (max-width: 600px) {
    .site-header {
        height: 260px;
    }
}


/* =========================================
   4. キャッチコピー
========================================= */

.catchcopy {
    text-align: center;
    padding: 50px 20px 40px;
}

.catchcopy h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #6b5e55;
}

.catchcopy p {
    font-size: 16px;
    color: #8d7f75;
}

/* =========================================
   5. トップビジュアル
========================================= */

.top-visual img {
    width: 100%;
    border-radius: 0;
}

/* =========================================
   6. 共通カード（お知らせ・入室案内）
========================================= */

.common-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 25px;
    background: #ffffff;
    border-left: 6px solid #e8cfd6;
    border-bottom: 2px solid #f0dfe4;
    border-radius: 10px;
}

.common-title h2 {
    font-size: 28px;
    margin: 0 0 10px;
    color: #6b5e55;
}

.common-title .desc {
    font-size: 15px;
    color: #8d7f75;
}

/* =========================================
   7. お知らせ
========================================= */

.news-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.news-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.news-date {
    font-size: 13px;
    color: #a08f86;
    margin-right: 10px;
}

.news-list a {
    color: #b07a8c;
    text-decoration: none;
}

/* =========================================
   8. フッター
========================================= */

footer {
    text-align: center;
    padding: 30px;
    color: #8d7f75;
    font-size: 14px;
}


/* =========================================
   施設概要のぺーじなおし
========================================= */

.about-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;   /* ← これが重要！左右に20pxの余白 */
}

.about-wrapper p {
    line-height: 1.9;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #6b5e55;
}


/* =========================================
   “共通 wrapper”
========================================= */

.page-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}


/* =========================================
   ★ ハンバーガーメニュー：完全復旧版
========================================= */

/* ▼ ハンバーガーアイコン */
.hamburger {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #ffffff;
    margin-bottom: 6px;
    border-radius: 2px;
}

/* ▼ フルスクリーンメニュー（初期状態：非表示） */
.fullscreen-menu {
    display: none;              /* ← 最重要 */
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* ▼ active が付いたら表示 */
.fullscreen-menu.active {
    display: flex;              /* ← 最重要 */
    opacity: 1;
    pointer-events: auto;
}

/* ▼ 閉じるボタン */
.menu-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    cursor: pointer;
    color: #6b5e55;
}

/* ▼ メニュー階層 */
.menu-group {
    margin-bottom: 20px;
    width: 80%;
    max-width: 300px;
}

.menu-group-toggle {
    width: 100%;
    background: #f5e9ec;
    border: none;
    padding: 14px;
    font-size: 17px;
    border-radius: 8px;
    cursor: pointer;
    color: #6b5e55;
}

.menu-group-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-group-list.open {
    max-height: 300px;
    opacity: 1;
}

.menu-group-list a {
    background: #ffffff;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #6b5e55;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}





/* ▼ 季節の行事ブロック（やさしく丸いカード） */
.season-block {
    background: #faf7f4;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.season-block h3 {
    margin-top: 0;
    color: #6b5e55;
    font-size: 20px;
}

.season-block p {
    margin: 8px 0 12px;
    color: #6b5e55;
    line-height: 1.6;
}

.season-block ul {
    margin: 0;
    padding-left: 20px;
    color: #6b5e55;
}

.season-block li {
    margin-bottom: 6px;
}


/* ▼ CSS（やさしく横並びにする）*/

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* ▼ ヘッダー全体の高さ */
.header-image {
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}




/* ▼ スライドショーの土台（1回だけ書く） */
.header-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* ロゴより後ろに置く */
}

/* ▼ 写真の基本設定（6枚ループ） */
.header-slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlide 30s infinite;
}

/* ▼ 各写真の開始タイミング（完全等間隔） */
.header-slideshow img:nth-child(1) { animation-delay: 0s; }
.header-slideshow img:nth-child(2) { animation-delay: 5s; }
.header-slideshow img:nth-child(3) { animation-delay: 10s; }
.header-slideshow img:nth-child(4) { animation-delay: 15s; }
.header-slideshow img:nth-child(5) { animation-delay: 20s; }
.header-slideshow img:nth-child(6) { animation-delay: 25s; }

/* ▼ フェードアニメーション（6枚用に最適化・1枚目を守る） */
@keyframes fadeSlide {
    0%   { opacity: 0; }
    7%   { opacity: 1; }   /* ← 早めに見せ始める */
    30%  { opacity: 1; }   /* ← 見せ時間をしっかり確保 */
    37%  { opacity: 0; }   /* ← フェードアウトを少し前倒し */
    100% { opacity: 0; }
}

/* ▼ ロゴや文字を前面に出す */
.site-header-inner {
    position: relative;
    z-index: 10;
}

/* =========================================
   事業所評価ページの整えデザイン
========================================= */

/* ▼ ページ全体の余白 */
.page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ▼ タイトルブロック */
.evaluation-title h2 {
    font-size: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.title-icon {
    width: 32px;
    height: 32px;
}

.evaluation-title .desc {
    line-height: 1.8;
    color: #6a5f58;
    margin-bottom: 30px;
}

/* ▼ セクションタイトル */
.section-title {
    font-size: 22px;
    margin: 40px 0 20px;
    border-left: 6px solid #d8cfc8;
    padding-left: 12px;
    color: #5a4f48;
}

/* ▼ PDF カード */
.evaluation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.evaluation-card {
    flex: 1;
    min-width: 260px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.evaluation-card h4 {
    margin-bottom: 12px;
    font-size: 18px;
    color: #5a4f48;
}

.evaluation-btn {
    display: inline-block;
    background: #8d7f75;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.evaluation-btn:hover {
    background: #a89b92;
}

/* ▼ 公表日 */
.publish-date {
    margin-top: 15px;
    color: #6a5f58;
}

/* ▼ メッセージ */
.evaluation-message p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: #6a5f58;
}

/* ▼ 過去の評価表 */
.past-list {
    list-style: none;
    padding: 0;
}

.past-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e0dc;
    line-height: 1.8;
}

.past-list .year {
    font-weight: bold;
    color: #5a4f48;
}

/* ▼ 利用者の声ブロック */
.season-block {
    margin-top: 50px;
    padding: 25px;
    background: #f7f4f2;
    border-radius: 10px;
}

.season-block h3 {
    margin-bottom: 10px;
}

.news-link {
    display: inline-block;
    margin-top: 10px;
    color: #8d7f75;
    text-decoration: none;
    font-weight: bold;
}

.news-link:hover {
    text-decoration: underline;
}

/* ▼ 戻るリンク */
.back-link {
    margin-top: 40px;
    text-align: center;
}

.back-link a {
    color: #8d7f75;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* =========================================
   保護者の声（Voice）完全版
========================================= */

/* ▼ 横並びグリッド */
.voice-accordion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px; /* 下のリンクがくっつかないように */
}

/* ▼ カード */
.voice-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    cursor: pointer; /* カード全体が押せると分かる */
}

.voice-card:hover {
    transform: translateY(-3px);
}

/* ▼ 開いているカードの強調 */
.voice-card.open {
    background: #fff9f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* ▼ アイコン＋名前 */
.voice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.voice-icon {
    width: 36px;
    height: 36px;
}

/* ▼ 一行目（常に表示） */
.voice-preview {
    display: block;
    color: #6a5f58;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ▼ 全文（アニメーション対応） */
.voice-full {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    color: #6a5f58;
    line-height: 1.7;
    margin-top: 10px;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* ▼ 開いたときの全文 */
.voice-card.open .voice-full {
    max-height: 500px; /* 十分大きければOK */
    opacity: 1;
}

/* ▼ 名前 */
.voice-name {
    margin-top: 10px;
    font-weight: bold;
    color: #8d7f75;
}

/* =========================================
   1日の流れ（Schedule）
========================================= */

.schedule-section {
    margin-top: 40px;
}

.schedule-heading {
    font-size: 22px;
    margin-bottom: 10px;
    color: #5a4f48;
}

.schedule-desc {
    color: #6a5f58;
    margin-bottom: 20px;
}

.schedule-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    gap: 20px;
    transition: 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-3px);
}

.schedule-card .time {
    font-weight: bold;
    color: #8d7f75;
    min-width: 80px;
}

.schedule-card .content h4 {
    margin-bottom: 6px;
    color: #5a4f48;
}

.schedule-card .content p {
    color: #6a5f58;
    line-height: 1.6;
}

/* ▼ スマホ対応 */
@media (max-width: 600px) {
    .schedule-card {
        flex-direction: column;
    }
    .schedule-card .time {
        min-width: auto;
    }
}

/* =========================================
   入室案内（Admission）
========================================= */

.admission-note {
    color: #8d7f75;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ▼ ステップ全体 */
.admission-steps {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

/* ▼ カード */
.admission-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.admission-card:hover {
    transform: translateY(-3px);
}

/* ▼ STEP番号（丸くてかわいい） */
.step-number {
    background: #ffe9d6;
    color: #8d7f75;
    font-weight: bold;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* ▼ 内容 */
.step-content h3 {
    margin-bottom: 6px;
    color: #5a4f48;
    font-size: 20px;
}

.step-content p {
    color: #6a5f58;
    line-height: 1.7;
}

.sub-note {
    margin-top: 8px;
    color: #a08f86;
    font-size: 14px;
}

/* ▼ スマホ対応 */
@media (max-width: 600px) {
    .admission-card {
        flex-direction: column;
    }
    .step-number {
        margin-bottom: 6px;
    }
}

/* =========================================
   FAQ（よくある質問）
========================================= */

.faq-section {
    margin-top: 50px;
}

.faq-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #5a4f48;
}

/* ▼ カード */
.faq-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-3px);
}

/* ▼ 質問 */
.faq-question {
    font-weight: bold;
    color: #8d7f75;
    font-size: 17px;
}

/* ▼ 回答（アニメーション） */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    color: #6a5f58;
    line-height: 1.7;
    margin-top: 10px;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* ▼ 開いたとき */
.faq-card.open .faq-answer {
    max-height: 300px;
    opacity: 1;
}

/* ▼ 写真2枚のニュースブロック */
.news-with-image2 {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* 写真2枚を横並びに */
.news-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-images img {
    width: 180px;      /* 写真サイズ（調整OK） */
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
}

/* テキスト部分 */
.news-content {
    flex: 1;
}

.news-title {
    margin: 4px 0;
    font-size: 18px;
}

.news-text {
    margin-top: 6px;
    line-height: 1.6;
}

/* ▼ スマホ対応（縦並びに） */
@media (max-width: 600px) {
    .news-with-image2 {
        flex-direction: column;
    }

    .news-images {
        flex-direction: row;
        gap: 10px;
    }

    .news-images img {
        width: 48%;
        height: auto;
    }
}
