/* ============================================
   雅 -MIYABI- 京梅酒コレクション
   style.css - メインスタイルシート
   ============================================ */

/* === CSS変数（カラーシステム） === */
:root {
    /* メインカラー */
    --color-main: #5A5959;
    --color-main-light: #7A7979;
    --color-main-dark: #3A3939;
    --color-main-pale: #9A9999;
    --color-main-10: rgba(90, 89, 89, 0.1);
    --color-main-20: rgba(90, 89, 89, 0.2);

    /* サブカラー（アクセント） */
    --color-sub: #BFCCAE;
    --color-sub-light: #D4DDCA;
    --color-sub-dark: #96A882;
    --color-sub-10: rgba(191, 204, 174, 0.1);
    --color-sub-20: rgba(191, 204, 174, 0.2);

    /* アクセントカラー */
    --color-accent: #ffffff;
    --color-accent-light: #D4DDCA;
    --color-accent-dark: #96A882;
    --color-accent-10: rgba(191, 204, 174, 0.1);

    /* 背景色 */
    --bg-washi: #111111;
    --bg-washi-alt: #EDE9E0;
    --bg-dark: #2d2e2d;
    --bg-dark-alt: #222121;
    --bg-footer: #1C1B1B;

    /* テキスト色 */
    --text-dark: #ffffff;
    --text-body: #ffffff;
    --text-light: #F7F5F0;
    --text-muted: #e6e6e6;

    /* フォント */
    --font-serif: 'Noto Serif JP', 'Yu Mincho', serif;
    --font-sans: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    /* スペーシング */
    --section-pad: clamp(4rem, 10vw, 8rem);
    --container-max: 1200px;
    --container-pad: clamp(1.25rem, 5vw, 3rem);

    /* トランジション */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-slow: 1.2s;
    --duration-mid: 0.8s;
    --duration-fast: 0.4s;
}

/* === リセット & 基本設定 === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: auto;
    /* JSで制御するため無効化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--bg-washi);
    line-height: 1.9;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    position: relative;
    z-index: 2;
}

/* === 共通セクション === */
.section {
    position: relative;
    padding: var(--section-pad) 0;
    overflow: hidden;
}

.section--dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section__label {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2rem;
}

.section__label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.5rem;
    height: 1px;
    background: var(--color-accent);
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

.accent-text {
    color: var(--color-accent);
}

/* === 和紙テクスチャ背景（自然テクスチャ強化） === */
.section__bg-texture {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
    background:
        /* 細かい繊維模様 */
        repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(150, 168, 130, 0.04) 2px,
            rgba(150, 168, 130, 0.04) 4px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 3px,
            rgba(130, 148, 110, 0.03) 3px,
            rgba(130, 148, 110, 0.03) 5px),
        /* 自然風グラデーション */
        radial-gradient(ellipse at 15% 30%,
            rgba(191, 204, 174, 0.12),
            transparent 50%),
        radial-gradient(ellipse at 85% 20%,
            rgba(191, 204, 174, 0.08),
            transparent 45%),
        radial-gradient(ellipse at 50% 80%,
            rgba(212, 221, 202, 0.1),
            transparent 55%),
        /* 水彩風の滲み */
        radial-gradient(circle at 30% 60%,
            rgba(191, 204, 174, 0.06),
            transparent 30%),
        radial-gradient(circle at 70% 40%,
            rgba(150, 168, 130, 0.05),
            transparent 35%);
}

.section__bg-texture--alt {
    background:
        repeating-linear-gradient(30deg,
            transparent,
            transparent 3px,
            rgba(90, 89, 89, 0.03) 3px,
            rgba(90, 89, 89, 0.03) 5px),
        repeating-linear-gradient(-60deg,
            transparent,
            transparent 2px,
            rgba(90, 89, 89, 0.025) 2px,
            rgba(90, 89, 89, 0.025) 4px),
        radial-gradient(ellipse at 30% 70%,
            rgba(191, 204, 174, 0.08),
            transparent 50%),
        radial-gradient(ellipse at 70% 30%,
            rgba(191, 204, 174, 0.06),
            transparent 40%);
}

/* 自然の背景画像（削除済み、parallax-bgに移行） */

/* === 曲線・斜め区切り === */
.curve-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.curve-divider svg {
    width: 100%;
    height: auto;
    display: block;
}

.curve-divider--hero {
    z-index: 5;
}

.curve-divider--hero svg {
    height: clamp(60px, 10vw, 150px);
}

.curve-divider--wave svg,
.curve-divider--diagonal svg {
    height: clamp(50px, 8vw, 120px);
}

.curve-divider--footer svg {
    height: clamp(40px, 6vw, 80px);
}

/* === 画像の角丸設定（Phase 2: 24pxに統一） === */
.curve-clip,
.curve-clip-alt,
.curve-clip-sm,
.curve-clip-lg {
    border-radius: 24px;
    overflow: hidden;
    transition: transform var(--duration-mid) var(--ease-out-expo);
}

.curve-clip:hover,
.curve-clip-alt:hover,
.curve-clip-sm:hover,
.curve-clip-lg:hover {
    transform: none;
}

/* === ナビゲーション === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: all var(--duration-mid) var(--ease-out-quart);
}

.nav--scrolled {
    background: rgba(46, 45, 45, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.nav__logo-jp {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.1em;
}

.nav__logo-en {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-sub-light);
    text-transform: uppercase;
}

.nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-light);
    transition: all var(--duration-fast) ease;
    transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: rgba(46, 45, 45, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right var(--duration-mid) var(--ease-out-expo);
}

.nav__menu.open {
    right: 0;
}

.nav__menu li a {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--text-light);
    letter-spacing: 0.15em;
    position: relative;
    padding: 0.25rem 0;
}

.nav__menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--duration-fast) var(--ease-out-quart);
}

.nav__menu li a:hover::after {
    width: 100%;
}

/* === ヒーローセクション === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.4) saturate(0.9);
}

.hero__video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(28, 27, 27, 0.3) 0%,
            rgba(28, 27, 27, 0.1) 40%,
            rgba(28, 27, 27, 0.4) 80%,
            rgba(28, 27, 27, 0.7) 100%),
        radial-gradient(ellipse at center,
            transparent 0%,
            rgba(28, 27, 27, 0.3) 100%);
}

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 0 1.5rem;
}

.hero__sub {
    font-family: var(--font-serif);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    letter-spacing: 0.4em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero__title {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero__title-main {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--color-sub-light) 50%, var(--color-sub) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__title-sub {
    display: block;
    font-family: var(--font-accent);
    font-size: clamp(0.875rem, 3vw, 1.25rem);
    letter-spacing: 0.6em;
    color: var(--color-sub-light);
    margin-top: 0.5rem;
}

.hero__desc {
    font-family: var(--font-serif);
    font-size: clamp(0.9rem, 2.5vw, 1.125rem);
    letter-spacing: 0.35em;
    color: var(--color-sub-light);
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero__catch {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 3vw, 1.5rem);
    letter-spacing: 0.3em;
    color: var(--color-accent-light);
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
}

/* ヒーロー初期アニメーション */
.hero__content .animate-item.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

/* スクロール促進インジケーター */
.hero__scroll-indicator {
    position: absolute;
    bottom: clamp(80px, 12vw, 180px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero__scroll-indicator span {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-sub-light);
}

.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--color-sub-light), transparent);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent-light);
    animation: scrollDown 2s var(--ease-out-quart) infinite;
}

@keyframes scrollDown {
    0% {
        top: -100%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

/* === ストーリーセクション === */
.story__header {
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

.story__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.story__lead {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 3vw, 1.375rem);
    line-height: 2.4;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.story__text {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 2.2;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.story__img-wrap {
    aspect-ratio: 4/5;
}

.story__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === 商品セクション === */
.product {
    padding-top: clamp(5rem, 12vw, 10rem);
    padding-bottom: clamp(5rem, 12vw, 10rem);
}

.parallax-bg {
    position: absolute;
    inset: -40% 0;
    z-index: 0;
    will-change: transform;
    /* セクションからはみ出さないようにしつつ、
       内側の画像を全面表示させるために隠す */
    overflow: hidden;
}

.parallax-bg img {
    width: 100%;
    height: 100%;
    /* セクション全体を必ず覆う */
    object-fit: cover;
    object-position: center center;
    transition: filter var(--duration-mid) ease;
}

/* ダークセクションの背景は暗く */
.section--dark .parallax-bg img {
    filter: brightness(0.4) saturate(0.9);
    opacity: 0.8;
}

/* ライトセクションの背景は薄く表示 */
.section:not(.section--dark) .parallax-bg img {
    filter: brightness(1.2) grayscale(0.1);
    opacity: 0.8;
}

/* =====================================================
   スマホ対応：パララックス無効化 + 背景固定
   =====================================================
   768px 以下でパララックスのスクロール追従を停止し、
   スマホ用画像（data-sp-src で差し替え済み）を
   object-position: center で適切に表示する。
   パフォーマンス向上のため will-change も解除する。
   ===================================================== */
@media (max-width: 767px) {

    /* コンテナの inset を縮小してオーバーフロー範囲を最小化 */
    .parallax-bg {
        inset: 0;               /* はみ出し量をゼロに（スクロールしない） */
        will-change: auto;      /* GPU レイヤー解放でメモリ節約 */
        transform: none !important; /* JS からの translate3d を強制リセット */
    }

    /* スマホ画像の表示を最適化
       縦長画面に合わせて上部を優先表示 */
    .parallax-bg img {
        object-position: center top;
    }

    /* ダークセクション：スマホではやや暗くして可読性を確保 */
    .section--dark .parallax-bg img {
        filter: brightness(0.38) saturate(0.85);
        opacity: 0.85;
    }

    /* ライトセクション：スマホではやや薄くしてコンテンツを目立たせる */
    .section:not(.section--dark) .parallax-bg img {
        filter: brightness(0.88) grayscale(0.15);
        opacity: 0.65;
    }
}

/* 商品メイン画像（背景切り抜き風） */
.product__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}

.product__gallery {
    position: relative;
}

.product__main-img {
    aspect-ratio: 3/4;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(191, 204, 174, 0.08) 0%, transparent 70%);
}

.product__main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.product__sub-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.product__sub-img {
    aspect-ratio: 1/1;
}

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

.product__number {
    font-family: var(--font-accent);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 300;
    color: var(--color-sub);
    opacity: 0.7;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.product__name {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.product__subtitle {
    font-family: var(--font-serif);
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.product__desc {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 2.2;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.product__features {
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.product__features li {
    font-size: 0.875rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(191, 204, 174, 0.25);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product__features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.product__price {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.product__price .tax {
    font-size: 0.75rem;
    font-weight: 300;
    opacity: 0.7;
    margin-left: 0.25rem;
}

/* 商品セクション（テクスチャ背景あり） */
.product--reverse .product__inner {
    direction: ltr;
}

/* === こだわりセクション === */
.commitment__header {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

.commitment__header .section__label {
    padding-left: 0;
}

.commitment__header .section__label::before {
    display: none;
}

.commitment__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

.commitment__card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(90, 89, 89, 0.06);
}

.commitment__card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.commitment__card-body {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.commitment__card-title {
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.commitment__card-text {
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    line-height: 2;
    letter-spacing: 0.04em;
}

/* 品質への誇り */
.commitment__quality-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    padding: clamp(1.5rem, 5vw, 3rem);
    box-shadow: 0 10px 60px rgba(90, 89, 89, 0.06);
    border-radius: 24px;
}

.commitment__quality-img {
    aspect-ratio: 16/10;
}

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

.commitment__quality-text h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.commitment__quality-text p {
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    line-height: 2.2;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.commitment__awards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.award-badge {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--color-sub-10);
    border: 1px solid var(--color-sub-20);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    flex: 1;
    min-width: 160px;
}

.award-badge__icon {
    font-size: 1.5rem;
}

.award-badge__text {
    font-size: 0.6875rem;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--text-body);
}

/* === フッター === */
.footer {
    background: var(--bg-footer);
    color: var(--text-light);
    padding: clamp(3rem, 8vw, 5rem) 0 2rem;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.footer__logo-jp {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--text-light), var(--color-sub-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer__logo-en {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--color-main);
}

.footer__tagline {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.footer__links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: color var(--duration-fast) ease;
}

.footer__links a:hover {
    color: var(--color-accent);
}

/* SNSアイコン */
.footer__sns {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.footer__sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(191, 204, 174, 0.1);
    border: 1px solid rgba(191, 204, 174, 0.2);
    color: var(--text-muted);
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.footer__sns-link:hover {
    background: rgba(191, 204, 174, 0.25);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(191, 204, 174, 0.2);
}

.footer__sns-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer__legal {
    font-size: 0.6875rem;
    color: var(--color-accent-dark);
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(191, 204, 174, 0.15);
    letter-spacing: 0.05em;
}

.footer__copy {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* === アニメーション（スクロール連動） === */
.animate-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
    will-change: opacity, transform;
}

/* =====================================================
   画像 ソフト・フェードイン on Scroll
   ─────────────────────────────────────────────────────
   設計ポイント：
     - translateY 18px（わずかな上昇のみ、激しく動かない）
     - scale なし（純粋な透明度＋位置変化）
     - duration 1.1s（ゆっくり、落ち着いたテンポ）
     - easing  cubic-bezier(0.25, 0.46, 0.45, 0.94)
               = ease-out-quad
               最初は自然な速さで、終盤にじわりと減速する
               expo 系より柔らかく「溶け込む」印象
     - data-img-delay : ms 単位スタガー遅延
         メイン画像    0ms
         サブ画像1    200ms
         サブ画像2    380ms
   ===================================================== */

/* ── 初期状態：半透明 + わずかに下にオフセット ──
   「ふわっ」と自然に浮き出る印象を出すため、
   やや見える状態から、少し長めの時間で
   ゆるやかに不透明へフェードさせる */
.img-fade {
    opacity: 0.65;
    /* 位置の変化はさせず、純粋な不透明度のみでフェードイン */
    transform: none;
    transition:
        opacity  3.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity;
}

/* ── フェードイン完了 ── */
.img-fade.is-active {
    opacity: 1;
    transform: var(--color-accent-dark);
}

/* ── ストーリー画像：右から左へ溶け込む ── */
.story__img-wrap.img-fade {
    transform: none;
    transition:
        opacity  3.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.story__img-wrap.img-fade.is-active {
    transform: none;
}

/* ── こだわり品質・大画像：ごく微細なスケール＋フェード ── */
.commitment__quality-img.img-fade {
    opacity: 0.25;
    transform: none;
    transition:
        opacity  3.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.commitment__quality-img.img-fade.is-active {
    opacity: 1;
    transform: none;
}

.animate-item[data-animation="slide-left"] {
    transform: translateX(-60px);
}

.animate-item[data-animation="slide-right"] {
    transform: translateX(60px);
}

.animate-item[data-animation="fade-up"] {
    transform: translateY(50px);
}

.animate-item[data-animation="scale-up"] {
    transform: scale(0.9);
}

.animate-item.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* === レスポンシブ（タブレット以上） === */
@media (min-width: 768px) {
    .nav__hamburger {
        display: none;
    }

    .nav__menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: row;
        gap: 2rem;
    }

    .nav__menu li a {
        font-size: 0.8125rem;
    }

    .story__body {
        grid-template-columns: 1fr 1fr;
    }

    .product__inner {
        grid-template-columns: 1fr 1fr;
    }

    .product--reverse .product__inner {
        direction: rtl;
    }

    .product--reverse .product__inner>* {
        direction: ltr;
    }

    .commitment__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .commitment__quality-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer__brand {
        align-items: flex-start;
    }
}

/* === レスポンシブ（デスクトップ） === */
@media (min-width: 1024px) {
    .product__inner {
        gap: 5rem;
    }

    .story__body {
        gap: 5rem;
    }
}

/* === ユーティリティ === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* スムーススクロール対応（prefers-reduced-motion） */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-item {
        opacity: 1 !important;
        transform: none !important;
    }

    /* img-fade もモーション無効化 */
    /* .img-fade {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    } */
}

/* === To Top ボタン === */
.to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-main);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-fast) var(--ease-out-quart);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    background: var(--color-accent);
    color: var(--text-dark);
}

.to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 767px) {
    .to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
}