:root {
    --text-white: #ffffff;
    --font-main: 'Noto Sans JP', sans-serif;
}

/* --- スクロールフリーズを完全に解消する修正コード --- */
html {
    margin: 0;
    padding: 0;
    background-color: #5c5b5a;
    /* html側のoverflowは一切触らずブラウザ本来のスクロール機能に任せます */
}

body {
    margin: 0;
    padding: 0;
    background-color: #5c5b5a;
    width: 100%;
    /* ★body側だけで横揺れ・右側の隙間を100%完全にカットします */
    overflow-x: hidden; 
}

/* --- ヘッダー（ナビゲーション）固定設定 --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    font-size: 11px;
    letter-spacing: 0.15em;
    background-color: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(8px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav span {
    color: #ffffff;
    opacity: 0.6;
    font-size: 10px;
}

/* --- 動画固定ギミックの土台 --- */
.video-sticky-wrapper {
    position: relative;
    width: 100%;
}

/* 背景に完全固定される動画 */
/* 背景に完全固定される動画（画角アップ修正版） */
.fixed-video-bg {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 枠はストーリー終了までに制限（軽量化キープ） */
    z-index: 0;
    overflow: hidden;
    background-color: #5c5b5a;
}

/* 動画自体の引き伸ばし設定 */
.fixed-video-bg video {
    position: absolute; 
    top: 0; /* 上端を基準にします */
    left: 50%;
    transform: translateX(-50%); /* 左右の中央寄せ */
    
    width: 100%;
    
    /* ★修正：引き伸ばす基準を、長い枠（100%）ではなく、
       スマホやPCの「1画面の高さ（100vh）」に合わせることで、初期の画角に戻します */
    height: 105vh; 
    
    object-fit: cover;
    opacity: 0.8;
}

/* 全コンテンツを正しい順序で載せ、クリックを通すための土台設定 */
.scroll-content-container {
    position: relative;
    z-index: 10; 
    width: 100%;
}

/* 1. ファーストビュー */
.hero {
    position: relative;
    z-index: 20; 
    width: 100%;
    height: 105vh; 
    min-height: 60vh; 
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    background: transparent;
    color: var(--text-white);
    font-family: var(--font-main);
    box-sizing: border-box;
}

/* 背面の巨大ロゴ */
.large-bg-logo {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
    opacity: 0.9;
    z-index: 2;
    pointer-events: none;
}

.large-bg-logo img {
    width: 100%;
    display: block;
}

/* 中央のコンテンツ */
.hero-content {
    position: relative;
    text-align: center;
    z-index: 40; 
    margin-top: 35vh;
    margin-bottom: 0;
}

.hero-copy {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-sub-copy {
    font-size: 0.7rem;
    line-height: 1.8;
    letter-spacing: 0.1em;
    max-width: 500px;
    margin: 0 auto 40px;
    opacity: 0.9;
    text-transform: uppercase;
}

/* 商品を詳しくみるボタン */
.btn-outline {
    display: inline-block;
    padding: 14px 45px;
    border: 1px solid var(--text-white);
    border-radius: 50px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.2);
    position: relative;
    z-index: 99; 
    cursor: pointer;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}

/* --- カラーバリエーションセクション（2色均等） --- */
.color-variants-section {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 0px 0 60px; 
    z-index: 25; 
    text-align: center;
    margin-top: 50px;
}

.color-section-tag {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #ffffff; 
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: 'Noto Sans JP', sans-serif;
}

.color-equal-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px; 
    max-width: 900px; 
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.color-card-item {
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Noto Sans JP', sans-serif;
    color: #fff;
}

.color-img-box {
    width: 100%;
    max-width: 280px; 
    height: auto;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    aspect-ratio: auto;
}

.color-img-box img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.6s ease;
}

.color-card-item:hover .color-img-box img {
    transform: scale(1.04);
}

.color-card-name {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: -36px 0 0 0; 
}

/* 2. 続きのストーリーテキストセクション */
.story-overlay-section {
    position: relative;
    width: 100%;
    background: transparent; 
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    padding: 80px 0 150px; 
    z-index: 20;
    overflow: hidden; 
    margin-top: 0;
}

.story-content {
    position: relative;
    z-index: 30;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.dots-marker {
    letter-spacing: 0.4em;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
}

.story-main-copy {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.15em;
    margin-bottom: 70px;
}

.story-sub-paragraphs p {
    font-size: 0.95rem; 
    line-height: 2.4;
    letter-spacing: 0.08em;
    margin-bottom: 45px;
    font-weight: 300;
}

.floating-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    pointer-events: none; 
}

.float-img {
    position: absolute;
    pointer-events: none;
}

.float-img img {
    width: 100%;
    height: auto;
    border-radius: 45px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.img-top-left { top: 0%; left: 6%; width: 18vw; max-width: 260px; }
.img-mid-left { top: 35%; left: -2%; width: 22vw; max-width: 320px; }
.img-bottom-right { bottom: 5%; right: 5%; width: 24vw; max-width: 360px; }

/* --- 特徴セクション（ここから下はグレージュ背景） --- */
.features-section {
    position: relative;
    z-index: 40; 
    background-color: #d6d2cf;
    padding: 120px 0;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
    /* ▼ 修正：上の余白は 120px のまま、下の余白だけを「40px」に縮めます */
    padding-top: 120px;
    padding-bottom: 15px; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 150px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
    display: flex;
}

.feature-text {
    flex: 1;
}

.feature-number {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #666;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.feature-description {
    font-size: 0.85rem;
    line-height: 2;
    color: #444;
    text-align: justify;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 特徴セクション画像内スライダー用スタイル（右側の背景透け対策版） */
.feat-img-slider-container {
    position: relative;
    overflow: hidden; 
    border-radius: 8px; 
    margin-right: -1px; 
    max-width: 100%;
}

.feat-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.feat-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.feat-slide-img.active {
    position: relative; 
    opacity: 1;
    z-index: 2;
}

.feat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 0; 
}

.feat-img-slider-container:hover .feat-arrow {
    opacity: 1;
}

.feat-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    scale: 1.05;
}

.feat-arrow.prev-arrow { left: 15px; }
.feat-arrow.next-arrow { right: 15px; }

/* --- カプセル型詳しく見るボタン設定 --- */
.middle-link-section {
    width: 100%;
    background-color: #d6d2cf; 
    text-align: center;
    padding: 80px 0 60px 0; 
    position: relative;
    z-index: 45; 
}

.btn-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px; 
    height: 90px; 
    border-radius: 45px; 
    border: 1px solid #333333; 
    background-color: #d6d2cf; /* 不透明グレージュ指定で動画の透けを完全にシャットアウト */
    color: #333333; 
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    letter-spacing: 0.1em;
    box-sizing: border-box;
    transition: all 0.4s ease; 
    cursor: pointer;
}

.btn-capsule:hover {
    background-color: #211e1c; 
    border-color: #211e1c;
    color: #ffffff; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); 
}

/* --- FAQセクション --- */
.faq-section {
    position: relative;
    z-index: 40;
    background-color: #d6d2cf;
    padding: 100px 20px;
    font-family: 'Noto Sans JP', sans-serif;
    margin-top: -35px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-main-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.faq-sub-title {
    font-size: 0.8rem;
    color: #666;
}

.faq-item {
    border-bottom: 1px solid #bbb;
}

.faq-question {
    width: 100%;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
    color: #333;
    transition: 0.3s;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #666;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    margin-bottom: 20px;
}

.answer-inner {
    padding: 30px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.answer-images {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.answer-images img {
    width: calc(50% - 7.5px);
    border-radius: 10px;
    height: auto;
    object-fit: cover;
}

/* --- 魅力紹介（テキスト＆2枚重ね画像）PC用デザイン設定 --- */
.summary-intro-section {
    width: 100%;
    background-color: #d6d2cf; 
    padding: 20px 0 140px 0; 
    color: #333333;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    z-index: 40;
}

.summary-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center; 
    gap: 60px; 
}

.summary-text-block {
    flex: 1.1;
    text-align: left;
}

.summary-paragraph {
    font-size: 0.95rem;
    line-height: 2.2;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    font-weight: 400;
}

.summary-highlight {
    font-size: 1.05rem;
    line-height: 2;
    letter-spacing: 0.08em;
    font-weight: 400;
    margin-top: 45px;
    border-left: 2px solid #211e1c; 
    padding-left: 20px;
}

.pc-only { display: block; }

.summary-image-gallery {
    flex: 0.9;
    position: relative;
    display: flex;
    align-items: flex-start;
    height: 480px; 
}

.summary-img-wrapper {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); 
    border-radius: 20px; 
    transition: transform 0.5s ease;
}

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

.summary-img-wrapper.main-img {
    width: 75%;
    height: 380px;
    top: 0;
    left: 0;
    z-index: 2;
}

.summary-img-wrapper.sub-img {
    width: 55%;
    height: 260px;
    bottom: 0;
    right: 0;
    z-index: 3; 
    border: 4px solid #d6d2cf; 
}

.summary-image-gallery:hover .main-img { transform: translateY(-5px); }
.summary-image-gallery:hover .sub-img { transform: translateY(5px); }

/* --- 3人掛けサイズ感紹介 縦並びデザイン（PC版） --- */
.size-intro-section {
    width: 100%;
    background-color: #d6d2cf; 
    padding: 0% 0; 
    color: #333333;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    z-index: 40;
}

.size-container {
    max-width: 800px; 
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; 
}

.size-header-block {
    width: 100%;
    margin-bottom: 35px;
}

.size-section-number {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: #666666;
    margin-bottom: 12px;
}

.size-main-title {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.05em;
    margin: 0;
    color: #211e1c;
}

.size-image-block {
    width: 100%;
    max-width: 650px; /* 縦長比率を美しく際立たせる制限 */
    margin: 0 auto 50px auto; 
}

.size-img-wrapper {
    width: 100%;
    height: 650px; /* 縦長にびよんと伸ばした指定 */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
}

.size-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.size-img-wrapper:hover img {
    transform: scale(1.02);
}

.size-text-block {
    width: 100%;
    text-align: center;
}

.size-paragraph {
    font-size: 0.95rem;
    line-height: 2.3;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    font-weight: 400;
}

.size-highlight {
    font-size: 1.05rem;
    line-height: 2;
    letter-spacing: 0.08em;
    font-weight: 400;
    margin-top: 45px;

    padding-left: 20px;
    text-align: center;
    /* ▼ 縦線（border）を中央にまとめるための魔法の3行 */
    display: inline-block; /* 文字の幅に合わせて箱をキュッと縮める */
    border-left: 0px solid #211e1c; /* 左側の縦線をキープ */
    margin-left: auto; /* 左右の margin を auto にして */
    margin-right: auto; /* 箱ごと全体の真ん中に配置する */
}

.sp-only { display: none; }

/* --- ページの締め・フッターセクション --- */
.closing-section {
    position: relative;
    z-index: 40;
    background-color: #686766; 
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    padding: 0 0 40px 0;
    margin-top: -2px; 
}

.closing-curve-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.closing-curve-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}
.closing-curve-top .shape-fill {
    fill: #d6d2cf; 
}

.closing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 40px 0 40px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.closing-tag {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #b5afaa;
    display: block;
    margin-bottom: 25px;
}

.closing-title {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
}

.closing-sub-text {
    font-size: 9px;
    line-height: 2;
    letter-spacing: 0.1em;
    color: #8e8883;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

/* ==========================================
   クッションバリエーション：PC横一列（拡大版）＆スマホ3×2統合
   ========================================== */
.cushion-variants {
    display: flex !important;
    flex-wrap: nowrap !important;     /* ★PCでは絶対に折り返さず、綺麗な横一列を死守します */
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 30px !important; 
    opacity: 1 !important; 
}

.cushion-item {
    position: relative !important;
    /* ★PCのサイズ：横一列のまま見やすさをアップさせる「90px」に指定 */
    width: 90px !important;
    height: 90px !important;
    flex: 0 0 90px !important;       /* 一列並びの時に縮まないようサイズを固定 */
    opacity: 0.9 !important; 
    transition: all 0.3s ease !important;
}

.cushion-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.cushion-item:hover, .cushion-item.active {
    opacity: 1 !important; 
    transform: scale(1.15) !important; /* お気に入りのホバー演出をそのまま維持 */
}

/* 既存の関連クラスもそのままキープ */
.cushion-section-subtag {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #8e8883;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.closing-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 100px;
    position: relative;
    z-index: 50; 
}

.btn-closing {
    display: inline-block;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    z-index: 55;
    cursor: pointer;
}

.btn-closing.primary {
    background-color: #ffffff;
    color: #211e1c;
    border: 1px solid #ffffff;
}
.btn-closing.primary:hover {
    background-color: transparent;
    color: #ffffff;
}

.btn-closing.secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-closing.secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    position: relative;
    z-index: 10;
}

.footer-large-logo-img {
    text-align: center;
    margin: 50px 0;
    padding: 0 20px;
    user-select: none;
    position: relative;
    z-index: 1;
    pointer-events: none; 
}

.footer-large-logo-img img {
    width: 100%;
    max-width: 450px; 
    height: auto;
    opacity: 0.1; 
    display: inline-block;
    pointer-events: none;
}

.footer-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 25; 
}

.footer-sns {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #8e8883;
    position: relative;
    z-index: 30;
}
.footer-sns a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    position: relative;
    z-index: 35;
}
.footer-sns a:hover { opacity: 1; }

.footer-copyright {
    font-size: 10px;
    color: #66615c;
    letter-spacing: 0.1em;
}

/* --- 共通フェードイン基礎設定 --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px); 
    transition: opacity 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000), 
                transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    will-change: opacity, transform;
}

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

/* --- レスポンシブ対応（タブレットサイズ 968px以下） --- */
@media screen and (max-width: 968px) {
    .feature-item, .feature-item.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 100px;
    }
    .feature-title {
        font-size: 1.5rem;
    }
    .container {
        padding: 0 20px;
    }

    /* 魅力紹介セクション タブレット縦並び化 */
    .summary-container {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        gap: 0px !important; 
        padding: 0 25px !important;
    }
    .summary-text-block {
        width: 100% !important;
        flex: none !important;
        margin-bottom: 40px !important; 
        text-align: left !important;
    }
    .summary-highlight {
        margin-top: 35px !important;
        padding-left: 15px !important;
        margin-bottom: 10px !important;
    }
    .pc-only { display: none !important; }

    .summary-image-gallery {
        width: 100% !important;
        max-width: 450px !important;
        height: 400px !important; 
        margin: 0 auto !important;
        position: relative !important; 
        display: block !important;
        flex: none !important;
    }
    
    .summary-img-wrapper.main-img {
        width: 80% !important;
        height: 280px !important;
        top: 0 !important;
        left: 0 !important;
        position: absolute !important;
    }
    
    .summary-img-wrapper.sub-img {
        width: 60% !important;
        height: 200px !important;
        bottom: 0 !important;
        right: 0 !important;
        top: auto !important; 
        left: auto !important;
        position: absolute !important;
        border: 3px solid #d6d2cf !important;
    }
}

/* ==========================================
   ★ スマホ専用設定（横幅768px以下）
   ========================================== */
@media screen and (max-width: 768px) {
    .hero {
        height: 55vh !important; 
        min-height: auto !important;
        z-index: 20 !important;
        justify-content: center !important; 
    }
    .large-bg-logo {
        top: 30% !important; 
        width: 120% !important; 
        overflow: hidden;
    }
    .hero-content {
        margin-top: 50vh !important;
        margin-bottom: 0 !important;
        z-index: 30 !important;
    }
    .hero-copy {
        font-size: 1.1rem;
    }
    .btn-outline {
        z-index: 99 !important;
    }
    .nav {
        gap: 12px;
        font-size: 9px;
        padding: 15px 0;
    }

    /* スマホ専用：2色均等配置 */
    .color-variants-section {
        padding: 20px 0 0px !important;
        margin-top: 45px !important;
        z-index: 25 !important;
    }
    .color-section-tag {
        margin-bottom: 15px !important;
    }
    .color-equal-container {
        display: flex !important;
        flex-direction: row !important; 
        justify-content: center !important;
        gap: 25px !important; 
        padding: 0 30px !important;
    }

    .color-img-box {
        width: 100% !important;
        max-width: 140px !important; 
        height: auto !important;
        margin-bottom: 5px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        aspect-ratio: auto !important;  
        overflow: hidden;
    }

    .color-card-name {
        font-size: 0.75rem !important;
        margin: -23px 0 0 0 !important; 
    }

    /* スマホ専用：ストーリーエリア */
    .story-overlay-section {
        padding: 30px 0 100px !important;
        margin-top: 30px !important;
        z-index: 20 !important;
    }

    .floating-images {
        position: relative !important;    
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;              
        width: 100% !important;
        max-width: 90% !important;
        margin-top: 30px !important;
        margin: 0 auto 40px !important;    
        padding: 0 20px !important;
        box-sizing: border-box !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    .float-img {
        position: relative !important; 
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .img-top-left, .img-mid-left, .img-bottom-right {
        width: 30% !important;            
        max-width: 160px !important;
    }

    .floating-images .float-img img {
        width: 100% !important;
        height: 100px !important;         
        border-radius: 15px !important;   
        object-fit: cover !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
    }

    .story-content {
        text-align: left !important; 
        max-width: 90% !important;   
        margin: 0 auto !important;
        padding: 0 25px !important;  
        z-index: 30 !important;
        padding-top: 80px !important; 
    }

.dots-marker {
  width: 90%;          /* 長さはお好みで */
  height: 1px;          /* 線の太さ */
  background-color: #fff; /* 白線 */
 margin: -10px auto 16px; /* ← 上に10px移動 */
}

    .story-main-copy {
        font-size: 1.6rem !important;
        line-height: 1.8 !important;
        letter-spacing: 0.1em !important;
        margin-bottom: 50px !important;
    }

    .story-sub-paragraphs p {
        font-size: 0.85rem !important;
        line-height: 2.2 !important;   
        letter-spacing: 0.05em !important;
        margin-bottom: 25px !important; 
    }

    .story-sub-paragraphs p br {
        display: none !important; 
    }

    /* 画像スライダーのスマホ調整・右端チラつき隙間潰し */
    .feat-img-slider-container {
        margin-right: -2px !important;
        width: calc(100% + 2px) !important;
    }
    .feat-arrow {
        opacity: 0.7;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .feat-arrow.prev-arrow { left: 10px; }
    .feat-arrow.next-arrow { right: 10px; }

    /* カプセル型詳しく見るボタンのスマホ透過バグ修復 */
    .middle-link-section {
        padding: 10px 0 40px 0 !important;
    }
    .btn-capsule {
        width: 220px !important;
        height: 76px !important;
        font-size: 12px !important;
        background-color: #d6d2cf !important; /* スマホタップ時も背景動画が絶対に透けないよう塗りつぶし固定 */
    }

    /* 魅力紹介エリアのスマホ被り完全解消コード */
    .summary-container {
        flex-direction: column !important; 
        gap: 0px !important; 
        padding: 0 25px !important;
    }
    .summary-text-block {
        width: 100% !important;
        margin-bottom: 35px !important; 
    }
    .summary-highlight {
        margin-top: 30px !important;
        padding-left: 15px !important;
        margin-bottom: 0px !important;
    }

    .summary-image-gallery {
        width: 100% !important;
        max-width: 420px !important;
        height: 380px !important; 
        margin: 20px auto 0 auto !important; 
        display: block !important;
    }
    
    .summary-img-wrapper.main-img {
        width: 75% !important;
        height: 260px !important;
        top: 0 !important;
        left: 0 !important;
        position: absolute !important;
    }
    
    .summary-img-wrapper.sub-img {
        width: 55% !important;
        height: 180px !important;
        bottom: 0 !important;
        right: 0 !important;
        top: auto !important; 
        left: auto !important;
        position: absolute !important;
        border: 3px solid #d6d2cf !important;
    }

    /* --- スマホ専用：サイズ感紹介縦並び（被り完全シャットアウト版） --- */
    .size-intro-section {
    padding-top: 60px !important;    /* ★上の隙間を半分以下に縮めます */
    padding-bottom: 60px !important; /* 下の隙間もバランスよく調整 */
    }
    .size-container {
        padding: 0 25px !important;
        text-align: left !important; 
    }
    .size-header-block {
        text-align: left !important;
        margin-bottom: 25px !important;
    }
    .size-main-title {
        font-size: 1.3rem !important;
        line-height: 1.6 !important;
    }
    .size-image-block {
        margin-bottom: 35px !important;
    }
    .size-img-wrapper {
        height: 260px !important; /* スマホでスクロールしやすいコンパクトな高さ */
        border-radius: 12px !important;
    }
    .size-text-block {
        text-align: left !important;
    }
    .size-paragraph {
        font-size: 0.85rem !important;
        line-height: 2.1 !important;
        margin-bottom: 20px !important;
    }
    .size-highlight {
        margin-top: 35px !important;
        padding-left: 15px !important;
    }
    .sp-only { display: block !important; }

    /* スマホ時の締めくくり・フッター調整 */
    .closing-container {
        padding: 100px 20px 0 20px !important;
    }
    .closing-title {
        font-size: 1.5rem !important;
        line-height: 1.6 !important;
    }
    
    /* 最下部の「BRAND STORY」位置調整（詰まりをスッキリ解消） */
    .closing-tag {
        margin-top: 40px !important; 
        margin-bottom: 15px !important; 
    }
    
.cushion-variants {
        display: flex !important;
        flex-wrap: wrap !important;      /* 2段に折り返します */
        justify-content: center !important; /* 下段の2個を中央に綺麗に寄せます */
        gap: 10px !important;            /* 3個並びを死守するため、すき間を最小限の10pxに微調整 */
        
        /* スマホの画面幅（約320px〜390px）にぴったり収まる最大の枠幅 */
        max-width: 320px !important;     
        margin: 25px auto !important;    /* 全体を画面の中央に配置 */
    }
    
    .cushion-item {
        /* ★3個並びが維持できる、正真正銘の最大サイズです */
        width: 95px !important;
        height: 95px !important;
        flex: 0 0 95px !important;       /* サイズを95pxにしっかり固定 */
    }

    .cushion-section-subtag {
        margin-bottom: 40px !important;
    }
    .closing-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        z-index: 50 !important;
    }
    .btn-closing {
        width: 100% !important;
        max-width: 300px !important;
        text-align: center !important;
        z-index: 55 !important;
    }
    .footer-large-logo-img {
        margin: 35px 0 !important;
    }
    .footer-large-logo-img img {
        max-width: 280px !important; 
    }
    .footer-row-bottom {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
    }

    /* 3. カラーバリエーションセクションの上側を下げて、ヒーローとの間隔を広げる */
    .color-variants-section {
        margin-top: 100px !important; /* ヒーローエリアとの間に気持ちのいい余白を作ります */
        padding: 60px 0 !important;
    }

    /* 4. ストーリーエリアの3枚の浮遊画像をさらにしっかり下に下げる */
    .floating-images {
        position: relative !important;    
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;              
        width: 100% !important;
        max-width: 90% !important;
        
        /* ▼ 上の見出し（ねぼうしてしまう〜）からしっかり離して下に下げます */
        margin-top: 15px !important; 
        
        /* 下の本文テキストとの隙間 */
        margin-bottom: 15px !important;    
        
        padding: 0 20px !important;
        box-sizing: border-box !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

/* 2. 背面の「NEBO」ロゴ画像（画像は薄くせず、大きさと位置だけを調整） */
    .large-bg-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        
        /* ★【位置の調整】数値を大きくすると下へ、小さくすると上へ動きます */
        top: 45% !important; 
        
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    .large-bg-logo img {
        display: inline-block !important;
        height: auto !important;
        
        /* ★【大きさの調整】ここでお好みのサイズに縮めます（横幅200px〜240pxあたりがスマートです） */
        max-width: 400px !important; 
        
        /* ★【濃さの固定】薄くせず、元のクッキリした100%の濃さを維持します */
        opacity: 1.0 !important; 
    }
    /* --- スマホ時の動画負荷を完全にシャットアウトする軽量化設定 --- */
    .features-section,
    .middle-link-section,
    .faq-section,
    .summary-intro-section,
    .size-intro-section,
    .closing-section {
        position: relative;
        z-index: 50; /* 動画よりも上のレイヤーに引き上げ、裏の動画の描画処理をストップさせます */
    }

}

/* ==========================================================================
   FAQ画像拡大（ライトボックス）用追加CSS
   ========================================================================== */
.faq-zoom-img {
    cursor: zoom-in; /* マウスを乗せると虫眼鏡マークになります */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-zoom-img:hover {
    transform: scale(1.02); /* マウスホバーでわずかに浮き上がらせる */
    opacity: 0.9;
}

/* 拡大時の背景（画面全体を覆う黒透過） */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* 高級感のあるシックな暗さに設定 */
    z-index: 100000; /* ナビゲーションよりも上に表示 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    cursor: zoom-out; /* クリックで戻れるマーク */
}

/* アクティブになったらふわっと表示 */
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 拡大される画像自体のサイズ制限 */
.lightbox-overlay img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active img {
    transform: scale(1); /* 画面中央にシュッと滑らかに広がるアニメーション */
}

/* --- スクロールフリーズを完全に解消する修正コード --- */
html {
    margin: 0;
    padding: 0;
    background-color: #5c5b5a;
    scroll-behavior: smooth; /* 滑らかスクロールを追加 */
}

body {
    margin: 0;
    padding: 0;
    background-color: #5c5b5a;
    width: 100%;
    overflow-x: hidden; 
}

/* ... (既存のCSSはそのまま) ... */

/* ==========================================
   TOPに戻るボタン（固定配置・ホバー演出）
   ========================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px; /* 画面右下からの位置 */
    right: 30px;
    width: 60px; /* 少し大きめに設定 */
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff; /* 初期は白 */
    border: none;
    color: #333333; /* 矢印の色 */
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* 影をつけて浮いた感じに */
    
    /* フェードイン・アウトのアニメーション設定 */
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 表示状態 */
.scroll-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ホバー時の色反転 */
.scroll-top-btn:hover {
    background-color: #333333; /* 背景を黒に */
    color: #ffffff; /* 矢印を白に */
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* 矢印アイコンの微調整 */
.scroll-top-btn span {
    transform: translateY(-2px); 
}

/* スマホ用の調整 */
@media screen and (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

/* ==========================================
   ストーリー画像の順番にぽあん（時間差）演出
   ========================================== */
.img-top-left.fade-in-up { transition-delay: 0s; }       /* 1枚目：すぐ出る */
.img-mid-left.fade-in-up { transition-delay: 0.2s; }     /* 2枚目：0.2秒遅れて出る */
.img-bottom-right.fade-in-up { transition-delay: 0.4s; }  /* 3枚目：0.4秒遅れて出る */

}
@media screen and (max-width: 768px) {
    .size-intro-section {
        padding-top: 10px !important;    /* ★スマホではさらにキュッと引き締めます */
        padding-bottom: 40px !important;
    }

.pc-video {
        display: none !important;
    }

}

.bg-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.bg-video::-webkit-media-controls {
    display: none !important;
}