/* ============================================================
   NPO現代座 共通スタイルシート
   全モダンページ（トップ・サブページ）が読み込む共有ベース
   ============================================================ */

/* ----------------------------------------------------------
   1. リセット & CSS変数
   ---------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --main-green:      #339900;
    --main-green-dark: #267300;
    --accent-yellow:   #FC0;
    --bg-outer:        #3b6e91; /* サイト外側（ブルーグレー） */
    --bg-content:      #ffffff;
    --text-dark:       #333;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-outer);
}

a {
    color: #0066cc;
    text-decoration: underline;
}

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

/* ----------------------------------------------------------
   2. ページラッパー（サブページ共通）
   ページ固有CSSで max-width を指定する
   ---------------------------------------------------------- */
.page-wrapper {
    margin: 0 auto;
    background-color: var(--bg-content);
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    min-height: 100vh;
}

/* ----------------------------------------------------------
   3. サイト共通上部バー
   サブページ：ロゴリンク＋スローガンテキストの横並び
   ---------------------------------------------------------- */
.top-slogan {
    background-color: var(--main-green);
    color: #fff;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ロゴ部分（白背景の枠付き） */
.slogan-logo {
    flex-shrink: 0;
    background-color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}
.slogan-logo:hover {
    opacity: 0.8;
    text-decoration: none;
}
.slogan-logo img {
    height: 24px;
    width: auto;
    display: block;
}

/* スローガンテキスト（中央寄せ） */
.slogan-text {
    flex-grow: 1;
    text-align: center;
}

@media (max-width: 600px) {
    .top-slogan {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        text-align: center;
    }
    .slogan-logo {
        margin-right: 0;
    }
}

/* ----------------------------------------------------------
   4. パンくずリスト
   ---------------------------------------------------------- */
.breadcrumb {
    background-color: #e8f5e9;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid #c8e6c9;
    font-weight: bold;
}

.breadcrumb a {
    color: var(--main-green-dark);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    margin: 0 8px;
    color: #888;
}

@media (min-width: 768px) {
    .breadcrumb {
        padding: 12px 30px;
    }
}

/* ----------------------------------------------------------
   5. 見出し（ページ共通基本スタイル）
   ---------------------------------------------------------- */
h2 {
    border-left: 8px solid var(--main-green);
    padding-left: 15px;
    margin: 40px 0 20px;
    font-size: 1.4rem;
}

h3 {
    color: var(--main-green);
    border-bottom: 2px solid var(--main-green);
    display: inline-block;
    margin-bottom: 10px;
}

/* セクションタイトル（黄枠） */
.section-title {
    border: solid var(--accent-yellow) 3px;
    padding: 10px 20px;
    margin-bottom: 30px;
    font-size: 1.5rem;
    background-color: #fffdec;
    border-radius: 4px;
}

/* ----------------------------------------------------------
   6. 共通コンポーネント
   ---------------------------------------------------------- */

/* お知らせ・情報ボックス */
.news-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* 点線区切り */
.dot-line {
    border: none;
    border-top: 2px dotted #ccc;
    margin: 40px 0;
}

/* clearfix */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* 右回り込み画像 */
.img-right {
    margin-bottom: 15px;
    border-radius: 4px;
}
@media (min-width: 600px) {
    .img-right {
        float: right;
        margin-left: 20px;
        max-width: 250px;
    }
}

/* ポスター・チラシ画像（小サイズ） */
.img-right--poster {
    max-width: 200px;
    border: 1px solid #ccc;
}

/* ----------------------------------------------------------
   7. ユーティリティクラス
   ---------------------------------------------------------- */
.text-muted-sm       { font-size: 0.85em; color: #666; }
.text-alert-sm       { font-size: 0.85em; color: #d32f2f; font-weight: bold; }
.icon-inline         { font-size: 16px; vertical-align: middle; }
.book-cover-placeholder { font-size: 0.9rem; color: #555; margin-bottom: 10px; }

/* ----------------------------------------------------------
   8. ボタン類
   ---------------------------------------------------------- */

/* 予約・申込ボタン（赤） */
.btn-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #d32f2f;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}
.btn-form:hover {
    background-color: #b71c1c;
    color: white;
    text-decoration: none;
}

/* 大きめ予約ボタン */
.btn-form--large {
    font-size: 1.2rem;
    padding: 15px 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 詳細ページリンクボタン（緑） */
.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--main-green);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    padding: 13px 28px;
    border-radius: 8px;
    border: 2px solid var(--main-green-dark);
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}
.btn-detail:hover {
    background-color: var(--main-green-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* アクセス・地図ボタン（白地・フッター内） */
.btn-access {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--main-green);
    font-weight: bold;
    box-shadow: 0 4px 0 var(--main-green-dark);
}
.btn-access:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* PDFダウンロードボタン（グレー） */
.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    background: #eee;
    padding: 8px 15px;
    border-radius: 5px;
}
.btn-pdf:hover {
    background: #ddd;
    text-decoration: none;
}

/* ----------------------------------------------------------
   9. フッター
   ---------------------------------------------------------- */
footer {
    background-color: var(--main-green);
    color: #fff;
    padding: 50px 20px;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.address-box p {
    margin: 5px 0;
    line-height: 1.5;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 30px;
    text-align: center;
}
