/* ===============================================
   低温サウナ40℃ - 共通スタイル
   =============================================== */

/* ===============================================
   基本リセット（Tailwind Preflight代替）
   =============================================== */
*, *::before, *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    margin: 0;
    line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button {
    background-color: transparent;
    cursor: pointer;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===============================================
   CSS変数定義（モバイルファースト）
   =============================================== */
:root {
    /* フォントサイズ - スマホ基準 */
    --fs-h1: 1.5rem;        /* 24px */
    --fs-h2: 1.25rem;       /* 20px */
    --fs-h3: 1.125rem;      /* 18px */
    --fs-h4: 1rem;          /* 16px */
    --fs-body: 1rem;        /* 16px */
    --fs-small: 0.8125rem;  /* 13px */
    --fs-xs: 0.6875rem;     /* 11px */

    /* 余白 - スマホ基準 */
    --sp-section: 4rem;     /* 64px */
    --sp-section-sm: 3rem;  /* 48px */
    --sp-container: 1.5rem; /* 24px */
    --sp-heading-h1: 1rem;  /* 16px */
    --sp-heading-h2: 1.5rem; /* 24px */
    --sp-heading-h3: 0.75rem; /* 12px */
    --sp-card: 1.5rem;      /* 24px */
    --sp-gap: 1rem;         /* 16px */
    --sp-gap-sm: 0.5rem;    /* 8px */
}

/* タブレット (640px+) */
@media (min-width: 640px) {
    :root {
        --fs-h1: 1.75rem;       /* 28px */
        --fs-h2: 1.625rem;      /* 26px */
        --fs-h3: 1.25rem;       /* 20px */
        --fs-h4: 1.0625rem;     /* 17px */
        --fs-body: 1rem;        /* 16px */
        --fs-small: 0.8125rem;  /* 13px */
        --fs-xs: 0.75rem;       /* 12px */

        --sp-section: 6rem;     /* 96px */
        --sp-section-sm: 4rem;  /* 64px */
        --sp-container: 2rem;   /* 32px */
        --sp-heading-h1: 1.5rem; /* 24px */
        --sp-heading-h2: 2rem;  /* 32px */
        --sp-heading-h3: 1rem;  /* 16px */
        --sp-card: 2rem;        /* 32px */
        --sp-gap: 1.25rem;      /* 20px */
        --sp-gap-sm: 0.625rem;  /* 10px */
    }
}

/* PC (1024px+) */
@media (min-width: 1024px) {
    :root {
        --fs-h1: 2rem;          /* 32px */
        --fs-h2: 1.875rem;      /* 30px */
        --fs-h3: 1.375rem;      /* 22px */
        --fs-h4: 1.125rem;      /* 18px */
        --fs-body: 1rem;        /* 16px */
        --fs-small: 0.875rem;   /* 14px */
        --fs-xs: 0.75rem;       /* 12px */

        --sp-section: 8rem;     /* 128px */
        --sp-section-sm: 5rem;  /* 80px */
        --sp-container: 2.5rem; /* 40px */
        --sp-heading-h1: 2rem;  /* 32px */
        --sp-heading-h2: 2.5rem; /* 40px */
        --sp-heading-h3: 1.25rem; /* 20px */
        --sp-card: 2.5rem;      /* 40px */
        --sp-gap: 1.5rem;       /* 24px */
        --sp-gap-sm: 0.75rem;   /* 12px */
    }
}

/* ===============================================
   基本スタイル
   =============================================== */
html, body {
    overflow-x: hidden;
}

body {
    background-color: #08080a;
    color: #f8fafc;
    letter-spacing: 0.08em;
    font-weight: 300;
    font-family: Meiryo, "メイリオ", sans-serif;
}

/* ガラスモーフィズム */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(129, 140, 248, 0.3);
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.1);
}

/* 予約ボタン専用スタイル */
.reserve-btn.glass-panel {
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.glass-header {
    background: rgba(8, 8, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ヘッダーロゴのトランジション */
#header .flex-shrink-0 {
    transition: opacity 0.5s ease;
}


/* ===============================================
   本文・テキストスタイル（CSS変数ベース）
   =============================================== */
p, li {
    font-size: var(--fs-body);
    line-height: 1.8;
}

small, .text-small {
    font-size: var(--fs-small);
    line-height: 1.6;
}

.text-xs, .text-caption {
    font-size: var(--fs-xs);
    line-height: 1.5;
}

/* セクション英字タイトル */
.section-title-en {
    font-family: 'Noto Serif JP', serif;
    font-size: var(--fs-small);
    letter-spacing: 0.3em;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.8;
    white-space: nowrap;
}

.tcy {
    text-combine-upright: all;
    -webkit-text-combine: horizontal;
    text-orientation: mixed;
}

@media (max-width: 1440px) {
    .tcy {
        transform: translateX(-5px) ;
    }
}

/* Stylish Button */
.btn-stylish {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    font-size: var(--fs-small);
    letter-spacing: 0.2em;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: uppercase;
    font-family: 'Noto Sans JP', sans-serif;
    text-decoration: none;
}

.btn-stylish::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 1px;
    background-color: #fff;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-stylish:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-right: 4rem;
    border-color: #fff;
}

.btn-stylish:hover::after {
    width: 60px;
    right: -30px;
}

/* International Section - 白黒反転スタイル */
#international .btn-stylish {
    border: 1px solid rgba(0, 0, 0, 0.7);
    color: #000;
    background: rgba(255, 255, 255, 0.2);
}

#international .btn-stylish::after {
    background-color: #000;
}

#international .btn-stylish:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #000;
}

/* セーフエリア対応（iPhoneのホームインジケータ等） */
.safe-area-bottom {
    bottom: max(1.5rem, env(safe-area-inset-bottom));
}

/* 縦書きテキスト */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.4em;
    white-space: nowrap;
    line-height: 2;
}

/* スマートフォン（〜639px）: より大きなフォントサイズ */
@media (max-width: 639px) {
    .vertical-text,
    .vertical-text * {
        font-size: 1.75rem ; /* 28px - span等の上書きを防ぐ */
    }
}

/* タブレット（640px〜1023px） */
@media (min-width: 640px) and (max-width: 1023px) {
    .vertical-text,
    .vertical-text * {
        font-size: 1.5rem ; /* 24px */
    }
}

/* デスクトップ（1024px〜） */
@media (min-width: 1024px) {
    .vertical-text,
    .vertical-text * {
        font-size: 1.875rem ; /* 30px */
    }
}

/* ===============================================
   見出しスタイル（CSS変数ベース）
   =============================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 400;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* H1 - ページタイトル（Hero内） */
h1 {
    font-size: var(--fs-h1);
    line-height: 1.4;
    letter-spacing: 0.15em;
    margin-bottom: var(--sp-heading-h1);
}

/* H2 - セクション見出し */
h2 {
    font-size: var(--fs-h2);
    line-height: 1.5;
    letter-spacing: 0.12em;
    margin-bottom: var(--sp-heading-h2);
}

/* H3 - サブセクション見出し */
h3 {
    font-size: var(--fs-h3);
    line-height: 1.5;
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-heading-h3);
}

/* H4 - カード内見出し、項目名 */
h4 {
    font-size: var(--fs-h4);
    line-height: 1.5;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}


/* FAQ見出しの改行対応 */
@media (max-width: 639px) {
    .faq-item h3 {
        flex-wrap: wrap;
    }
    .faq-item h3 span:last-child {
        width: 100%;
        min-width: 0;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* モバイルメニューのスタイル */
.mobile-menu-content {
    padding-top: var(--mobile-menu-top, 1rem);
}



.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    color: #cbd5e1;
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #6366f1, #8b5cf6);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-menu-link:hover::before,
.mobile-menu-link:active::before {
    transform: scaleY(1);
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transform: translateX(4px);
}

.mobile-menu-link:hover .mobile-menu-text {
    color: #ffffff;
}

.mobile-menu-link:hover i {
    opacity: 1;
    transform: translateX(4px);
}

.mobile-menu-link i {
    transition: all 0.3s ease;
}

.mobile-menu-text {
    transition: color 0.3s ease;
}

/* メニュー開閉時のアニメーション */
#mobile-menu:not(.hidden) .mobile-menu-overlay {
    opacity: 1;
}

#mobile-menu:not(.hidden) .mobile-menu-item {
    opacity: 1 ;
    transform: translateY(0);
}

.mobile-menu-item {
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* バーガーボタンのアニメーション */
#mobile-menu-button[aria-expanded="true"] .menu-line-1 {
    transform: translateY(6px) rotate(45deg);
}

#mobile-menu-button[aria-expanded="true"] .menu-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-button[aria-expanded="true"] .menu-line-3 {
    transform: translateY(-9px) rotate(-45deg);
}

/* モバイル言語切替プルダウン */
#mobile-lang-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-lang-button:hover {
    transform: scale(1.05);
}

#mobile-lang-button[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
}

#mobile-lang-dropdown {
    animation: fadeInDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#mobile-lang-dropdown .lang-switcher {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

#mobile-lang-dropdown .lang-switcher::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #818cf8, #6366f1);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

#mobile-lang-dropdown .lang-switcher:hover::before,
#mobile-lang-dropdown .lang-switcher.text-white::before {
    transform: scaleY(1);
}

#mobile-lang-dropdown .lang-switcher:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 1.5rem;
}

#mobile-lang-dropdown .lang-switcher.text-white {
    background: rgba(129, 140, 248, 0.1);
    padding-left: 1.5rem;
}

#mobile-lang-dropdown .lang-switcher .fas.fa-check {
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

#mobile-lang-dropdown .lang-switcher.text-white .fas.fa-check {
    opacity: 1;
    transform: scale(1);
}

/* 英語版のレスポンシブデザイン最適化 */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

html[lang="en"] p,
html[lang="en"] li,
html[lang="en"] dd,
html[lang="en"] span[data-en],
html[lang="en"] th,
html[lang="en"] td {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

html[lang="en"] a,
html[lang="en"] button {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 英語版のスマホ表示時のフォントサイズ調整 */
@media (max-width: 639px) {
    html[lang="en"] h1 {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem) ;
        line-height: 1.35 ;
        letter-spacing: 0.05em ;
    }
    html[lang="en"] h2 {
        font-size: clamp(1rem, 3.8vw, 1.4rem) ;
        line-height: 1.35 ;
        letter-spacing: 0.05em ;
    }
    html[lang="en"] h3 {
        font-size: clamp(0.95rem, 3.2vw, 1.25rem) ;
        line-height: 1.35 ;
        letter-spacing: 0.05em ;
    }
    html[lang="en"] h4 {
        font-size: clamp(0.9rem, 3vw, 1.1rem) ;
        line-height: 1.4 ;
    }

}

/* 英語版のタブレット表示時の調整 */
@media (min-width: 640px) and (max-width: 1023px) {
    html[lang="en"] h1 {
        font-size: clamp(1.2rem, 3vw, 1.5rem) ;
        line-height: 1.3 ;
    }
    html[lang="en"] h2 {
        font-size: clamp(1.1rem, 2.8vw, 1.4rem) ;
        line-height: 1.3 ;
    }
    html[lang="en"] h3 {
        font-size: clamp(1rem, 2.5vw, 1.3rem) ;
        line-height: 1.35 ;
    }

}

/* 本文タイポグラフィ（HTML版と統一） */
p, li, dd, dt {
    line-height: 1.7;
}

/* 200文字を超える説明文は左寄せ */
p {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 200文字を超える説明文の自動判定と左寄せ */
p[data-ja]:not([data-ja=""]):not(.text-center),
p:not([data-ja]):not(.text-center) {
    text-align: left ;
}

/* レスポンシブデザイン: 改行や文章の折り返しを綺麗に */
p, li, dd, dt, span {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-break: strict;
    word-wrap: break-word;
}

/* 長文の段落スタイル */
.long-text:not(.text-center),
p[data-ja]:not([data-ja=""]):not(.text-center),
section p:not(.text-center) {
    text-align: left ;
    max-width: 100%;
}

/* 中央寄せ指定がある場合は例外 */
p.text-center,
#benefits p.text-center,
section p.text-center,
section .text-center p,
.text-center p[data-ja] {
    text-align: center ;
}

/* レスポンシブ: スマホでの改行最適化 */
@media (max-width: 639px) {
    p, li, dd, dt {
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
        font-size: 1rem;
    }

    dd,dt {
        margin: 0;
    }


}

/* タッチターゲットサイズ最適化（最小44px×44px） */
/* ヘッダー以外のリンク・ボタンに適用（ヘッダーはTailwindで管理） */
main a, main button,
footer a, footer button,
input[type="button"], input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
}

main a:not(.no-flex),
main button:not(.no-flex),
footer a:not(.no-flex),
footer button:not(.no-flex) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 記事カードの日付とタグスタイル */
.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* 記事カード日付 - caption相当 */
.article-date {
    font-size: var(--fs-xs);
    color: #94a3b8;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.15em;
    font-weight: 300;
    flex-shrink: 0;
}

/* 記事カードタグ - caption相当 */
.article-card-tag {
    font-size: var(--fs-xs);
    background: rgba(30, 30, 35, 0.8);
    color: #cbd5e1;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .article-card-tag {
    background-color: rgba(129, 140, 248, 0.25);
    border-color: rgba(129, 140, 248, 0.5);
    color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(129, 140, 248, 0.2);
}

@media (max-width: 639px) {
    .article-meta {
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
}

/* アニメーション */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 画像プレースホルダー */
.placeholder-bg {
    background-color: #121214;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #4b5563;
    position: relative;
    overflow: hidden;
}

.placeholder-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.02) 45%, rgba(255,255,255,0.02) 55%, transparent 60%);
    background-size: 200% 200%;
    animation: shimmer 5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.text-shadow {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.glow-text {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ギャラリースクロール（左方向） */
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ギャラリースクロール（右方向） */
@keyframes scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.animate-scroll-left {
    animation: scroll-left 60s linear infinite;
}

.animate-scroll-right {
    animation: scroll-right 60s linear infinite;
}

/* マウスポインタ */
#cursor-glow {
    position: fixed;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, transform 0.1s ease-out;
    mix-blend-mode: screen;
}

/* 微細なノイズテクスチャ（フィルムグレイン） */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 動画フェードアウト/フェードイン */
#hero-video {
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

#hero-video.video-fade-out {
    opacity: 0;
}

#hero-video.video-fade-in {
    opacity: 1;
}

/* フッターコピーライト */
.footer-copyright,
.footer-copyright p {
    text-align: center;
    font-size: var(--fs-xs);
}

/* ===============================================
   ノートPCサイズ（1024px〜1440px）向けFV最適化
   =============================================== */
@media (min-width: 1024px) and (max-width: 1440px) {
    /* Hero Sectionの高さ調整 */
    section.h-screen {
        min-height: 700px ;
    }
    
    /* Hero Contentのパディング調整 */
    #hero-content {
        padding-bottom: 4rem ;
    }
    
    /* ロゴとテキストの間隔を最適化 - ロゴを下に下げる */
    #hero-content .mt-auto.mb-auto {
        padding-top: 4rem ; /* ロゴを下に下げる */
        margin-top: auto ;
    }
    
    /* ロゴサイズの最適化（1024px〜1440px） */
    #hero-content img {
        height: 18rem ; /* 288px - lg:h-72相当 */
    }
    
    /* 見出しテキストサイズの最適化 */
    #hero-content h1 {
        font-size: 1.25rem ; /* text-xl相当 */
        margin-bottom: 1rem ;
    }
    
    /* ボタンサイズの最適化 */
    #hero-content .inline-block.border {
        padding-left: 2rem ; /* px-8相当 */
        padding-right: 2rem ;
        padding-top: 0.625rem ; /* py-2.5相当 */
        padding-bottom: 0.625rem ;
        font-size: 1.25rem ; /* text-xl相当 */
    }
}

@media screen and (max-width: 768px) {
    section.h-screen {
        min-height: 700px ;
    }
}

/* ===============================================
   モバイルパフォーマンス最適化
   =============================================== */

/* cursor-glow: タッチデバイスで非表示 */
@media (max-width: 1023px), (hover: none) {
    #cursor-glow {
        display: none ;
    }
}

/* noise-overlay: モバイルで無効化（GPU負荷軽減） */
@media (max-width: 767px) {
    .noise-overlay {
        display: none ;
    }
}

/* backdrop-blur: モバイルで無効化（iOS Safari パフォーマンス向上） */
@media (max-width: 767px) {
    .backdrop-blur-sm {
        backdrop-filter: none ;
        -webkit-backdrop-filter: none ;
        background: rgba(0, 0, 0, 0.5) ;
    }
}

/* FV演出: スマホで無効化（カクツキ防止） */
@media (max-width: 767px) {
    /* 動画のscale-105を無効化 */
    #hero-video {
        transform: scale(1) ;
    }
}
@media (max-width: 480px) {
    h2 {
        letter-spacing: 1px;
    }
}

@media (max-width: 400px) {
    h2 {
        font-size: 18px;
    }
}

#faq h3 {
    padding: 0;
    margin: 0;
}

#howto p{
    text-align: center;
}

.faq-accordion-item h3 {
    margin: 0;
}

/* ===============================================
   下層ページ ヒーロー背景画像
   =============================================== */
.hero-bg-image {
    object-position: center center;
}

@media (max-width: 639px) {
    .hero-bg-image {
        object-position: center 30%;
    }
}

/* ===============================================
   固定フッター矢印スタイル
   =============================================== */
.arrow-right {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.arrow-right::after {
    content: '';
    width: 40px;
    height: 8px;
    border-bottom: solid 1px currentColor;
    border-right: solid 1px currentColor;
    transform: skew(45deg);
    transition: width 0.3s ease;
}

.arrow-right:hover::after {
    width: 50px;
}