/* ============================================================
   NPO現代座 現代座会館セクション固有スタイル
   共通スタイルは css/common.css を参照
   ============================================================ */

/* ページラッパー幅 */
.page-wrapper {
    max-width: 1000px;
}

/* ----------------------------------------------------------
   1. 会館セクションナビゲーション（横並びピルボタン）
   ---------------------------------------------------------- */
.kaikan-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px;
    background: #f0f5f0;
    border-bottom: 2px solid #c8e6c9;
}

.kaikan-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: bold;
    color: var(--main-green-dark);
    background: white;
    border: 1px solid #b2dfb2;
    transition: background 0.2s, color 0.2s;
}

.kaikan-nav a:hover {
    background: var(--main-green);
    color: white;
    border-color: var(--main-green);
}

/* 現在のページ */
.kaikan-nav a.current {
    background: var(--main-green);
    color: white;
    border-color: var(--main-green-dark);
    pointer-events: none;
    cursor: default;
}

/* ----------------------------------------------------------
   2. メインコンテンツ
   ---------------------------------------------------------- */
main {
    padding: 30px 20px 50px;
}

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

/* ページ見出し（h1） */
main h1 {
    font-size: 1.6rem;
    color: var(--main-green-dark);
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--main-green);
}

/* ----------------------------------------------------------
   3. 料金・設備テーブル
   ---------------------------------------------------------- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    font-size: 0.95rem;
}

.price-table caption {
    text-align: left;
    font-weight: bold;
    color: var(--main-green-dark);
    margin-bottom: 6px;
    font-size: 1rem;
    padding: 4px 0;
    border-left: 4px solid var(--main-green);
    padding-left: 10px;
}

.price-table th,
.price-table td {
    padding: 10px 14px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.price-table th {
    background-color: #f0f5f0;
    font-weight: bold;
    color: var(--text-dark);
}

.price-table td:last-child {
    text-align: right;
    white-space: nowrap;
}

/* 設備一覧テーブル（b1.htm用） */
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    font-size: 0.9rem;
}

.equipment-table caption {
    text-align: left;
    font-weight: bold;
    color: var(--main-green-dark);
    margin-bottom: 6px;
    padding: 4px 0 4px 10px;
    border-left: 4px solid var(--main-green);
    font-size: 1rem;
}

.equipment-table th,
.equipment-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.equipment-table th {
    background-color: #f0f5f0;
    font-weight: bold;
}

.equipment-table td:last-child {
    text-align: right;
    white-space: nowrap;
}

/* ----------------------------------------------------------
   4. フロア概要テーブル（index.htm用）
   ---------------------------------------------------------- */
.floor-list {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.floor-list th,
.floor-list td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.floor-list th {
    background-color: #e8f5e9;
    font-weight: bold;
    white-space: nowrap;
    width: 6em;
    color: var(--main-green-dark);
}

.floor-list td a {
    color: var(--main-green-dark);
    font-weight: bold;
}

/* ----------------------------------------------------------
   5. 使用要項リスト
   ---------------------------------------------------------- */
.rules-list {
    padding-left: 1.5em;
    line-height: 1.9;
}

.rules-list li {
    margin-bottom: 4px;
}

/* ----------------------------------------------------------
   6. アクセスページ用
   ---------------------------------------------------------- */
.access-info {
    background: #f9faf9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
    line-height: 1.9;
}

.access-info p {
    margin: 0 0 8px;
}

.access-info p:last-child {
    margin: 0;
}

.map-container {
    margin: 20px 0;
}

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

/* ----------------------------------------------------------
   7. 画像レイアウト
   ---------------------------------------------------------- */
.room-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
}

@media (min-width: 600px) {
    .room-image--right {
        float: right;
        margin-left: 20px;
        max-width: 280px;
    }
}

.floor-plan {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}
