/* ============================================================
   NPO現代座 トップページ スタイルシート
   ============================================================ */

/* ----------------------------------------------------------
   1. 基本設定
   ---------------------------------------------------------- */
*, *::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: 18px;
    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. レイアウト基盤
   ---------------------------------------------------------- */

/* 最大幅の中央寄せ（全体共通） */
.layout-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* メインコンテナ（サイドバー＋メインの横並び） */
.container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-content);
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
        min-height: 100vh;
    }
}

/* ----------------------------------------------------------
   3. ヘッダー
   ---------------------------------------------------------- */

.top-slogan {
    background-color: var(--main-green);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    max-width: 1100px;
    margin: 0 auto;
}

header {
    background-color: var(--bg-content);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #eee;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 30px 0;
    }
}

.logo img {
    width: 120px;
}

.header-info {
    max-width: 600px;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .logo {
        width: 280px;       /* サイドバー幅に合わせる */
        padding: 0 20px;
        box-sizing: content-box;
        display: flex;
        justify-content: center;
        flex-shrink: 0;
    }

    .header-info {
        flex-grow: 1;
        padding: 0 20px;
        max-width: none;
        margin-top: 0;
    }
}

/* 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;
}

/* ----------------------------------------------------------
   4. サイドバー（ナビゲーション）
   ---------------------------------------------------------- */

aside {
    background-color: #f8faf8;
    padding: 20px;
    border-right: 1px solid #eee;
}

@media (min-width: 768px) {
    aside {
        width: 280px;
        flex-shrink: 0;
    }
}

/* ナビリスト */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    margin-bottom: 15px;
}

/* ナビボタン */
nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--main-green);
    color: #fff;
    border-color: var(--main-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

nav .material-icons {
    margin-right: 12px;
    color: var(--main-green);
    transition: color 0.3s ease;
}

nav a:hover .material-icons {
    color: #fff;
}

/* お問い合わせボタン（強調） */
.nav-inquiry {
    background: #fffdec;
    border-color: var(--accent-yellow);
}

/* サブメニュー */
.submenu {
    padding-left: 0;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.submenu a {
    font-size: 0.9rem;
    padding: 8px 12px;
    border: 1px solid #eee;
    background: rgba(255,255,255,0.8);
}

.submenu a:hover {
    background-color: var(--main-green);
    color: #fff;
}

/* バナー画像リンク */
.banner-link {
    display: block;
    margin-top: 15px;
    transition: transform 0.3s;
}

.banner-link:hover {
    transform: scale(1.02);
}

/* Twitterウィジェット */
.sidebar-twitter {
    margin-top: 30px;
}

/* ----------------------------------------------------------
   5. メインコンテンツ
   ---------------------------------------------------------- */

main {
    padding: 20px;
    flex-grow: 1;
    background-color: var(--bg-content);
}

@media (min-width: 768px) {
    main {
        padding: 40px;
    }
}

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

article {
    margin-bottom: 60px;
}

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;
}

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

.news-box--white {
    margin-top: 20px;
    background-color: #fff;
}

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

/* 右回り込み画像 */
.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;
}

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

/* ----------------------------------------------------------
   6. 公演特別告知ブロック
   ---------------------------------------------------------- */

.special-notice {
    background-color: #fdfbf5;
    padding: 30px;
    border: 3px solid var(--main-green);
    border-radius: 8px;
    margin-bottom: 50px;
}

.special-notice h2 {
    margin-top: 0;
    border-left: none;
    padding-left: 0;
    border-bottom: 2px solid var(--main-green);
    color: var(--main-green);
    padding-bottom: 10px;
    font-size: 1.6rem;
}

.special-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.6;
}

.special-list li {
    margin-bottom: 10px;
}

/* 公演紹介リード文 */
.lead-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--main-green-dark);
}

/* 小さい補足テキスト */
.text-muted-sm {
    font-size: 0.85em;
    color: #666;
}

/* 小さい注意テキスト（赤） */
.text-alert-sm {
    font-size: 0.85em;
    color: #d32f2f;
    font-weight: bold;
}

/* ----------------------------------------------------------
   7. 予約・CTAブロック
   ---------------------------------------------------------- */

.cta-block {
    text-align: center;
    margin-top: 30px;
}

.cta-label {
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 10px;
}

.reservation-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.reservation-contact {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: left;
    font-size: 0.95em;
    width: 100%;
    max-width: 360px;
}

.reservation-contact p { margin: 0 0 6px; }
.reservation-contact p:last-child { margin: 0; }

/* 予約ボタン */
.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;
    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);
    transform: translateY(-2px);
}

/* アイコン（テキスト行内） */
.icon-inline {
    font-size: 16px;
    vertical-align: middle;
}

/* 書籍情報の補足テキスト */
.book-cover-placeholder {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

/* ----------------------------------------------------------
   8. フッター
   ---------------------------------------------------------- */

footer {
    background-color: var(--main-green);
    color: #fff;
    padding: 50px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.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;
}

/* アクセスボタン（フッター内） */
.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;
}

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