/* ==========================================================================
   むらも農園 - 共通スタイルシート
   ========================================================================== */

/* --------------------------------------------------------------------------
   リセット & CSS変数
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #1e2435;
    --bg-card: #282f42;
    --bg-card-light: #2d3548;
    --text-primary: #c8c8cd;
    --text-secondary: #8a8d9a;
    --accent: #e8c547;
    --accent-bright: #c9a83a;
    --accent-dim: rgba(232, 197, 71, 0.12);
    --border: #363d54;
}

/* --------------------------------------------------------------------------
   ベーススタイル
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.9;
    font-weight: 300;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   ナビゲーション
   -------------------------------------------------------------------------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.1em;
    margin-bottom: 48px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent);
}

.back-link::before {
    content: '←';
}

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */
header {
    margin-bottom: 80px;
}

.site-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 500;
    letter-spacing: 0.25em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.site-subtitle {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    font-weight: 400;
}

/* 下層ページ用ヘッダー */
.page-header {
    margin-bottom: 60px;
}

.page-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.page-lead {
    font-size: 0.95rem;
    color: var(--accent);
    line-height: 1.8;
}

.page-hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 32px;
    object-fit: cover;
}

/* 画像とキャプション */
.image-with-caption {
    margin: 40px 0;
    text-align: center;
}

.image-with-caption img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-with-caption figcaption {
    margin-top: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   セクション共通
   -------------------------------------------------------------------------- */
section,
.section {
    margin-bottom: 64px;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-label--sub {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.section-header--sub {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 32px;
}

.section-header--sub .section-label--sub {
    margin-bottom: 0;
}

.section-header--sub .section-title--sub {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* 下層ページ用セクションタイトル */
.section-title--sub {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
    color: var(--text-primary);
    line-height: 1.6;
    text-transform: none;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.section-body {
    font-size: 0.95rem;
    line-height: 2;
}

.section-body p {
    margin-bottom: 24px;
}

.section-body p:last-child {
    margin-bottom: 0;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.section-catchphrase {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.social-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 28px;
    margin-top: 24px;
}

.social-card .social-icons {
    flex-direction: column;
    gap: 12px;
}

.social-details {
    display: flex;
    flex-direction: column;
}

.social-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.social-row:hover {
    opacity: 0.7;
}

.social-row svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.social-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100px;
    flex-shrink: 0;
}

.social-label {
    color: var(--text-secondary);
}

.social-value {
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   テキストスタイル
   -------------------------------------------------------------------------- */

/* マーカー（蛍光ペン風） */
.marker {
    background: linear-gradient(transparent 70%, rgba(232, 197, 71, 0.25) 70%);
    font-size: 1.05em;
    padding: 0 0.15em;
}

/* テキストリンク */
.text-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    transition: opacity 0.3s ease;
}

.text-link:hover {
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   ハイライトボックス
   -------------------------------------------------------------------------- */
.highlight-box {
    padding: 20px 24px;
    background-color: var(--accent-dim);
    border-left: 3px solid var(--accent);
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* 軽めの注目テキスト */
.attention-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--accent);
    margin: 24px 0;
    margin-left: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(transparent 60%, rgba(232, 197, 71, 0.15) 60%);
    width: fit-content;
    padding-right: 0.3em;
}

.attention-text::before {
    content: "☝";
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   目次
   -------------------------------------------------------------------------- */
.toc {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 28px 32px;
    margin-top: 40px;
    margin-bottom: 64px;
}

.toc-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

/* 折りたたみ目次 */
.toc--collapsible {
    position: relative;
}

.toc--collapsible .toc-list {
    max-height: 280px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toc--collapsible::after {
    content: "";
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.toc-toggle {
    display: none;
}

.toc-more {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    background: var(--bg-card);
}

.toc-more::after {
    content: "もっと見る ▼";
}

.toc-more:hover {
    color: var(--accent);
}

.toc-toggle:checked ~ .toc-list {
    max-height: 600px;
}

.toc-toggle:checked ~ .toc-more::after {
    content: "閉じる ▲";
}

.toc--collapsible:has(.toc-toggle:checked)::after {
    opacity: 0;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.toc-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.toc-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: var(--accent);
}

.toc-list .num {
    font-size: 0.75rem;
    color: var(--text-secondary);
    width: 20px;
}

.toc-sublist {
    list-style: none;
    margin-top: 8px;
    padding-left: 20px;
}

.toc-sublist li {
    padding: 6px 0;
    border-bottom: none;
}

.toc-sublist li:last-child {
    padding-bottom: 0;
}

.toc-sublist a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toc-sublist a:hover {
    color: var(--accent);
}

.toc-sublist .num {
    font-size: 0.7rem;
    width: 28px;
}

/* --------------------------------------------------------------------------
   アクティビティリスト（トップページ）
   -------------------------------------------------------------------------- */
.activity-list {
    list-style: none;
}

.activity-item {
    padding: 20px 0;
    margin-bottom: 8px;
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(10px);
}

a.activity-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.activity-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.activity-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   書籍セクション
   -------------------------------------------------------------------------- */
.book {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.book:hover {
    opacity: 0.8;
}

.book-cover {
    width: 100px;
    height: 140px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: cover;
}

.book-info {
    flex: 1;
}

.book-title {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Aboutセクション
   -------------------------------------------------------------------------- */
.about {
    display: flex;
    align-items: center;
    gap: 32px;
}

.about-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.about-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 8px;
}

.about-text p:first-child {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   スケジュールカード
   -------------------------------------------------------------------------- */
.schedule-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 16px;
    margin-top: 24px;
}

.schedule-card + .schedule-card {
    margin-top: 0;
}

.schedule-card:last-of-type {
    margin-bottom: 0;
}

.schedule-header {
    margin-bottom: 16px;
}

.schedule-venue {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.schedule-details {
    margin-bottom: 0;
}

.schedule-row {
    display: flex;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.schedule-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.schedule-label {
    color: var(--text-secondary);
    width: 80px;
    flex-shrink: 0;
}

.schedule-value {
    color: var(--text-primary);
    flex: 1;
}

/* --------------------------------------------------------------------------
   データカード
   -------------------------------------------------------------------------- */
.data-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
    border: 1px solid var(--border);
}

.data-card-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

.data-card-value {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.data-card-value span {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.data-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.data-card-image {
    max-width: 100%;
    width: 280px;
    height: auto;
    margin-top: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.data-card-image:hover {
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   ライトボックス
   -------------------------------------------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   リスト
   -------------------------------------------------------------------------- */
.point-list {
    list-style: none;
    margin: 24px 0;
}

.point-list li {
    padding: 6px 0 6px 0;
    position: relative;
}

.point-list li::before {
    content: "・";
    margin-right: 4px;
}

/* --------------------------------------------------------------------------
   動画コンテナ
   -------------------------------------------------------------------------- */
.video-container {
    margin: 48px 0;
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe {
    aspect-ratio: 16/9;
    height: auto;
}

/* --------------------------------------------------------------------------
   サブセクション見出し
   -------------------------------------------------------------------------- */
.subsection-title {
    font-size: 1.1em;
    font-weight: 500;
    color: #888;
    margin: 2em 0 1.5em;
    display: flex;
    align-items: baseline;
    gap: 1em;
}

.subsection-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-item {
    margin-top: 2em;
}

.faq-item:first-child {
    margin-top: 0;
}

.faq-question {
    font-size: 1.1em;
}

/* --------------------------------------------------------------------------
   参考文献
   -------------------------------------------------------------------------- */
.book-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.book-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 150px;
    transition: opacity 0.3s ease;
}

.book-card:hover {
    opacity: 0.8;
}

.book-card-image {
    width: 120px;
    height: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 0.5em;
}

.book-card-title {
    font-size: 0.9em;
    text-align: center;
}

/* --------------------------------------------------------------------------
   本の目次（イナコメ用）
   -------------------------------------------------------------------------- */
.book-toc {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.book-toc-chapter {
    padding-bottom: 12px;
}

.book-toc-chapter:last-child {
    padding-bottom: 0;
}

.book-toc-chapter-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.book-toc-list {
    list-style: none;
    margin-left: 8px;
}

.book-toc-list li {
    padding: 2px 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.book-toc-list li::before {
    content: "─";
    margin-right: 8px;
    color: var(--text-secondary);
}

.book-toc-column {
    color: var(--text-secondary) !important;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   書籍情報カード（イナコメ用）
   -------------------------------------------------------------------------- */
.book-info-card {
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.book-info-card:hover {
    opacity: 0.8;
}

.book-info-image {
    width: 100px;
    height: auto;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.book-info-detail {
    flex: 1;
}

.book-info-detail p {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .book-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .book-info-image {
        width: 100px;
    }
}

/* --------------------------------------------------------------------------
   セパレーター
   -------------------------------------------------------------------------- */
.separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.separator::before {
    content: "";
    width: 60px;
    height: 1px;
    background-color: var(--border);
}

/* --------------------------------------------------------------------------
   CTA（コールトゥアクション）
   -------------------------------------------------------------------------- */
.cta-section {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    margin: 64px 0;
}

.cta-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 16px 48px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-bright);
    transform: translateY(-2px);
}

.cta-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   マップリンク
   -------------------------------------------------------------------------- */
.map-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.map-link:hover {
    border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   連絡先
   -------------------------------------------------------------------------- */
.contact-info {
    font-size: 1rem;
}

.contact-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--accent);
    width: 40px;
    font-weight: 500;
}

.contact-value {
    color: var(--text-primary);
}

.contact-value a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.contact-value a:hover {
    border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   SNSリンク
   -------------------------------------------------------------------------- */
.social-links {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.social-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--accent);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-link svg {
    flex-shrink: 0;
}

.social-link:hover {
    border-bottom-color: var(--accent);
}

.social-link--muted {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
}

.social-link--muted:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

/* SNSアイコン付きリンク */
.social-icons {
    display: flex;
    gap: 24px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   カレンダー埋め込み
   -------------------------------------------------------------------------- */
.calendar-container {
    overflow: hidden;
}

.calendar-container iframe {
    display: block;
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
footer {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* フッターナビゲーション */
.footer-nav {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .container {
        padding: 60px 20px 40px;
    }

    header {
        margin-bottom: 60px;
    }

    .site-title {
        letter-spacing: 0.18em;
    }

    .page-title {
        letter-spacing: 0.15em;
    }

    section,
    .section {
        margin-bottom: 48px;
    }

    /* 書籍 */
    .book {
        flex-direction: column;
        gap: 16px;
    }

    .book-cover {
        width: 80px;
        height: 112px;
    }

    /* ソーシャル */
    .social-links {
        gap: 20px;
    }

    /* スケジュール */
    .schedule-row {
        flex-direction: column;
        gap: 4px;
    }

    .schedule-label {
        width: 100%;
    }

    /* CTA */
    .cta-section {
        padding: 36px 24px;
    }

    .cta-button {
        padding: 14px 36px;
    }

    /* データカード */
    .data-card {
        padding: 24px;
    }

    .data-card-value {
        font-size: 2rem;
    }
}
