@charset "UTF-8";

:root {
    --primary-color: #00388D;
    --bg-color: #FFFFFF;
    --text-main: #333333;
    --text-light: #555555;
    --font-mincho: "Zen Old Mincho", serif;
    --font-gothic: "IBM Plex Sans JP", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sp-only,
.tb-only,
.sp-space {
    display: none;
}

body {
    font-family: var(--font-gothic);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

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

/* ==================================================
   Header & Navigation
================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    background-color: transparent;
    pointer-events: none;
}

.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
}

.header-spacer {
    flex-grow: 1;
}

.logo-link {
    position: fixed;
    top: 50px; 
    left: 70px;
    height: 100px;
    display: flex;
    align-items: center;
    width: 246px; 
    z-index: 1002; 
}

.logo-blue {
    width: 100%;
    height: auto;
    display: block;
}

/* Hamburger Menu */
.hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 50px;
    height: 50px;
    z-index: 1001; 
    padding: 10px;
    transform: translateY(5px);
    pointer-events: auto;
}


.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.hamburger.menu-open span { background-color: var(--primary-color) !important; }

.hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Global Nav Overlay */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    pointer-events: auto; /* 親要素の none を上書きしてクリックを有効化 */
}

.global-nav.is-active {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    list-style: none;
    text-align: center;
}

.nav-list li {
    margin-bottom: 35px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.global-nav.is-active .nav-list li {
    transform: translateY(0);
    opacity: 1;
}
.global-nav.is-active .nav-list li:nth-child(1) { transition-delay: 0.1s; }
.global-nav.is-active .nav-list li:nth-child(2) { transition-delay: 0.15s; }
.global-nav.is-active .nav-list li:nth-child(3) { transition-delay: 0.2s; }
.global-nav.is-active .nav-list li:nth-child(4) { transition-delay: 0.25s; }
.global-nav.is-active .nav-list li:nth-child(5) { transition-delay: 0.3s; }
.global-nav.is-active .nav-list li:nth-child(6) { transition-delay: 0.35s; }
.global-nav.is-active .nav-list li:nth-child(7) { transition-delay: 0.4s; }

.nav-list a {
    text-decoration: none;
    font-size: 1.2rem;
    font-family: var(--font-gothic);
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.15em;
    transition: opacity 0.3s;
}
.nav-list a:hover { opacity: 0.5; }

/* ==================================================
   Scroll Indicator
================================================== */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 20;
    /* mix-blend-mode は使用せず、MVV と同様に手動で色を制御 */
}

.scroll-text {
    font-family: var(--font-mincho);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 200; 
    animation: textBlink 3s infinite ease-in-out;
}

.scroll-line {
    width: 1px;
    height: 120px;
    position: relative;
}

.scroll-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    animation: dotBounce 6s infinite ease-in-out; 
}

.scroll-white .scroll-text { color: var(--bg-color); }
.scroll-white .scroll-line { background-color: var(--bg-color); }
.scroll-white .scroll-dot { background-color: var(--bg-color); }

.scroll-blue .scroll-text { color: #fff; }
.scroll-blue .scroll-line { background-color: #fff; }
.scroll-blue .scroll-dot { background-color: #fff; }

/* ROOM FV 固有の反転設定 (動画の底辺 y=860px に合わせた精密な切り替え) */
.room-fv-scroll .scroll-text { color: #fff; } /* 動画の上なので白 */
.room-fv-scroll .scroll-line {
    /* 上から 20px (16.66%) が動画の上、残りが白背景の上 */
    background: linear-gradient(to bottom, #fff 16.66%, var(--primary-color) 16.66%);
}
.room-fv-scroll .scroll-dot {
    background-color: transparent;
    animation: dotBounceRoom 6s infinite ease-in-out;
}

@keyframes textBlink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes dotBounce { 0% { top: 0; } 50% { top: calc(100% - 7px); } 100% { top: 0; } }

/* 境界線 (16.66%地点 = ease-in-outを考慮した時間軸 13.5%/86.5%) で色を切り替える */
@keyframes dotBounceRoom {
    0% { top: 0; background-color: #fff; }
    13.4% { background-color: #fff; }
    13.5% { background-color: var(--primary-color); }
    50% { top: calc(100% - 7px); background-color: var(--primary-color); }
    86.5% { background-color: var(--primary-color); }
    86.6% { background-color: #fff; }
    100% { top: 0; background-color: #fff; }
}

/* ==================================================
   Footer
================================================== */
.container {
    max-width: 1184px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer {
    position: relative;
    background-color: transparent; /* 背面のキャンバスが見えるように透明化 */
    padding: 0 0 80px;
    z-index: 5; /* 前のセクションの背景よりは前に出す */
    overflow: visible !important;
}

.footer-line {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 100px !important;
}

#footer-canvas {
    position: absolute;
    top: -500px;
    left: 0;
    width: 100%;
    height: calc(100% + 500px);
    z-index: 1; /* コンテンツ(z-index: 2)の背面に配置 */
    pointer-events: none;
    display: block;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1184px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo-wrap {
    margin-bottom: 45px;
}

.footer-logo {
    height: 100px;
    width: auto !important;
}

.footer-info {
    font-family: var(--font-gothic);
    font-size: 0.85rem;
    color: #666;
    line-height: 2.2;
    margin-bottom: 60px;
}

.footer-copyright {
    font-family: var(--font-mincho);
    font-size: 0.7rem;
    color: #aaaaaa;
    letter-spacing: 0.05em;
}

.footer-right {
    margin-top: 0;
}

.univ-logo-box {
    border: 1px solid #eeeeee;
    background-color: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-univ-logo {
    height: 77px;
    width: auto !important;
}

/* Footer link adjustments */
.contact-link {
    color: inherit;
    text-decoration: none;
}
.contact-link:hover {
    opacity: 0.7;
}

/* ==================================================
   Animations Common
================================================== */
.fade-in-target, .fade-in-blur, .fade-in-right, .fade-in-left {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-target {
    transform: translateY(40px);
}

.fade-in-right {
    transform: translateX(80px);
}

.fade-in-left {
    transform: translateX(-80px);
}

.fade-in-target.is-visible, 
.fade-in-right.is-visible, 
.fade-in-left.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ==================================================
   Responsive (768px, 450px)
================================================== */
@media (max-width: 768px) {
    /* Merged from 1024px */
    .container { padding: 0 80px !important; }
    .footer-line { background-clip: content-box; }
    .fv-message { right: 5%; bottom: 15%; }
    .container { padding: 0 60px !important; }
    .footer-line { margin-bottom: 60px !important; }
    /* Navigation - Synced with index */
    .header {
        padding: 0 20px 0 35px;
        height: 70px;
        background-color: #FFFFFF !important;
    }
    .logo-link {
        top: 16px;
        left: 35px;
        height: 38px;
        width: auto;
    }
    .logo-blue { height: 100%; width: auto; }
    .hamburger {
        transform: translateY(0);
        gap: 7px;
        width: 50px;
        height: 50px;
        padding: 10px;
    }
    .hamburger span {
        width: 30px;
    }
    .hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .nav-list a {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }
    .nav-list li {
        margin-bottom: 25px;
    }
    .scroll-indicator { right: 20px; bottom: 20px; }
    .footer-content { flex-direction: column; gap: 30px; }
    .footer { padding-bottom: 80px !important; }

    /* Footer PC/SP display switch */
    .pc-only {
        display: none !important;
    }
    .sp-only {
        display: block !important;
    }
    .sp-space {
        display: inline !important;
    }
    .footer-univ-logo-sp {
        margin-bottom: 20px;
    }
    .footer-univ-logo-sp .footer-univ-logo {
        height: 45px;
        width: auto;
        display: block;
    }
    .footer-content { position: relative; display: block; width: 100%; }
    .footer-left { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; }
    .footer-logo-wrap { margin-bottom: 25px; height: 60px; display: flex; align-items: center; }
    .footer-logo { height: 60px; width: auto; }
    .footer-info { margin-bottom: 30px; font-size: 0.8rem; width: 100%; }
    .footer-copyright { font-size: 0.7rem; text-align: left; width: 100%; position: relative; z-index: 2; line-height: 1.35 !important; }
    .footer-right { position: absolute; top: 0; right: 60px; margin-top: 0; display: flex; align-items: center; height: 60px; }
    .univ-logo-box { padding: 10px 20px; max-width: 100%; box-sizing: border-box; }
}

@media (max-width: 450px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    .container { padding: 0 30px !important; }
    .header {
        padding: 0 15px 0 25px !important;
        height: 70px !important;
    }
    .logo-link {
        left: 25px;
    }
    .footer-right { right: 30px; }
    .footer-logo-wrap { height: 75px !important; margin-bottom: 30px !important; }
    .footer-logo { height: 75px !important; width: auto !important; }
    
    /* FVのヨコはみ出し防止 & レイアウト変更（動画を上へ） */
    .room-fv {
        width: 100% !important;
        height: auto !important;
        min-height: 100vh;
        overflow-x: hidden !important;
    }
    .room-fv-content {
        width: 100% !important;
        height: auto !important;
        overflow-x: hidden !important;
        flex-direction: column !important; /* 縦並びに変更 */
        padding-top: 70px !important; /* ヘッダー(70px)のすぐ下に配置するため、パディングをヘッダー高さに合わせる */
        padding-bottom: 60px !important;
    }
    .room-fv-video-area {
        position: relative !important; /* absoluteを解除してフローに参加させる */
        top: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important; /* 動画の高さをさらに広げる (4/3 -> 1/1) */
        order: -1; /* 動画を一番上に配置 */
        margin-bottom: 25px !important; /* 動画とテキストの間に余白を確保し被りをなくす */
        z-index: 1 !important;
    }
    
    /* FVのタイトルと四角のサイズ調整・縦書き解消 */
    .room-fv-text-area {
        padding-top: 0 !important; /* PC版の150pxをリセット */
        padding-left: 0 !important; /* 15pxをリセットしてゼロに */
        width: 100% !important; /* 50%制限を解除して横書きできるスペースを確保 */
    }
    .room-fv-main-copy {
        font-size: 29px !important;
        letter-spacing: -0.02em !important; /* 詰めすぎない程度に調整 */
    }
    .room-fv-blue-square {
        width: 17px !important;
        height: 17px !important;
        left: 22px !important;
        top: 7px !important;
    }
    .room-fv-main-copy-wrap,
    .room-fv-sub-copy,
    .room-fv-desc {
        padding-left: 30px !important; /* 他のセクション（30px）と揃える */
        position: relative !important;
        z-index: 10 !important; /* 動画の上に被せるため */
    }
    
    /* その下の文字を一律14pxに & 間隔を少し詰める */
    .room-fv-main-copy-wrap {
        margin-bottom: 15px !important; /* 元35px */
    }
    .room-fv-sub-copy {
        margin-bottom: 15px !important; /* 元30px */
    }
    .room-fv-sub-1 {
        margin-bottom: 8px !important; /* 元12px */
    }
    .room-fv-sub-1,
    .room-fv-sub-2,
    .room-fv-desc {
        font-size: 14px !important;
    }
    
    /* スクロールパーツはスマホ版では非表示 */
    .room-fv-scroll {
        display: none !important;
    }
    
    /* Center align titles and sub-texts for Sections 2, 3, 4 */
    .room-concept-heading,
    .room-section-title,
    .concept-desc-box,
    .concept-desc-box p,
    .room-section-desc {
        text-align: center !important;
    }
    
    /* Section 1 video adjustments */
    .room-fv-video-area {
        height: 60vh !important;
    }

    /* Section 2 image margin */
    .room-concept-image-wrap {
        margin-bottom: 40px !important;
    }

    /* Section 2 square position (top right) */
    .concept-blue-square {
        left: auto !important;
        right: -13px !important;
        top: -21px !important; /* ほんの少し上に修正 */
    }

    /* Section 2 step circle and label adjustments */
    .step-circle {
        background-color: var(--primary-color) !important;
        color: #FFF !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    .step-label {
        font-size: 7px !important; /* STEP文字をさらに小さく */
        color: #FFF !important;
        display: block !important;
        line-height: 1 !important;
    }
    .step-num {
        color: #FFF !important;
    }

    /* Removed duplicate room-plan-title margin */

    /* Section 3 square position (top left) */
    .room-plans .room-blue-square {
        left: 27px !important;
        right: auto !important;
        top: -11px !important;
    }

    /* Section 3 desc margin and banner margin */
    .room-plans .room-section-desc {
        margin-bottom: 20px !important;
    }
    .room-features-banner {
        margin-top: 20px !important;
        padding-top: 25px !important; /* 上下の余白を狭める */
        padding-bottom: 20px !important; /* 上下の余白を狭める */
    }
    /* Section 3 title visual center alignment (shift right due to bracket spacing) */
    .room-plans .room-section-title {
        transform: translateX(15px) !important;
    }
    .features-title {
        font-size: 14px !important;
        margin-bottom: 15px !important; /* 上下の余白を狭める */
    }
    .feature-label {
        font-size: 11px !important;
        line-height: 1.2 !important; /* 行間をほんの少し詰める */
    }
    .room-features-notes p,
    .room-features-notes li {
        font-weight: normal !important;
        padding-left: 1em !important;
        text-indent: -1em !important;
    }
    
    /* Section 4 adjustments */
    .room-terms .room-blue-square {
        left: auto !important;
        right: -17px !important;
        top: -13px !important;
    }
    .room-terms .room-heading-mask {
        display: block !important;
        width: fit-content !important;
        margin: 0 auto 0 auto !important; /* 中央に配置しつつ下余白を0に */
        text-align: center !important;
        padding-left: 0 !important; /* 文字左のpaddingをリセット */
    }
    .room-terms-content {
        margin-top: 5px !important; /* 余白を極限まで狭める */
    }
    .term-block li {
        font-size: 12px !important;
        padding-left: 1em !important;
        text-indent: -1em !important;
    }
    
    /* ==================================================
       ROOM: コンテンツ全体のスマホ対応 (横幅・レイアウト)
    ================================================== */
    /* Section 2: Concept */
    .section-bg-canvas {
        display: none !important; /* スマホでは重いため完全に非表示・無効化 */
    }
    .room-concept {
        padding-top: 50px !important; /* 100pxから50pxにさらに削減 */
        padding-bottom: 80px !important; /* スライドショー下の余白を少し空ける */
    }
    .room-concept-heading {
        font-size: 21px !important;
        padding-right: 0 !important;
        transform: translateX(0) !important;
        text-align: center !important; /* 中央揃えに変更 */
        margin: 0 auto 10px auto !important; /* fit-contentの要素を中央に配置 */
        position: relative !important;
        top: 0 !important; /* PC版の-90pxをリセットして画面内フライング発火を防止 */
        width: fit-content !important; /* 四角をテキストの右上に配置するため */
    }
    .concept-blue-square {
        left: auto !important;
        right: -20px !important;
        top: -11px !important;
    }
    .concept-blue-square.is-visible {
        opacity: 1 !important;
        transform: scale(1) rotate(0deg) !important;
    }
    .fix-bracket {
        margin-right: -0.5em !important;
    }
    .sp-normal-wrap {
        white-space: normal !important;
    }
    .room-concept-text-box {
        position: relative !important;
        bottom: 0 !important; /* PC版の-150pxをリセット */
    }
    .concept-desc-box {
        padding-right: 0 !important;
        text-align: center !important; /* 中央揃えに変更 */
        justify-content: center !important; /* 中央揃えに変更 */
        margin-bottom: 20px !important; /* 間隔を狭める */
    }
    .concept-desc-box p,
    .step-text {
        font-size: 14px !important;
    }
    
    .concept-steps {
        align-items: flex-start !important; /* 左揃えに変更 */
        margin-top: 30px !important; /* 丸と文字を下に下げる */
        gap: 15px !important;
    }
    .step-item {
        flex-direction: row-reverse !important; /* 丸を右側に配置 */
        text-align: left !important; /* 左揃え */
        gap: 10px !important; /* 文字と丸の間隔を狭める */
        opacity: 0 !important;
        transform: translateY(30px) !important;
        transition: opacity 0.8s ease, transform 0.8s ease !important;
    }
    .step-item:nth-child(1) { transition-delay: 0.1s !important; }
    .step-item:nth-child(2) { transition-delay: 0.2s !important; }
    .step-item:nth-child(3) { transition-delay: 0.3s !important; }

    .step-item.is-visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    .step-circle {
        width: 40px !important;
        height: 40px !important;
        margin-right: 0 !important;
        opacity: 1 !important;
        transform: scale(1) !important;
        transition: none !important;
    }
    .step-label {
        font-size: 9px !important;
    }
    .step-num {
        font-size: 16px !important;
    }
    
    /* 棒のアニメーションは非表示 */
    .room-concept-line-wrap {
        display: none !important;
    }

    /* 親要素のフェードインに追従するため、子要素は初期状態で表示 */
    .step-text {
        opacity: 1 !important;
        transform: none !important;
        text-align: left !important;
        transition: none !important;
        color: var(--primary-color) !important;
    }
    
    /* ふよふよアイコンの縮小と配置調整（右側に移動、上に引き上げ、透過度を下げる） */
    .icon-glass { width: 119px !important; top: 345% !important; left: auto !important; right: 17% !important; opacity: 0.5 !important; }
    .icon-rocket { width: 83px !important; top: 295% !important; left: auto !important; right: 6% !important; opacity: 0.5 !important; }
    .icon-question { width: 75px !important; top: 255% !important; left: auto !important; right: 21% !important; opacity: 0.5 !important; }
    
    .room-concept-inner {
        flex-direction: column !important; /* 画像を一番上に */
        padding: 0 30px !important;
    }
    .room-concept-right {
        width: 100% !important;
    }
    .room-concept-left {
        width: calc(100% + 60px) !important; /* 左右余白30px分広げる */
        margin-left: -30px !important; /* 左端にくっつける */
        margin-right: -30px !important; /* 右端にくっつける */
    }
    .room-concept-right {
        margin-top: 30px !important;
        padding-top: 0 !important;
    }
    .room-concept-image-wrap {
        margin-top: 0 !important;
        aspect-ratio: 16 / 9 !important; /* 高さを削る */
    }
    
    /* 無限ループスライドショーの調整 */
    .room-concept-slider-wrap {
        margin-top: 100px !important; /* 250px -> 100px */
    }
    .slider-item {
        width: calc(100vw - 30px) !important;
        margin-right: 10px !important; /* 間隔を狭める */
    }
    .slider-item img {
        height: auto !important;
        aspect-ratio: 16 / 9 !important; /* 高さを削る */
    }
    .room-concept-slider {
        animation: infiniteScrollSP 40s linear infinite !important;
    }
    @keyframes infiniteScrollSP {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-1 * (100vw - 20px) * 8)); } /* width(100vw-30px) + margin(10px) = 100vw - 20px */
    }
    


    /* Section 3: Plans */
    .room-plans {
        padding-top: 60px !important; /* スライドショー下の余白を少し空ける */
    }
    .room-heading-mask {
        margin-left: -8px !important;
        padding-left: 30px !important;
    }
    .room-blue-square {
        width: 17px !important;
        height: 17px !important;
        left: 0 !important;
        top: -8px !important;
    }
    .room-section-title {
        font-size: 21px !important;
        text-align: center !important; /* 左揃えを中央揃えに修正 */
        transform: translateX(0) !important;
        padding-left: 0 !important; /* PC版の左余白をリセット */
    }
    .room-section-desc,
    .room-plan-sub,
    .room-plan-tags li,
    .room-plan-details li {
        font-size: 14px !important;
    }

    .room-plan-card {
        flex-direction: column !important;
    }
    .room-plan-title {
        font-size: 21px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important; /* 30pxから15pxへ縮小 */
    }
    .room-plan-en {
        margin-bottom: 0 !important;
    }
    .room-plan-sub {
        margin-bottom: 15px !important; /* 塊同士の間隔を空ける */
        line-height: 1.3 !important;
    }
    .room-plan-tags li {
        line-height: 1.3 !important;
        margin-bottom: 12px !important; /* ハッシュタグ同士の間隔を空ける */
    }
    .room-plan-details li {
        line-height: 1.3 !important;
    }
    .room-plan-price-box {
        margin-top: 10px !important;
    }
    .room-plan-text,
    .room-plan-meta,
    .room-plan-img {
        width: 100% !important;
    }
    .room-plan-img {
        order: -1;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
    .room-plan-text {
        padding: 25px 25px 15px !important;
    }
    .room-plan-meta {
        padding: 0 25px 25px !important;
    }
    .price-value {
        font-size: 30px !important;
    }
    
    .room-features-banner {
        width: calc(100% + 60px) !important; /* 100vwだとスクロールバー分突き抜けるため親の幅+padding分にする */
        margin-left: -30px !important;
        margin-right: -30px !important;
        padding: 40px 15px !important;
        left: 0 !important;
        right: 0 !important;
    }
    .features-icons {
        display: grid !important;
        grid-template-columns: repeat(3, auto) !important; /* 1frから変更して列の幅を狭める */
        gap: 20px 15px !important;
        justify-content: center !important;
        justify-items: center !important;
    }
    .feature-item {
        width: 100% !important;
    }
    .feature-label {
        font-size: 12px !important;
    }

    .room-cta-button {
        font-size: 15px !important; /* 14pxから1px大きく */
        padding: 15px 20px !important;
        width: 100% !important;
    }
    
    .notes-grid p,
    .notes-sub-list li,
    .room-cta-note {
        font-size: 12px !important;
    }
    .notes-grid {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .notes-sub-list {
        margin-bottom: 40px !important;
    }
    
    /* Section 4: Terms */
    .room-terms {
        padding: 100px 0 !important;
        margin-top: 50px !important;
    }
    .room-terms-content {
        margin: 40px auto 0 !important;
    }
}

/* ==================================================
   ROOM: Section 1 (FV)
================================================== */
.room-fv {
    position: relative;
    width: 100vw;
    height: 900px;
    background-color: transparent;
    overflow: visible; /* Section 2 からのアニメーションを通すために visible に */
    padding-top: 0;
    z-index: 1; /* コンテンツレイヤー */
}


.room-fv-content {
    max-width: 1920px;
    width: 100%; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    height: 900px;
    padding-top: 50px;
    position: relative;
    /* z-index を削除してインジケーターのブレンドを有効化 */
}

.room-fv-text-area {
    padding-left: clamp(20px, 8vw, 150px); /* 150pxを最大とし、画面が狭くなると連動して狭まる */
    padding-top: 150px; /* 合計で上から200pxの位置になるよう調整 */
    width: 50%;
    z-index: 2;
}

.room-fv-main-copy-wrap {
    position: relative;
    margin-bottom: 35px; /* 余白を縮小 */
    padding: 26px 0 0 51px; /* 指定の数値に変更 */
}

.room-fv-blue-square {
    position: absolute;
    top: 12px;
    left: 0;
    width: clamp(20px, 3vw, 35px); /* 基本は35pxを維持し、画面が狭くなった時だけ縮むよう調整 */
    height: clamp(20px, 3vw, 35px);
    background-color: var(--primary-color);
    opacity: 0;
    transform: scale(0) rotate(-90deg);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.room-fv-blue-square.is-active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.room-fv-main-copy {
    font-family: var(--font-mincho);
    font-size: clamp(2.2rem, 5vw, 3.8rem); /* 基本は3.8remを維持するよう調整 */
    line-height: 1.5;
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap; /* 画面が狭まっても自動で折り返さないようにする */
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translate(20px, -20px);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
}

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

.char-accent.char {
    font-weight: 400; /* 太くしない */
    font-size: 1.15em;
    vertical-align: -0.05em;
    transform: scale(5) skewX(-50deg); /* 傾斜をさらに極端に（-50度）設定 */
    filter: blur(12px); 
    transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 1.6s ease, 
                filter 1.6s ease;
}

.char-accent.char.is-visible {
    opacity: 1;
    transform: scale(1) skewX(0deg); /* 最終的に正位置・正方向に着地 */
    filter: blur(0);
}

.room-fv-main-copy.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.indent-adj {
    display: inline-block;
    margin-left: -0.5em; /* 鍵括弧の空白分を左に寄せて揃える */
}

.room-fv-sub-copy {
    margin-bottom: 30px; /* 余白を縮小 */
    padding-left: 51px; /* 左端を51pxに統一 */
}

.room-fv-sub-1 {
    font-family: var(--font-mincho);
    font-size: 20px; /* 20pxに修正 */
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.room-fv-sub-2 {
    font-family: var(--font-mincho);
    font-size: 16px; /* 16pxに修正 */
    color: var(--primary-color);
    line-height: 1.6;
    border-left: 1px solid var(--primary-color);
    padding-left: 20px;
    margin-left: 2px;
}

.room-fv-desc {
    font-family: var(--font-mincho);
    padding-left: 51px; /* 左端を51pxに統一 */
    font-size: 15px;
    line-height: 2;
    font-weight: 500;
}

.room-fv-video-area {
    position: absolute;
    top: 60px;
    right: 0;
    width: 60%;
    height: 800px; /* 画面サイズが変わってもタテは削れないように固定 */
    background-color: transparent;
}
.room-fv-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.room-fv-scroll {
    position: absolute;
    right: calc(13% - 23px);
    bottom: -60px; /* MVVと同じくセクションの下辺に跨る位置 */
    z-index: 20;
}

/* ==================================================
   ROOM: Section 2 (Concept)
================================================== */
.room-concept {
    position: relative;
    width: 100vw;
    background-color: transparent; /* 背景色は擬似要素へ */
    padding: 400px 0 250px;
    overflow: visible;
    /* z-index は設定しない */
}


.section-bg-canvas {
    position: absolute;
    top: -1200px;
    left: 0;
    width: 100%;
    height: calc(100% + 2400px);
    z-index: 1; /* body背景(0)の上、コンテンツ(2以上)の下 */
    pointer-events: none;
    opacity: 0.8;
}

.room-concept-inner {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 clamp(40px, 10vw, 192px) 0 0; /* 右側の余白も画面幅に合わせて狭まるように変更 */
    position: relative;
    z-index: 2; /* アニメーション(1)より前面へ */
}

.room-concept-left {
    width: 40%; /* 左・下に縮める */
}

.room-concept-image-wrap {
    width: 100%;
    aspect-ratio: 3 / 2; /* 横長にして下を短く */
    background-color: #eee;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    margin-top: -70px; /* 30px分上に戻す */
}

.room-concept-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 769px) {
    .room-concept-left {
        /* 最大サイズ(1920px以上)では絶対に40%を維持し、画面が狭まった時だけ、通常よりも早く減少させる魔法の式 */
        width: min(40%, calc(40% - (1920px - 100vw) * 0.2));
    }
    .room-concept-main-img {
        transform-origin: top left; /* 左上を軸にして右下に向かって大きくする */
        transform: translate(9.5vw, 30px) scale(1.15); /* 画像の右への飛び出し量を画面幅に連動（大画面で約180px） */
        box-shadow: 0 20px 40px rgba(0,0,0,0.05); /* 画像本体に影を付け直す */
    }
    .room-concept-image-wrap {
        background-color: transparent !important; /* 画像をずらした際に見える左側のグレー下地を透明にして消す */
        box-shadow: none !important; /* 元の位置に残っている影を消す */
        min-height: 400px; /* 初期表示は一切変えず、画面が狭まった時にだけ高さが縮むのを防いで縦長にするストッパー */
    }

    /* 丸横文字をもう少し左に（丸と文字の隙間を広げて文字を左へ寄せる） */
    .step-item {
        gap: 34px !important; 
    }

    /* 無限ループスライドショーの間隔をもっと狭める */
    .slider-item {
        margin-right: 10px !important;
    }
    .room-concept-slider {
        animation: infiniteScrollPC 50s linear infinite !important;
    }

    /* お問い合わせボタンを一回り小さく */
    .room-cta-wrap {
        max-width: 550px !important; /* デフォルト700pxから狭める */
    }
    .room-cta-button {
        padding: 16px !important; /* デフォルト22pxから小さく */
        font-size: 1.2rem !important; /* デフォルト1.4remから小さく */
    }

    /* Section 3と4の境目の余白を狭める */
    .room-cta-section {
        margin-bottom: 40px !important; /* デフォルト100pxから狭める */
    }
    .room-terms {
        margin-top: 80px !important; /* デフォルト150pxから狭める */
        padding-top: 120px !important; /* デフォルト250pxから狭める */
    }
}

/* PC専用の無限ループアニメーション（間隔10pxに合わせて移動距離を再計算） */
@keyframes infiniteScrollPC {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 8 - 10px * 8)); }
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    width: 120px;
    opacity: 1; /* 色をはっきり出すため1に */
    /* filter: grayscale(1) brightness(1.2); */ /* 元の色を出すため削除 */
    animation: floating 6s ease-in-out infinite;
}

/* アイコン：大・中・小 / 一回り大きく / さらに右にずらす */
.icon-question { top: 58%; left: 137%;  animation-delay: 0s;   width: 126px; } /* 中（ご指定の数値） */
.icon-glass    { top: 124%; left: 40%; animation-delay: 1.5s; width: 195px; } /* 大 */
.icon-rocket   { top: 110%; left: 143%; animation-delay: 3s;   width: 150px; } /* 小 */

@keyframes floating {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.room-concept-right {
    width: 60%;
    display: flex;
    justify-content: flex-end;
    text-align: right;
    position: relative;
}

.room-concept-line-wrap {
    position: absolute;
    right: 0;
    top: -120px;
    width: 4px; /* 4pxに細く */
    height: calc(100% + 120px);
    background-color: transparent;
}

.room-concept-line {
    position: absolute;
    top: 83px;
    left: 50%;
    transform: translateX(-50%) scale(0) rotate(-90deg);
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.8s ease, 
                transform 1.0s cubic-bezier(0.2, 0.8, 0.2, 1), 
                width 1.0s cubic-bezier(0.2, 0.8, 0.2, 1), 
                height 2.0s cubic-bezier(0.2, 0.8, 0.2, 1); /* 2.0秒に短縮 */
    z-index: 5;
    will-change: transform, width, height, opacity;
}

.room-concept-line.is-active {
    transform: translateX(-50%) scale(1) rotate(0deg);
    opacity: 1;
}

/* 棒が伸びきったら下端を透明にフェードアウト */
.room-concept-line.is-morphing {
    transition: transform none, width 1.0s cubic-bezier(0.2, 0.8, 0.2, 1), height 2.0s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: lineBounce 2.0s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    width: 4px;
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    backface-visibility: hidden; /* 描画の安定化 */
}

/* バウンドしながら変形するアニメーション */
@keyframes lineBounce {
    0%   { transform: translateX(-50%) scale(1, 1) rotate(0deg); }
    40%  { transform: translateX(-50%) scale(1.05, 0.95) rotate(0deg); }
    100% { transform: translateX(-50%) scale(1, 1) rotate(0deg); }
}

/* 上から下へ流れる光の帯 */
.room-concept-line.is-morphing::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(130, 190, 255, 0.85),
        transparent
    );
    animation: linePulse 4s 2.0s linear infinite; /* 伸び切る時間(2.0s)と完全に分離 */
}

.room-concept-text-box {
    padding-right: 0; /* バーの上に重ねるため0に */
    width: 100%;
}

.room-concept-heading {
    font-family: var(--font-mincho);
    font-size: clamp(1.8rem, 3vw, 2.8rem); /* 画面幅に応じて滑らかに縮小 */
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 500;
    padding-right: 80px; /* 適切な余白に調整 */
    color: var(--primary-color); /* キーカラーの青に変更 */
}

.concept-desc-box {
    font-size: 1rem;
    line-height: 2;
    color: #666;
    margin-bottom: 4rem;
    padding-right: 80px;
}

.no-wrap {
    display: inline-block;
    white-space: nowrap;
}

.concept-steps {
    display: flex;
    flex-direction: column;
    gap: 24px; /* 間を詰める */
    align-items: flex-end;
    margin-top: 40px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 14px; /* 丸と文字の間も詰める */
}

.step-text {
    font-family: var(--font-mincho);
    font-size: 19px; /* 19pxに変更 */
    font-weight: 600;
    color: #666; /* グレーに変更 */
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.step-text.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.step-circle {
    width: 60px; /* 小さく */
    height: 60px; /* 小さく */
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-right: -28px; /* 60pxの丸を 4pxの棒に中心屠ないする */
    z-index: 10;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-circle.is-visible {
    opacity: 1;
    transform: scale(1);
}

.step-label {
    font-family: var(--font-mincho);
    font-size: 0.55rem; /* 縮小 */
    color: var(--primary-color);
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
}

.step-num {
    font-family: var(--font-mincho);
    font-size: 1.2rem; /* 縮小 */
    color: var(--primary-color);
    line-height: 1;
    font-weight: 300;
}

.room-concept-slider-wrap {
    width: 100%;
    overflow: hidden;
    margin-top: 250px; /* 少し下にずらす */
    position: relative;
    z-index: 2; /* アニメーション(1)より前面へ */
}

.room-concept-slider {
    display: flex;
    width: max-content;
    animation: infiniteScroll 50s linear infinite;
}

.slider-item {
    width: 400px;
    margin-right: 30px;
}

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

@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 8 - 30px * 8)); }
}

/* ==================================================
   ROOM: Section 3 & 4 (Common / Titles)
================================================== */
.room-plans {
    position: relative;
    padding: 80px 0 120px;
    background-color: transparent; /* 背景色は擬似要素へ */
}


.room-plans-inner {
    position: relative;
    z-index: 2; /* アニメーション(1)より前面へ */
}

.room-section-header {
    margin-bottom: 60px;
}

.room-heading-mask {
    position: relative;
    padding-left: 0; /* 0にして下の説明文と揃える */
    margin-bottom: 30px;
    display: inline-block;
}

.room-blue-square {
    position: absolute;
    top: 0;
    left: -35px; /* テキストの左外側に配置 */
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    opacity: 0;
    transform: scale(0) rotate(-90deg);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.room-blue-square.is-visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.room-section-title {
    font-family: var(--font-mincho);
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.room-section-desc {
    font-size: 0.95rem;
    line-height: 2;
}

/* ==================================================
   ROOM: Section 3 (Plans)
================================================== */
.room-plan-card {
    display: flex;
    justify-content: space-between;
    border: 1px solid #d1d5db;
    margin-bottom: 40px;
    background-color: #FFFFFF;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    font-family: var(--font-mincho); /* 枠内を基本的に明朝体に設定 */
}

.room-plan-text {
    width: 45%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.room-plan-en {
    font-family: var(--font-gothic); /* 英文はゴシックのまま青に */
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.room-plan-title {
    font-family: var(--font-mincho);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.room-plan-sub {
    font-size: 1rem;
    margin-bottom: 30px;
}

.room-plan-tags {
    list-style: none;
    margin-top: auto;
}

.room-plan-tags li {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.room-plan-meta {
    width: 25%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.room-plan-details {
    list-style: none;
    font-size: 0.85rem;
    line-height: 2;
}

.square-bullet {
    color: #333;
    margin-right: 5px;
}

.room-plan-price-box {
    margin-top: 20px;
}

.price-label {
    font-size: 0.8rem;
    line-height: 1.5;
}

.price-value {
    font-family: var(--font-mincho);
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
    margin-top: 5px;
}

.price-unit {
    font-size: 1rem;
}

.room-plan-img {
    width: 30%;
}

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

/* 特徴バナー (青い帯) */
.room-features-banner {
    background-color: var(--primary-color);
    padding: 50px 20px;
    color: #FFFFFF;
    text-align: center;
    margin: 120px 0 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.features-title {
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 500;
}

.features-icons {
    display: flex;
    justify-content: center;
    gap: 13px;
    flex-wrap: wrap;
    max-width: 1184px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.feature-circle {
    width: 70px;
    height: 70px;
    background-color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-circle svg,
.feature-circle img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.feature-label {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
}

.small-text-xs {
    font-size: 0.6rem;
}

/* 注意事項 */
.room-features-notes {
    margin-top: 60px;
}

.notes-grid {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
}


.notes-col p {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.notes-sub-list {
    list-style: none;
    margin-bottom: 96px;
}

.notes-sub-list li {
    font-size: 0.8rem;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
}

/* お問い合わせボタン (CTA) */
.room-cta-section {
    margin-top: 80px;
    margin-bottom: 100px;
    text-align: center;
}

.room-cta-wrap {
    display: inline-block;
    width: 100%;
    max-width: 700px;
}

.room-cta-button {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500; /* ウェイトを下げた状態を維持 */
    padding: 22px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 56, 141, 0.2);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.room-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 56, 141, 0.3);
    opacity: 0.8; 
    filter: brightness(1.1);
}

.room-cta-note {
    font-size: 0.75rem;
    color: #666;
    margin-top: 20px;
    font-weight: 500;
}



/* ==================================================
   ROOM: Section 4 (Terms)
================================================== */
.room-terms {
    margin-top: 150px;
    padding: 250px 0 200px;
    background-color: #FFFFFF;
    position: relative;
    overflow: visible; /* マスクを解除 */
}

.room-terms .room-section-header {
    text-align: center;
}

.room-terms .room-blue-square {
    top: -6px;
    left: 186px;
}

/* 右下の装飾 */
.room-terms::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background-image: radial-gradient(#00388D 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.room-terms-content {
    max-width: 1184px;
    margin: 60px auto 0;
    position: relative;
    z-index: 1;
}

.term-block {
    margin-bottom: 45px;
}

.term-block h3 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.05em;
}

.term-block ul {
    list-style: none;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #444;
}

.term-block li {
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.container {
    max-width: 1184px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section2のタイトルの出現方向を逆にする */
.room-concept-heading .char {
    transform: translate(-20px, 20px); /* 元は 20px, -20px */
}
.room-concept-heading .char.is-visible {
    transform: translate(0, 0);
}

/* ==================================================
   タブレット用 (Section 1 をスマホと同じレイアウトにする)
================================================== */
@media (min-width: 451px) and (max-width: 768px) {
    .room-fv {
        width: 100% !important;
        height: auto !important;
        min-height: 100vh;
        overflow-x: hidden !important;
    }
    .room-fv-content {
        position: relative !important; /* スクロールパーツの配置の基準にする */
        width: 100% !important;
        height: auto !important;
        overflow-x: hidden !important;
        flex-direction: column !important; /* 縦並びに変更 */
        padding-top: 70px !important;
        padding-bottom: 60px !important;
    }
    .room-fv-video-area {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important; /* 横幅はみ出し防止のため100vwから100%に変更し、両端ピッタリに */
        height: 60vh !important;
        aspect-ratio: 1 / 1 !important;
        order: -1;
        margin-bottom: 40px !important; /* 少し余白を広げる */
        z-index: 1 !important;
    }
    .room-fv-text-area {
        padding-top: 0 !important;
        padding-left: 60px !important; /* indexのタブレット版と合わせて両サイドに60pxの空き */
        padding-right: 60px !important;
        width: 100% !important;
    }
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    .room-fv-main-copy {
        font-size: clamp(24px, 6vw, 44px) !important; /* はみ出し防止のため、狭い画面では自動縮小させつつ大きく表示 */
        letter-spacing: -0.02em !important;
        white-space: nowrap !important; /* 途中で折り返さず、デスクトップ版と同じ改行タグの位置でのみ改行させる */
    }
    .room-fv-main-copy br:nth-of-type(2) {
        display: none !important; /* 3行目の改行を取る */
    }
    .room-fv-blue-square {
        width: 24px !important; /* サイズに合わせて少し大きく */
        height: 24px !important;
        left: -30px !important; /* 文字の左側に来るように調整 */
        top: 10px !important;
    }
    .room-fv-main-copy-wrap,
    .room-fv-sub-copy,
    .room-fv-desc {
        padding-left: 0 !important; /* 親で60px余白を取ったのでここは0にする */
        position: relative !important;
        z-index: 10 !important;
    }
    .room-fv-main-copy-wrap { margin-bottom: 25px !important; }
    .room-fv-sub-copy { margin-bottom: 25px !important; }
    .room-fv-sub-1 { margin-bottom: 12px !important; }
    .room-fv-sub-1, .room-fv-sub-2, .room-fv-desc { font-size: 16px !important; /* 少し大きく */ }
    .room-fv-desc .sp-only { display: none !important; } /* デスクトップと同じ改行に */
    .room-fv-desc .pc-only { display: inline !important; } /* デスクトップと同じ改行に */
    .room-fv-scroll {
        display: flex !important;
        position: absolute !important;
        right: 60px !important; /* もう少し左に (30px -> 60px) */
        /* 2px上に (-55px -> -57px) */
        top: calc(70px + 60vh - 57px) !important;
        z-index: 20 !important;
    }

    /* ==================================================
       Section 2 (Concept / Value) タブレットレイアウト調整
    ================================================== */
    .room-concept {
        padding-top: 100px !important; /* 上のpaddingをさらに削る */
    }
    .room-concept-inner {
        flex-direction: column !important; /* 画像を一番上に */
        padding: 0 !important; /* 左右の余白をなくして画像を画面幅ピッタリにする */
    }
    .room-concept-left {
        width: 100% !important; /* 横幅ピッタリ */
        margin-bottom: 60px !important; /* 画像と下のテキストの間に余白 */
    }
    .room-concept-image-wrap {
        margin-top: 0 !important; /* 縦並びなので不要なネガティブマージンをリセット */
        aspect-ratio: 2.25 / 1 !important; /* 高さを約1/3削り横長に */
    }
    .room-concept-right {
        width: 100% !important;
        padding-left: 60px !important; /* テキストエリアにのみ左右60pxの余白を設ける */
        padding-right: 60px !important;
    }
    .room-concept-line-wrap {
        right: 60px !important; /* 丸の位置(右paddingの内側)に合わせて左へ移動 */
    }
    .room-concept-heading br.sp-only,
    .room-concept-heading br.pc-only {
        display: none !important; /* 青字大タイトル: 提供するの前の改行等を取って2行にする */
    }
    .room-concept-heading .no-wrap:nth-of-type(2) {
        display: inline-block;
        transform: translateX(10px) !important; /* 2行目を少し右へずらす */
    }
    .concept-desc-box br.sp-only,
    .concept-desc-box br.pc-only {
        display: none !important; /* グレー文字: 3行目・5行目等の改行を取る */
    }
    .concept-desc-box,
    .concept-desc-box p {
        text-align: right !important; /* 小さい文字を右揃えにしてタイトルと右を揃える */
    }
    .tb-only {
        display: block !important; /* タブレット版でのみ有効な改行を表示 */
    }
    .room-concept-image-wrap .floating-icon {
        display: none !important; /* 元の画像エリア内のアイコンは非表示 */
    }
    .step-item {
        justify-content: flex-end !important; /* 元のレイアウト維持 */
        position: relative !important; /* 子要素(アイコン)の絶対配置の基準にする */
    }
    .step-item .step-icon {
        position: absolute !important; /* 文字から完全に独立させる */
        top: 50% !important;
        margin-top: -53px !important; /* 高さに合わせて中央へ */
        width: 107px !important; /* ご指定のサイズに大きく */
        height: auto !important;
        opacity: 0.5 !important;
        animation: floating 6s ease-in-out infinite !important; /* デスクトップ版と同じ浮遊アニメーション */
    }
    /* ステップごとにテキスト長が異なるため、丸と文字の幅から計算して右端から個別に距離を指定 */
    .step-item:nth-child(1) .step-icon {
        right: 510px !important; /* 幅が大きくなった分、さらに左へ移動 */
    }
    .step-item:nth-child(2) .step-icon {
        right: 430px !important;
    }
    .step-item:nth-child(3) .step-icon {
        right: 530px !important;
    }
    .step-text {
        font-size: 16px !important; /* 丸横の文字サイズ */
        color: var(--primary-color) !important; /* 丸横文字を青に */
    }
    .step-text br.sp-only {
        display: none !important; /* 改行を取って1行に */
    }
    /* netアニメーションの透過 */
    #section2-canvas, #section3-canvas {
        opacity: 0.2 !important;
    }
    /* スライドショーの高さ縮小 */
    .room-concept-slider-wrap {
        height: 150px !important;
        margin-top: 120px !important; /* マージンを削りすぎたので少し戻す */
    }
    .slider-item {
        width: 250px !important; /* 画像幅を縮めることで全体を縮小 */
        margin-right: 10px !important; /* 画像同士の間隔をデスクトップ版と同じに */
    }
    @keyframes infiniteScrollTB {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-250px * 8 - 10px * 8)); }
    }
    .room-concept-slider {
        animation: infiniteScrollTB 50s linear infinite !important; /* タブレット専用幅のアニメーション */
    }
    /* Section 3 の四角位置 */
    .room-plans .room-blue-square {
        top: -28px !important; /* もう少し上に */
        left: -14px !important;
    }
    /* Section 2 四角(棒になるアニメーションの初期状態)の位置をずらす */
    .room-concept-line {
        top: 125px !important; /* もう少し下に */
    }
    /* Section 2 全体の下のpaddingを削る */
    .room-concept {
        padding-bottom: 120px !important; /* さらに戻す */
    }
    /* Section 3, 4 青大タイトルの大きさをSection 2と同じに */
    .room-plans .room-section-title,
    .room-terms .room-section-title {
        font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
    }
    /* Section 3 小さい文字を16pxに */
    .room-plans .room-section-desc {
        font-size: 16px !important;
    }
    
    /* Section 3 カードのレイアウト変更 (タブレット版専用) */
    .room-plan-card {
        display: grid !important;
        grid-template-columns: 1fr 1.25fr !important; /* 画像を左に向かって少し大きく */
        column-gap: 20px !important;
        row-gap: 2px !important; /* 縦の隙間を極力なくして間を詰める */
        padding: 30px !important; /* paddingを広げる */
    }
    .room-plan-text, .room-plan-meta {
        display: contents !important; /* 子要素を直接グリッドアイテムにする */
    }
    .room-plan-en {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 0 !important;
    }
    .room-plan-title {
        grid-column: 1 / -1;
        grid-row: 2;
        white-space: nowrap !important; /* 1行にする */
        font-size: clamp(1.4rem, 3.5vw, 1.8rem) !important;
        margin-bottom: 0 !important;
        margin-top: -5px !important; /* 英語との間を狭める */
    }
    .room-plan-sub {
        grid-column: 1 / -1;
        grid-row: 3;
        white-space: nowrap !important; /* 1行にする */
        font-size: clamp(11px, 2.5vw, 14px) !important; /* 画面幅に応じて縮小し1行に収める */
        margin-bottom: 0px !important; /* ボックスの高さを縮めるため余白を削る */
    }
    .room-plan-sub br {
        display: none !important; /* サブタイトルの改行を消す */
    }
    .room-plan-tags {
        grid-column: 1;
        grid-row: 4;
        margin-top: 15px !important; /* サブタイトルとの間隔を確保 */
    }
    .room-plan-details {
        grid-column: 1;
        grid-row: 5;
    }
    .room-plan-price-box {
        grid-column: 1;
        grid-row: 6;
    }
    .room-plan-img {
        grid-column: 2;
        grid-row: 4 / 7; /* タグ、詳細、価格の高さ分ぶち抜き */
        width: 100% !important;
        height: 85% !important; /* 高さを親の100%から縮める(上を削る) */
        align-self: end !important; /* 下揃えにして上の空いた空間を削った状態にする */
        display: flex !important;
    }
    .room-plan-img img {
        width: 100% !important;
        height: 100% !important; /* コンテナを埋める */
        object-fit: cover !important;
    }
    /* 1個目のボックスのみ画像の横を全て出す（トリミングしない） */
    .room-section-header + .room-plan-card .room-plan-img img {
        object-fit: contain !important;
    }

    /* お問い合わせボタンをデスクトップ版と合わせる */
    .room-cta-wrap {
        max-width: 550px !important;
    }
    .room-cta-button {
        padding: 16px !important;
        font-size: 1.2rem !important;
    }

    /* Section 4 の四角位置 */
    .room-terms .room-blue-square {
        top: -14px !important;
        left: 151px !important;
    }
}
