/* =-================================================================= */
/*  1. 基本設定（フォント、リセットなど）                             */
/* =================================================================== */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");
@import url("https://fonts.googleapis.com/css2?family=Yusei+Magic&display=swap");

:root {
	--content-space: 1.5rem;
}

body * {box-sizing: border-box;}

html,body {
	font-size: 17px; /* 基本のフォントサイズ */
}

body {
	margin: 0;
	padding:0;
	font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", "Osaka", "MS PGothic", "ＭＳ Ｐゴシック", sans-serif;
	-webkit-text-size-adjust: none;
	background: #fff;
	color: #555;
	line-height: 1.8;
	overflow-x: hidden;
}
figure, dd, nav, ul, li, ol, h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; }
nav ul {list-style: none;}
table {border-collapse:collapse;}
img {border: none; max-width: 100%; height: auto; vertical-align: middle;}
video {max-width: 100%;}
a {color: inherit; transition: 0.3s;}
a:hover {filter: brightness(1.1);}
h1, h2, h3, h4, h5, h6 { font-weight: normal; }

.btn { display: inline-block; background-color: #000080; color: #ffffff; padding: 0.8rem 2rem; text-decoration: none; border-radius: 50px; margin-top: 1.5rem; font-weight: bold; transition: background-color 0.3s; }
.btn:hover { background-color: #0000cd; filter: none; }
.br-sp { display: none; }
.br-pc { display: none; }

#container { position: relative; max-width: 1600px; margin: 0 auto; }
main { display: block; }

/* =================================================================== */
/*  2. トップページ 扉絵（ヘッダーとメインビジュアル）                 */
/* =================================================================== */
body:not(.subpage) header { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; z-index: 10; }
body:not(.subpage) #logo img { width: 200px; height: auto; }

/* ▼▼▼ 修正箇所１：動画セクションも最大幅1600pxで中央に配置 ▼▼▼ */
#mainimg-parts {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #fff; /* ★余白の色を白に */
    display: flex; /* ★Flexboxを使って中央揃えを実現 */
    justify-content: center;
    align-items: center;
}

#mainimg-parts video {
    /* position, top, left, transform, min-width, min-height を全て削除 */
    width: 100%;
    height: 100%;
    object-fit: contain; /* ★全体を表示（余白あり） */
    z-index: 1; /* ★テキストより後ろ */
}
#mainimg-parts video.display-tate { display: none; }
@media (orientation: portrait) { #mainimg-parts video.display-yoko { display: none; } #mainimg-parts video.display-tate { display: block; } }
.scroll-container-parts { position: absolute; width: 100px; left: calc(50% - 50px); bottom: 20px; z-index: 5; display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; color: #fff; letter-spacing: 0.2em; }
.scroll-line-parts { margin: 0 auto; position: relative; width: 1px; height: 50px; background: rgba(255,255,255,0.5); }
.scroll-line-parts span { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #fff; animation: scroll-line-parts 2s infinite; transform-origin: bottom; }
@keyframes scroll-line-parts { 0% {transform: scaleY(1);} 50% {transform: scaleY(0);} 100% {transform: scaleY(0);} }

/* =================================================================== */
/*  3. ハンバーガーメニューとナビゲーション                             */
/* =================================================================== */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}
.hero-text {
    position: absolute; /* ← これを共通スタイルに移動 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 90%;
    z-index: 2; /* ← 動画より手前に表示するために念のため指定 */
}
.menu-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f0f8ff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
}
.menu-toggle span {
    display: block;
    width: 50%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 25%;
    transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 20px; }
.menu-toggle span:nth-child(2) { top: 29px; }
.menu-toggle span:nth-child(3) { top: 38px; }
.menu-toggle.open span:nth-child(1) { top: 29px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 29px; transform: rotate(-45deg); }
.menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    top: 70px;
    right: 0;
    width: 280px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.menu.open {
    display: block;
}
.menu li {
    border-bottom: 1px solid #eee;
}
.menu li:last-child {
    border-bottom: none;
}
.menu li a {
    text-decoration: none;
    color: #000080;
    display: block;
    padding: 15px 20px;
    transition: background-color 0.2s;
}
.menu li a:hover {
    background-color: #f0f8ff;
    filter: none;
}

/* =================================================================== */
/*  4. フッター、ページトップ、その他ユーティリティ                       */
/* =================================================================== */
footer { font-size: 0.8rem; background: #eee; color: #555; text-align: center; padding: 1rem; }
footer a {color: inherit; text-decoration: none;}
.pagetop { position: fixed; right: 20px; bottom: 20px; z-index: 99; }
.pagetop a { display: block; text-decoration: none; text-align: center; color: #fff; font-size: 1.5rem; background: rgba(0,0,0,0.2); width: 60px; line-height: 60px; border-radius: 50%; }

/* =================================================================== */
/*  5. トップページ PC向けスタイル（画面幅900px以上）                 */
/* =================================================================== */
@media screen and (min-width: 900px) {
    :root { --content-space: 2rem; }
    html, body { font-size: 18px; }
    .br-pc { display: block; }
    body:not(.subpage) header { top: 40px; left: 40px; transform: none; width: auto; text-align: left; }
    body:not(.subpage) #logo img { width: 300px; }
    .hero-text { color: white; text-align: center; width: 90%; }
    .hero-text h1 { font-size: 3.0rem; line-height: 1.5; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); }
    .hero-text h1 span { font-size: 2.0rem; }
    .hero-text .hero-philosophy { font-size: 1rem; line-height: 1.8; margin: 2rem auto 0; max-width: 800px; text-align: left; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); background-color: rgba(0,0,0,0.2); padding: 1.5rem; border-radius: 8px; }
	#menubar { width: 25%; left: -25%; display: block; transition: left 0.3s; }
    #menubar.open { left: 0; }

    /* ▼▼▼ 修正箇所２：画像セクションがコンテナ幅を超えないように修正 ▼▼▼ */
    .problem-section, .philosophy-section, .special-activity-section {
        /* width: 100vw; position: relative; left: 50%; transform: translateX(-50%); を削除 */
        display: grid;
    }
    /* ▲▲▲ 修正ここまで ▲▲▲ */

    .section-bg-image, .problem-content, .philosophy-content, .special-activity-content { grid-area: 1 / 1 / 2 / 2; }
    .section-bg-image { width: 100%; height: auto; z-index: 1; }
    .problem-content, .philosophy-content, .special-activity-content { position: relative; z-index: 2; height: 100%; padding: 4rem var(--content-space); display: flex; }
    .problem-image-mobile, .philosophy-image-mobile, .special-activity-image-mobile { display: none; }

    /* ▼▼▼ ここからが「絵本風レイアウト」の修正箇所です ▼▼▼ */
    /* problem-section の Flexbox設定を調整 */
    .problem-section .problem-content {
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0;
    }

    /* problem-text のスタイルを「絵本」風に変更 */
    .problem-text {
        background-color: transparent;
        box-shadow: none;
        color: #4a4a4a;
        text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.6);
        padding: 0;
        margin-top: 12vh;
        margin-left: 8vw;
        max-width: 40%;
        border-radius: 0;
        text-align: left;
    }
    
    .problem-text h2 {
        font-size: 2.8rem;
        margin-top: 0;
        font-weight: bold; /* h2には太字を適用 */
    }
    
    .problem-text p {
        line-height: 2.0;
        text-align: left;
    }
    /* ▲▲▲ 「絵本風レイアウト」の修正ここまで ▲▲▲ */

/* philosophy-section の Flexbox設定を調整して、さらに上に配置 */
.philosophy-section .philosophy-content {
    justify-content: center; /* 水平中央 */
    align-items: center;     /* 垂直中央 */
    padding-bottom: 13vh;    /* 全体を画面中央からかなり上(画面の高さの25%)に移動 */
}

/* philosophy-text のスタイルを調整 */
.philosophy-text {
    /* 背景とボックスのスタイルをなくす */
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    
    /* 文字をくっきりさせるための影(text-shadow) */
    color: #3b3b3b;
    text-shadow: 
        -1.5px -1.5px 0 #fff,  
         1.5px -1.5px 0 #fff,
        -1.5px  1.5px 0 #fff,
         1.5px  1.5px 0 #fff,
         2px 4px 5px rgba(0,0,0,0.2);

    /* サイズと配置 */
    width: 55%;
    max-width: 880px;
    text-align: center; /* h2とボタンを中央揃えにするための基準 */
    margin-bottom: 0;
}

/* ▼▼▼ 追加修正 ▼▼▼ */

/* 段落(p)だけを左寄せにする */
.philosophy-text p {
    text-align: left;
}

/* ボタンの文字色を白に戻し、影を消す */
.philosophy-text .btn {
    color: #ffffff;
    text-shadow: none;
}

    .philosophy-text .btn { display: table; margin: 1.5rem auto 0; }
    .activity-catchphrase { color: white; text-shadow: 2px 2px 5px rgba(0,0,0,0.7); text-align: left; }
    .activity-catchphrase h2 {
        color: #000080; /* 色を濃いネイビーに変更 */
        font-size: 2.8rem;
        margin-bottom: 0;
        font-weight: bold;
        /* 既存の黒い影を、文字を際立たせる白い影に変更 */
        text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8), 2px 2px 5px rgba(0, 0, 0, 0.3);
    }
    .special-activity-section .activity-link { align-self: flex-end; }
    .special-activity-section .special-activity-content { flex-direction: column; justify-content: space-between; align-items: stretch; }
    
    /* section h2 の共通スタイル */
    section:not(.problem-section) h2 { font-size: 2.2rem; margin-bottom: 2rem; font-weight: bold; }
    .navigation-section { padding: 5rem var(--content-space); }
    .navigation-content { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
    .nav-box h3 { font-size: 1.5rem; }
}

/* =================================================================== */
/*  6. トップページ スマホ向けスタイル（画面幅899px以下）             */
/* =================================================================== */
@media screen and (max-width: 899px) {
    .hero-text { top: 55%; max-height: 60vh; overflow-y: auto; color: white; text-align: center; }
    .hero-text h1 { font-size: 1.8rem; line-height: 1.5; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
    .hero-text h1 span { font-size: 1.1rem; }
    .hero-text .hero-philosophy { font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; padding: 0 0.5rem; text-align: left; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
    .br-sp { display: block; }
    .section-bg-image { display: none; }
    .problem-section, .philosophy-section, .special-activity-section, .navigation-section { padding-top: 3rem; padding-bottom: 0rem; }
    .problem-text, .philosophy-text, .activity-catchphrase, .activity-link, section h2, .navigation-content { padding-left: var(--content-space); padding-right: var(--content-space); }
    section h2 { font-size: 1.6rem; font-weight: bold; text-align: center; margin-bottom: 1.5rem; }
    .problem-image-mobile, .philosophy-image-mobile, .special-activity-image-mobile { width: 100vw; margin: 2rem 0 0 calc(50% - 50vw); line-height: 0; }
    .problem-image-mobile img, .philosophy-image-mobile img, .special-activity-image-mobile img { width: 100%; height: auto; aspect-ratio: 9 /16; object-fit: cover; }
    .problem-section { background-color: #f9f9f9; }
    .problem-text { background-color: transparent; padding: 1.5rem 0; }
    .problem-text p { text-align: center; }
    .problem-text h2 { margin-top: 1.5rem; }
    .philosophy-section { background-color: #ffffff; }
    .philosophy-text p { text-align: left; }
    .philosophy-text .btn { display: table; margin: 1.5rem auto 0; }
    .special-activity-section { background-color: #f0f8ff; }
    .activity-catchphrase h2 { text-align: center; }
    .activity-link { margin-top: 1.5rem; text-align: center; }
    .navigation-section { background-color: #f9f9f9;}
    .navigation-content { display: grid; gap: 1rem; }
    .nav-box h3 { font-size: 1.1rem; }
}

/* =================================================================== */
/*  7. 共通コンポーネント（ナビゲーションボックスなど）                 */
/* =================================================================== */
.nav-box {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 8px;
    padding: 1rem;
    background-size: cover;
    background-position: center center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.nav-box:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.nav-box h3 {
    text-align: center;
    color: #333;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 0.5em 1.2em;
    border-radius: 6px;
    text-shadow: none;
    transition: background-color 0.3s ease;
}
.nav-box:hover h3 {
    background-color: rgba(255, 255, 255, 0.95);
}
#nav-box-1 { background-image: url('../images/guide.jpg'); }
#nav-box-2 { background-image: url('../images/fqa.jpg'); }
#nav-box-3 { background-image: url('../images/staff.jpg'); }
#nav-box-4 { background-image: url('../images/access.jpg'); }
#nav-box-5 { background-image: url('../images/contact.jpg'); }


/* =================================================================== */
/*  8. 下層ページ共通                                                 */
/* =================================================================== */
.subpage header { position: relative; padding: 20px var(--content-space); border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.subpage #menubar_hdr { position: static; top: auto; right: auto; transform: none; background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.subpage #logo img { width: 200px; }
.page-title { background-color: #000080; color: #fff; padding: 2rem var(--content-space); text-align: center; }
.page-title h1 { font-size: 2rem; font-weight: bold; }
.section-block { padding: 4rem 0; }
.section-block.alt-bg { background-color: #f9f9f9; }
.section-block:not(.intro-section):not(.steps-container .step-section) { border-top: 1px solid #eee; }
.section-block h2 { font-size: 1.8rem; font-weight: bold; text-align: center; margin-bottom: 2rem; color: #000080; }
.content-area { max-width: 1000px; margin: 0 auto; padding: 0 var(--content-space); }
.content-area p { margin-bottom: 1.5rem; }
.dummy-img { width: 100%; height: 100%; object-fit: cover; background-color: #f7ebeb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: bold; aspect-ratio: 16/9; }
.dummy-img::after { content: 'DUMMY'; }
.intro-section .main-image { max-width: 1200px; margin: 0 auto; padding: 0 var(--content-space); }
.intro-section .main-image img {
    width: 100%; /* ←追記：画像の幅を親要素に合わせる */
    height: auto; /* ←追記：高さは自動調整 */
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}
.lead-text { text-align: center; font-size: 1.1rem; font-weight: bold; }

@media screen and (max-width: 899px) {
    .subpage header { padding: 15px var(--content-space); }
    .subpage #logo img { width: 180px; }
    .page-title h1 { font-size: 1.5rem; }
    .section-block { padding: 2.5rem 0; }
    .section-block h2 { font-size: 1.5rem; }
}
@media screen and (min-width: 900px) {
    .subpage #logo img { width: 300px; }
}

/* =================================================================== */
/* 9. 日々の活動ページ (about.html)                                  */
/* =================================================================== */
.point-list { background-color: #f0f8ff; padding: 1.5rem; border-radius: 8px; margin: 2rem 0; }
.point-list h3 { font-weight: bold; margin-bottom: 1rem; text-align: center; }
.point-list ul {
    list-style: none;
    padding: 0;
}
.point-list li {
    position: relative;      /* ★アイコンを絶対配置するための基準点にします */
    padding-left: 2.2em;     /* ★テキスト全体を右にずらし、アイコンを置くスペースを作ります */
    margin-bottom: 1rem;     /* 各項目の下の余白 */
    line-height: 1.7;        /* 行の高さを調整 */
}

.point-list li::before {
    content: '';
    position: absolute;      /* ★li要素を基準に、絶対的な位置を指定します */
    left: 0;                 /* ★li要素の左端に配置します */
    top: 0.25em;             /* ★1行目のテキストの高さに合わせて、上からの位置を微調整します */

    /* アイコンのサイズや画像はこれまでと同じです */
    width: 1.2em;
    height: 1.2em;
    background-image: url('../images/check-icon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}    
.daily-flow-section { background-color: #f9f9f9; }
.flow-item { background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 2rem; }
.flow-item p { margin-bottom: 0; }
.flow-img img { border-radius: 8px 8px 0 0; aspect-ratio: 16 / 9; }
.flow-text { padding: 1.5rem; }
.flow-text h4 { font-size: 1.2rem; font-weight: normal; border-left: 4px solid #000080; padding-left: 1rem; margin: 0 0 0.5rem 0; line-height: 1.5; }
.important-time-section .card { background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; }
.important-time-section .card-image img { aspect-ratio: 16 / 9; }
.important-time-section .card-body { padding: 1.5rem; }
.important-time-section .card-body h3 { font-weight: bold; margin-bottom: 1rem; }
.study-support-section { background-color: #f9f9f9; }
.study-support-section .flex-container { display: flex; gap: 2rem; align-items: center; }
.study-support-section .flex-text { flex: 1; }
.study-support-section .flex-image { flex: 1; }
.study-support-section .flex-image img { border-radius: 8px; }
.option-box { background-color: #fff; padding: 1.5rem; border-radius: 8px; margin-top: 1rem; border: 1px solid #e0e0e0; }
.option-box h3 { font-weight: bold; margin-bottom: 1rem; }
.option-box h4 { font-weight: bold; margin-top: 1rem; border-left: 4px solid #000080; padding-left: 0.8rem; }
.pdf-link { display: inline-block; margin-top: 1rem; font-weight: bold; text-decoration: underline; }
@media screen and (min-width: 900px) {
    .flow-item { display: flex; align-items: center; border-radius: 0; box-shadow: none; border-bottom: 1px solid #eee; margin-bottom: 0; }
    .flow-item:first-child { border-top: 1px solid #eee; }
    .flow-img { width: 150px; padding: 1rem; }
    .flow-img img { border-radius: 4px; aspect-ratio: 16 / 9; }
    .flow-text { flex: 1; }
    .important-time-section .card-container { display: grid; gap: 2rem; }
    .important-time-section .card { display: flex; flex-direction: row; align-items: center; gap: 2rem; background: none; box-shadow: none; border-radius: 0; margin-bottom: 2rem; }
    .important-time-section .card-image { flex: 1; max-width: 48%; }
    .important-time-section .card-image img { border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
    .important-time-section .card-body { flex: 1; padding: 0; }
    .important-time-section .card.reverse { flex-direction: row-reverse; }
}
@media screen and (max-width: 899px) {
    .important-time-section .card-container { display: grid; gap: 1rem; }
    .study-support-section .flex-container { flex-direction: column-reverse; }
    .study-support-section .flex-image { max-width: 100%; margin-bottom: 1.5rem; }
}

/* =================================================================== */
/* 10. 特別活動ページ                                                */
/* =================================================================== */
.with-icon { display: flex; justify-content: center; align-items: center; gap: 0.5em; }
.h-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
}
.h-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.step-section { padding: 3rem var(--content-space); }
.step-section.alt-bg { background-color: #f9f9f9; }
.step-title { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.step-number { font-size: 4rem; font-weight: bold; color: #000080; line-height: 1; opacity: 0.2; }
.step-text h3 { font-size: 1.5rem; font-weight: bold; margin: 0; }
.step-label { font-size: 0.9rem; color: #888; }
.dialog-box { margin: 2rem 0; }
.dialog-item { display: flex; align-items: flex-end; gap: 1em; margin-bottom: 1.5rem; }
.dialog-item.adult { justify-content: flex-end; }
.dialog-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}
.dialog-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.dialog-bubble { padding: 1rem; border-radius: 15px; max-width: 75%; }
.dialog-item.child .dialog-bubble { background-color: #e0f7fa; border-bottom-left-radius: 0; }
.dialog-item.adult .dialog-bubble { background-color: #fffde7; border-bottom-right-radius: 0; }
.point-box { background: #fff; border: 2px dashed #000080; padding: 1.5rem; border-radius: 8px; }
.point-box p { margin: 0; }
.point-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: 0.5em;
    vertical-align: middle;
}
.point-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.checklist-container { display: grid; gap: 2rem; }
.checklist-box { background-image: linear-gradient(180deg, #fff 1.2em, #f0f8ff 1.2em); background-size: 100% 2.4em; padding: 1.5rem; border: 1px solid #ddd; border-radius: 4px; }
.checklist-box h4 { font-weight: bold; margin: 0 0 1rem 0; padding-bottom: 0.5rem; border-bottom: 2px solid #000080; }
.checklist-box ul {
    list-style-type: none;
    padding-left: 0;
}
.checklist-box li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1em;
    line-height: 1.6;
}
.checklist-box li::before {
    content: '';
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
    margin-right: 0.7em;
    background-image: url('../images/check-icon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-top: 0.1em;
}
.shiori-box { background: #faf8f0; padding: 1.5rem; border-left: 5px solid #c8bca7; margin: 2rem 0; }
.shiori-box h5 { font-weight: bold; margin: 0 0 0.5rem 0; }
.shiori-box ul { list-style-type: '・'; padding-left: 1.5em; }
.summary-box { border-bottom: 1px solid #eee; padding: 1.5rem 0; }
.summary-box:last-child { border-bottom: none; }
.summary-box h5 { font-weight: bold; display: flex; align-items: center; }
.summary-icon {
    width: 28px;
    height: 28px;
    margin-right: 0.7em;
    line-height: 1;
}
.summary-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.final-message { background: #4a4a4a url('../images/bg_chalkboard.jpg'); background-size: cover; color: #fff; padding: 4rem var(--content-space); text-align: center; }
.final-message h2 { color: #fff; text-shadow: 2px 2px 3px rgba(0,0,0,0.5); }
.final-message p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; }
.chalk-text { font-family: 'Yusei Magic', sans-serif; color: #fff2a8; font-size: 1.3em; text-shadow: 1px 1px 2px rgba(0,0,0,0.7); margin: 0 0.2em; }
@media screen and (min-width: 900px) { .step-content { max-width: 800px; margin: 0 auto; } .checklist-container { grid-template-columns: 1fr 1fr; } }

/* =================================================================== */
/* 11. 入会案内ページ                                                */
/* =================================================================== */
.info-table { width: 100%; border-top: 1px solid #eee; }
.info-table th, .info-table td { padding: 1.5rem 1rem; border-bottom: 1px solid #eee; vertical-align: top; }
.info-table th { font-weight: bold; width: 30%; text-align: left; white-space: nowrap; }
.table-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}
.table-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.price-list { background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; }
.price-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; padding: 1.5rem; border-bottom: 1px dashed #ddd; }
.price-item:last-child { border-bottom: none; }
.price-title h3 { font-weight: bold; font-size: 1.2rem; margin: 0; }
.price-title p { font-size: 0.9rem; margin: 0.3em 0 0 0; color: #777; }
.price-value { font-size: 1.5rem; font-weight: bold; color: #000080; white-space: nowrap; margin-left: 1rem; }
.price-value span { font-size: 0.8rem; font-weight: normal; }
.notes-box { background: #fff; padding: 1.5rem; border-radius: 8px; margin-top: 2rem; font-size: 0.9rem; }
.notes-box ul { list-style-type: '※ '; padding-left: 1.5em; }
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 15px; width: 2px; height: calc(100% - 30px); background: #000080; opacity: 0.2; }
.timeline-item { position: relative; padding-left: 50px; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-number { position: absolute; top: 0; left: 0; width: 32px; height: 32px; background: #000080; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; border: 3px solid #fff; }
.timeline-content h4 { font-size: 1.2rem; font-weight: bold; margin: 0 0 0.5rem 0; }
.timeline-content p { margin: 0; }
.timeline-content small { display: block; margin-top: 0.5em; font-size: 0.85em; color: #777; }
.cta-section { background-color: #f0f8ff; text-align: center; }
.cta-buttons { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.btn.btn-primary { background-color: #000080; color: #fff; }
.btn.btn-secondary { background-color: #fff; color: #000080; border: 1px solid #000080; }
@media screen and (min-width: 900px) { .cta-buttons { flex-direction: row; justify-content: center; } }

/* =================================================================== */
/* 12. よくある質問ページ                                            */
/* =================================================================== */
.category-title { display: flex; align-items: center; gap: 0.8em; margin-top: 3rem; padding-bottom: 0.8rem; border-bottom: 2px solid #000080; }
.category-icon {
    width: 32px;
    height: 32px;
}
.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.faq-list { border-bottom: 1px solid #ddd; }
.faq-item { border-top: 1px solid #ddd; }
.faq-question { width: 100%; display: flex; align-items: center; text-align: left; padding: 1.5rem 0; background: none; border: none; cursor: pointer; font-size: 1.1rem; font-weight: bold; }
.q-icon { font-size: 1.5rem; color: #000080; margin-right: 0.8em; }
.arrow-icon { margin-left: auto; width: 20px; height: 20px; position: relative; transition: transform 0.3s; }
.arrow-icon::before, .arrow-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background-color: #888; }
.arrow-icon::before { transform: translate(-50%, -50%); }
.arrow-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-question.open .arrow-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1rem 1.5rem 1rem; background: #f9f9f9; border-top: 1px solid #eee; }
.faq-answer p { margin: 0; display: flex; align-items: flex-start; }
.a-icon { font-size: 1.5rem; color: #d32f2f; margin-right: 0.8em; font-weight: bold; }
.underline-text {
    text-decoration: underline;
  }

/* =================================================================== */
/* 13. スタッフ紹介ページ                                            */
/* =================================================================== */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; margin-top: 2rem; }
.staff-card { background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.staff-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.staff-img img { aspect-ratio: 1/1; width: 100%; object-fit: cover; }
.staff-info { padding: 1.5rem 1rem; }
.staff-info h3 { font-size: 1.3rem; font-weight: bold; margin: 0 0 0.5rem 0; }
.staff-info .role { font-size: 0.9rem; color: #555; margin: 0; line-height: 1.5; padding-bottom: 1rem; border-bottom: 1px dashed #ddd; margin-bottom: 1rem; }
.staff-details { font-size: 0.85rem; text-align: left; color: #333; }
.staff-details p { margin: 0 0 0.8rem 0; }
.staff-details p:last-child { margin-bottom: 0; }
.staff-details .message { line-height: 1.6; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f0f0f0; }

/* =================================================================== */
/* 14. アクセスページ                                                */
/* =================================================================== */
.access-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.access-info {
    flex: 1;
    min-width: 300px;
}
.access-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
}
.access-map {
    flex: 1;
    min-width: 300px;
    min-height: 350px;
}
.access-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
.access-info .notes-box {
    margin-top: 1.5rem;
    border-color: #000080;
    background: #f0f8ff;
}
.access-info .notes-box ul {
    list-style: none;
    padding: 0;
}
.access-info .notes-box p {
    margin: 0;
}
.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}
.contact-item h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.contact-img {
    width: 300px;
    height: auto;
    aspect-ratio: 4 / 1;
    border-radius: 4px;
}

/* =================================================================== */
/* 15. お問い合わせページ                                            */
/* =================================================================== */
.form-title {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}
.contact-form {
    margin-top: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.form-item {
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
}
.form-item:last-of-type {
    border-bottom: none;
}
.form-item dt {
    width: 100%;
    font-weight: bold;
    margin-bottom: 1rem;
}
.form-item dd {
    width: 100%;
}
.required {
    background: #d32f2f;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    margin-left: 0.5em;
    vertical-align: middle;
}
.form-item input[type="text"],
.form-item input[type="email"],
.form-item input[type="tel"],
.form-item select,
.form-item textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.checkbox-list,
.radio-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.checkbox-list li,
.radio-list li {
    display: flex;
    align-items: center;
}
.checkbox-list label,
.radio-list label {
    cursor: pointer;
}
.checkbox-list input,
.radio-list input {
    margin-right: 0.5em;
    width: 1.2em;
    height: 1.2em;
}
.privacy-policy {
    padding: 1.5rem;
    text-align: center;
    background: #f9f9f9;
}
.privacy-policy a {
    text-decoration: underline;
}
.submit-button {
    padding: 2rem;
    text-align: center;
}
.submit-button .btn {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
    font-size: 1.2rem;
}
@media screen and (min-width: 900px) {
    .form-item {
        align-items: center;
    }
    .form-item dt {
        width: 30%;
        margin-bottom: 0;
    }
    .form-item dd {
        width: 70%;
    }
}

/* =================================================================== */
/* 16. テキストページ（プライバシーポリシーなど）                      */
/* =================================================================== */
.text-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #000080;
}
.text-content ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1.5rem;
}
.text-content li {
    margin-bottom: 0.5rem;
}

/* =================================================================== */
/* 17. サンクスページ                                                */
/* =================================================================== */
.thanks-message {
    text-align: center;
    padding: 4rem var(--content-space);
}
.thanks-message h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
}
.back-to-top {
    margin-top: 3rem;
}

/* =================================================================== */
/* 18. JavaScript連携用スタイル                                        */
/* =================================================================== */
body.body-no-scroll {
    overflow: hidden;
}

/* =================================================================== */
/* 19. ユーティリティクラス（追加分）                                  */
/* =================================================================== */
.text-left {
    text-align: left;
}

/* =================================================================== */
/* 21. スマホ表示時のリスト視認性向上                                  */
/* =================================================================== */
@media screen and (max-width: 899px) {

    .point-list li strong {
        display: block; /* 「〇〇する力：」の部分をブロック要素にして改行させる */
    }

}

/* =================================================================== */
/* 22. PC/SPでの画像表示切り替え用ユーティリティ                       */
/* =================================================================== */

/* まず、デフォルトではスマホ用を非表示にする */
.display-sp {
    display: none;
}
.display-pc {
    display: block;
}

/* 画面幅が899px以下（スマホ表示）の場合のスタイル */
@media screen and (max-width: 899px) {

    /* PC用を非表示に */
    .display-pc {
        display: none;
    }

    /* スマホ用を表示 */
    .display-sp {
        display: block;
    }
}

/* =================================================================== */
/* 23. 料金ページ追加スタイル                                          */
/* =================================================================== */
/* レスポンシブテーブル用コンテナ */
.table-container {
    overflow-x: auto; /* スマホで表がはみ出した場合に横スクロールさせる */
    margin-bottom: 2rem;
}

/* 料金テーブル */
.price-table {
    width: 100%;
    min-width: 600px; /* 横スクロールを開始させる最小幅 */
    border-collapse: collapse;
    border: 1px solid #ddd;
    background-color: #fff;
}

.price-table th,
.price-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.price-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center;
}

.price-table td:nth-child(2) { /* 料金の列 */
    text-align: right;
    white-space: nowrap;
}
.price-table td:nth-child(3) { /* 備考の列 */
    font-size: 0.9rem;
}

/* お支払い方法の小見出し */
.subsection-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 3rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

@media screen and (max-width: 899px) {
    .price-table td:nth-child(2) {
        text-align: left;
    }
    .subsection-title {
        font-size: 1.3rem;
    }
}