html,
body {
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: #4a3c31;
    /* ダークブラウン */
    background-color: #faf9f8;
    /* ベース背景 */
}

html {
    scroll-behavior: smooth;
}

/* セクション間余白 */
.section-gap {
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .section-gap {
        margin-bottom: 120px;
    }
}

.no-margin {
    margin-bottom: 0 !important;
}

/* 各セクションに使用する画像デザイン制限（スタッフの丸アイコン除外） */
.content-img {
    border-radius: 0 !important;
    box-shadow: none !important;
    vertical-align: bottom;
    object-fit: cover;
}

/* スタッフのみ丸型 */
.staff-icon {
    border-radius: 50% !important;
}

/* 見出し画像のmax-width */
.heading-img {
    max-width: 50%;
    margin: 0 auto;
    display: block;
}

/* パララックス背景 */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* FV（First View）スタイル */
.fv-container {
    width: 100%;
    height: auto;
    /* 画像の高さなりにFVの高さが変わるように変更 */
    position: relative;
    overflow: hidden;
}

.swiper-fv,
.swiper-fv .swiper-wrapper,
.swiper-fv .swiper-slide {
    width: 100%;
    height: auto;
}

.swiper-fv .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    /* 全幅で表示し、左右が切れないように */
}

/* ブロークングリッド（About） */
.broken-grid-wrap {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .broken-grid-img {
        position: relative;
        right: -10%;
        /* 非対称のリズムを作るため右にずらす */
        margin-top: -10%;
        z-index: -1;
    }

    .broken-grid-text {
        position: relative;
        z-index: 2;
        padding-left: 5%;
    }
}

/* Scroll Down アニメーション */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.scroll-icon {
    width: 20px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 15px;
    position: relative;
    margin-top: 8px;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% {
        top: 5px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

/* 固定SP用CTA */
.fixed-sp-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .fixed-sp-cta {
        display: flex;
    }
}

/* トップへ戻るボタン */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 90px;
    /* SPの固定CTAを避けるため少し上 */
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    background-color: #4a3c31;
    /* ブランドブラウン */
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
    cursor: pointer;
}

.back-to-top:hover {
    background-color: #ffaba8;
    /* アクセントカラーに変更 */
}

@media (min-width: 768px) {
    .back-to-top {
        bottom: 20px;
    }
}


/* SPフルスクリーンメニュー */
#sp-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#sp-menu.open {
    transform: translateX(0);
}

/* アコーディオン */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* ギャラリーモーダル */
.gallery-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-modal.open {
    opacity: 1;
    pointer-events: auto;
}