/* ==========================================================
   1. 全体・共通設定
   ========================================================== */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #d0e9eb;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

p {
    text-indent: 1em; /* 1文字分の字下げ */
}

.text-red {
    color: #ff0000; /* お好みの赤色（例: #d32f2f など）を指定できます */
}


/* ==========================================================
   2. ヘッダー・ナビゲーション (共通・固定対応)
   ========================================================== */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    background-color: #fff79a;
    border-bottom: 2px solid #fff9c4;
    position: sticky;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    width: auto;
    flex-grow: 0;
    min-width: 0;
}

.header-logo {
    display: block;
    width: 350px;
    height: 60px;
    background: url('../images/tai9-sp.png') no-repeat left center;
    background-size: contain;
}

.sp-sub-title {
    display: none;
}

/* PC ナビ */
.pc-global-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-right: 15px;
}

.pc-global-nav > a, .pc-dropdown-parent {
    text-decoration: none;
    color: #333;
    font-size: 0.95em;
    font-weight: bold;
    transition: color 0.3s;
}

.pc-global-nav > a:hover, .pc-dropdown-parent:hover > a {
    color: #f57f17;
}

.pc-dropdown-parent {
    position: relative;
    cursor: pointer;
    padding: 10px 0;
}

.pc-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 6px;
    border: 1px solid #c8e6c9;
    z-index: 1000;
    padding: 10px 0;
    box-sizing: border-box;
}

.pc-dropdown-parent:hover .pc-dropdown-content,
.pc-dropdown-parent.active .pc-dropdown-content {
    display: block;
}

.pc-dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: normal;
    white-space: nowrap;
}

.pc-dropdown-content a:hover {
    background-color: #e8f5e9;
    color: #f57f17;
}

.nav-right-group {
    display: none;
    align-items: center;
    gap: 15px;
}

.access-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 20px;
    background-color: #b3e5fc;
    border-radius: 20px;
    transition: background 0.3s;
}

.access-link:hover {
    background-color: #81d4fa;
}

/* スマホ用メニュー */
.menu-btn {
    display: none;
    background-color: #c8e6c9;
    border: none;
    cursor: pointer;
    padding: 8px 14px;
    font-weight: bold;
    color: #2e7d32;
    font-size: 16px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1;
}

.mega-menu {
    display: none;
    position: fixed;
    top: 61px;
    left: 0;
    width: 100%;
    height: calc(100vh - 61px);
    background-color: #fcfbf7;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.sp-menu-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 20px auto;
}

.sp-menu-item {
    background: #ffffff;
    border: 1px solid #d0cbb5;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.sp-menu-link {
    display: block;
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: bold;
}

.sp-menu-link:hover {
    color: #f57f17;
}

.sp-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: bold;
    color: #333;
    user-select: none;
}

.sp-accordion-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    border-radius: 50%;
}

.sp-accordion-content {
    display: none;
    background-color: #fff;
    padding: 10px 20px 20px 20px;
    border-top: 1px solid #eee;
}

.sp-sub-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-sub-menu-list li a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-sub-menu-list li a:hover {
    color: #f57f17;
}

/* ==========================================================
   3. メインレイアウト（共通・個別ページ用）
   ========================================================== */
.wrapper {
    display: flex;
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
    gap: 30px;
    align-items: flex-start;
    flex: 1;
    box-sizing: border-box;
}

.side-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
    flex-shrink: 0;
    margin: 0 auto;
}

.sidebar-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.left-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.building-icon {
    width: 85%;
    position: absolute;
    bottom: -220px;
    left: 5%;
    z-index: 3;
}

.title-image {
    width: 100%;
    margin-bottom: 15px;
}

.sub-title {
    font-size: 0.95rem;
    color: #4a6fa5;
    font-weight: bold;
    text-align: center;
    margin: 10px 0 20px 0;
    letter-spacing: 0.05em;
    background: #f0f7f8;
    padding: 8px;
    border-radius: 8px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.menu-item {
    background: transparent;
    border-radius: 15px;
    padding: 5px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.menu-item:hover {
    background: #cceeff;
}

.menu-item img {
    width: 100%;
    display: block;
}

/* トップページ用 right-box */
.wrapper:has(.side-wrapper) .right-box {
    flex: 1;
    min-width: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* その他の個別ページ用 right-box */
.wrapper:not(:has(.side-wrapper)) {
    max-width: 1000px;
}

.wrapper:not(:has(.side-wrapper)) .right-box {
    width: 100%;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    color: #2e7d32;
    border-bottom: 3px solid #c8e6c9;
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 25px;
}

.page-title img {
    width: 35px;
    height: 35px;
}

.content-section h2 {
    font-size: 1.2rem;
    color: #333;
    background-color: #e8f5e9;
    padding: 10px 15px;
    border-left: 5px solid #66bb6a;
    border-radius: 4px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section h3 {
    font-size: 1.05rem;
    color: #2e7d32;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #a5d6a7;
    padding-bottom: 5px;
}

.content-section p {
    line-height: 1.8;
    color: #444;
}

.target-box {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 15px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}

.lead-text {
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
    text-indent: 1em;
}

/* --- トップページ用スライダー等 --- */
.hero-image {
    width: 100%;
    height: 500px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #fff;
}

.slider {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider img, .slider video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-text {
    position: absolute;
    bottom: 40px;
    right: 20px;
    text-align: right;
    color: #fff;
    font-size: 3.0em;
    font-weight: 900;
    font-family: "游ゴシック体", "Yu Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "Meiryo", "メイリオ", sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-shadow: 
        3px 3px 0 #000, -3px 3px 0 #000, 3px -3px 0 #000, -3px -3px 0 #000,
        0px 3px 0 #000, 0px -3px 0 #000, 3px 0px 0 #000, -3px 0px 0 #000;
    z-index: 5;
    pointer-events: none;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.dots-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #d2b48c;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: #1a237e;
    transform: scale(1.2);
}

.play-pause-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #1a237e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background 0.2s;
}

.play-pause-btn:hover {
    background: #f0f0f0;
}

.news-box {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-top: 20px;
}


/* --- ▼ NEWSボックスを縦スクロールさせるためのスタイル ▼ --- */
.news-box {
            max-height: 120px !important;
            overflow-y: auto !important;
            border-radius: 8px !important; /* 強制的に四隅を丸くする */
        }


/* --- 特徴カード（t-annai.html用） --- */
.intro-lead {
    font-size: 1.05rem;
    font-weight: bold;
    color: #2e7d32;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.feature-card {
    background: #f1f8e9;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-card-title {
    font-weight: bold;
    color: #2e7d32;
    font-size: 0.95rem;
    border-bottom: 1px dashed #a5d6a7;
    padding-bottom: 6px;
}

.feature-card-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* --- タイムスケジュール・カードデザイン（t-annai.html用） --- */
.schedule-notice {
    background-color: #f9fbe7;
    border-left: 4px solid #8bc34a;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.schedule-notice ul {
    margin: 0;
    padding-left: 20px;
}

.schedule-notice li {
    margin-bottom: 8px;
    color: #333;
}

.schedule-notice li:last-child {
    margin-bottom: 0;
}

.schedule-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.schedule-card {
    background: #fcfdfd;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 25px;
}

.schedule-badge {
    background-color: #2e7d32;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 8px;
    white-space: nowrap;
    text-align: center;
    min-width: 110px;
    box-shadow: 0 2px 4px rgba(46,125,50,0.2);
}

.schedule-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 12px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 8px 14px;
    flex: 1;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.flow-step.reception {
    background-color: #e3f2fd;
    border-color: #90caf9;
}

.flow-step.program {
    background-color: #e0f7fa;
    border-color: #4dd0e1;
}

.flow-step.tour {
    background-color: #f3e5f5;
    border-color: #ce93d8;
}

.flow-time {
    font-size: 0.78rem;
    color: #555;
    margin-bottom: 3px;
    font-weight: bold;
}

.flow-label {
    font-size: 0.95rem;
    font-weight: bold;
    color: #222;
}

.flow-arrow {
    color: #78909c;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.flow-end {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.schedule-divider {
    border: none;
    border-top: 2px dashed #a5d6a7;
    margin: 10px 0;
}

/* --- プログラムの流れグリッド（t-annai.html用） --- */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 20px 0;
}

.flow-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-box-title {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
}

.flow-img-wrap {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.flow-img-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.flow-item p {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    line-height: 1.6;
}

/* --- テーブルスタイル（t-annai.html用） --- */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.info-table th, .info-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
    line-height: 1.6;
}

.info-table th {
    width: 25%;
    background-color: #f1f8e9;
    color: #2e7d32;
    font-weight: bold;
    text-align: left;
}

.info-table td {
    background-color: #fff;
    color: #444;
}

.info-table small {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* --- 情報カード・アコーディオン風（yoyaku-zumi.html用） --- */
.info-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.info-card {
    background: #f8f9fa;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box;
}

.info-card h2 {
    font-size: 1.15rem;
    color: #2e7d32;
    background-color: #e8f5e9;
    padding: 10px 15px;
    border-left: 5px solid #66bb6a;
    border-radius: 4px;
    margin-top: 0;
    margin-bottom: 15px;
}

.info-card p {
    line-height: 1.8;
    color: #444;
    margin: 0 0 12px 0;
    padding-left: 1.2em;
    text-indent: -1.2em;
    word-break: break-all;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
    color: #444;
    line-height: 1.8;
}

.info-card li {
    margin-bottom: 6px;
}

/* --- 予約方法ページ専用スタイル（yoyaku.html用） --- */
.step-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.step-box {
    background: #f8f9fa;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box;
    position: relative;
}

.step-badge {
    display: inline-block;
    background-color: #2e7d32;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.step-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 10px;
}

.contact-box {
    background: #fff;
    border: 2px solid #81c784;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-sizing: border-box;
    word-break: break-all;
}

.contact-item {
    margin-bottom: 12px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2e7d32;
    letter-spacing: 0.05em;
}

.info-list {
    background: #e8f5e9;
    border-left: 4px solid #66bb6a;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 15px;
    box-sizing: border-box;
}

.info-list p {
    margin: 0 0 8px 0;
    font-weight: bold;
    color: #2e7d32;
}

.info-list ul {
    margin: 0;
    padding-left: 20px;
    color: #444;
}

.info-list li {
    margin-bottom: 5px;
}

.notice-box {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.notice-box span {
    font-size: 1.2rem;
}

.notes-section {
    background: #fdfbf7;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-sizing: border-box;
}

.notes-section h3 {
    margin-top: 0;
    color: #2e7d32;
    font-size: 1.1rem;
    border-bottom: 2px solid #c8e6c9;
    padding-bottom: 8px;
}

.notes-section ul {
    margin: 0;
    padding-left: 20px;
    color: #444;
    line-height: 1.8;
}

.notes-section li {
    margin-bottom: 10px;
}

.doc-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.doc-img-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.doc-img-link img {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.doc-img-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.doc-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

/* --- 模擬法案リスト（houan.html用） --- */
.bill-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.bill-card {
    background: #f8f9fa;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.bill-title-area {
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.bill-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: #2e7d32;
    margin: 0;
}

.bill-short {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.bill-difficulty {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.bill-body-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bill-section-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: #455a64;
    margin-bottom: 4px;
}

.bill-desc {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
    text-indent: 0;
}

.bill-roles {
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 0;
}

.free-theme-box {
    background: #fdfbf7;
    border: 1px solid #e0d970;
    border-left: 5px solid #fbc02d;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.free-theme-box h3 {
    color: #f57f17;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.free-theme-box p {
    margin: 0;
    text-indent: 1em;
}

/* --- FAQスタイル（faq.html用） --- */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.faq-item {
    background: #f8f9fa;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box;
}

.faq-q {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-q::before {
    content: "Q.";
    background-color: #2e7d32;
    color: #fff;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.faq-a {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
    padding-left: 30px;
    text-indent: 1em;
}

/* --- アクセススタイル（access.html用） --- */
.map-container {
    text-align: center;
    margin: 25px 0;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}

.map-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.access-card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.access-card {
    background: #f8f9fa;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box;
}

.access-card h3 {
    font-size: 1.15rem;
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 8px;
}

.access-card p {
    margin: 0;
    text-indent: 1em;
    line-height: 1.8;
    color: #444;
}

/* お問い合わせセクション */
.inquiry-box {
    background: #e8f5e9;
    border: 2px dashed #81c784;
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    text-align: center;
    box-sizing: border-box;
}

.inquiry-box h3 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.inquiry-phone {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2e7d32;
    margin: 10px 0;
    letter-spacing: 0.05em;
}

.inquiry-time {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* ==========================================================
   4. フッター (共通)
   ========================================================== */
.footer {
    width: 100%;
    background-color: #fff79a;
    padding: 20px 15px;
    text-align: center;
    font-size: 0.8em;
    margin-top: auto;
    box-sizing: border-box;
    border-top: 2px solid #fff9c4;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.footer-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    text-align: left;
    border-bottom: 1px solid #e0d970;
    padding-bottom: 12px;
    box-sizing: border-box;
}

.footer-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.footer-address {
    font-size: 0.85em;
    color: #444;
    line-height: 1.5;
    text-align: left;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 20px;
}

.footer a {
    color: #333;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: #555;
}

.pagetop-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #2e7d32;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.4s ease, background-color 0.3s;
    z-index: 999;
    font-size: 1.2rem;
    font-weight: bold;
}

.pagetop-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pagetop-btn:hover {
    background-color: #1b5e20;
    transform: translateY(-3px);
}

/* ==========================================================
   5. レスポンシブ対応
   ========================================================== */
@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
        width: 92%;
        margin: 20px auto;
        gap: 25px;
    }

    .wrapper:has(.side-wrapper) .right-box {
        order: 1;
        padding: 0;
    }

    .side-wrapper {
        order: 2;
        max-width: 100%;
    }

    .building-icon,
    .left-box .title-image,
    .left-box .sub-title {
        display: none !important;
    }

    .left-box {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .menu-grid {
        gap: 12px;
        margin-top: 0;
    }

    .news-box {
        padding: 20px;
        margin-top: 15px;
    }

    .header-nav {
        padding: 10px 15px;
    }

    .pc-global-nav {
        display: none !important;
    }

    .nav-right-group {
        display: flex !important;
        flex-shrink: 0;
    }

    .logo-link {
        flex: 1;
        margin-right: 10px;
        min-width: 0;
    }

    .header-logo {
        background-size: contain;
        width: 100%;
        max-width: none;
        height: 40px;
    }

    .sp-sub-title {
        display: block !important;
        font-size: 0.65rem;
        color: #4a6fa5;
        font-weight: bold;
        margin-top: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.01em;
    }

    .menu-btn {
        display: flex !important;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .footer-address {
        text-align: left;
    }

    /* 個別ページのレスポンシブ個別調整 */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .schedule-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .schedule-badge {
        width: 100%;
        box-sizing: border-box;
    }

    .schedule-flow {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .flow-step, .flow-end {
        width: 100%;
        box-sizing: border-box;
    }

    .flow-arrow {
        text-align: center;
        transform: rotate(90deg);
        margin: 2px 0;
    }

    .flow-grid {
        grid-template-columns: 1fr;
    }

    .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .info-table th {
        border-bottom: none;
        padding-bottom: 4px;
    }
    .info-table td {
        border-top: none;
        padding-top: 4px;
        margin-bottom: 10px;
    }

    .doc-links {
        flex-direction: column;
        align-items: stretch;
    }

    .doc-img-link img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .bill-body-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .access-link {
        display: none !important;
    }

    .header-nav {
        padding: 10px 10px;
    }

    .header-logo {
        background: url('../images/tai9-sp.png') no-repeat left center;
        background-size: contain;
        width: 100%;
        height: 38px;
    }

    .sp-sub-title {
        font-size: 0.58rem;
    }

    .hero-image {
        height: 300px;
    }
    
    .hero-text {
        font-size: 6vw;
        bottom: 15px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}