/* =-================================================================= */
/*  1. 基本設定（フォント、リセットなど）                             */
/* =================================================================== */
@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:400,700&display=swap");
@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: "M PLUS Rounded 1c", "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;}
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: #6ca140; color: #ffffff; padding: 0.8rem 2rem; text-decoration: none; border-radius: 8px; margin-top: 1.5rem; font-weight: bold; transition: background-color 0.3s; }
.btn:hover { background-color: #8bc34a; filter: none; }
.br-sp { display: none; }
.br-pc { display: none; }

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

/* =================================================================== */
/*  2. サイト共通コンポーネント                                     */
/* =================================================================== */
/* --- ハンバーガーメニュー --- */
.hamburger-menu { position: fixed; top: 20px; right: 20px; z-index: 1001; }
.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);
    max-height: calc(100vh - 90px); /* ★メニューの最大高さを指定 */
    overflow-y: auto; /* ★縦方向にはみ出したらスクロールさせる */
    -webkit-overflow-scrolling: touch; /* ★スマホでのスクロールを滑らかにする */}
.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: #6ca140; display: block; padding: 15px 20px; transition: background-color 0.2s; }
.menu li a:hover { background-color: #f0f8ff; filter: none; }

/* --- フッター・ページトップ --- */
footer { font-size: 0.8rem; background: #eee; color: #555; text-align: center; padding: 1rem; }
.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%; }

/* --- JavaScript連携用 --- */
body.body-no-scroll { overflow: hidden; }

/* --- PC/SP表示切り替え用ユーティリティ --- */
.display-sp { display: none; }
.display-pc { display: block; }

/* =================================================================== */
/*  3. トップページ (`index.html`) のスタイル                         */
/* =================================================================== */
body:not(.subpage) header { display: none; }
#mainimg-parts { width: 100%; height: 100vh; position: relative; overflow: hidden; background-image: url('../images/top_pc.jpg'); background-size: cover; background-position: center center; background-repeat: no-repeat; }
.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; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.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);} }
.top-page-title { position: absolute; z-index: 5; font-weight: bold; color: #B85C51; text-shadow: 1px 1px 0 #fff, 2px 2px 5px rgba(0, 0, 0, 0.2); font-size: clamp(2.4rem, 1.8rem + 3.5vw, 3.2rem); }
.location-text { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.5rem); }
.simple-nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 900px; margin: 0 auto; padding: 0 var(--content-space); }
.simple-btn { display: inline-block; padding: 0.8em 1.5em; text-decoration: none; font-weight: bold; border-radius: 50px; transition: transform 0.2s ease, box-shadow 0.2s ease; border: 2px solid; box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05); }
.simple-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); filter: none; }
.simple-btn:nth-child(4n + 1) { background-color: #fff0f5; border-color: #ffc0cb; color: #c71585; }
.simple-btn:nth-child(4n + 2) { background-color: #f0fff0; border-color: #98fb98; color: #2e8b57; }
.simple-btn:nth-child(4n + 3) { background-color: #f0f8ff; border-color: #add8e6; color: #4682b4; }
.simple-btn:nth-child(4n + 4) { background-color: #fffff0; border-color: #fffacd; color: #daa520; }

/* =================================================================== */
/*  4. 下層ページ (`.subpage`) の共通スタイル                         */
/* =================================================================== */
.subpage header { position: relative; padding: 20px var(--content-space); border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.subpage #logo img { width: 200px; }
.page-title { background-image: url('../images/title_bg.jpg'); background-size: cover; background-position: center center; color: #5D4037; padding: 2rem var(--content-space); text-align: center; border-bottom: 2px solid #f0e6d2; }
.page-title h1 { font-size: 2rem; font-weight: bold; text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7), 2px 2px 4px rgba(255, 255, 255, 0.5); }
.page-title + .section-block { padding-top: 4rem; }
.section-block { padding: 4rem 0; }
.section-block.alt-bg { background-color: #f9f9f9; }
.section-block h2 { font-size: 1.8rem; font-weight: bold; text-align: center; margin-bottom: 2rem; color: #6ca140; }
.content-area { max-width: 1000px; margin: 0 auto; padding: 0 var(--content-space); }
.content-area p { margin-bottom: 1.5rem; }
.lead-text { text-align: center; font-size: 1.1rem; font-weight: bold; }
.section-header-with-icon { display:flex; align-items:center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.header-icon { width: 45px; height:auto; }
.section-header-with-icon h2 { margin-bottom: 0; }
.section-lead-text { font-size: 1.1em; margin-bottom: 30px; line-height: 1.8; text-align: center; }
.h2-with-leaf-icon { position: relative; padding-left: 1.5em; display: inline-block; }
.h2-with-leaf-icon::before { content: ''; display: inline-block; position: absolute; left: 0; top: 50%; transform: translateY(-50%); background-image: url('../images/leaf.png'); background-size: contain; background-repeat: no-repeat; width: 1em; height: 1em; }

/* =================================================================== */
/*  5. ページ個別スタイル                                            */
/* =================================================================== */
/* --- 活動ページ (`activity.html`) --- */
.intro-with-image-section { background-color: #fdfdfa; border-bottom: 1px solid #eee; }
.intro-container { display: flex; flex-direction: column; align-items: center; }
.intro-image-content { width: 100%; max-width: 450px; margin-bottom: 2rem; }
.intro-image-content img { border-radius: 12px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); }
.intro-text-content { color: #6ca140; max-width: 650px; }
.intro-text-content h2 { font-size: 2.2rem; font-weight: bold; margin-bottom: 1.5rem; text-align: center; }
.intro-text-content p { font-size: 1.05rem; line-height: 2; margin-bottom: 1.5rem; }
.daily-flow-section-v2 { padding: 40px 20px; background-color: #fdfbf3; }
.daily-flow-section-v2 .section-header-with-icon h2 { font-size: 1.8em; line-height: 1.4; color: #2c3e50; }
.timeline-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    border-left: 5px solid #4CAF50;
    padding-left: 10px;
    color: #4CAF50;
    text-align: left;/* ★マイナスのマージンで左に移動させる */
}
.timeline-v2 {
    border-left: 2px solid #ccc;
    padding-left: 30px;
    position: relative;
    margin-top: 2rem; /* ★見出しとの間に適切な余白を再設定 */
}
.subpage .timeline-wrapper {
    max-width: 600px; /* タイムラインの最大幅 */
    margin-left: auto;
    margin-right: auto;
}
.timeline-item-v2 { margin-bottom: 30px; position: relative; }
.timeline-item-v2::before { content: ''; position: absolute; left: -41px; top: 5px; width: 14px; height: 14px; background-color: #4CAF50; border-radius: 50%; border: 2px solid white; }
.timeline-time { font-weight: bold; color: #4CAF50; margin-bottom: 5px; }
.timeline-content-v2 h4 { font-size: 1.2em; margin: 0 0 5px; color: #333;}
.timeline-content-v2 p { margin: 0; line-height: 1.6; font-size: 0.95em; color: #555; }
.bear-talk-section, .bird-talk-section, .mouse-talk-section, .gentle-encounter-section, .daily-life-section { background-color: #fdfdfa; }
.bear-talk-box, .bird-talk-box, .mouse-talk-box { position: relative; border-radius: 16px; padding: 2.5rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); }
.bear-talk-box { background-color: #f0f8ff; border: 2px solid #add8e6; padding-bottom: 5rem; }
.bird-talk-box { background-color: #fffaf0; border: 2px solid #f5eecf; padding-top: 3.5rem; margin-top: 60px; }
.mouse-talk-box { background-color: #fff5ee; border: 2px solid #ffdab9; padding-right: 140px; }
.bear-icon { position: absolute; width: 120px; height: auto; bottom: -40px; left: 50%; transform: translateX(-50%); }
.bird-icon { position: absolute; width: 100px; height: auto; top: -50px; left: 50%; transform: translateX(-50%); }
.mouse-icon { position: absolute; width: 130px; height: auto; bottom: -20px; right: -20px; }
.bear-talk-content h2, .bird-talk-content h2, .mouse-talk-content h2 { font-size: 1.8rem; font-weight: bold; text-align: center; margin-bottom: 1.5rem; }
.bear-talk-content p, .bird-talk-content p, .mouse-talk-content p { font-size: 1.05rem; line-height: 1.9; text-align: center; margin-bottom: 1.5rem; }
.bear-talk-content p:last-child, .bird-talk-content p:last-child, .mouse-talk-content p:last-child { margin-bottom: 0; }
.bear-talk-content h2, .bird-talk-content h2 { color: #4682b4; }
.mouse-talk-content h2 { color: #c71585; }
.activity-list-section { background-color: #fdfdfa; }
.activity-grid { margin-top: 3rem; }
.activity-category { background-color: #f5fff5; border: 2px solid #d0e0d0; border-radius: 12px; padding: 1.5rem; }
.activity-category:not(:last-child) { margin-bottom: 2rem; }
.activity-category h3 { font-size: 1.3rem; font-weight: bold; color: #6ca140; padding-bottom: 0.8rem; margin-bottom: 1rem; border-bottom: 2px solid #e0e6d2; }
.activity-category ul { list-style: none; padding-left: 0; }
.activity-category li { padding-left: 1.8em; position: relative; margin-bottom: 0.8rem; line-height: 1.7; }
.activity-category li::before { content: '・'; position: absolute; left: 0; top: -0.1em; color: #8fbc8f; font-weight: bold; font-size: 1.5em; }
.activity-category.is-special { background-color: #fff0f5; border-color: #ffc0cb; }
.activity-category.is-special h3 { color: #c71585; border-bottom-color: #fddde2; }
.activity-category.is-special li::before { color: #db7093; }
.daily-life-section { background-color: #fdfbf3; border-top: 1px solid #eee; }
.main-text-content { max-width: 650px; margin: 0 auto; }
.main-text-content p { font-size: 1.05rem; line-height: 2; margin-bottom: 1.5rem; color: #6ca140; }
.gentle-encounter-section { background-color: #fdfdfa; }
.gentle-encounter-section .content-area { max-width: 650px; text-align: center; }
.gentle-encounter-section h2 { font-size: 2.2rem; font-weight: bold; margin-bottom: 2rem; }
.gentle-encounter-section p { font-size: 1.1rem; line-height: 2.2; color: #6ca140; }

/* --- 保護者の方へページ --- */
.lead-text-section { background-color: #fdfdfa; border-bottom: 1px solid #eee; }
.lead-text-section .content-area { max-width: 800px; }
.lead-text-section p { font-size: 1.1rem; line-height: 2.2; color: #6ca140; margin-bottom: 2rem; }
.lead-text-section p:last-child { margin-bottom: 0; }
.three-points-section { background-color: #fffafc; }
.points-container { max-width: 900px; margin: 0 auto; }
.point-item { display: flex; gap: 1rem; align-items: flex-start; }
.point-item:not(:last-child) { margin-bottom: 2.5rem; }
.point-number { flex-shrink: 0; width: 50px; }
.point-text h3 { font-size: 1.5rem; font-weight: bold; color: #6ca140; margin-bottom: 0.8rem; }
.point-text p { font-size: 1rem; line-height: 2; color: #555; }
.learning-support-section { background-color: #f0f8ff; }
.info-box { background-color: #fff; border: 2px solid #add8e6; border-radius: 12px; padding: 1.5rem; margin-top: 3rem; }
.info-box h3 { font-size: 1.3rem; font-weight: bold; color: #4682b4; margin-bottom: 1rem; text-align: center; }
.info-box p { font-size: 0.95rem; line-height: 1.8; }
.text-link { font-weight: bold; color: #1e90ff; text-decoration: underline; }
.text-link:hover { text-decoration: none; }

/* --- 入会案内ページ --- */
.info-table { width: 100%; border: 1px solid #e0e6d2; border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.info-table th, .info-table td { padding: 1.5rem 1rem; border-bottom: 1px solid #e0e6d2; vertical-align: middle; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { background-color: #f5fff5; font-weight: bold; width: 120px; text-align: center; white-space: normal; }
.table-icon { display: block; margin: 0 auto 0.5rem; width: 32px; height: 32px; }
.price-list { background: #fffaf0; border: 1px solid #f5eecf; box-shadow: none; border-radius: 12px; }
.price-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; padding: 1.5rem; border-bottom: 1px solid #f5eecf; }
.price-item:last-child { border-bottom: none; }
.price-title { margin-right: 1rem; }
.price-value { color: #6ca140; font-size: 1.5rem; font-weight: bold; white-space: nowrap; }
.timeline { list-style: none; padding: 0; position: relative; border-left: 3px solid #e0e6d2; padding-left: 30px; margin-left: 20px; margin-top: 3rem; }
.timeline::before { display: none; }
.timeline-item { position: relative; padding-left: 20px; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-number { position: absolute; left: -46px; top: -5px; width: 40px; height: 40px; background: #8fbc8f; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; border: none; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.timeline-content h4 { color: #6ca140; font-size: 1.2rem; font-weight: bold; margin: 0 0 0.5rem 0; }
.timeline-content p { margin: 0; font-size: 1rem; line-height: 1.8; }
.timeline-content small { display: block; margin-top: 0.5em; font-size: 0.85em; color: #777; }
.cta-section { background-color: #f0f8ff; border-radius: 12px; text-align: center; }
.cta-buttons { margin-top: 1.5rem; }
.price-category-title { font-size: 1.3rem; font-weight: bold; color: #6ca140; margin-top: 3rem; margin-bottom: 1rem; padding-left: 1rem; border-left: 5px solid #8fbc8f; }
.price-category-title:first-of-type { margin-top: 0; }

/* --- よくある質問ページ --- */
.category-title { display: flex; align-items: center; gap: 0.8em; margin-top: 3rem; padding-bottom: 0.8rem; border-bottom: 2px solid #6ca140; color: #6ca140; }
.category-title:first-of-type { margin-top: 0; }
.category-icon { width: 32px; height: 32px; }
.category-title h2 { color: inherit; margin-bottom: 0; font-size: 1.5rem; }
.faq-list { border-bottom: 1px solid #e0e6d2; }
.faq-item { border-top: 1px solid #e0e6d2; }
.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; color: #333; }
.q-icon { font-size: 1.2rem; color: #6ca140; 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: 16px; height: 2px; background-color: #888; border-radius: 1px; }
.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 2.8em; background: #fdfdfa; border-top: 1px solid #e0e6d2; }
.faq-answer p { display: flex; font-size: 1rem; line-height: 1.8; }
.a-icon { font-size: 1.2rem; color: #c71585; margin-right: 0.8em; font-weight: bold; }

/* --- スタッフ紹介ページ --- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem; margin-top: 1rem; }
.staff-card { background-color: #fff; border: 1px solid #eee; border-radius: 16px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07); transition: transform 0.3s, box-shadow 0.3s; text-align: center; overflow: hidden; position: relative; padding: 2rem; }
.staff-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
staff-grid .staff-img {
    position: relative;
    width: 130px;
    height: 130px;
    margin: -2.5rem auto 1.5rem; /* ★この行の最初の値だけを変更 */
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
staff-grid .staff-img img { width: 100%; height: 100%; object-fit: cover; }
.staff-info { padding: 0; }
.staff-info h3 { font-size: 1.5rem; font-weight: bold; color: #333; margin-bottom: 0.25rem; }
.staff-info .role { font-size: 0.9rem; color: #888; font-weight: bold; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #eee; }
.staff-details { font-size: 0.9rem; text-align: left; color: #555; }
.staff-details .message { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eee; font-style: italic; line-height: 1.7; }

/* --- アクセスページ --- */
.access-info-cell h3 { font-size: 1.5rem; font-weight: bold; color: #6ca140; }
.notes-box { background-color: #fffaf0; border: 2px solid #f5eecf; border-radius: 12px; padding: 1.5rem; font-size: 0.95rem; margin-top: 1.5rem; }
.access-map-cell iframe { width: 100%; height: 100%; min-height: 350px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); display: block; }
.photo-gallery-section { background-color: #fdfdfa; }
.photo-gallery-section h2 { text-align: center; margin-bottom: 2.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); aspect-ratio: 4 / 3; }
.contact-item { background-color: #fff; border: 1px solid #eee; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); text-align: center; }
.contact-item h3 { font-size: 1.3rem; font-weight: bold; color: #6ca140; }
.contact-img { border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }

/*******************************************************************/
/*                                                                 */
/*     PC向けスタイル（画面幅900px以上）                           */
/*                                                                 */
/*******************************************************************/
@media screen and (min-width: 900px) {
    :root { --content-space: 2rem; }
    html, body { font-size: 18px; }
    .br-pc { display: block; }
    .subpage #logo img { width: 300px; }

    /* --- トップページ --- */
    body:not(.subpage) .top-page-title { top: 60px; left: 80px; transform: none; width: auto; line-height: 1.4; text-align: right; }
    body:not(.subpage) .problem-section { padding: 5rem var(--content-space); background-color: #fdfdfa; }
    body:not(.subpage) .problem-content { max-width: 800px; margin: 0 auto; text-align: center; }
    body:not(.subpage) .problem-text h2 { font-size: 2.5rem; margin-bottom: 2rem; font-weight: bold; color: #6ca140; }
    body:not(.subpage) .problem-text p { font-size: 1.1rem; line-height: 2.2; color: #6ca140; }
    body:not(.subpage) .navigation-section { padding: 5rem var(--content-space); }

    /* --- 活動ページ --- */
    .subpage .intro-container { flex-direction: row; gap: 3rem; align-items: center; }
    .subpage .intro-image-content { flex: 0 0 40%; margin-bottom: 0; }
    .subpage .intro-text-content { flex: 1 1 60%; }
    .subpage .intro-text-content h2 { text-align: left; }
    .subpage .activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
    .subpage .activity-category:not(:last-child) { margin-bottom: 0; }
    .subpage .main-text-content { text-align: left; }

    /* --- アクセスページ --- */
    .subpage .access-container-grid { display: flex; align-items: stretch; gap: 3rem; }
    .subpage .access-info-cell { flex: 1; display: flex; flex-direction: column; justify-content: center; }
    .subpage .access-map-cell { flex: 1.5; }
    .subpage .contact-methods {
        display: flex; /* ★GridからFlexboxに変更 */
        justify-content: center; /* ★Flexboxの強力な中央揃え */
        gap: 2rem;
    }
}


/*******************************************************************/
/*                                                                 */
/*     スマホ向けスタイル（画面幅899px以下）                       */
/*                                                                 */
/*******************************************************************/
@media screen and (max-width: 899px) {
    .br-sp { display: block; }
    .display-pc { display: none; }
    .display-sp { display: block; }

    /* --- 共通 --- */
    .subpage header { padding: 15px var(--content-space); }
    .subpage #logo img { width: 180px; }
    .page-title h1 { font-size: 1.5rem; }
    .page-title + .section-block { padding-top: 2.5rem; }
    .section-block { padding: 2.5rem 0; }
    .section-block h2 { font-size: 1.5rem; }
    .cta-section .content-area { text-align: left; }
    .cta-buttons { text-align: center; }

    /* --- トップページ --- */
    #mainimg-parts { background-image: url('../images/top_sp.jpg'); }
    .top-page-title { top: 50px; left: 50%; transform: translateX(-50%); width: 90%; line-height: 1.5; text-align: center; }
    .problem-section, .navigation-section { padding-top: 3rem; padding-bottom: 3rem; }
    .problem-text, section h2 { padding-left: var(--content-space); padding-right: var(--content-space); }
    .problem-section { background-color: #fdfdfa; }
    .problem-text p { text-align: center; color: #6ca140; }
    .problem-text h2 { margin-top: 1.5rem; color: #6ca140; }

    /* --- 活動ページ --- */
    .bear-talk-box { padding: 1.5rem; padding-bottom: 4rem; }
    .bear-icon { width: 100px; bottom: -35px; }
    .bear-talk-content h2 { font-size: 1.5rem; text-align: center; }
    .bear-talk-content p, .bird-talk-content p, .mouse-talk-content p { text-align: left; }
    .bird-talk-box { padding: 1.5rem; padding-top: 3rem; margin-top: 50px; }
    .bird-icon { width: 80px; top: -40px; }
    .bird-talk-content h2 { font-size: 1.5rem; }
    .gentle-encounter-section h2 { font-size: 1.8rem; }
    .gentle-encounter-section p { font-size: 1rem; text-align: left; }
    .daily-flow-section-v2 .section-header-with-icon { flex-direction: column; align-items: center; }
    .daily-flow-section-v2 .header-icon { width: 50px; margin-bottom: 10px; align-self: flex-start; }
    .daily-flow-section-v2 .section-header-with-icon h2 { font-size: 1.5em; }
    .daily-flow-section-v2 .section-lead-text { font-size: 1em; }
    .timeline-title { font-size: 1.2em; }
    .timeline-v2 {
        padding-left: 30px; /* ★ここの値を大きくして、内側に寄せる */
        margin-left: 1rem;  /* ★さらに左側に余白を追加 */
        margin-right: 1rem; /* ★右側にも余白を追加 */
    }
    .timeline-time { font-size: 1em; }
    .timeline-content-v2 h4 { font-size: 1.1em; }
    .timeline-content-v2 p { font-size: 0.9em; }
    .h2-with-leaf-icon { padding-left: 1.6em; }

    /* --- 保護者の方へページ --- */
    .lead-text-section p { font-size: 1rem; }
    .mouse-talk-box { padding: 1.5rem; padding-right: 1.5rem; padding-bottom: 100px; }
    .mouse-icon { width: 100px; bottom: 10px; right: 10px; }
    .mouse-talk-content h2 { font-size: 1.5rem; }
    
    /* --- アクセスページ --- */
    .access-map-cell { margin-top: 2rem; }
    .contact-methods { display: grid; gap: 1.5rem; }
}

/* =================================================================== */
/* 43. お問い合わせページ デザイン調整 (最終版)                      */
/* =================================================================== */

.contact-form { background-color: #fdfdfa; border: 1px solid #e0e6d2; border-radius: 12px; margin-top: 2rem; }
.form-title { color: #6ca140; margin-top: 4rem; text-align: center; }
.form-item { padding: 1.5rem; border-bottom: 1px solid #e0e6d2; }
.contact-form > *:last-of-type { border-bottom: none; }
.form-label { font-weight: bold; color: #555; margin-bottom: 0.8rem; display: block; }
.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: 8px; font-size: 1rem; background-color: #fff; transition: border-color 0.3s, box-shadow 0.3s; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: #6ca140; box-shadow: 0 0 5px rgba(108, 161, 64, 0.3); outline: none; }
.required { background: #c71585; color: #fff; font-size: 0.8rem; padding: 0.2em 0.6em; border-radius: 4px; margin-left: 0.5em; vertical-align: middle; }
.checkbox-list, .radio-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.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: #f5fff5; border-bottom: 1px solid #e0e6d2; }
.privacy-policy a { color: #6ca140; }
.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 { display: flex; align-items: flex-start; gap: 1.5rem; }
    .form-label { width: 240px; flex-shrink: 0; margin-bottom: 0; padding-top: 0.8em; text-align: right; padding-right: 1.5rem; }
    .form-input { width: 100%; flex-grow: 1; }
    .checkbox-list, .radio-list { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; padding-top: 0.8em; }
}
/* =================================================================== */
/* 44. プライバシーポリシーページ デザイン調整                       */
/* =================================================================== */

.text-content {
    max-width: 800px; /* 文章の最大幅を読みやすい長さに */
}

.text-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6ca140; /* サイトのテーマカラー */
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e6d2; /* 優しい緑色の下線 */
}

.text-content ul {
    list-style: none; /* デフォルトの黒丸を削除 */
    padding-left: 1.5em;
    margin-bottom: 1.5rem;
}

.text-content li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.5rem;
}

.text-content li::before {
    content: '・'; /* 丸印 */
    position: absolute;
    left: 0;
    color: #8fbc8f; /* 柔らかい緑 */
    font-weight: bold;
}

/* 連絡先情報 */
.contact-info {
    font-style: normal; /* 斜体を解除 */
    background-color: #f5fff5; /* 淡いミントグリーン */
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid #8fbc8f;
}

/* =================================================================== */
/* 45. サンクスページ デザイン調整                                   */
/* =================================================================== */

.thanks-message {
    background-color: #f5fff5; /* 淡いミントグリーン */
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.thanks-message h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #6ca140; /* サイトのテーマカラー */
    margin-bottom: 2rem;
}

.thanks-message p {
    font-size: 1rem;
    line-height: 2;
}

.back-to-top {
    margin-top: 2.5rem;
}

/* =================================================================== */
/* 46. アクセスページ 連絡先 (改)                                    */
/* =================================================================== */

.text-center {
    text-align: center;
}

.contact-methods-v2 {
    max-width: 400px; /* 電話ボタンの最大幅 */
    margin: 2rem auto 0;
}
.contact-item-v2 a {
    display: block;
    padding: 2rem 1.5rem;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.contact-item-v2 a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}
.contact-detail {
    display: block;
    color: #6ca140;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.contact-note {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

/* =================================================================== */
/* 47. アクセスページ 電話セクション微調整                           */
/* =================================================================== */

.text-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em; /* アイコンとテキストの間隔を少し詰める */
    margin-bottom: 0.5rem;
    color: #555; /* 通常のテキストカラーに戻す */
}

.contact-icon {
    width: 32px; /* アイコンサイズを少し小さく */
    height: 32px;
}

/* =================================================================== */
/* 48. 規約ページ デザイン調整                                       */
/* =================================================================== */

/* PDFダウンロードボタンのエリア */
.pdf-download-box {
    text-align: center;
    margin: 2rem 0 3rem;
}

/* ボタン内のアイコン */
.pdf-download-box .btn img {
    width: 1.5em; /* ★サイズを1emから1.3emに大きく */
    height: 1.5em; /* ★サイズを1emから1.3emに大きく */
    margin-right: 0.6em; /* ★右側の余白を少し調整 */
    vertical-align: -0.2em; /* ★垂直位置を微調整 */
}

/* 章の見出し (h2) */
.text-content h2 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #6ca100;
    margin-top: 3.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px double #e0e6d2; /* 二重線で少し装飾 */
}

/* 条の見出し (h3) */
.text-content h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 1em;
    border-left: 5px solid #8fbc8f; /* 柔らかい緑の左枠線 */
}

