@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Noto+Serif+JP&display=swap');

/* --- サイト全体の基本設定 (ダークモード対策追加) --- */
html {
    /* どのブラウザでもスクロールバーの色を統一 */
    scrollbar-width: thin;
    scrollbar-color: #a0a0a0 #e9e7e3;

    /* デバイスのモードに関わらず、ライトモードとして描画させる */
    color-scheme: light;

    /* scroll-behavior: smooth; <- Removed for Lenis */
    /* scroll-behavior: smooth; <- Removed for Lenis */
}




*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Instrument Serif', 'Noto Serif JP', -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.7;
    color: #4a4a4a;
    background-color: #f9f8f6;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* --- Navigation Menu --- */
.nav-toggle {
    padding: .5em;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: fixed;
    z-index: 1000;
    top: 1em;
    right: 1em;
}

.hamburger {
    display: block;
    position: relative;
    background: transparent;
    width: 2em;
    height: 2px;
    transition: transform 250ms ease-in-out;
}

.nav-open .hamburger::before,
.nav-open .hamburger::after {
    background: #4a4a4a;
}


.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    background: #4a4a4a;
    height: 2px;
    transition: transform 250ms ease-in-out, top 250ms ease-in-out, bottom 250ms ease-in-out;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.nav-open .hamburger {
    transform: none;
}

.nav-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}


.nav {
    position: fixed;
    background: rgba(249, 248, 246, 0.95);
    color: #4a4a4a;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 250ms cubic-bezier(.5, 0, .5, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.nav-open .nav {
    transform: translateX(0);
}

html.nav-open {
    overflow: hidden;
}

.nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__item {
    margin-bottom: 2em;
}

.nav__link {
    color: inherit;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}

.nav-open .nav__link {
    opacity: 1;
    transition-delay: 250ms;
}

.nav__link:hover {
    color: #000;
}

/* --- ヒーローヘッダーのスタイル --- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-text {
    position: relative;
    z-index: 10;
}

.hero-text h1,
.hero-text p {
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    opacity: 0.8;
}

.scroll-text {
    font-family: 'Instrument Serif', serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: white;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    animation: scroll-line-animation 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scroll-line-animation {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* --- コンテンツエリアの共通スタイル --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

main section {
    padding: 80px 0;
}

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

main section h2 {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    /* 他のコンテンツより手前に表示 */

    /* スクロールするコンテンツが透けないように背景色を指定 */
    background-color: #f9f8f6;
    /* デフォルトの背景色 */

    /* 見た目のためのパディングと、h2の下のスペースを再設定 */
    padding: 20px 0;
    margin-bottom: 30px;
    /* タイトルとコンテンツの間のスペース */

    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.dot-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #666;
    transform: scale(1.3);
}

main section:nth-child(even) h2 {
    background-color: #fff;
}

/* Ensure headers in sticky sections stay on top - REMOVED */
/* .our-history h2,
.q-and-a h2,
.playlist h2 {
    z-index: 50;
    position: sticky;
    top: 0;
} */

h2 {
    margin-bottom: 0;
}

h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

h4 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

/* --- メッセージセクションのスタイル --- */
.message {
    text-align: center;
}

/* --- Our History Section (Vertical Parallax Style) --- */
.our-history {
    height: auto;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.history-sticky-container,
.history-pin-wrap,
.history-scroll-trigger-area {
    display: block;
    height: auto;
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0;
}

.history-item-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 180px auto;
    /* Increased spacing for elegance */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
}

.history-item-wrapper:last-child {
    margin-bottom: 50px;
}

.history-era-title {
    font-family: 'Instrument Serif', serif;
    font-size: 3.5rem;
    /* Larger, more impact */
    color: #254638;
    /* Peninsula Green */
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.history-names-header {
    display: none;
}

.history-content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    /* More breathing room */
    width: 100%;
    position: relative;
}

.history-person {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.history-person img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 2px;
    /* Minimal radius for elegance */
    box-shadow: 0 15px 30px rgba(37, 70, 56, 0.1);
    /* Subtle green shadow */
    margin-bottom: 40px;
    will-change: transform;
}

/* Stagger the images visually */
.history-person:nth-child(2) {
    margin-top: 100px;
}

.history-person p {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.95rem;
    line-height: 2.2;
    /* Relaxed line height */
    color: #555;
    text-align: left;
    max-width: 300px;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .history-item-wrapper {
        margin-bottom: 120px;
    }

    .history-era-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .history-content-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .history-person:nth-child(2) {
        margin-top: 0;
    }

    .history-person img {
        max-width: 100%;
        aspect-ratio: 4 / 5;
    }

    .history-person p {
        text-align: center;
    }
}


/* --- Q&A Section (Vertical Parallax Style) --- */
.q-and-a {
    padding: 120px 0;
    background-color: #fff;
}

.qa-sticky-container,
.qa-pin-wrap,
.qa-scroll-trigger-area {
    display: block;
    height: auto;
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0;
}

.qa-item-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 140px auto;
    padding: 0 20px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    min-height: auto;
    opacity: 1;
}

.qa-item-wrapper:last-child {
    margin-bottom: 50px;
}

.qa-item-content {
    text-align: center;
    width: 100%;
}

.qa-question h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 2.2rem;
    color: #254638;
    /* Peninsula Green */
    margin-bottom: 60px;
    line-height: 1.3;
}

.qa-answers-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    text-align: left;
}

.qa-answer {
    border-top: 1px solid rgba(37, 70, 56, 0.2);
    /* Subtle green border */
    padding-top: 25px;
    transition: transform 0.3s ease;
}

.qa-answer h5 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.qa-answer p {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.95rem;
    line-height: 2.2;
    color: #555;
}

/* Unified elegant colors for names */
.qa-answer-hayato h5 {
    color: #254638;
    /* Peninsula Green */
}

.qa-answer-anna h5 {
    color: #8C8C8C;
    /* Elegant Gray */
}

@media (max-width: 768px) {
    .qa-item-wrapper {
        margin-bottom: 100px;
    }

    .qa-question h3 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .qa-answers-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- プロフィールセクションのスタイル --- */
.profile {
    text-align: center;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.profile-item img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .profile-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }

    .profile-item {
        width: 320px;
    }
}

.profile-item h3 {
    font-size: 1.8rem;
    color: #254638;
    /* Peninsula Green */
    margin-top: 10px;
    margin-bottom: 25px;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 30px;
    text-align: left;
    max-width: 320px;
    margin: 0 auto;
}

.detail-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #e9e7e3;
}

.detail-item span {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.5px;
}

.detail-item p {
    font-size: 1.1rem;
    margin: 6px 0 0 0;
    font-weight: 500;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

/* --- スクロールヒントの矢印アニメーション (Scroll Snap版) --- */
.scroll-hint-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-bottom: 3px solid #666;
    border-right: 3px solid #666;
    transform: translateX(-50%) rotate(45deg);
    animation: bounce-fade 2s infinite ease-in-out;
    opacity: 0.8;
}

/* 各セクションの最後のスライドに含まれる矢印だけを非表示にする */
.our-history .history-item-wrapper:last-child .scroll-hint-arrow,
.q-and-a .qa-item-wrapper:last-child .scroll-hint-arrow {
    display: none;
}

/* スクロールヒントテキスト */
.scroll-hint-text {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
    margin-bottom: 20px;
    animation: fade-in-hint 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scroll-hint-text::before {
    content: '↓';
    font-size: 1.2rem;
    animation: bounce-hint 2s infinite ease-in-out;
}

@keyframes fade-in-hint {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce-hint {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}


@keyframes bounce-fade {
    0% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(-15px) rotate(45deg);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }

    100% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(15px) rotate(45deg);
    }
}

/* --- カルーセル共通のスタイル --- */
.swiper {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.city-swiper,
.gourmet-swiper,
.photo-swiper {
    border-radius: 12px;
}

@media (min-width: 768px) {
    .swiper {
        aspect-ratio: 16 / 9;
    }
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.autoplay-progress {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 3px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.autoplay-progress .progress-bar {
    flex: 1;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    overflow: hidden;
}

.autoplay-progress .progress-bar span {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    transform-origin: left;
    transform: scaleX(0);
}

.comment-container {
    font-size: 1.1rem;
    font-style: italic;
    color: #6a6a6a;
    margin-top: 25px;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.store-info-container {
    min-height: 40px;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.store-info-container a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #4a4a4a;
    font-size: 0.95rem;
    background-color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.store-info-container a:hover {
    color: #000;
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.store-info-container svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --- 都市切り替えタブのスタイル --- */

.travel .city-pagination {
    margin-top: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 767px) {
    .travel .city-pagination {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 4px 0 12px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #a0a0a0 #e9e7e3;
    }

    .travel .city-pagination::-webkit-scrollbar {
        height: 6px;
    }

    .travel .city-pagination::-webkit-scrollbar-track {
        background: #e9e7e3;
        border-radius: 6px;
    }

    .travel .city-pagination::-webkit-scrollbar-thumb {
        background-color: #a0a0a0;
        border-radius: 6px;
    }
}

.city-pagination .swiper-pagination-bullet {
    width: auto;
    height: auto;
    padding: 8px 20px;
    border-radius: 20px;
    background-color: #e9e7e3;
    color: #4a4a4a;
    font-family: 'Instrument Serif', 'Noto Serif JP', sans-serif;
    font-size: 1rem;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.city-pagination .swiper-pagination-bullet-active {
    background-color: #4a4a4a;
    color: white;
}

/* --- Our Playlistセクションのスタイル --- */
.spotify-area {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.playlist-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 151px;
}

.spotify-recommender {
    position: absolute;
    top: -12px;
    left: 12px;
    z-index: 15;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) rotate(-5deg);
    transition: all 0.4s ease-out;
}

.spotify-recommender::after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: -7px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.spotify-recommender.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotate(0deg);
}

.spotify-recommender.reco-hayato {
    background-color: #3B73B1;
}

.spotify-recommender.reco-hayato::after {
    border-top-color: #3B73B1;
}

.spotify-recommender.reco-anna {
    background-color: #E9858A;
}

.spotify-recommender.reco-anna::after {
    border-top-color: #E9858A;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    z-index: 10;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9e7e3;
    border-top-color: #4a4a4a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.playlist-container.is-loading .loader-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.shuffle-button-container {
    text-align: center;
    margin-top: 25px;
}

.shuffle-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background-color: #4a4a4a;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    font-family: 'Instrument Serif', 'Noto Serif JP', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.shuffle-button:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.shuffle-button .material-symbols-outlined {
    font-size: 1.4rem;
}

/* --- Thank Youセクションのスタイル --- */
.thank-you {
    text-align: center;
}



/* --- トップへ戻るボタンのスタイル --- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(74, 74, 74, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #000;
}

.back-to-top::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-top: 2px solid white;
    border-left: 2px solid white;
    transform: translateY(25%) rotate(45deg);
}

/* --- スクロールアニメーションのスタイル --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- フッター --- */
footer {
    padding: 40px 20px;
    text-align: center;
    background-color: #e9e7e3;
}

/* --- カスタムスクロールバーのスタイル --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e9e7e3;
}

::-webkit-scrollbar-thumb {
    background-color: #a0a0a0;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #888;
}

/* --- Google Photos Share --- */
.google-photos-share {
    margin-top: 40px;
    text-align: center;
}

.google-photos-share p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
}

.google-photos-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #4285f4;
    /* Google Photos Blue */
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.google-photos-button:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* モバイル用ギャラリースタイル（Instagramリール風） */
@media (max-width: 768px) {

    /* Travelセクションの外枠修正 */
    .city-swiper {
        aspect-ratio: auto;
        height: auto;
        padding-bottom: 20px;
    }

    .travel-swiper,
    .gourmet-swiper,
    .photo-swiper {
        aspect-ratio: 3 / 4;
        /* 9/16から変更して高さを抑える */
    }

    .travel-swiper .swiper-slide,
    .gourmet-swiper .swiper-slide,
    .photo-swiper .swiper-slide {
        /* aspect-ratio: 9 / 16; <- Inherited from container or handled by flex */
        height: 100% !important;
        position: relative;
        overflow: hidden;
        background-color: #000;
        border-radius: 12px;
    }

    /* ぼかし背景 */
    .travel-swiper .swiper-slide::before,
    .gourmet-swiper .swiper-slide::before,
    .photo-swiper .swiper-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: var(--bg-image);
        background-size: cover;
        background-position: center;
        filter: blur(20px);
        opacity: 0.6;
        z-index: 0;
    }

    /* メイン画像 */
    .travel-swiper .swiper-slide img,
    .gourmet-swiper .swiper-slide img,
    .photo-swiper .swiper-slide img {
        position: relative;
        width: 100%;
        height: 100%;
        object-fit: contain;
        z-index: 1;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* --- Gallery Horizontal Scroll --- */
.gallery-pin-wrap {
    height: auto;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #000;
    color: #fff;
    position: relative;
    padding: 100px 0;
}

.gallery-pin-wrap h2 {
    position: relative;
    top: auto;
    left: auto;
    z-index: 10;
    color: #fff;
    background: transparent;
    margin: 0 auto 60px auto;
    font-size: 3rem;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.gallery-track {
    display: flex;
    gap: 40px;
    padding: 0 10vw;
    width: 100%;
    height: 60vh;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
}

.gallery-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.gallery-item {
    width: 60vw;
    height: 100%;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1);
}

/* Mobile Optimization for History and Q&A */
@media (max-width: 768px) {

    .history-pin-wrap,
    .qa-pin-wrap {
        height: auto !important;
        display: block !important;
        position: relative !important;
        overflow: visible !important;
    }

    .history-item-wrapper,
    .qa-item-wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 90dvh;
        /* Increased to give more reading time */
        opacity: 1 !important;
        /* Controlled by JS, but good default */
        visibility: visible !important;
        margin-bottom: 20px;
        padding: 40px 20px;
    }

    /* Ensure content is centered in the vertical stack */
    .history-item-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Fix for hidden history content on mobile */
    .history-item-wrapper .history-era-title,
    .history-item-wrapper .history-names-header,
    .history-item-wrapper .history-person {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Fix for hidden Q&A content on mobile */
    .qa-item-wrapper .qa-question,
    .qa-item-wrapper .qa-answer {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Adjust Gallery for Mobile */
    .gallery-pin-wrap {
        height: auto !important;
        display: block !important;
        overflow-x: auto !important;
        padding: 50px 0;
    }

    .gallery-track {
        width: 100%;
        padding: 0 20px;
        gap: 20px;
        transform: none !important;
        /* Disable GSAP transform on mobile if needed */
    }

    .gallery-item {
        width: 80vw;
        height: 50vh;
        transform: none !important;
    }
}

/* --- Gallery Navigation --- */
.gallery-nav {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 16px;
    z-index: 10;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(30, 30, 30, 0.6);
    /* Dark semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    color: #f5f5f7;
    /* Apple-ish white */
    padding: 0;
}

.nav-btn:hover {
    background-color: rgba(50, 50, 50, 0.8);
    transform: scale(1.05);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

@media (max-width: 768px) {
    .gallery-nav {
        bottom: 20px;
        right: 20px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .nav-btn svg {
        width: 20px;
        height: 20px;
    }
}