/* 全体的なスタイル */
:root {
    --primary-color: #f78e00;      /* 深い緑色（国宝ロゴ背景） */
    --secondary-color: #69462a;    /* やや明るい緑色 */
    --accent-color: #ffdfad;       /* 明るい緑色（タイトル背景） */
    --text-color: #333333;         /* ガイドライン4.2.3に準拠 */
    --light-bg: #fafafa;          /* ガイドライン準拠 */
    --border-color: #cccccc;       /* ガイドライン4.1.1.2に準拠 */
    --link-color: #226699;         /* ガイドライン4.2.3に準拠 */
    --visited-link-color: #561b76; /* ガイドライン4.2.3に準拠 */
}

/* 基本レイアウト */
body {
    font-family: "MS P明朝", "ヒラギノ明朝 Pro W3", serif;
    color: var(--text-color);
    line-height: 1.8;             /* ガイドライン4.2.4に準拠 */
    background-color: var(--light-bg);
    position: relative;
    font-size: 22px;              /* ガイドライン4.2.2.1に準拠 */
    min-width: 1000px;            /* ガイドライン2.1に準拠 */
    letter-spacing: 0.05em;
}

h1 {
    font-size: 32px;
    margin-bottom: 40px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.arrow-link::before {
    content: '▶';
    margin-right: 8px;
    display: inline-block;
    text-decoration: none;
}

.container {
    margin: 0 auto;
    max-width: 1200px;
    --bs-gutter-x: 0!important;
}

/* ヘッダー */
.site-header {
    background-color: #FFFFFF;
    margin-bottom: 3rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-logo {
    padding: 1rem 0;
    text-align: center;
}

.header-title {
    width: 100%;
    position: relative;
    background-color: var(--accent-color);
}

.header-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-banner-img {
    width: 1200px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.header-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF; /* 背景色を白に設定 */
}

/* ナビゲーション */
.main-nav {
    background-color: var(--primary-color);
    padding: 0;
    width: 100%;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav .container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.main-nav .nav-list li {
    width: 250px;
    height: 100%;
}

.main-nav .nav-list a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: normal;
    padding: 0;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
    letter-spacing: 0.1em;
}

.main-nav .nav-list a:hover {
    color: var(--accent-color);
}

/* パンくずリスト */
.breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    background: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* メインコンテンツ */
.main-content {
    padding: 3rem 0;
}

/* セクション共通 */
section {
    background-color: #FFFFFF;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.section-title {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 1.1;             /* ガイドライン4.2.4に準拠 */
}

/* 最新情報 */
.info-card {
    background-color: var(--light-bg);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.info-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-card p {
    margin-bottom: 1rem;
}

.info-card .date {
    font-size: 14px;
    color: #666;
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
}

/* フッター */
.site-footer {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 4rem 0;
}

.copyright {
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
    body {
        min-width: auto;
    }
    
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .header-image {
        height: 300px;
    }
    
    .main-nav {
        display: none;
    }
    
    .nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .fullscreen-nav {
        display: none;
    }
    
    .fullscreen-nav.active {
        display: flex;
    }
}

@media screen and (max-width: 768px) {
    .header-banner-img {
        max-height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .header-banner-img {
        max-height: 150px;
    }
}

/* モバイル用ハンバーガーメニュー */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: fixed;
    right: 15px;
    top: 15px;
    z-index: 1000;
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* モバイル用フルスクリーンナビゲーション */
.fullscreen-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary-color);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.fullscreen-nav.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.fullscreen-nav .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fullscreen-nav .nav-list li {
    margin: 1.5rem 0;
    text-align: center;
}

.fullscreen-nav .nav-list a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
}

.fullscreen-nav .nav-list a:hover {
    color: var(--accent-color);
}

/* 案内図/マップ */
.map-container {
    width: 100%;
    height: 400px;
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 80px;
}

/* ボタンスタイル */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 1rem 2.5rem;
    margin-top: 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }


    .header-image {
        height: 200px;
    }

    section {
        padding: 2rem 1rem;
    }
}

/* スライダー */
.slider {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #FFFFFF; /* 背景色を白に設定 */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* フォーカス表示の改善 */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ハイコントラストモード対応 */
@media (forced-colors: active) {
    .header-title,
    .main-nav,
    .site-footer {
        border: 1px solid currentColor;
    }
}

/* リンクスタイル */
a {
    color: var(--link-color);
    text-decoration: underline;
}

a:visited {
    color: var(--visited-link-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Q&Aスタイル */
.faq-list dl {
    margin: 0;
    padding: 0;
}

.faq-list dt,
.faq-list dd {
    display: inline-block;
    vertical-align: top;
    margin: 0;
    padding: 0;
}

.faq-list dt {
    font-weight: bold;
    font-size: 16px;
    width: 30px;
}

.faq-list dt:first-of-type,
.faq-list dt:nth-of-type(2n-1) {
    color: #ff0000;  /* Q の色を赤に */
}

.faq-list dt:nth-of-type(2n) {
    color: #0066cc;  /* A の色を青に */
}

.faq-list dd {
    width: calc(100% - 40px);
    margin-bottom: 0.5rem;
}

/* Q&Aのペアごとにラッパーを作成 */
.faq-list dt:nth-of-type(2n-1),
.faq-list dt:nth-of-type(2n),
.faq-list dd:nth-of-type(2n-1),
.faq-list dd:nth-of-type(2n) {
    position: relative;
}

.faq-list dd:nth-of-type(2n) {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.faq-list dd:nth-of-type(2n)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -40px;
    width: calc(100% + 40px);
    border-bottom: 1px dotted #ccc;
}

.faq-list dl:last-of-type dd:last-of-type::after {
    display: none;
}

/* テーブルスタイル */
.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.table th {
    white-space: nowrap;
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
}

/* スマートフォン表示時のテーブルスタイル */
@media screen and (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .table {
        min-width: 600px;
        margin: 0;
    }

    .container {
        overflow-x: hidden;
    }
}

@media screen and (max-width: 768px) {
    .header-image {
        height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .header-image {
        height: 150px;
    }
}