/* ファイル名: style.css
   内容: サイト全体のデザイン設定
*/

/* --- 基本設定 --- */
:root {
    --font-main: 'Inter', sans-serif;
    --font-logo: 'Quicksand', sans-serif; 
    --color-text: #EEEEEE;        /* テキスト色: 白 */
    --color-bg: #000000;          /* 背景色: 黒 */
    --color-primary: #A0B0C0;     /* メインカラー: 青グレー */
    --color-accent: #00868a;      /* アクセントカラー: 赤 */
    --color-light-gray: #171717;  /* セクション背景色: 濃いグレー */
    --color-footer-bg: #222222;   /* フッター背景色 */
    --color-footer-text: #AAAAAA; /* フッター文字色 */
    --max-width: 1200px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

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

/* --- 共通パーツ --- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}


.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    min-width: 300px; /* 横幅を広げる（必要に応じて数値を変更） */
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.8;
}

/* --- ヘッダー (Global Navi) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 10px rgba(255,255,255,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.logo {
    font-family: var(--font-logo); 
    font-size: 1.5rem;
    font-weight: 400; 
    letter-spacing: 0.05em;
    color: #FFFFFF;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
        font-size: 1.2rem;
        font-weight: 400;
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }

.social-icons {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.social-icons i {
    font-size: 1.2rem;
    color: #FFFFFF;
}

/* ハンバーガーメニュー (スマホ用) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: var(--header-height);
        right: -100%;
        background-color: #111;
        width: 100%;
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        border-top: 1px solid #333;
    }

    .nav-links.active {
        right: 0;
    }

    .social-icons {
        margin-left: 0;
        margin-top: 20px;
    }

    .hamburger {
        display: block;
    }
}

/* --- メインビジュアル (トップページのみ) --- */
#main-visual {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}


/* --- About セクション --- */
#fukui-location { 
    background-color: #353535; /* 背景色を変更 */
    padding: 30px; /* 内側の余白 */
    border-radius: 0px; /* 角丸 */
    width: 98%;
    max-width: 1200px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.0rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.about-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #DDDDDD;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-image {
        order: 1;
    }
    .about-text {
        order: 2;
    }

    .about-text p {
        font-size: 1.1rem; 
    }
}

/* --- Plan 紹介セクション --- */
#plans {
    background-color: var(--color-light-gray);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background: #1A1A1A;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 3px solid #333;
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

.plan-img {
    height: 300px;
    overflow: hidden;
}

.plan-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.plan-card:hover .plan-img img {
    transform: scale(1.1);
}

.plan-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.plan-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.plan-desc {
    font-size: 0.95rem;
    color: #BBBBBB;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 700;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .plan-title {
        font-size: 1.0rem;
        line-height: 1.4;
    }
}

/* --- 詳細ページ (Plan Details) 専用 --- */
body.detail-page {
    padding-top: var(--header-height);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    cursor: pointer;
    color: #FFFFFF;
    font-weight: 700;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--color-accent);
}

.detail-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.main-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex-shrink: 0; /* Safari bug fix */
}

.main-img {
    width: 100%;
    height: auto;
    min-height: 200px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0; /* Safari bug fix */
}

.sub-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.youtube-short {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.youtube-short iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.detail-desc {
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.8;
}

/* テーブルスタイル */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
    border: 1.5px solid #5d5d5d;
}

.info-table th, .info-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1.5px solid #5d5d5d;
}


.info-table th {
    background-color: #2C3E50; /* 新しいヘッダー背景色 */
    width: 30%;
    color: #FFFFFF;            /* ヘッダーテキスト色 */
    font-weight: 700;
}

.info-table td {
    width: 70%;
    color: #E6E6E6;            /* セルテキスト色 */
    background-color: #111111; /* セル背景色（必要なら追加）*/
}

@media (max-width: 768px) {
    .detail-gallery {
        grid-template-columns: 1fr;
    }
    .youtube-short {
        max-width: 360px;
        margin: 0 auto;
    }
    .info-table th, .info-table td {
        display: block;
        width: 100%;
    }
    .info-table th {
        background-color: #222;
        padding: 10px 20px;
    }
}

.map-container {
    width: 100%;
    height: 550px;
    background: #222;
    margin-bottom: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.booking-area {
    text-align: center;
    margin-bottom: 80px;
}

/* --- フッター --- */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 60px 5% 20px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-logo); /* 変更: Quicksandを適用 */
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-desc {
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}