@charset "UTF-8";

/* =========================================================================
   Variables & Reset
   ========================================================================= */
:root {
    /* カラーパレット */
    --color-bg-body: #faf8f5;        /* わずかに暖かみのある白（和紙のイメージ） */
    --color-bg-card: #ffffff;        /* カード要素の背景 */
    --color-bg-texture: #f2ece4;     /* サブセクションの背景色（薄い土色） */
    
    --color-text-main: #2c2c2c;      /* 墨色。真っ黒を避けて目に優しく */
    --color-text-light: #595550;     /* やや薄い色 */
    
    --color-primary: #5c704f;        /* 落ち着いた草色（抹茶） */
    --color-primary-dark: #46553c;   /* 草色の暗め */
    --color-accent: #a3754e;         /* 温かみのある土色・木の色 */
    --color-accent-light: #d1b8a1;   /* 薄い茶色 */
    
    --color-spring: #e3a9b1;         /* 桜色 */
    --color-summer: #6aa89c;         /* 涼しげな川の色 */
    --color-autumn: #c26945;         /* 紅葉色 */
    --color-winter: #88939e;         /* 冬の空色 */

    /* タイポグラフィ */
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-yuji: 'Yuji Syuku', serif;
    
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* 固定ヘッダーの高さ分、スクロール位置を下げる調整 */
}

body {
    font-family: var(--font-serif);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 2.2;
    letter-spacing: 0.08em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =========================================================================
   Layout & Utility Classes
   ========================================================================= */
.wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px;
}

.bg-texture {
    background-color: var(--color-bg-texture);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    line-height: 1.5;
}

/* =========================================================================
   Header & Navigation
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header.is-scrolled {
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: 0.15em;
}

.global-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.global-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.global-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff; /* デフォルトは白 */
    position: relative;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6); /* 背景に負けないように影をつける */
}

.header.is-scrolled .global-nav a {
    color: var(--color-text-main); /* スクロール時は元の色 */
    text-shadow: none;
}

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.global-nav ul a:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 24px;
    border: 1px solid var(--color-primary);
    border-radius: 30px;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.btn-nav:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* どんぶらこ看板画像を背景に設定し、少し暗くする（透明度を下げて見やすく） */
    background: linear-gradient(135deg, rgba(60, 75, 53, 0.65) 0%, rgba(90, 60, 40, 0.65) 100%), 
                url('../images/どんぶらこ看板.JPG.jpeg') center/cover no-repeat;
    background-color: var(--color-primary); /* フォールバック */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    margin-top: 35vh; /* 文字をさらに下にずらす */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700; /* もっと太い字に変更 */
    line-height: 1.6;
    /* 白抜き（文字の中身が白、縁が黒）の表現 */
    color: #fff;
    text-shadow: 
        0px 0px 10px rgba(0, 0, 0, 0.9),
        0px 2px 20px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.8); /* 縁取りも少し太くして視認性アップ */
}

.title-line {
    display: block;
    margin-bottom: 10px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.8;
}

.scroll-down::after {
    content: '';
    width: 1px;
    height: 60px;
    background-color: #fff;
    animation: scrollLine 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: top;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================================
   Greeting Section
   ========================================================================= */
.greeting-box {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
}

.greeting-box p {
    margin-bottom: 2rem;
}

.highlight-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-top: 3rem;
    display: inline-block;
    border-bottom: 2px solid var(--color-accent-light);
    padding-bottom: 10px;
}

/* =========================================================================
   Philosophy (5 Learnings)
   ========================================================================= */
/* 「どんぶらこと流れてみませんか」と次のセクションの間の余白を半分に縮める */
.greeting.wrapper { padding-bottom: 50px; }
.philosophy .wrapper { padding-top: 50px; }

.philosophy {
    padding-bottom: 100px;
}

.large-message {
    font-size: 1.6rem;
    line-height: 2;
    text-align: center;
    margin-bottom: 80px;
    color: var(--color-text-main);
}

.message-small {
    display: inline-block;
    font-size: clamp(1.05rem, 4.2vw, 1.6rem); /* スマホでは一行に収まるように小さく、PCでは1.6remに */
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.learning-card {
    background-color: var(--color-bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.learning-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-bg-body);
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid var(--color-primary);
}

.learning-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-primary-dark);
}

.learning-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* =========================================================================
   Story Section
   ========================================================================= */
.story-lead {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.story-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.story-item.reverse {
    flex-direction: row-reverse;
}

.story-image {
    flex: 1;
    height: 300px;
    border-radius: var(--border-radius);
    background-color: #ddd; /* 仮背景色 */
    background-size: cover;
    background-position: center;
    box-shadow: var(--box-shadow);
}

/* 一時的にグラデーションを配置。後で画像を生成して埋め込む想定 */
.img-morning { background: linear-gradient(45deg, #e6efe8, #c1d9c6); }
.img-noon { background: linear-gradient(45deg, #f5eadd, #e3c4a8); }
.img-afternoon { background: linear-gradient(45deg, #eae8e1, #c8c2b5); }

.story-text {
    flex: 1;
}

.story-text h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--color-primary-dark);
}

.time {
    display: inline-block;
    font-size: 0.8rem;
    background: var(--color-accent-light);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

/* =========================================================================
   Program Section
   ========================================================================= */
.program-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.season-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.season-card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.season-header {
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.season-header.spring { background-color: var(--color-spring); }
.season-header.summer { background-color: var(--color-summer); }
.season-header.autumn { background-color: var(--color-autumn); }
.season-header.winter { background-color: var(--color-winter); }

.season-body {
    padding: 30px;
}

.season-body h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.season-body p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* =========================================================================
   FAQ (Accordion)
   ========================================================================= */
.accordion {
    max-width: 700px;
    margin: 0 auto;
}

.qa-block {
    background-color: var(--color-bg-card);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.qa-block summary {
    padding: 24px;
    cursor: pointer;
    position: relative;
    list-style: none; /* デフォルトの矢印を消す */
}

.qa-block summary::-webkit-details-marker {
    display: none;
}

.qa-block summary h4 {
    font-size: 1.1rem;
    padding-right: 30px;
    color: var(--color-text-main);
}

.qa-block .icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
}

.qa-block .icon::before,
.qa-block .icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-accent);
    transition: transform 0.3s ease;
}

.qa-block .icon::before {
    width: 14px;
    height: 2px;
    top: 6px;
    left: 0;
}

.qa-block .icon::after {
    width: 2px;
    height: 14px;
    top: 0;
    left: 6px;
}

.qa-block[open] .icon::after {
    transform: rotate(90deg) scaleY(0);
}

.qa-content {
    padding: 0 24px 24px;
    font-size: 0.95rem;
    color: var(--color-text-light);
    border-top: 1px dashed #eaeaea;
    margin-top: 10px;
    padding-top: 20px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   Contact Section
   ========================================================================= */
.contact-box {
    text-align: center;
    background-color: var(--color-bg-card);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 5px solid var(--color-primary);
}

.contact-title {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.contact-lead {
    font-size: clamp(0.9rem, 4.3vw, 1rem); /* スマホで「～古民家で」が1行に収まるように */
    line-height: 1.8;
}

.contact-actions {
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 20px 60px;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(163, 117, 78, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary:hover {
    box-shadow: 0 15px 25px rgba(163, 117, 78, 0.4);
    transform: translateY(-2px);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: #2c2c2c;
    color: #fff;
    text-align: center;
}

.footer-inner {
    padding: 80px 20px;
}

.footer-logo {
    font-family: var(--font-yuji);
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    line-height: 1.3;
}

.logo-sub {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 0;
    letter-spacing: 0.2em;
}

.footer-address {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 40px;
}

.copyright {
    font-size: 0.8rem;
    color: #888;
}

/* =========================================================================
   Animations (Scroll Reveal)
   ========================================================================= */
.js-fadein,
.js-fadein-up {
    opacity: 0;
    visibility: hidden;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.js-fadein-up {
    transform: translateY(40px);
}

.js-fadein.is-visible,
.js-fadein-up.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================================================
   Media Queries (Responsive)
   ========================================================================= */
@media screen and (max-width: 768px) {
    .header-inner { padding: 0 20px; }
    .global-nav ul { display: none; } /* スマホ時はメニューを隠す（ハンバーガー推奨だが今回はシンプルに） */

    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.4rem; }

    .story-item, .story-item.reverse {
        flex-direction: column;
        gap: 20px;
    }

    .story-image { width: 100%; height: 200px; }

    .season-grid { grid-template-columns: 1fr; }

    .contact-box { padding: 40px 20px; }
}

/* =========================================================================
   Trial Page (LP) Styles
   ========================================================================= */
.page-trial .trial-hero { min-height: 500px; height: 75vh; }
.page-trial .hero-content { margin-top: 15vh; } /* テキストを看板より上に配置 */
.trial-hero-sub { font-size: 1.2rem; font-family: var(--font-yuji); margin-bottom: 20px; letter-spacing: 0.2em; font-weight: bold; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.trial-hero-title { font-size: 3rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.8); } /* 太字に変更 */
.trial-date-badge {
    margin-top: 25px; /* 元に戻す（余白を調整して画像内に収める） */
    display: inline-block; padding: 15px 40px; 
    background-color: var(--color-primary); color: #fff; border-radius: 50px; text-shadow: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media screen and (min-width: 769px) {
    .page-trial .hero-content {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: center;
        align-items: center;
        gap: 0 30px;
        margin-top: 0vh; /* PC版：さらに1cmほど上に上げるためにマージンを減らす */
    }
    .trial-hero-sub { margin-bottom: 0; font-size: 1.4rem; grid-column: 1 / 2; grid-row: 1 / 2; }
    .trial-date-badge { margin-top: 0; padding: 10px 30px; grid-column: 2 / 3; grid-row: 1 / 2; }
    .trial-hero-title { grid-column: 1 / 3; grid-row: 2 / 3; margin-top: 20px; }
}

.trial-date-badge .month, .trial-date-badge .day { font-size: 2.2rem; font-weight: bold; }
.trial-date-badge .dow { font-size: 1.2rem; }
.poem-text { font-family: var(--font-yuji); font-size: 1.3rem; line-height: 2.5; text-align: center; color: var(--color-text-main); border: none; }
.trial-program { padding: 100px 0; }
.trial-flow { max-width: 700px; margin: 0 auto; }
.flow-item {
    display: flex; gap: 30px; margin-bottom: 30px; background: var(--color-bg-card);
    padding: 40px; border-radius: var(--border-radius); box-shadow: var(--box-shadow);
}
.flow-icon {
    width: 60px; height: 60px; flex-shrink: 0; background-color: var(--color-accent); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-yuji); font-size: 1.3rem;
}
.flow-text h3 { font-size: 1.4rem; color: var(--color-primary-dark); margin-bottom: 15px; }
.flow-text p { color: var(--color-text-light); line-height: 1.8; }
.flow-message { text-align: center; margin-top: 60px; font-family: var(--font-yuji); font-size: 1.3rem; line-height: 2.2; }
.info-table { max-width: 600px; margin: 0 auto 60px; border-top: 2px solid var(--color-primary); }
.info-table dl { display: flex; border-bottom: 1px solid #eaeaea; padding: 20px 0; }
.info-table dt { width: 120px; font-weight: 600; color: var(--color-primary-dark); }
.info-table dd { flex: 1; color: var(--color-text-main); }

/* =========================================================================
   Flyer Page (A4 Print) Styles
   ========================================================================= */
.page-flyer { background-color: #d5d5d5; display: flex; justify-content: center; padding: 40px 20px; font-family: var(--font-serif); }
.flyer-container {
    background-color: #faf5ef; width: 210mm; min-height: 297mm; box-sizing: border-box; padding: 15mm 20mm;
    box-shadow: 0 0 20px rgba(0,0,0,0.2); position: relative; color: var(--color-text-main); z-index: 1;
}
.flyer-header { text-align: center; margin-bottom: 12mm; }
.flyer-logo { font-family: var(--font-yuji); font-size: 18px; color: var(--color-text-light); margin-bottom: 5mm; letter-spacing: 0.1em; }
.flyer-title { 
    font-size: 24px; color: #fff; background-color: var(--color-primary-dark); 
    display: inline-block; padding: 3mm 10mm; border-radius: 30px; 
    box-shadow: 0 3px 6px rgba(0,0,0,0.15); margin: 0;
}
.flyer-poem { text-align: center; font-family: var(--font-yuji); font-size: 16px; line-height: 1.8; margin-bottom: 8mm; margin-top: 5mm; }
.flyer-program { display: flex; flex-direction: column; gap: 4mm; margin-bottom: 5mm; }
.flyer-program .program-item { padding: 2.5mm 6mm; border-radius: 12px; box-shadow: none; border: 2px dashed rgba(0,0,0,0.05); }
.flyer-program .program-item:nth-child(1) { background-color: #fff4e6; border-color: #fcd5a1; } /* 午前：温かいオレンジ系 */
.flyer-program .program-item:nth-child(2) { background-color: #eef5ea; border-color: #b5d5aa; } /* 午後：爽やかなグリーン系 */
.flyer-program h3 { font-size: 17px; color: var(--color-primary); margin-bottom: 1mm; margin-top: 0; }
.flyer-program p { margin: 0; font-size: 14px; }
.flyer-message { text-align: center; font-family: var(--font-yuji); font-size: 16px; line-height: 1.8; margin-bottom: 4mm; font-weight: bold; }
.flyer-footer { display: flex; justify-content: space-between; border-top: 2px solid var(--color-primary); padding-top: 3mm; margin-top: auto; }
.flyer-info h3 { font-size: 16px; color: var(--color-primary-dark); margin-bottom: 2mm; margin-top: 0; }
.flyer-info dl { display: flex; flex-wrap: wrap; width: 95mm; font-size: 13px; margin: 0; padding: 0; letter-spacing: 0.02em; }
.flyer-info dt { width: 18%; font-weight: bold; margin-bottom: 1.5mm; }
.flyer-info dd { width: 82%; margin-bottom: 1.5mm; color: var(--color-text-main); }
.flyer-contact { width: 72mm; text-align: center; font-size: 12.5px; border: 2px solid var(--color-primary-dark); padding: 2mm; border-radius: 8px; box-sizing: border-box; background-color: rgba(242, 236, 228, 0.4); }
.flyer-contact .contact-label { white-space: nowrap; font-size: 14px; font-weight: bold; margin-bottom: 2mm; color: var(--color-primary-dark); }
.flyer-contact .school-name { font-family: var(--font-yuji); font-size: 18px; font-weight: bold; margin: 2mm 0; }
.flyer-contact .email { font-size: 16px; font-weight: bold; margin: 3mm 0 0 0; }
.search-box { display: inline-block; border: 1px solid var(--color-text-main); padding: 5px 15px; margin-top: 3mm; border-radius: 20px; font-weight: bold; color: var(--color-text-main); text-decoration: none; cursor: pointer; }
.search-box span { color: #4285f4; margin-left: 10px; }

@media print {
    .page-flyer { background-color: transparent; padding: 0; }
    .flyer-container { box-shadow: none; width: 100%; height: 100%; padding: 15mm 20mm; margin: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    @page { size: A4 portrait; margin: 0; }
}
@media screen and (max-width: 768px) {
    .trial-hero-title { font-size: 2rem; }
    .trial-hero { height: auto; padding: 120px 20px; }
    .page-flyer { padding: 10px; }
    .flyer-container { width: 100%; min-height: auto; padding: 20px; }
    .flyer-footer { flex-direction: column; gap: 20px; }
    .flyer-info dl { width: 100%; }
    .flyer-contact { width: 100%; text-align: left; }
}