/*
   TERACO.LABO「あたたか寺子屋」共通デザインシステム（サブページ用）
   index.html のトップページと同じトークン・トンマナをサブページ全体に展開する。
   各サブページはこのファイル＋ページ固有の少量スタイルのみで完結させる。
*/

/* =========================================================
   DESIGN TOKENS
========================================================= */
:root {
    --cream:        #faf7f1;
    --white:        #ffffff;
    --band:         #f2ecdf;
    --forest:       #3f6b4f;
    --forest-dark:  #325a41;
    --deep:         #2e3b33;
    --tl-text:      #2b2823;
    --body-text:    #5a554c;
    --tl-muted:     #8a8272;
    --nav-text:     #3a3630;
    --tl-border:    #eae4d8;
    --chip-border:  #e0d8c8;
    --band-sep:     #dcd3bf;
    --footer-sub:   #c4cec7;
    --line-green:   #06c755;

    --shadow-card:       0 2px 10px rgba(60,50,30,.07);
    --shadow-card-hover: 0 10px 30px rgba(60,50,30,.12);

    --font-serif: 'Shippori Mincho', serif;
    --font-sans:  'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', system-ui, sans-serif;

    --ease: cubic-bezier(.22,.61,.36,1);
    --header-h: 76px;
}

/* =========================================================
   RESET & BASE
========================================================= */
html { scroll-behavior: smooth; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    font-size: 16px; line-height: 1.8;
    color: var(--tl-text);
    background: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    z-index: 10000; padding: 0.75rem 1.5rem;
    background: var(--forest); color: var(--white); font-weight: 700;
    text-decoration: none; border-radius: 10px;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--white); outline-offset: 2px; }

/* =========================================================
   HEADER / NAV（index.html と共通）
========================================================= */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--cream);
    border-bottom: 1px solid var(--tl-border);
}
nav .container {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}
.logo a { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; }

.nav-wrap { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu { display: flex; list-style: none; gap: 1.5rem; align-items: center; margin: 0; padding: 0; }
.nav-menu a {
    text-decoration: none; color: var(--nav-text);
    font-weight: 700; font-size: 0.92rem;
    white-space: nowrap; transition: color 0.2s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--forest); }

.nav-line-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--line-green); color: var(--white) !important;
    padding: 0.68rem 1.3rem; border-radius: 99px;
    font-weight: 700; font-size: 0.9rem; text-decoration: none;
    white-space: nowrap; transition: filter 0.2s ease, transform 0.2s var(--ease);
}
.nav-line-btn:hover { filter: brightness(1.06); transform: translateY(-2px); }

.mobile-menu-toggle {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer;
    padding: 6px; width: 44px; height: 44px; border-radius: 10px;
}
.mobile-menu-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--nav-text); border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.25s ease;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =========================================================
   ページヒーロー（サブページ共通の title band）
========================================================= */
.page-hero {
    margin-top: var(--header-h);
    padding: 56px 0 0;
    background: var(--cream);
}
.page-hero-photo {
    width: 100%; height: 260px; object-fit: cover;
    border-radius: 16px; margin-bottom: 28px;
}
.page-hero-inner { text-align: center; max-width: 680px; margin: 0 auto; padding-bottom: 40px; }
.page-eyebrow { font-family: var(--font-serif); font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--forest); margin-bottom: 10px; }
.page-title { font-family: var(--font-serif); font-size: 34px; font-weight: 700; color: var(--tl-text); margin-bottom: 14px; }
.page-lead { font-size: 15px; line-height: 1.9; color: var(--body-text); }

/* =========================================================
   SECTION 共通
========================================================= */
.tl-section { padding: 60px 0; scroll-margin-top: var(--header-h); }
.tl-section.bg-white { background: var(--white); }
.tl-section.bg-band { background: var(--band); }
.tl-head { text-align: center; margin-bottom: 34px; }
.tl-title { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--tl-text); }
.tl-desc { font-size: 14px; color: var(--tl-muted); margin-top: 8px; }

/* =========================================================
   特徴・講座内容カード
========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature-card2 {
    background: var(--white); border: 1px solid var(--tl-border); border-radius: 14px;
    padding: 26px 24px; box-shadow: var(--shadow-card);
}
.feature-card2 h4 { font-size: 16px; font-weight: 700; color: var(--forest); margin-bottom: 12px; }
.feature-card2 ul { list-style: none; }
.feature-card2 li {
    padding: 7px 0; border-bottom: 1px solid var(--tl-border);
    font-size: 13.5px; color: var(--body-text);
}
.feature-card2 li:last-child { border-bottom: none; }
.feature-card2 li::before { content: "・"; color: var(--forest); font-weight: 700; margin-right: 2px; }

/* =========================================================
   料金プラン
========================================================= */
.pricing-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.price-card {
    background: var(--white); border: 1.5px solid var(--tl-border); border-radius: 14px;
    padding: 26px 22px; text-align: center; box-shadow: var(--shadow-card);
    display: flex; flex-direction: column; transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.price-card h4 { font-size: 16px; font-weight: 700; color: var(--tl-text); margin-bottom: 10px; }
.price-card .price-amount { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--forest); margin-bottom: 8px; }
.price-card .price-detail { font-size: 12.5px; color: var(--tl-muted); line-height: 1.7; margin-bottom: 18px; flex: 1; }
.price-note {
    margin-top: 24px; padding: 16px 20px; background: var(--cream);
    border: 1px solid var(--tl-border); border-radius: 10px;
    font-size: 13px; color: var(--body-text); line-height: 1.8; text-align: left;
}

/* シンプル料金表（外部講師など） */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.price-table th, .price-table td { padding: 14px 20px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--tl-border); }
.price-table th { background: var(--band); color: var(--tl-text); font-weight: 700; }
.price-table td { color: var(--body-text); }
.price-table tr:last-child td { border-bottom: none; }

/* テキストのみの特徴カード（外部講師・映像制作など） */
.text-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.text-card {
    background: var(--white); border: 1px solid var(--tl-border); border-radius: 14px;
    padding: 26px 24px; box-shadow: var(--shadow-card); text-align: center;
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.text-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.text-card h4 { font-size: 16px; font-weight: 700; color: var(--forest); margin-bottom: 10px; }
.text-card p { font-size: 13px; color: var(--body-text); line-height: 1.75; }

/* 動画・実績ギャラリー */
.video-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.video-gallery-item { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); background: var(--white); }
.video-gallery-item iframe { width: 100%; height: 200px; border: none; display: block; }

/* シンプル価格帯（レンタルスペースなど） */
.simple-price-band {
    background: var(--white); border: 1.5px solid var(--tl-border); border-radius: 14px;
    padding: 28px; text-align: center; box-shadow: var(--shadow-card);
}
.simple-price-band .amount { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--forest); }
.simple-price-band .unit { font-size: 14px; color: var(--body-text); margin-left: 6px; }

/* 注意事項ボックス */
.notice-box {
    margin: 8px 0 0; padding: 22px 26px; background: var(--white);
    border: 1px solid var(--tl-border); border-left: 4px solid var(--forest);
    border-radius: 10px;
}
.notice-box h4 { font-size: 14.5px; font-weight: 700; color: var(--tl-text); margin-bottom: 10px; }
.notice-box ul { list-style: none; }
.notice-box li { font-size: 13px; color: var(--body-text); line-height: 1.85; }

/* =========================================================
   お問い合わせフォーム（contact.html）
========================================================= */
.form-container { max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 26px; }
.form-label { display: block; font-weight: 700; color: var(--tl-text); margin-bottom: 8px; font-size: 14px; }
.required { color: #c0504d; margin-left: 4px; }

.form-input, .form-select, .form-textarea {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--tl-border);
    border-radius: 10px; font-size: 14.5px; font-family: var(--font-sans);
    background: var(--white); color: var(--tl-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(63,107,79,.12);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.service-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 6px; }
.service-option {
    padding: 16px; border: 1.5px solid var(--tl-border); border-radius: 12px;
    cursor: pointer; transition: all 0.2s ease; text-align: center; background: var(--white);
}
.service-option:hover { border-color: var(--forest); }
.service-option.selected { border-color: var(--forest); background: var(--cream); }
.service-option input[type="radio"] { display: none; }
.service-name { font-weight: 700; color: var(--tl-text); margin-bottom: 4px; font-size: 14px; }
.service-description { font-size: 12px; color: var(--tl-muted); }

.service-details {
    display: none; margin-top: 18px; padding: 20px; background: var(--cream);
    border-radius: 12px; border-left: 4px solid var(--forest);
}
.service-details.active { display: block; animation: fadeInDown 0.3s ease-in-out; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.service-details h4 { color: var(--forest); margin-bottom: 14px; font-size: 15px; }
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.detail-group { margin-bottom: 14px; }
.detail-label { display: block; font-weight: 700; color: var(--tl-text); margin-bottom: 6px; font-size: 12.5px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body-text); }

.submit-button {
    background: var(--forest); color: var(--white); padding: 15px 40px;
    border: none; border-radius: 99px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; display: block; margin: 34px auto 0; min-width: 220px;
    font-family: var(--font-sans);
}
.submit-button:hover { background: var(--forest-dark); transform: translateY(-2px); }
.submit-button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.success-message, .error-message {
    padding: 16px; border-radius: 10px; margin: 18px 0; text-align: center; font-weight: 600; font-size: 13.5px;
}
.success-message { background: #eaf3ec; color: var(--forest-dark); border: 1px solid #cfe3d5; }
.error-message { background: #fbeaea; color: #a94442; border: 1px solid #f0c8c8; }

.call-footer {
    margin-top: 22px; text-align: center; background: var(--band);
    border-radius: 14px; padding: 18px;
}
.call-footer p:first-child { color: var(--body-text); margin-bottom: 4px; font-size: 13px; }
.call-footer a { color: var(--forest); text-decoration: none; font-weight: 700; font-size: 1.15rem; }

/* =========================================================
   お客様の声
========================================================= */
.voice-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.voice-card2 {
    background: var(--white); border-radius: 14px; padding: 22px 24px;
    box-shadow: 0 2px 10px rgba(60,50,30,.06); display: flex; flex-direction: column; gap: 8px;
}
.voice-card2 .stars { color: #d4a24c; font-size: 13px; letter-spacing: 1px; }
.voice-card2 .voice-text2 { font-size: 13px; line-height: 1.85; color: var(--nav-text); flex: 1; }
.voice-card2 .voice-meta2 { font-size: 12px; color: var(--tl-muted); }

/* =========================================================
   ギャラリー（実績など）
========================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery-item { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.3s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { padding: 12px 16px; background: var(--white); font-size: 13px; color: var(--body-text); }

/* =========================================================
   お問い合わせセクション
========================================================= */
.contact-band {
    background: var(--band); border-radius: 16px; padding: 40px 32px;
    text-align: center;
}
.contact-band h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--tl-text); margin-bottom: 12px; }
.contact-band p { font-size: 13.5px; color: var(--body-text); line-height: 1.8; margin-bottom: 24px; }
.contact-actions2 { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.btn-forest, .btn-line-solid, .btn-outline-forest {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 26px; border-radius: 99px;
    font-size: 14.5px; font-weight: 700; text-decoration: none;
    min-height: 48px; border: none;
    transition: transform 0.22s var(--ease), box-shadow 0.22s ease, filter 0.2s ease, background 0.2s ease;
}
.btn-forest { background: var(--forest); color: var(--white) !important; box-shadow: 0 4px 18px rgba(63,107,79,.25); }
.btn-forest:hover { background: var(--forest-dark); transform: translateY(-3px); }
.btn-line-solid { background: var(--line-green); color: var(--white) !important; box-shadow: 0 4px 18px rgba(6,199,85,.25); }
.btn-line-solid:hover { filter: brightness(1.05); transform: translateY(-3px); }
.btn-outline-forest { background: transparent; color: var(--forest) !important; border: 1.5px solid var(--forest); }
.btn-outline-forest:hover { background: var(--forest); color: var(--white) !important; transform: translateY(-3px); }

.contact-qr-small { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; }
.contact-qr-small img { width: 96px; height: 96px; border-radius: 10px; background: var(--white); padding: 6px; border: 1px solid var(--tl-border); }
.contact-qr-small span { font-size: 12px; color: var(--tl-muted); }

.contact-info2 { font-size: 12.5px; color: var(--tl-muted); line-height: 1.9; }
.contact-info2 a { color: var(--tl-muted); text-decoration: none; }
.contact-info2 a:hover { color: var(--forest); text-decoration: underline; }

.back-to-top { text-align: center; padding: 32px 0 8px; }
.back-to-top a {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--tl-muted); text-decoration: none; font-size: 13.5px; font-weight: 700;
    transition: color 0.2s ease;
}
.back-to-top a:hover { color: var(--forest); }

/* =========================================================
   アクセス + フッター（index.html と共通）
========================================================= */
footer.access-footer {
    background: var(--deep); color: var(--white); padding: 52px 0 0;
}
.access-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.access-heading { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.access-info { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.8; color: var(--footer-sub); margin-bottom: 18px; }
.access-info a { color: var(--footer-sub); text-decoration: none; }
.access-info a:hover { color: var(--white); text-decoration: underline; }
.access-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-line-footer {
    background: var(--line-green); color: var(--white) !important; text-decoration: none;
    padding: 14px 26px; border-radius: 99px; font-size: 15px; font-weight: 700;
    transition: filter 0.2s ease, transform 0.2s var(--ease);
}
.btn-line-footer:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-outline-footer {
    border: 1.5px solid rgba(255,255,255,.5); color: var(--white) !important; text-decoration: none;
    padding: 14px 26px; border-radius: 99px; font-size: 15px; font-weight: 700;
    transition: background 0.2s ease, transform 0.2s var(--ease);
}
.btn-outline-footer:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

.access-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.access-qr img { width: 110px; height: 110px; border-radius: 10px; background: var(--white); padding: 8px; }
.access-qr span { font-size: 12px; color: var(--footer-sub); }

.footer-bottom {
    margin-top: 36px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.15);
    display: flex; justify-content: center; align-items: center;
    font-size: 12px; color: #9aa89e; position: relative;
}
.footer-library-link {
    position: absolute; right: 0; font-size: 12px;
    color: rgba(255,255,255,.35); text-decoration: none; transition: color 0.25s ease;
}
.footer-library-link:hover, .footer-library-link:focus-visible { color: rgba(255,255,255,.75); }

/* =========================================================
   スティッキーモバイルCTAバー
========================================================= */
.sticky-cta { display: none; }

/* =========================================================
   スクロールリビール
========================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   レスポンシブ（スマホ）
========================================================= */
@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .container { padding: 0 18px; }

    .nav-wrap .nav-menu { display: none; }
    .nav-wrap {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: var(--cream); flex-direction: column; align-items: stretch;
        padding: 0.5rem 1.1rem 1.1rem; gap: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
        border-bottom: 1px solid var(--tl-border);
        z-index: 998; display: none;
    }
    .nav-wrap.active { display: flex; }
    .nav-wrap .nav-menu { display: flex; flex-direction: column; gap: 0; width: 100%; }
    .nav-wrap .nav-menu li { width: 100%; border-top: 1px solid var(--tl-border); }
    .nav-wrap .nav-menu a { display: block; padding: 0.95rem 0.2rem; font-size: 1rem; min-height: 48px; display: flex; align-items: center; }
    .nav-wrap .nav-line-btn { margin-top: 0.85rem; width: 100%; }
    .mobile-menu-toggle { display: flex; }

    .page-hero { padding: 32px 0 0; }
    .page-hero-photo { height: 190px; }
    .page-title { font-size: 26px; }

    .tl-section { padding: 44px 0; }
    .tl-title { font-size: 21px; }

    .access-grid { grid-template-columns: 1fr; text-align: center; }
    .access-info { align-items: center; }
    .access-actions { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .footer-library-link { position: static; }

    .contact-actions2 { flex-direction: column; align-items: stretch; }
    .contact-actions2 a { width: 100%; }

    .sticky-cta {
        display: flex;
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
        background: var(--white);
        border-top: 1px solid var(--tl-border);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
    }
    .sticky-btn {
        flex: 1; display: flex; align-items: center; justify-content: center;
        gap: 0.4rem; padding: 0; height: 58px;
        text-decoration: none; font-weight: 700; font-size: 0.92rem;
    }
    .sticky-btn-phone { color: var(--forest); border-right: 1px solid var(--tl-border); }
    .sticky-btn-line  { color: var(--line-green); }
    body { padding-bottom: 58px; }
}
