/* ========================================
   トップページ専用スタイル
   index.html用
======================================== */

/* ========================================
   メインビジュアルセクション
   ※ index.html専用のスタイル
======================================== */

/* ヒーローセクション（index.html専用） */
.main-visual {
    background: linear-gradient(#00000033, #00000033),
        url('../../wedding/images/mvbg.jpg');
}

/* フォールバック画像 */
.mv-fadeimg {
    background: linear-gradient(#00000033, #00000033),
        url('../../wedding/images/mvbg.jpg');
}

/* PC版YouTube動画 */
.mv-pc-video {
    transform: translate(-50%, -50%) scale(1.16);
    transform-origin: center;
}

.mv-overlay {
    bottom: 7%;
    transform: translate(-50%, 0%);
}

/* index.html専用のID */
#mv-heading {
    font-family: 'Quattrocento', serif;
    font-size: 3.25em;
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   ウエディングカテゴリーナビゲーション
======================================== */
#wnav {
    position: sticky;
    position: -webkit-sticky;
    top: var(--wnav-offset, 140px);
    z-index: 5;
    background-color: #0ba8c9;
    background-image: linear-gradient(120deg,
            rgba(255, 255, 255, 0.18) 0,
            rgba(255, 255, 255, 0.18) 6px,
            rgba(255, 255, 255, 0) 6px,
            rgba(255, 255, 255, 0) 12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    height: 3.5em;
    display: flex;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

#wnav.is-fixed {
    position: fixed;
    top: var(--wnav-offset, 140px);
    left: 0;
    right: 0;
    z-index: 1000;
    opacity: 0.88;
    transition: opacity 0.3s ease;
}

#wnav-placeholder {
    height: 0;
}

#wnavi {
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

#wnavi ul {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
    letter-spacing: 0;
    table-layout: fixed;
    display: table;
    border-collapse: separate;
    border-spacing: 0;
    vertical-align: top;
    height: 100%;
}

#wnavi ul li {
    width: 12.5%;
    font-size: 100%;
    white-space: nowrap;
    letter-spacing: 1px;
    display: table-cell;
    height: 100%;
}

#wnavi ul li#home a {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.7em;
    transform: translateY(-9px);
}

#wnavi ul li span {
    display: block;
    font-size: 0.65em;
    padding: 0;
    opacity: 0.6;
}

#wnavi ul li a {
    color: #ffffff;
    padding: 0 10px;
    text-decoration: none;
    font-family: 'Quattrocento', serif;
    line-height: 1.2;
    font-size: 1.1em;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#wnavi ul li a span {
    font-family: 'Noto Sans JP', sans-serif;
}

#wnavi ul li a:hover {
    background-color: rgba(255, 255, 255, 0.16);
}

#navis {
    display: none;
    margin: 0 auto;
    position: relative;
    width: 100%;
    background-color: #0ba8c9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

#navis a {
    display: block;
    padding: 12px 0;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.15em;
    position: relative;
}

#navis a::after {
    content: "\f078";
    position: absolute;
    right: 0.6em;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.8em;
    color: #ffffff;
}

@media (max-width: 480px){
    #wnav {
        height: auto;
        display: block;
        align-items: stretch;
        background-color: #0ba8c9;
        background-image: linear-gradient(120deg,
                rgba(255, 255, 255, 0.18) 0,
                rgba(255, 255, 255, 0.18) 6px,
                rgba(255, 255, 255, 0) 6px,
                rgba(255, 255, 255, 0) 12px);
    }

    #wnav.is-fixed {
        opacity: 0.95;
    }

    #navis {
        display: block;
        background-color: #0ba8c9;
    }

    #wnavi {
        display: none;
        margin: 0;
        padding: 0;
        background-color: #0ba8c9;
    }

    #wnavi ul {
        width: 100%;
        font-size: 4vw;
        display: block;
        border: none;
        padding: 0;
        background-color: #0ba8c9;
    }

    #wnavi ul::after {
        content: "";
        display: block;
        clear: both;
    }

    #wnavi ul li {
        width: 50%;
        float: left;
        line-height: 1.1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        background-color: #0ba8c9;
        box-sizing: border-box;
        display: block;
        min-height: 62px;
    }

    #wnavi ul li:nth-child(2n) {
        border-right: none;
    }

    #wnavi ul li span {
        font-size: 0.6em;
        padding: 1vw 0 0 0;
    }

    #wnavi ul li a {
        height: auto;
        padding: 12px 8px;
        font-size: 1em;
    }

    #wnavi ul li#home a {
        transform: none;
        font-size: 0.9em;
    }

    #wnavi ul li#home a br:nth-of-type(2) {
        display: none;
    }
}

/* ========================================
   Introductionセクション
======================================== */

.lead-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, #ffffff 10%, rgba(255, 255, 255, 0.7) 70%), url('../../wedding/images/leadbg.jpg');
    background-size: 100% 100%, cover;
    background-position: left top, right center;
    background-repeat: no-repeat;
    z-index: 0;
}

.index .lead-section .container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 590px;
    width: 400px;
    height: 500px;
    background-image: url('../../images/map.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
    pointer-events: none;
    z-index: 0;
}

/* index.html専用のID */
#intro-heading {
    text-align: left;
    margin-bottom: 25px;
    color: #757575;
    display: block;
    line-height: 0.6em;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
}

#intro-heading .english-text {
    font-family: 'Quattrocento', serif;
    font-size: 45px;
    display: block;
    margin-bottom: 20px;
}

/* index.htmlのlead-section内のsection-header内のpタグ専用（index.html専用） */
.lead-section .section-header p {
    margin: 0 0 3em 0;
}

.point-list {
    font-family: 'Noto Serif JP', serif;
    color: #757575;
    font-size: 0.8em;
    margin-bottom: 0.5em;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 1em;
    display: inline-block;
    width: fit-content;
}

.point-list h3 {
    font-family: 'Noto Serif JP', serif;
    padding-bottom: 0.5em;
}

.point-list ol {
    border-top: 1px solid #ccc;
    padding-top: .5em;
    padding-left: 2em;
    display: inline-block;
    width: fit-content;
}

.point-list li {
    margin-bottom: 0.5em;
}

/* ========================================
   Experiencesセクション
   ※ index.html専用のスタイル
======================================== */

.experiences-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: url('../../wedding/images/experiences_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* パララックス効果 */
    z-index: 1;
}

.experiences-section .section-header p {
    color: #757575;
}

.experiences-section .experiences-separator {
    display: block;
    margin: 0 auto 60px;
}

/* スライド行：横並びレイアウト */
/* 奇数行：左寄せレイアウト（スライド + カード）右に10%の空き */
/* 偶数行：右寄せレイアウト（カード + スライド）左に10%の空き */
/* スライド部分 */
.experience-card-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.experience-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.experience-card .btn-more {
    background: #0ba8c9;
    color: #ffffff;
}

.experience-card .btn-more:hover {
    background: #ffffff;
    color: #0ba8c9;
    border: 1px solid #0ba8c9;
}

.experience-card .btn-more:hover::after {
    border-top-color: #0ba8c9;
    border-right-color: #0ba8c9;
}

/* ========================================
   notice-button wedding color override
======================================== */

.booking-cta-section .notice-button,
.facilities-section .notice-button {
    background-color: #0ba8c9;
}

.booking-cta-section .notice-button:hover,
.facilities-section .notice-button:hover {
    background-color: #ffffff;
    color: #0ba8c9;
    border: 1px solid #0ba8c9;
}

.booking-cta-section .notice-button:hover::after,
.facilities-section .notice-button:hover::after {
    border-top-color: #0ba8c9;
    border-right-color: #0ba8c9;
}

/* ご予約誘導セクション内のbooking-cta-visual背景画像 */
.booking-cta-section .booking-cta-visual {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
                url('../../wedding/images/wedding-plan-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 80px 0;
    height: auto;
    text-align: center;
}

.booking-cta-section .booking-cta-visual .booking-cta-overlay {
    position: static;
    transform: none;
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0 auto 40px;
    display: block;
    text-align: center;
}

.booking-cta-section .booking-cta-visual .booking-cta-overlay img {
    width: 60%;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto .3em;
}

.booking-cta-section #booking-cta-heading {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    font-size: clamp(16px, 4vw, 20px);
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.booking-cta-section #booking-cta-heading .booking-cta-text-line2 {
    display: inline;
}

@media (max-width: 768px){
    .booking-cta-section #booking-cta-heading .booking-cta-text-line2 {
        display: block;
    }
}

/* ========================================
   Resort Facilitiesセクション
   ※ index.html専用のスタイル
======================================== */

.facilities-section {
    padding: 80px 0;
    background: #fbf7f4 url('../../wedding/images/facility_bg.jpg');
    background-size: 100% auto;
    background-position: top;
    background-repeat: no-repeat;
}

.facilities-section .notice-button-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.banner-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* タブレット表示時にbanner-containerを調整 */
@media (min-width: 769px) and (max-width: 1024px){
    .banner-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        max-width: 100%;
    }

    .banner-card img {
        height: auto;
    }
}

.banner-card img {
    height: auto;
    object-fit: contain;
    display: block;
}

.banner-container p {
    margin: 0.5em 0 0 0;
    text-align: center;
    font-size: 0.875em;
    line-height: 1.4;
}

/* ========================================
   Galleryセクション
   ※ index.html専用のスタイル
======================================== */

/* 中サイズタブレット（769px-900px）での最適化 */
@media (min-width: 769px) and (max-width: 900px){
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
        padding: 25px 0;
    }

    .gallery-grid img {
        height: 180px;
    }

    .gallery-section h2 {
        font-size: clamp(1.6em, 3.5vw, 2.4em);
        margin-bottom: 20px;
    }


    .social-links {
        gap: 10px;
    }

    .social-links a {
        font-size: 18px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 40px 0 0 0;
    width: 100%;
    margin: 0;
}

@media (min-width: 769px){
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0;
        padding: 20px 0 0 0;
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 768px){
    .gallery-section .social-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 1em 0;
    }
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.social-links a {
    display: inline-block;
    text-decoration: none;
    font-size: .8em;
    transition: transform 0.3s, background-color 0.3s, border-color 0.3s;
    color: #757575;
    white-space: nowrap;
    border: 1px solid #cfcfcf;
    padding: 8px 16px;
    border-radius: 999px;
}

.social-links a i {
    color: #757575;
    margin-right: 0.5em;
}

.social-links a:hover {
    transform: translateY(-3px);
    border-color: #bdbdbd;
}

@media (max-width: 480px){
    main > #wnav + .lead-section .container,
    main > #wnav + #wnav-placeholder + .lead-section .container {
        padding-top: 68px;
    }

    .index .lead-section {
        width: 100%;
        margin: 0;
        overflow: hidden;
    }

    .experience-card .experience-card-media {
        display: none;
    }

    .facilities-section {
        padding: 60px 0;
        background: #fbf7f4 url('../../wedding/images/facility_bg.jpg') no-repeat left center;
        background-size: cover;
        background-attachment: scroll;
    }

    .banner-container {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* facilities-sectionはスマホ時も改行を有効にする */
    .facilities-section .section-header p br {
        display: inline;
    }

    /* スマホ表示時は右パディングを外して横幅を確保 */
    .lead-section .section-header p {
        padding-right: 0;
    }

    /* スマホ表示時の背景位置調整 */
    .lead-section::before {
        background-image: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 0%), url(../../wedding/images/leadbg.jpg);
        background-position: left top, right center;
    }

    /* 右余白発生対策: リード内の装飾マップをスマホでは非表示 */
    .index .lead-section .container::before {
        display: none;
    }
}

@media (max-width: 1024px){
    .experiences-slides-container {
        margin: 24px auto 0;
    }

    /* weddingのお問合せ文言はタブレットでも改行を維持 */
    .facilities-section .section-header p br {
        display: inline;
    }

    .experiences-slide-row,
    .experiences-slide-row:nth-child(odd),
    .experiences-slide-row:nth-child(even) {
        display: block;
        padding: 0 15px;
        margin-bottom: 40px;
    }

    .experiences-slide-row:last-child {
        margin-bottom: 0;
    }

    .experiences-slide {
        width: 100%;
        max-width: none;
        height: 200px;
        margin: 0 0 20px 0 !important;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .experiences-slide-wrapper {
        width: 100%;
        height: 100%;
        min-height: 200px;
        max-height: none;
    }

    .experiences-slide-row .experience-card {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .facilities-section .notice-button-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}
