@charset "UTF-8";

/* Google Fontsの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    margin: 0;
    line-height: 2.0;
    letter-spacing: 0.08em;
    color: #333;
    background-color: #f9f9f9;
    -webkit-font-smoothing: antialiased;
    font-size: 16px; /* 基準サイズ */
}

.container {
    width: 92%;
    max-width: 1300px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* --- 見出し設定（レスポンシブ対応） --- */
h1, h2, h3 {
    color: #009bc6;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

h2 {
    /* 最小24px、推奨4vw、最大40pxの間で自動調整 */
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #009bc6;
    margin: 15px auto 0;
}

h3 {
    /* 最小20px、推奨2.5vw、最大28px */
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 15px;
}

a {
    color: #009bc6;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* --- ボタンデザイン（共通・お電話ボタン） --- */
.btn {
    display: inline-block;
    background: #009bc6;
    color: #fff;
    /* 上下左右の余白を調整して大きさを統一 */
    padding: 18px 40px; 
    width: 100%;           /* スマホで横幅いっぱい */
    max-width: 320px;      /* PCで広がりすぎないように */
    min-width: 260px;      /* 最小幅を確保 */
    box-sizing: border-box; /* paddingを含めた幅にする */
    
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px;
    font-weight: bold;
    font-size: 1.2rem;     /* 文字サイズを統一 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.btn:hover {
    background: #7acbe1;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* --- ヘッダー（共通設定：縦並び・中央配置） --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    color: #fff;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none; 
}

header .container {
    text-align: center;
    width: 100%;
    padding: 0;
    pointer-events: auto;
}

header h1 {
    float: none;
    margin: 0 0 40px 0;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

header h1 a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(3rem, 10vw, 5rem); /* タイトルも自動調整 */
    font-weight: 700;
    letter-spacing: 0.1em;
}

header nav {
    float: none;
    margin-top: 0;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

header li {
    display: block;
    padding: 0;
}

header nav a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    color: #009bc6;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    min-width: 120px;
    text-align: center;
}

header nav a:hover {
    background-color: #fff;
    color: #007a9c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* --- ヒーロースライダー --- */
#hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: #f0f0f0;
    overflow: hidden;
    margin-bottom: 80px;
}

.slide-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    z-index: 1;
}

.slide-image.active {
    opacity: 1;
}

.hero-content { display: none; }

/* --- 各セクション --- */
section {
    padding: 60px 0;
}

section:nth-of-type(even) {
    background-color: #f7fcfd;
}

/* カード型セクションデザイン（統一） */
section.container {
    background-color: #eaf6fa;
    border-radius: 20px;
    padding: 60px 30px;
    margin-top: 60px;
    margin-bottom: 60px;
    box-sizing: border-box;
}

/* 場内マップセクション */
.map-section {
    text-align: center;
    margin-bottom: 60px;
}

.site-map {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.site-map:hover {
    transform: scale(1.01);
}

.map-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
}

/* --- 施設紹介 --- */
.flex-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #bce0eb;
}

.feature-item h3 {
    text-align: left;
    font-size: 1.3rem;
    border-left: 5px solid #009bc6;
    padding-left: 15px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #009bc6;
    font-weight: 700;
}

.align-center-facility {
    text-align: center;
    margin-top: 20px;
}

.view-photo-btn {
    display: inline-block;
    background-color: #fff;
    color: #009bc6;
    border: 1px solid #009bc6;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-photo-btn:hover {
    background-color: #009bc6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- 料金表 --- */
#price { font-size: 1.2rem; }

table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

table:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

th, td {
    border: 1px solid #e0e0e0;
    padding: 20px;
    text-align: center;
}

th {
    background-color: #eaf6fa;
    color: #009bc6;
    font-weight: bold;
}

tr:nth-child(even) { background-color: #fff; }

.price-notes {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    background-color: #fff;
    text-align: left;
    font-size: 0.95em;
    color: #555;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden; 
    border: 1px solid rgba(0,0,0,0.05);
}

.price-notes p {
    margin: 0;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
}

.price-notes p:first-child { border-top: none; }

.price-notes p::before {
    content: '●';
    color: #009bc6;
    margin-right: 10px;
    font-size: 0.8em;
    margin-top: 2px;
}

.price-notes br { display: none; }

/* --- アクセス地図 --- */
.location-map iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- 注意事項セクション --- */
.notes-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.notes-content p {
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem; /* 文字サイズUP */
}

.notes-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notes-content li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 15px;
    line-height: 1.8;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
    font-size: 1.1rem; /* 文字サイズ統一・UP */
}

.notes-content li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.notes-content li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 0;
    color: #009bc6;
    font-weight: bold;
}

/* --- ご予約・お問い合わせ --- */
#reserve {
    text-align: center;
    font-size: 1.2rem;
}

#reserve p {
    max-width: 850px;
    margin: 0 auto 20px;
    text-align: left;
    display: block; 
}

.align-center {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- フッター --- */
footer {
    background: #333;
    color: #fff;
    padding: 60px 0;
    margin-top: 0;
    font-size: 0.9em;
    text-align: center;
}

footer .container {
    width: auto;
    display: inline-block;
    text-align: left;
    padding: 0 20px;
    max-width: 90%;
    background: transparent; /* カードデザイン解除 */
}

footer p { margin: 0; line-height: 1.6; opacity: 0.8; }
footer a { color: #ffffff !important; opacity: 0.8; }
footer a:hover { text-decoration: underline; opacity: 1; }

/* ====================================
   フォーム用CSS (index.php用)
   ==================================== */

/* フォーム全体枠 */
.form-wrapper {
    background: #fff;
    /* 上の余白を詰める調整 (10px) */
    padding: 10px 30px 30px; 
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    margin-bottom: 40px;
    text-align: left;
}

/* フォームごとの見出し */
.form-title {
    text-align: center;
    font-size: 1.8rem; /* 大きく */
    color: #009bc6;
    margin-top: 10px;
    margin-bottom: 25px;
    border-bottom: 2px dashed #bce0eb;
    padding-bottom: 15px;
}

/* フォーム区切り線 */
.form-separator {
    border: none;
    border-top: 2px dashed #ccc;
    margin: 50px auto;
    width: 80%;
}

/* 定義リスト（PCレイアウト） */
.php-form dl {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    margin-bottom: 25px;
}

.php-form dt {
    width: 30%;
    background-color: #eaf6fa;
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    display: flex;
    align-items: center;
    font-weight: bold;
    box-sizing: border-box;
    font-size: 1.15rem; /* 大きくするが、改行しすぎないように微調整 */
}

.php-form dd {
    width: 70%;
    margin: 0;
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* 入力欄のデザイン */
.php-form input[type="text"],
.php-form input[type="email"],
.php-form input[type="tel"],
.php-form input[type="datetime-local"],
.php-form select,
.php-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 18px; /* スマホでも見やすいサイズ */
    font-family: inherit;
    background: #fff;
}

.php-form input:focus, 
.php-form textarea:focus, 
.php-form select:focus {
    border-color: #009bc6;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 155, 198, 0.2);
}

.required {
    background: #d32f2f;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: auto;
    white-space: nowrap; /* ラベルの改行防止 */
}

.error-text {
    color: #d32f2f;
    font-size: 1.0rem;
    font-weight: bold;
    margin-top: 8px;
    width: 100%;
    display: block;
}

/* 送信ボタン（お電話ボタンと統一） */
.submit-btn-area {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background-color: #009bc6;
    color: white;
    /* お電話ボタンと同じスタイルを適用 */
    padding: 18px 40px;
    width: 100%;
    max-width: 320px;
    min-width: 260px;
    box-sizing: border-box;

    border: none;
    border-radius: 50px;
    font-size: 1.2rem; /* お電話ボタンと同じ */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-submit:hover {
    background-color: #007a9c;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 曜日表示用のスタイル */
.date-input-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap; 
    gap: 10px;
    width: 100%;
}

.date-input-area input[type="datetime-local"] {
    flex: 1; 
    min-width: 200px;
}

.week-text {
    font-weight: bold;
    color: #009bc6;
    font-size: 1.2rem;
    white-space: nowrap; 
}

/* --- ギャラリー・ライトボックス関連 --- */
.scrolling-gallery {
    width: 100%;
    overflow: hidden;
    background-color: #f9f9f9;
    padding: 0;
    margin-bottom: 80px;
    /* ▼▼▼ 追加：マスクの位置基準にします ▼▼▼ */
    position: relative;
}

/* ▼▼▼ 追加：左側の白いぼかし ▼▼▼ */
.scrolling-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px; /* ぼかしの幅 */
    height: 100%;
    /* 白(#ffffff)から透明へのグラデーション */
    background: linear-gradient(to right, #ffffff, transparent);
    z-index: 10;
    pointer-events: none; /* 下にある画像のクリックを邪魔しない */
}

/* ▼▼▼ 追加：右側の白いぼかし ▼▼▼ */
.scrolling-gallery::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px; /* ぼかしの幅 */
    height: 100%;
    /* 透明から白(#ffffff)へのグラデーション */
    background: linear-gradient(to left, #ffffff, transparent);
    z-index: 10;
    pointer-events: none;
}

.scrolling-track {
    display: flex;
    width: max-content;
    animation: scroll-left 20s linear infinite; 
}

.gallery-item {
    width: 20vw; 
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px; /* 角丸 */
    margin: 0 6px;       /* 左右マージン */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}
.gallery-item img:hover { opacity: 0.8; }
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; backdrop-filter: blur(5px);
}
#lightbox-overlay.hidden { display: none; }
#lightbox-modal {
    background: transparent; padding: 0; box-shadow: none;
    width: 100%; height: 100%;
    position: relative;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}
#lightbox-modal img {
    max-width: 90%; max-height: 70vh;
    width: auto; height: auto;
    border-radius: 4px; border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    margin: 0; display: block; user-select: none;
}
#lightbox-close {
    position: absolute; top: 20px; right: 20px;
    color: #fff; font-size: 3em; cursor: pointer;
    z-index: 2010; width: 50px; height: 50px;
    line-height: 50px; text-align: center;
    background: rgba(0,0,0,0.5); border-radius: 50%;
}
#lightbox-close:hover { background: rgba(255,0,0,0.8); }
#lightbox-controls {
    display: flex; justify-content: center; gap: 60px;
    margin-top: 20px; width: 100%; z-index: 2010;
}
.lightbox-nav {
    position: static; transform: none;
    color: #fff; 
    font-size: 1.8em;   /* 2.5em → 1.8em に変更（矢印を小さく） */
    font-weight: bold;
    padding: 10px 20px; /* 15px 30px → 10px 20px に変更（楕円を小さく） */
    cursor: pointer; user-select: none;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50px; transition: 0.3s;
}
.lightbox-nav:hover {
    background: rgba(0, 155, 198, 0.8); border-color: #009bc6;
}
#lightbox-caption { display: none; }

/* --- レスポンシブ対応 (スマホ) --- */
@media (max-width: 768px) {
    .container { width: 92%; }
    
    header { justify-content: flex-start; padding-top: 5vh; }
    header h1 { margin-bottom: 30px; }
    header ul { flex-direction: column; gap: 15px; }
    header nav a { padding: 12px 40px; width: 200px; }

    .flex-container { grid-template-columns: 1fr; }
    section.container { padding: 40px 15px; }
    
    table { display: block; overflow-x: auto; white-space: nowrap; }
    .align-center { flex-direction: column; align-items: center; }

    /* ギャラリースマホ対応 */
    .gallery-item { width: 33.333vw; }

    /* ライトボックススマホ対応 */
    #lightbox-modal img { max-height: 60vh; }
    #lightbox-controls { gap: 40px; margin-top: 15px; }
    .lightbox-nav { font-size: 1.4em; padding: 8px 16px; }
    #lightbox-close { top: 10px; right: 10px; font-size: 2em; width: 40px; height: 40px; line-height: 40px; }

    /* フォームスマホ対応 */
    .php-form dl { display: block; }
    .php-form dt, .php-form dd { width: 100%; border-right: none; }
    .php-form dt { 
        border-bottom: none; 
        padding-bottom: 5px; 
        background: none; 
        /* スマホで改行が増えすぎないようにパディング調整 */
        padding-left: 0;
    }
    .php-form dd { padding-top: 5px; padding-bottom: 30px; padding-left: 0; }
    .required { margin-left: 10px; margin-right: auto; }
    .form-wrapper { padding: 20px 15px; }
}

/* 追加: ボタン無効化スタイル */
button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 追加: エラーテキストのアニメーション */
.error-text {
    color: #d32f2f;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 既存CSSの微修正: 曜日表示のSpan */
.week-text {
    font-weight: bold;
    color: #009bc6;
    margin-left: 10px;
    font-size: 1rem;
}