:root {
    --primary-color: #0000cd;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --header-max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 共通コンテナ */
.container {
    width: 100%;
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ヘッダー */
.main-header {
    width: 100%;
    background: var(--bg-color);
    /* 背景色に合わせる */
    display: flex;
    justify-content: center;
    /* border-bottom: 2px solid var(--primary-color); */
    /* 青い罫線は.header-innerに移動 */
}

.header-inner {
    width: 100%;
    max-width: var(--header-max-width);
    margin: 0 auto;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
    /* 青い罫線はここに追加し、中央幅に収める */
}

.logo-area {
    width: 100%;
    line-height: 0;
}

.header-img {
    width: 100%;
    height: auto;
    display: block;
}


/* スライドショー */
.hero-slider-container {
    width: 100%;
    max-width: var(--header-max-width);
    /* ヘッダー幅に合わせる */
    margin: 30px auto;
    /* 上下余白30px, 中央揃え */
    background: transparent;
    /* 背景透過 */
    position: relative;
    overflow: hidden;
}

.hero-slider-container .swiper {
    width: 100%;
    height: 100%;
    padding-bottom: 30px;
    /* ページネーション用余白 */
    overflow: visible;
    /* スライドがコンテナ外に出ても見切れないように */
}

.hero-slider-container .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 700px;
    /* ユーザー指定サイズ */
    max-width: 90%;
    /* スマホ対応 */
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.4;
    transform: scale(0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-slider-container .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-slider-container .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-container .swiper-button-next,
.hero-slider-container .swiper-button-prev {
    color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.hero-slider-container .swiper-button-next:after,
.hero-slider-container .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.hero-slider-container .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.hero-slider-container .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

/* カスタムページネーション */
.custom-pagination {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.custom-pagination-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    opacity: 0.5;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-pagination-bullet.active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

/* スマホ対応 */
/* スマホ対応 */
@media (max-width: 768px) {
    .main-header {
        border-bottom: none;
        /* スマホではヘッダー境界線を消すなど調整 */
    }

    .hero-slider-container {
        margin: 10px auto;
        /* SP: 高さ確保強化 (Height Auto + Aspect Ratio) */
        width: 100%;
        position: relative;
        height: auto;
        aspect-ratio: 16 / 9;
        /* フォールバック: aspect-ratio未対応ブラウザ用 */
        z-index: 5;
        overflow: hidden;
        background: transparent;
        min-height: 200px;
        /* 安全装置 */
    }

    @supports not (aspect-ratio: 16 / 9) {
        .hero-slider-container {
            height: 0;
            padding-bottom: 56.25%;
        }
    }

    .hero-slider-container .swiper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding-bottom: 25px;
        /* ドット用スペース */
    }

    .hero-slider-container .swiper-slide {
        width: 100%;
        height: 100%;
        /* object-fit: coverで埋める */
        border-radius: 0;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* メインコンテンツ */
.content-wrapper {
    max-width: var(--header-max-width);
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* セクション背景色の切り替え */
#news,
#access {
    background-color: var(--white);
}

#calendar,
#booking {
    background-color: #f9f9f9;
}

.section {
    padding: 5rem 0;
    border-bottom: 1px solid #eee;
}

/* border.png を参考にした大題目スタイル */
.section-title {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 3rem;
    padding: 15px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f2f2f2 100%);
    border: 1px solid #ddd;
    border-top: 4px solid var(--primary-color);
    /* 赤線をイメージカラーの青に変更 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    border-radius: 2px;
}

/* Information（お知らせ）の個別記事デザイン */
.news-item {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem 25px;
    /* 枠線内側の左右余白を確保し視認性向上 */
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    /* 1.4remから2px程度縮小想定 */
    color: #333;
    margin-bottom: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.important-badge {
    display: inline-block;
    background-color: #e53e3e;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

.news-img-link {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s;
}

.news-img-link:hover {
    opacity: 0.8;
}

/* お知らせの本文レイアウト（画像とテキスト） */
.news-body {
    width: 100%;
    margin-top: 1rem;
    font-size: 0;
    /* inline-blockの隙間対策 */
}

.news-img-box {
    display: inline-block;
    width: 40%;
    /* デフォルト幅 */
    max-width: 50%;
    /* 要件：最大50% */
    margin-right: 10px;
    /* 要件：余白10px */
    vertical-align: top;
    /* 要件：上揃え */
}

.news-img-box img {
    width: 100%;
    height: auto;
    /* 要件：アスペクト比維持 */
    border-radius: 4px;
    display: block;
}

.news-content-box {
    display: inline-block;
    width: calc(100% - 40% - 10px);
    /* 余白分を引く */
    vertical-align: top;
    /* 要件：上揃え */
    font-size: 1rem;
    /* 文字サイズ復元 */
}

/* 画像がない場合はコンテンツ幅を100%に */
.news-img-box+.news-content-box {
    width: calc(100% - 40% - 10px);
}

.news-body>.news-content-box:only-child {
    width: 100%;
}

.news-content {
    white-space: pre-wrap;
    line-height: 1.8;
}

.news-detail-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 0.9rem;
}

/* スマホ対応（さらに狭い場合） */
@media (max-width: 500px) {
    .news-img-box {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .news-content-box {
        width: 100% !important;
    }
}

/* フッター - ヘッダーと同様に中央1200pxに制限 */
.main-footer {
    width: 100%;
    max-width: var(--header-max-width);
    margin: 0 auto;
    /* 中央寄せ */
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}

.footer-inner {
    width: 100%;
    max-width: var(--header-max-width);
    /* ヘッダーの幅（1200px）に合わせる */
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.company-info-image {
    background: var(--primary-color);
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    /* 角丸を廃止し四角形に */
    text-align: center;
    width: 100%;
    /* ヘッダー同様に可変しつつ、max-width内で中央配置 */
    max-width: 1200px;
    /* ここをヘッダーの幅に合わせる */
}

.footer-info-content {
    padding: 1rem;
}

.footer-info-content p {
    margin: 5px 0;
    letter-spacing: 1px;
}

.company-name {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px !important;
}

/* スマートフォン右手操作用 右寄せフローティングメニュー */
.floating-menu {
    position: fixed;
    right: 15px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: all 0.3s ease;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 画像ボタン風のメニューアイテム */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 38px;
    background: linear-gradient(135deg, #0000cd 0%, #00008b 100%);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.76rem;
    border-radius: 19px 6px 6px 19px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.menu-item:hover {
    transform: translateX(-8px) scale(1.05);
    background: linear-gradient(135deg, #0000ff 0%, #0000cd 100%);
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.4);
}

.top-btn {
    background: linear-gradient(135deg, #444 0%, #222 100%);
    /* Width/Height/Radius reset to inherit from .menu-item or set same */
    width: 88px;
    height: 38px;
    border-radius: 19px 6px 6px 19px;
    margin-left: 0;
    font-size: 0.76rem;
}

/* ページ最下部でフッターに当たったら止まる制御用（JSで使用） */
.floating-menu.stopped {
    position: absolute;
    bottom: 100px;
    /* JSで調整 */
}

/* カレンダー等の基本スタイル */
.calendar-container {
    background: var(--white);
    padding: 1rem;
    border: 1px solid #ddd;
}

/* 管理画面オーバーレイ */
.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-content {
    background: var(--white);
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    padding: 2.5rem;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#close-admin {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #e53e3e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .menu-item {
        width: 80px;
        height: 32px;
        font-size: 0.7rem;
        border-radius: 16px 5px 5px 16px;
        /* Adjust radius for smaller size */
    }

    .menu-list {
        gap: 6px;
        /* Reduce gap from 12px */
    }

    .top-btn {
        width: 80px;
        height: 32px;
        border-radius: 16px 5px 5px 16px;
    }

    .admin-content {
        padding: 1.5rem;
    }
}