@charset "UTF-8";

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --color-bg-dark: #0a0a0a;
    --color-bg-section: #111111;
    --color-bg-card: #1a1a1a;
    
    --color-gold: #c9a962;
    --color-gold-light: #e0c989;
    --color-gold-dark: #9a7b3a;
    
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #666666;
    
    --color-border: rgba(201, 169, 98, 0.2);
    --color-border-subtle: rgba(255, 255, 255, 0.08);
    
    --font-display: 'Cormorant Garamond', 'Noto Serif JP', serif;
    --font-body: 'Zen Kaku Gothic New', sans-serif;
    
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.8;
    font-weight: 300;
    overflow-x: hidden;
}

/* ==========================================================================
   2. COMMON LAYOUT & ANIMATIONS
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4rem;
}

section { padding: 8rem 0; position: relative; }
section > .container { padding: 0 4rem; }

.section-header { text-align: center; margin-bottom: 5rem; overflow: visible; }
.section-label {
    font-family: var(--font-display); 
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.2em; color: var(--color-gold);
    text-transform: uppercase; margin-bottom: 1.5rem; display: inline-block;
    font-weight: 300;
}

.section-line {
    display: block;
    width: 120px;
    height: 1px;
    margin: 0 auto 1.5rem;
    border: none;
    background: var(--color-gold);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 50%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 50%, transparent);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400; letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    font-variant-numeric: lining-nums;
}
.section-lead {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 2.2;
    color: var(--color-text-secondary);
    max-width: 680px;
    margin: 1.5rem auto 0;
    text-align: center;
}

/* Common Animations */
@keyframes loadingLine { 0% { left: -100%; } 100% { left: 100%; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slowZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes indicatorProgress { from { width: 0; } to { width: 100%; } }
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ==========================================================================
   3. LOADING SCREEN
   ========================================================================== */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-bg-dark);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s var(--transition-smooth), visibility 0.8s;
    animation: loaderAutoHide 0s ease forwards;
    animation-delay: 3s;
}
@keyframes loaderAutoHide {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.loader.hidden { opacity: 0; visibility: hidden; }

.loader-content { 
    text-align: center;
    width: fit-content;   /* 幅を中身（文字）に合わせる */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.loader-logo {
    margin-bottom: 2rem;
    opacity: 0; animation: fadeInUp 1s var(--transition-smooth) 0.3s forwards;
}
.loader-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.loader-line {
    width: 100%; /* 親要素（文字幅）に合わせる */
    height: 1px; background: var(--color-border-subtle);
    position: relative; overflow: hidden;
    margin-top: -1rem;
}
.loader-line::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    animation: loadingLine 1.5s ease-in-out infinite;
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1.5rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.5s var(--transition-smooth);
}
header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 4rem;
    border-bottom: 1px solid var(--color-border-subtle);
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}
nav { display: flex; gap: 3rem; align-items: center; }
nav a {
    color: var(--color-text-secondary); text-decoration: none;
    font-size: 0.85rem; letter-spacing: 0.1em; position: relative;
    transition: color 0.3s var(--transition-smooth);
}
nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 1px; background: var(--color-gold);
    transition: width 0.3s var(--transition-smooth);
}
nav a:hover { color: var(--color-gold); }
nav a:hover::after { width: 100%; }

.cta-btn {
    background: transparent; border: 1px solid var(--color-gold);
    color: var(--color-gold); padding: 0.8rem 2rem;
    font-size: 0.85rem; letter-spacing: 0.1em; cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    font-family: var(--font-body); text-decoration: none;
}
.cta-btn:hover { background: var(--color-gold); color: var(--color-bg-dark); }

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-slider {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.05); animation: slowZoom 8s ease-out forwards;
}
.hero-indicators {
    position: absolute; bottom: 120px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 5;
}
.hero-indicator {
    width: 50px; height: 2px; background: rgba(255, 255, 255, 0.3);
    cursor: pointer; position: relative; overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
}
.hero-indicator::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 0; height: 100%; background: var(--color-gold);
}
.hero-indicator.active::after { animation: indicatorProgress 6s linear forwards; }
.hero-indicator:hover { background: rgba(255, 255, 255, 0.5); }

.hero-pattern {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.03; z-index: 1; pointer-events: none;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(201, 169, 98, 0.5) 100px, rgba(201, 169, 98, 0.5) 101px),
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(201, 169, 98, 0.5) 100px, rgba(201, 169, 98, 0.5) 101px);
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.7) 100%);
    z-index: 1; pointer-events: none;
}

.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 900px; padding: 0 2rem;
}
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300; letter-spacing: 0.08em; line-height: 1.5;
    margin-bottom: 2rem; opacity: 0;
    animation: fadeInUp 1.2s var(--transition-smooth) 0.5s forwards;
    white-space: nowrap;
}
.hero-content h1 .line1 { display: block; }
.hero-content h1 .line2 { display: block; color: var(--color-text-primary); }
.hero-content p {
    font-size: 1rem; color: var(--color-text-secondary);
    line-height: 2; margin-bottom: 3rem; opacity: 0;
    animation: fadeInUp 1.2s var(--transition-smooth) 0.8s forwards;
}

.hero-cta {
    display: flex; gap: 1.5rem; justify-content: center; opacity: 0;
    animation: fadeInUp 1.2s var(--transition-smooth) 1.1s forwards;
}
.hero-cta .cta-btn.primary { background: var(--color-gold); color: var(--color-bg-dark); }
.hero-cta .cta-btn.primary:hover { background: var(--color-gold-light); }

.scroll-indicator {
    position: absolute; bottom: 3rem; left: 50%;
    transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    opacity: 0; animation: fadeIn 1s var(--transition-smooth) 1.5s forwards;
}
.scroll-indicator span {
    font-size: 0.7rem; letter-spacing: 0.3em;
    color: var(--color-text-muted); text-transform: uppercase;
}
.scroll-line {
    width: 1px; height: 60px;
    background: linear-gradient(180deg, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ==========================================================================
   6. PHILOSOPHY SECTION
   ========================================================================== */
.philosophy {
    padding: 0;
    background: var(--color-bg-section);
}
.philosophy .section-header {
    padding: 8rem 4rem 4rem;
    background: var(--color-bg-section);
    max-width: var(--max-width);
    margin: 0 auto;
}

.reason-block {
    position: relative;
    width: 100%;
    /* 高さ調整: 少し縮めました */
    height: 65vh;
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.reason-bg {
    position: absolute;
    top: -10%; left: 0;
    width: 100%;
    height: 120%;
    z-index: 0;
    will-change: transform;
}
.reason-bg img { width: 100%; height: 100%; object-fit: cover; }
.reason-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.85) 100%
    );
}

.reason-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    width: 100%;
    padding: 4rem;
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s var(--transition-smooth);
}
.reason-block.visible .reason-content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* 数字（01, 02...）の位置修正 */
.reason-number {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 300;
    color: var(--color-gold);
    opacity: 0.4;
    line-height: 0.8;
    margin-bottom: 1rem;
    
    /* 背景画像の左上に配置 */
    position: absolute;
    top: 5%;
    left: 5%;
    z-index: 2;
    text-shadow: 0 0 30px rgba(201, 169, 98, 0.3);
}

/* ボックス幅の修正 */
.reason-inner {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    padding: 3rem 4rem;
    
    /* 親要素いっぱいに広げて中央配置 */
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.reason-inner h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    font-variant-numeric: lining-nums;
}
.reason-inner p {
    color: var(--color-text-secondary);
    line-height: 2.2;
    font-size: 1rem;
}

.collab-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.collab-logos img {
    max-width: 60%;
    height: auto;
    max-height: 80px;
}

.reason-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    z-index: 2;
    transition: opacity 0.3s ease;
}
.reason-block:hover .reason-scroll-hint { opacity: 1; }
.reason-scroll-hint span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    text-transform: uppercase;
}
.reason-scroll-hint svg {
    width: 24px; height: 24px;
    stroke: var(--color-gold);
    animation: bounceDown 2s ease-in-out infinite;
}

/* ==========================================================================
   7. WORKS SECTION
   ========================================================================== */
.works { background: var(--color-bg-dark); }

.works-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    max-width: var(--max-width); margin: 0 auto;
}
.work-card {
    position: relative; aspect-ratio: 3/4; overflow: hidden; cursor: pointer;
    opacity: 0; transform: translateY(50px);
    transition: all 0.8s var(--transition-smooth);
}
.work-card.visible { opacity: 1; transform: translateY(0); }
.work-card:nth-child(2) { transition-delay: 0.2s; }
.work-card:nth-child(3) { transition-delay: 0.4s; }

.work-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    transition: transform 0.8s var(--transition-smooth);
}
.work-image img { width: 100%; height: 100%; object-fit: cover; }
.work-card:hover .work-image { transform: scale(1.1); }

.work-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 10, 0.9) 100%);
    transition: all 0.5s var(--transition-smooth);
}
.work-card:hover .work-overlay {
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.1) 0%, rgba(10, 10, 10, 0.95) 100%);
}

.work-content {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem;
    transform: translateY(20px); transition: transform 0.5s var(--transition-smooth);
}
.work-card:hover .work-content { transform: translateY(0); }

.work-content h3 {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
    margin-bottom: 0.5rem; color: var(--color-text-primary);
}
.work-content p {
    font-size: 0.9rem; color: var(--color-text-secondary);
    opacity: 0; transition: opacity 0.5s var(--transition-smooth);
}
.work-card:hover .work-content p { opacity: 1; }

.work-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 1rem; color: var(--color-gold);
    font-size: 0.85rem; letter-spacing: 0.1em;
    opacity: 0; transform: translateX(-10px);
    transition: all 0.5s var(--transition-smooth);
}
.work-card:hover .work-link { opacity: 1; transform: translateX(0); }

/* Thumbnail credit overlay — 焼き込みクレジットがトリミングで見切れた場合の保険表示。
   モーダル拡大時は焼き込み版が表示される。音羽の森は対象外（依頼書0522）。 */
.work-card[data-gallery="fukei"]::after,
.work-card[data-gallery="rinkan"]::after {
    content: "© 小堀住研";
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* ==========================================================================
   8. DESIGNER SECTION
   ========================================================================== */
.designer { background: var(--color-bg-section); }
.designer > .container { max-width: var(--max-width); margin: 0 auto; }

.designer-main {
    display: grid; grid-template-columns: 350px 1fr; gap: 4rem;
    margin-bottom: 5rem; opacity: 0; transform: translateY(50px);
    transition: all 0.8s var(--transition-smooth);
}
.designer-main.visible { opacity: 1; transform: translateY(0); }

.designer-photo { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.designer-photo img { width: 100%; height: 100%; object-fit: cover; }
.designer-photo::after {
    content: ''; position: absolute;
    top: 20px; left: 20px; right: -20px; bottom: -20px;
    border: 1px solid var(--color-gold); opacity: 0.3; z-index: -1;
}

.designer-info { padding-top: 1rem; }
.designer-name {
    font-family: var(--font-display); font-size: 2.2rem;
    font-weight: 300; margin-bottom: 0.5rem;
}
.designer-title {
    font-size: 0.9rem; color: var(--color-gold);
    letter-spacing: 0.1em; margin-bottom: 2.5rem;
}
.designer-philosophy h4 {
    font-family: var(--font-display); font-size: 1.2rem;
    font-weight: 400; margin-bottom: 1.2rem;
    color: var(--color-text-primary);
}
.designer-philosophy p { color: var(--color-text-secondary); line-height: 2.2; }

.team-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem;
    padding-top: 3rem; border-top: 1px solid var(--color-border-subtle);
}
.team-member {
    text-align: center; opacity: 0; transform: translateY(30px);
    transition: all 0.6s var(--transition-smooth);
}
.team-member.visible { opacity: 1; transform: translateY(0); }

.team-photo {
    width: 100px; height: 100px; margin: 0 auto 1rem;
    border-radius: 50%; position: relative; overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 1px solid var(--color-border); border-radius: 50%;
    pointer-events: none; z-index: 1;
}
.team-member h4 {
    font-family: var(--font-display); font-size: 1rem;
    font-weight: 400; margin-bottom: 0.3rem;
}
.team-member span { font-size: 0.75rem; color: var(--color-text-muted); letter-spacing: 0.05em; }

/* ==========================================================================
   9. PERFORMANCE SECTION
   ========================================================================== */
.performance { background: var(--color-bg-dark); position: relative; overflow: hidden; }
.performance::before {
    content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
    background: radial-gradient(ellipse at center right, rgba(201, 169, 98, 0.05) 0%, transparent 70%);
}
.performance > .container { max-width: var(--max-width); margin: 0 auto; }

.performance-intro {
    max-width: 800px; margin: 0 auto 4rem; text-align: center;
}
.performance-intro p {
    color: var(--color-text-secondary); line-height: 2; font-size: 1rem;
}
.performance-blocks {
    display: flex; flex-direction: column; gap: 4rem;
}
.performance-block {
    opacity: 0; transform: translateY(50px);
    transition: all 0.8s var(--transition-smooth);
}
.performance-block.visible { opacity: 1; transform: translateY(0); }

/* --- Regional Chart Styles --- */
.regional-chart {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    padding: 2.5rem;
}
.regional-chart-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1.5rem;
}
.regional-chart-title {
    font-family: var(--font-display); font-size: 1.6rem;
    font-weight: 400; color: var(--color-text-primary);
}
.regional-chart-highlight {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg-dark);
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 260px;
    text-align: center;
    line-height: 1.5;
}

.regional-chart-body {
    display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center;
}
.chart-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.chart-row {
    display: grid; grid-template-columns: 100px 1fr 60px; gap: 1rem;
    align-items: center;
}
.chart-row.highlight .row-label { color: var(--color-gold); font-weight: 500; }
.chart-row.highlight .row-bar { background: var(--color-gold); }
.chart-row.highlight .row-value { color: var(--color-gold); font-weight: 500; }

.row-label { font-size: 0.85rem; color: var(--color-text-secondary); }
.row-bar-track {
    height: 20px; background: var(--color-bg-dark); position: relative;
    overflow: hidden;
}
.row-bar {
    height: 100%; background: var(--color-text-muted);
    transition: width 1.2s var(--transition-smooth); width: 0;
}
.row-bar.animated { width: var(--bar-width); }
.row-value { 
    font-family: var(--font-display); font-size: 1rem;
    color: var(--color-text-secondary); text-align: right;
}
.row-annotation {
    font-size: 0.75rem; color: var(--color-text-muted);
    margin-left: 0.3rem;
}

.chart-legend {
    display: flex; flex-direction: column; gap: 0.8rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(100, 180, 255, 0.1) 0%, rgba(255, 140, 100, 0.1) 100%);
    border-radius: 40px;
    text-align: center;
}
.legend-cold, .legend-warm {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.8rem;
}
.legend-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 500;
}
.legend-cold .legend-icon { background: #5b9bd5; color: white; }
.legend-warm .legend-icon { background: #ed7d31; color: white; }
.legend-arrow {
    width: 2px; height: 30px; margin: 0 auto;
    background: linear-gradient(180deg, #5b9bd5, #ed7d31);
}
.nagano-note {
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-subtle);
    font-size: 0.85rem; color: var(--color-gold);
}

/* --- House Diagram Styles --- */
.insulation-comparison {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.house-diagram {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    padding: 2rem;
    text-align: center;
}
.house-diagram.good { border-color: var(--color-gold); }
.house-diagram-title {
    font-family: var(--font-display); font-size: 1.1rem;
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-subtle);
}
.house-diagram.bad .house-diagram-title { color: var(--color-text-muted); }
.house-diagram.good .house-diagram-title { color: var(--color-gold); }

.house-visual {
    position: relative;
    width: 300px;
    height: 220px;
    margin: 0 auto 1.5rem;
}

/* House Structure */
.house-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 120px;
    height: 130px;
}
.house-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 80px;
    background: linear-gradient(180deg, #4a5a6a 0%, #3a4550 100%);
    border: 2px solid rgba(255,255,255,0.15);
}
.house-roof {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 50px solid #4a5a6a;
}

/* Good house glow */
.house-diagram.good .house-body {
    box-shadow: 0 0 30px rgba(201, 169, 98, 0.4), 0 0 60px rgba(201, 169, 98, 0.2);
    border-color: rgba(201, 169, 98, 0.5);
    background: linear-gradient(180deg, #5a6a5a 0%, #4a5a4a 100%);
}
.house-diagram.good .house-roof {
    border-bottom-color: #5a6a5a;
    filter: drop-shadow(0 0 20px rgba(201, 169, 98, 0.3));
}

/* Center divider line */
.center-line {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: calc(100%);
    z-index: 5;
border: 1px dotted rgba(255,255,255,0.15);
}

.season-badge {
    position: absolute;
    top: 8px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 10;
}
.season-badge.winter {
    left: 25px;
    background: #5b9bd5;
    color: white;
}
.season-badge.summer {
    right: 25px;
    background: #ed7d31;
    color: white;
}

/* Arrow Styles - Simple Animation */
.arrow {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    transform: rotate(var(--angle, 0deg)) scaleX(1.5);
    transform-origin: left;
}
.arrow.cold { color: #5b9bd5; }
.arrow.warm { color: #ed7d31; }

/* ==========================================================================
   矢印位置設定 - PC (デフォルト)
   ========================================================================== */

/* ---------- BAD HOUSE ---------- */
/* 冬側（左）：外からの冷気 */
.bad-winter-cold-roof  { left: 105px; top: 45px;  --angle: 45deg; }
.bad-winter-cold-wall1 { left: 70px;  top: 105px; --angle: 0deg; }
.bad-winter-cold-wall2 { left: 70px;  top: 135px; --angle: 0deg; }
/* 冬側（左）：逃げる暖気 */
.bad-winter-warm-roof  { left: 90px;  top: 55px;  --angle: 45deg; }
.bad-winter-warm-wall1 { left: 70px;  top: 120px; --angle: 0deg; }
.bad-winter-warm-wall2 { left: 70px;  top: 150px; --angle: 0deg; }
/* 夏側（右）：外からの暑気 */
.bad-summer-warm-roof  { right: 95px;  top: 80px;  --angle: -45deg; }
.bad-summer-warm-wall1 { right: 85px;  top: 105px; --angle: 0deg; }
.bad-summer-warm-wall2 { right: 85px;  top: 135px; --angle: 0deg; }
/* 夏側（右）：逃げる冷気 */
.bad-summer-cold-roof  { right: 110px; top: 70px;  --angle: -45deg; }
.bad-summer-cold-wall1 { right: 85px;  top: 120px; --angle: 0deg; }
.bad-summer-cold-wall2 { right: 85px;  top: 150px; --angle: 0deg; }

/* ---------- GOOD HOUSE ---------- */
/* 冬側（左）：ブロックされる冷気 */
.good-winter-cold-roof  { left: 85px;  top: 41px;  --angle: 45deg; }
.good-winter-cold-wall1 { left: 55px;  top: 115px; --angle: 0deg; }
.good-winter-cold-wall2 { left: 55px;  top: 145px; --angle: 0deg; }
/* 冬側（左）：保持される暖気 */
.good-winter-warm-roof  { left: 110px; top: 67px;  --angle: 45deg; }
.good-winter-warm-wall1 { left: 90px;  top: 115px; --angle: 0deg; }
.good-winter-warm-wall2 { left: 90px;  top: 145px; --angle: 0deg; }
/* 夏側（右）：ブロックされる暑気 */
.good-summer-warm-roof  { left: 165px; top: 92px;  --angle: -45deg; }
.good-summer-warm-wall1 { left: 175px; top: 115px; --angle: 0deg; }
.good-summer-warm-wall2 { left: 175px; top: 145px; --angle: 0deg; }
/* 夏側（右）：保持される冷気 */
.good-summer-cold-roof  { left: 190px; top: 67px;  --angle: -45deg; }
.good-summer-cold-wall1 { left: 210px; top: 115px; --angle: 0deg; }
.good-summer-cold-wall2 { left: 210px; top: 145px; --angle: 0deg; }

/* BAD HOUSE: 色ごとに交互に点滅 + 伸縮 */
.house-diagram.bad .arrow.cold {
    animation: arrowFlowCold 2s ease-in-out infinite;
}
.house-diagram.bad .arrow.warm {
    animation: arrowFlowWarm 2s ease-in-out infinite;
}

@keyframes arrowFlowCold {
    0%, 100% { 
        opacity: 1; 
        transform: rotate(var(--angle, 0deg)) scaleX(1.6); 
    }
    50% { 
        opacity: 0.3; 
        transform: rotate(var(--angle, 0deg)) scaleX(1.3); 
    }
}

@keyframes arrowFlowWarm {
    0%, 100% { 
        opacity: 0.3; 
        transform: rotate(var(--angle, 0deg)) scaleX(1.3); 
    }
    50% { 
        opacity: 1; 
        transform: rotate(var(--angle, 0deg)) scaleX(1.6); 
    }
}

/* GOOD HOUSE: 両方とも伸縮させる */
.house-diagram.good .arrow.cold {
    animation: arrowPulse 2s ease-in-out infinite;
}
.house-diagram.good .arrow.warm {
    animation: arrowPulse 2s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes arrowPulse {
    0%, 100% { 
        opacity: 0.5; 
        transform: rotate(var(--angle, 0deg)) scaleX(1.2); 
    }
    50% { 
        opacity: 1; 
        transform: rotate(var(--angle, 0deg)) scaleX(1.6); 
    }
}

/* Season badge pulse animation */
.season-badge {
    animation: badgePulse 3s ease-in-out infinite;
}
.season-badge.winter { animation-delay: 0s; }
.season-badge.summer { animation-delay: 1.5s; }

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px 5px rgba(255,255,255,0.2); }
}

/* Insulation shield glow for good house */
.house-diagram.good .house-body {
    animation: shieldGlow 4s ease-in-out infinite;
}

@keyframes shieldGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 98, 0.3), inset 0 0 15px rgba(201, 169, 98, 0.1); border-color: var(--color-gold); }
    50% { box-shadow: 0 0 35px rgba(201, 169, 98, 0.5), inset 0 0 25px rgba(201, 169, 98, 0.2); border-color: var(--color-gold-light); }
}
.house-diagram.good .house-roof {
    border-bottom-color: #4a5a3a;
    filter: drop-shadow(0 0 10px rgba(201, 169, 98, 0.3));
}

.house-diagram-points {
    text-align: left; margin-top: 1rem;
}
.diagram-point {
    display: flex; align-items: flex-start; gap: 0.8rem;
    margin-bottom: 0.8rem; font-size: 0.9rem;
    color: var(--color-text-secondary); line-height: 1.6;
}
.diagram-point strong { color: var(--color-text-primary); }
.diagram-point.highlight strong { color: var(--color-gold); }
.point-bullet {
    width: 6px; height: 6px; margin-top: 0.5rem;
    background: var(--color-text-muted); border-radius: 50%;
    flex-shrink: 0;
}
.house-diagram.good .point-bullet { background: var(--color-gold); }

/* ==========================================================================
   10. SALON SECTION
   ========================================================================== */
.salon { background: var(--color-bg-section); }
.salon > .container { max-width: var(--max-width); margin: 0 auto; }
.salon .section-title { font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: #fff; }
.salon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.salon-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    overflow: hidden; opacity: 0; transform: translateY(50px);
    transition: all 0.8s var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.salon-card.visible { opacity: 1; transform: translateY(0); }
.salon-card:nth-child(2) { transition-delay: 0.2s; }

.salon-map { height: 200px; background: var(--color-bg-dark); position: relative; overflow: hidden; }
.salon-map img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(50%); transition: filter 0.5s var(--transition-smooth);
}
.salon-card:hover .salon-map img { filter: grayscale(0%); }

.salon-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.salon-info .salon-services {
    padding-top: 1rem;
}
.salon-info h3 {
    font-family: var(--font-display); font-size: 1.4rem;
    font-weight: 400; margin-bottom: 0.5rem;
}
.salon-location { font-size: 0.85rem; color: var(--color-gold); margin-bottom: 1rem; }
.salon-info p { color: var(--color-text-secondary); margin-bottom: 1rem; line-height: 1.8; font-size: 0.95rem; }
.salon-info .salon-address { font-size: 0.72rem; color: var(--color-text-muted); margin-bottom: 0.6rem; line-height: 1.6; }

.salon-services { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.salon-service {
    font-size: 0.75rem; padding: 0.4rem 0.8rem;
    border: 1px solid var(--color-border); color: var(--color-text-secondary);
}

.salon-gmap {
    margin-top: auto;
    overflow: hidden;
}
.salon-gmap iframe {
    display: block;
    width: 100%;
    height: 200px;
    filter: grayscale(30%) brightness(0.9);
    transition: filter 0.5s var(--transition-smooth);
}
.salon-card:hover .salon-gmap iframe {
    filter: grayscale(0%) brightness(1);
}

/* ==========================================================================
   11. CONTACT SECTION
   ========================================================================== */
.contact { background: var(--color-bg-dark); position: relative; }
.contact::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(201, 169, 98, 0.03) 0%, transparent 70%);
}
.contact > .container { max-width: var(--max-width); margin: 0 auto; }

.contact-intro { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.contact-intro p { color: var(--color-text-secondary); line-height: 2; }

.contact-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    position: relative; z-index: 1;
}
.contact-card {
    background: var(--color-bg-section);
    border: 1px solid var(--color-border-subtle);
    padding: 2.5rem 1.5rem; text-align: center;
    transition: all 0.5s var(--transition-smooth);
    cursor: pointer; opacity: 0; transform: translateY(50px);
}
.contact-card.visible { opacity: 1; transform: translateY(0); }
.contact-card:nth-child(2) { transition-delay: 0.15s; }
.contact-card:nth-child(3) { transition-delay: 0.3s; }
.contact-card:hover { border-color: var(--color-gold); transform: translateY(-10px); }

.contact-icon {
    width: 50px; height: 50px; margin: 0 auto 1.2rem;
    border: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.5s var(--transition-smooth);
}
.contact-card:hover .contact-icon { border-color: var(--color-gold); background: var(--color-gold); }

.contact-icon svg {
    width: 22px; height: 22px; stroke: var(--color-gold);
    transition: stroke 0.5s var(--transition-smooth);
}
.contact-card:hover .contact-icon svg { stroke: var(--color-bg-dark); }

.contact-card h3 {
    font-family: var(--font-display); font-size: 1.2rem;
    font-weight: 400; margin-bottom: 0.8rem;
}
.contact-card p { font-size: 0.85rem; color: var(--color-text-secondary); }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
footer {
    background: var(--color-bg-section);
    padding: 4rem 4rem 2rem;
    border-top: 1px solid var(--color-border-subtle);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-main {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .logo { display: flex; margin-bottom: 1rem; }
.footer-brand .logo-img { height: 24px; }
.footer-brand p { color: var(--color-text-secondary); font-size: 0.85rem; line-height: 1.8; }

.footer-links h4, .footer-salons h4 {
    font-family: var(--font-display); font-size: 0.85rem;
    letter-spacing: 0.2em; color: var(--color-gold);
    margin-bottom: 1.2rem; text-transform: uppercase;
}
.footer-links ul, .footer-salons ul { list-style: none; }
.footer-links li, .footer-salons li { margin-bottom: 0.6rem; }
.footer-links a, .footer-salons a {
    color: var(--color-text-secondary); text-decoration: none;
    font-size: 0.85rem; transition: color 0.3s var(--transition-smooth);
}
.footer-links a:hover, .footer-salons a:hover { color: var(--color-gold); }

.footer-bottom {
    padding-top: 1.5rem; border-top: 1px solid var(--color-border-subtle);
    text-align: center;
}
.footer-bottom p { font-size: 0.75rem; color: var(--color-text-muted); letter-spacing: 0.1em; }

/* ==========================================================================
   NEW: SIDE CTA (floating right)
   ========================================================================== */
.side-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--transition-smooth);
}
.side-cta.visible {
    opacity: 1;
    pointer-events: auto;
}
.side-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 24px 14px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    font-family: var(--font-body);
    transition: all 0.3s var(--transition-smooth);
}
.side-cta .side-cta-document {
    background: var(--color-gold);
    color: var(--color-bg-dark);
    font-weight: 500;
}
.side-cta .side-cta-document:hover {
    background: var(--color-gold-light);
}
/* ==========================================================================
   NEW: INTRO LEAD SECTION
   ========================================================================== */
.intro-lead {
    position: relative;
    padding: 100px 0;
    background: var(--color-bg-dark);
    overflow: hidden;
}
.intro-lead::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('img/philo_season.jpg') center/cover no-repeat;
    opacity: 0.15;
    pointer-events: none;
}
.intro-lead-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 48px;
    text-align: center;
    background: rgba(10, 10, 10, 0.65);
    border: 1px solid var(--color-border);
}
.intro-lead h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--color-text-primary);
    letter-spacing: 0.08em;
    line-height: 1.8;
    margin-bottom: 24px;
}
.intro-lead p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 2.2;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   NEW: POLICY LINK BUTTON (inside reason-block 03)
   ========================================================================== */
.reason-link-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 36px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-gold);
    border: 1px solid var(--color-border);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all 0.3s var(--transition-smooth);
}
.reason-link-btn:hover {
    background: rgba(201, 169, 98, 0.1);
    border-color: var(--color-gold);
}

/* ==========================================================================
   NEW: WORK CREDIT & VIEW MORE BUTTON
   ========================================================================== */
.work-credit {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
    font-style: italic;
    letter-spacing: 0.05em;
}
.works-more-wrap {
    text-align: center;
    padding: 48px 0 0;
}
.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 48px;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
}
.view-more-btn:hover {
    background: rgba(201, 169, 98, 0.08);
    border-color: var(--color-gold);
}
.view-more-btn svg {
    transition: transform 0.3s var(--transition-smooth);
}
.view-more-btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   NEW: TECHNOLOGY PLACEHOLDERS
   ========================================================================== */
/* ==========================================================================
   TECHNOLOGY: FB-6 Heading
   ========================================================================== */
.tech-fb6-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}
.tech-fb6-heading h3 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--color-text-primary);
    letter-spacing: 0.15em;
}

/* ==========================================================================
   TECHNOLOGY: Badges Placeholder (後日画像差替)
   ========================================================================== */
.tech-badges-placeholder {
    margin-bottom: 3rem;
    text-align: center;
}
.tech-badges-placeholder img {
    max-width: 960px;
    width: 100%;
    height: auto;
}
.tech-placeholder-single {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    min-height: 100px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(201, 169, 98, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
}
.tech-placeholder-single p {
    color: rgba(201, 169, 98, 0.45);
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   TECHNOLOGY: Diagram Section (6面輻射)
   ========================================================================== */
.tech-section-diagram {
    margin-top: 3rem;
    position: relative;
}
.tech-diagram-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.tech-season-label {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.tech-season-summer {
    top: 0;
    left: 5%;
}
.tech-season-winter {
    top: 0;
    right: 5%;
}
.season-kanji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}
.tech-season-summer .season-kanji {
    background: rgba(100, 180, 220, 0.2);
    border: 1px solid rgba(100, 180, 220, 0.5);
    color: #7ecbf0;
}
.tech-season-winter .season-kanji {
    background: rgba(220, 120, 80, 0.2);
    border: 1px solid rgba(220, 120, 80, 0.5);
    color: #e88a5a;
}
.season-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
}
.tech-season-summer .season-desc { color: #7ecbf0; }
.tech-season-winter .season-desc { color: #e88a5a; }

/* 左注釈（矢印が右斜め上へ、テキストが下） */
.tech-annotation {
    position: absolute;
    left: -10px;
    bottom: 2%;
    z-index: 3;
    max-width: 300px;
}
.tech-annotation-arrow {
    margin-bottom: -6px;
    line-height: 0;
}
.tech-annotation-text {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.tech-annotation p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-primary);
    line-height: 1.8;
    letter-spacing: 0.08em;
    font-weight: 400;
}

/* 断面図 — クリック可能 */
.tech-diagram-image {
    margin: 0 auto;
    max-width: 600px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.tech-diagram-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.4s ease;
}
.tech-diagram-image:hover img {
    filter: brightness(0.65);
}
.tech-diagram-image:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}

/* ホバーオーバーレイ（虫眼鏡＋アイコン） */
.tech-diagram-hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.0);
    transition: background 0.4s ease;
    pointer-events: none;
}
.tech-diagram-hover-overlay svg {
    color: var(--color-gold);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.35s ease, transform 0.35s ease;
    filter: drop-shadow(0 0 12px rgba(201, 169, 98, 0.3));
}
.tech-diagram-image:hover .tech-diagram-hover-overlay {
    background: transparent;
}
.tech-diagram-image:hover .tech-diagram-hover-overlay svg {
    opacity: 1;
    transform: scale(1);
}
/* 右下にさりげないヒント */
.tech-diagram-image::after {
    content: '';
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cline x1='6' y1='2' x2='6' y2='10' stroke='%23c9a962' stroke-width='1'/%3E%3Cline x1='2' y1='6' x2='10' y2='6' stroke='%23c9a962' stroke-width='1'/%3E%3C/svg%3E") center/12px no-repeat;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.tech-diagram-image:hover::after {
    opacity: 0;
}

/* ==========================================================================
   TECHNOLOGY: Awards
   ========================================================================== */
.tech-awards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.tech-award {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
}
.tech-award img {
    width: 80px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    border: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    padding: 8px;
}
.tech-award:hover img { opacity: 1; }
.tech-award > span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.5;
    white-space: nowrap;
}

/* ==========================================================================
   TECHNOLOGY: 6面輻射 サブセクション
   ========================================================================== */
.tech-rokumen {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.tech-rokumen-heading {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: var(--color-text-primary);
    text-align: center;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
}
.tech-rokumen-diagram-placeholder {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}
.tech-rokumen-diagram-placeholder img {
    max-width: 100%;
    height: auto;
}
.tech-rokumen-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.tech-rokumen-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 2.2;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   TECHNOLOGY: サーモグラフィ
   ========================================================================== */
.thermo {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.thermo-heading {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-text-primary);
    text-align: center;
    letter-spacing: 0.12em;
    margin-bottom: 3rem;
}
.thermo-columns {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    gap: 0;
    align-items: start;
}

/* Season panel */
.thermo-season {
    position: relative;
    padding: 1.5rem 0 0;
}
.thermo-season-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    position: absolute;
    top: -10px; z-index: 2;
}
.thermo-badge-summer {
    left: 0;
    background: rgba(100,180,220,0.15);
    border: 1px solid rgba(100,180,220,0.4);
}
.thermo-badge-winter {
    right: 0;
    background: rgba(220,120,80,0.15);
    border: 1px solid rgba(220,120,80,0.4);
}
.thermo-badge-kanji {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}
.thermo-badge-summer .thermo-badge-kanji { color: #7ecbf0; }
.thermo-badge-winter .thermo-badge-kanji { color: #e88a5a; }

.thermo-table-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-primary);
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Table grid */
.thermo-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.thermo-row-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 4px;
    align-items: center;
}
.thermo-table-no-floor > .thermo-row-4:first-child {
    margin-bottom: 4px;
}
.thermo-table-no-floor > .thermo-row-4:first-child .thermo-cell {
    padding: 4px 0;
}
.thermo-cell {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    text-align: center;
    letter-spacing: 0.03em;
}

/* Center floor labels (between summer & winter) */
.thermo-floor-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    align-self: stretch;
    padding-top: 108px;
}
.thermo-floor-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    letter-spacing: 0.08em;
}

/* Outside temp row */
.thermo-row-outside {
    margin-bottom: 8px;
}
.thermo-cell-tag {
    background: rgba(255,255,255,0.06);
    padding: 3px 6px;
    font-size: 0.65rem;
    color: var(--color-text-primary);
    letter-spacing: 0.05em;
}
.thermo-cell-temp {
    font-size: 0.8rem;
    color: var(--color-text-primary);
    font-weight: 400;
}

/* Image cells */
.thermo-cell-img { padding: 2px; }
.thermo-cell-img img,
.thermo-cell-img .thermo-tip img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255,255,255,0.06);
}
.thermo-img-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.3);
}
.thermo-img-placeholder.real {
    background: rgba(80,70,55,0.4);
    border: 1px solid rgba(255,255,255,0.06);
}
.thermo-img-placeholder.thermal {
    background: linear-gradient(135deg, rgba(40,80,40,0.4), rgba(120,100,20,0.3));
    border: 1px solid rgba(255,255,255,0.06);
}

/* Data row (temps below images) */
.thermo-row-data {
    margin-bottom: 12px;
}
.thermo-cell-tag-room {
    background: var(--color-gold);
    color: var(--color-bg-dark);
    font-size: 0.6rem;
    font-weight: 500;
    padding: 3px 4px;
    text-align: center;
    letter-spacing: 0.03em;
}
.thermo-cell-temp-room {
    font-size: 0.75rem;
    color: var(--color-gold);
    font-weight: 500;
    text-align: center;
}

/* ===== Clickable pulse animation ===== */
.thermo-tip {
    cursor: pointer;
    position: relative;
    display: block;
}
/* 夏：水色ボーダー */
.thermo-summer .thermo-tip img {
    border: 3px solid rgba(100, 200, 255, 0.8) !important;
    animation: thermoPulseSummer 1.8s ease-in-out infinite;
}
@keyframes thermoPulseSummer {
    0%, 100% { box-shadow: 0 0 4px 0 rgba(100, 200, 255, 0.4); border-color: rgba(100, 200, 255, 0.7); }
    50% { box-shadow: 0 0 16px 6px rgba(100, 200, 255, 0.4); border-color: rgba(140, 220, 255, 1); }
}
/* 冬：オレンジボーダー */
.thermo-winter .thermo-tip img {
    border: 3px solid rgba(255, 160, 60, 0.8) !important;
    animation: thermoPulseWinter 1.8s ease-in-out infinite;
}
@keyframes thermoPulseWinter {
    0%, 100% { box-shadow: 0 0 4px 0 rgba(255, 160, 60, 0.4); border-color: rgba(255, 160, 60, 0.7); }
    50% { box-shadow: 0 0 16px 6px rgba(255, 160, 60, 0.4); border-color: rgba(255, 190, 100, 1); }
}

/* Temperature cell clickable */
.thermo-cell-temp.thermo-tip {
    border: none !important;
    animation: thermoTempPulse 1.8s ease-in-out infinite;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 160, 60, 0.5);
    color: rgba(255, 160, 60, 1);
    cursor: pointer;
}
@keyframes thermoTempPulse {
    0%, 100% { color: rgba(255, 160, 60, 1); text-shadow: none; }
    50% { color: rgba(255, 200, 120, 1); text-shadow: 0 0 10px rgba(255, 160, 60, 0.5); }
}

/* ===== Floating tooltip ===== */
.thermo-tooltip {
    position: fixed;
    z-index: 9998;
    max-width: 240px;
    padding: 14px 18px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(201, 169, 98, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    letter-spacing: 0.04em;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.thermo-tooltip.active {
    opacity: 1;
    visibility: visible;
}
/* SP: 固定表示（中央下） */
.thermo-tooltip.active-sp {
    opacity: 1;
    visibility: visible;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 85vw;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .thermo-columns { gap: 0; }
    .thermo-row-4 { gap: 3px; }
    .thermo-floor-label { font-size: 1.3rem; }
}
@media (max-width: 768px) {
    .thermo-columns { grid-template-columns: 1fr; gap: 3rem; }
    .thermo-season-badge { position: relative; top: auto; left: auto; right: auto; margin: 0 auto 12px; }
    .thermo-floor-labels { flex-direction: row; padding-top: 0; gap: 2rem; }
    .thermo-floor-label { font-size: 1.1rem; }
    .thermo-row-4 { gap: 2px; }
    .thermo-img-placeholder { font-size: 0.4rem; }
}

/* ==========================================================================
   TECHNOLOGY: Modal
   ========================================================================== */
.tech-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.tech-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.tech-modal-box {
    background: var(--color-bg-card);
    border: 1px solid rgba(201, 169, 98, 0.25);
    max-width: 560px;
    width: 90%;
    padding: 3rem 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.tech-modal-overlay.active .tech-modal-box {
    transform: translateY(0);
}
.tech-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}
.tech-modal-close:hover { color: var(--color-gold); }
.tech-modal-box h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
}
.tech-modal-box p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 2;
    letter-spacing: 0.03em;
}
.tech-modal-sub {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.85rem !important;
    color: var(--color-text-muted) !important;
}

/* ==========================================================================
   TECHNOLOGY: Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .tech-badges-placeholder { margin-bottom: 2rem; }
    /* wrapperをflex化してannotationを画像の下へ回す（ラベルはabsoluteでflow外） */
    /* padding-top で画像上方にラベル用の余白を確保 */
    .tech-diagram-wrapper { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 64px; }
    .tech-diagram-image { order: 1; }
    .tech-annotation { order: 2; position: static; max-width: 100%; text-align: center; margin: 1rem auto 0; }
    .tech-annotation-arrow { display: none; }
    .tech-annotation-text { background: none; backdrop-filter: none; padding: 0; }
    .tech-annotation p { text-align: center; font-size: 0.8rem; }
    /* 夏/冬ラベル: 画像の上の余白部分に絶対配置（屋根と重ならない） */
    .tech-season-label { position: absolute; top: 4px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; }
    .tech-season-summer { left: 4%; right: auto; }
    .tech-season-winter { right: 4%; left: auto; }
    .season-kanji { width: 40px; height: 40px; font-size: 1.05rem; }
    .season-desc { font-size: 0.7rem; letter-spacing: 0.1em; }
    .tech-awards { gap: 1rem; }
    .tech-award { width: 70px; }
    .tech-award img { width: 60px; }
    .tech-modal-box { padding: 2rem 1.5rem; }
}

/* ==========================================================================
   NEW: DESIGNER FLAT GRID (replaces main+sub layout)
   ========================================================================== */
.designer-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    padding: 28px 40px;
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.02);
}
.designer-header-logo img {
    height: 52px;
    object-fit: contain;
}
.designer-header-logo .designer-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.designer-header-logo .designer-title-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.6rem;
    font-weight: 200;
    color: var(--color-text-primary);
    letter-spacing: 0.3em;
}

.designer-lead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 16px;
}
.designer-lead h3 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--color-text-primary);
    line-height: 1.8;
    margin-bottom: 24px;
}
.designer-lead p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 2.2;
}

.designer-flat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 40px;
    max-width: 800px;
    margin: 48px auto 0;
}
.designer-flat-member {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--transition-smooth);
}
.designer-flat-member.visible {
    opacity: 1;
    transform: translateY(0);
}
.designer-flat-member .member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    position: relative;
}
.designer-flat-member .member-photo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.designer-flat-member .member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.designer-flat-member h4 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1rem;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}
.designer-flat-member span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   GALLERY MODAL
   ========================================================================== */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(8px);
}
.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}
.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}
.gallery-modal-close:hover { color: #fff; }

.gallery-modal-title {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.12em;
    pointer-events: none;
}
.gallery-modal-counter {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.15em;
    pointer-events: none;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery-modal-nav:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}
.gallery-modal-prev { left: 20px; }
.gallery-modal-next { right: 20px; }

.gallery-modal-stage {
    max-width: calc(100% - 140px);
    max-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-modal-stage img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 768px) {
    .gallery-modal-nav { width: 40px; height: 40px; }
    .gallery-modal-prev { left: 8px; }
    .gallery-modal-next { right: 8px; }
    .gallery-modal-stage { max-width: calc(100% - 80px); }
    .gallery-modal-title { font-size: 0.85rem; top: 16px; }
    .gallery-modal-counter { bottom: 16px; }
}

/* ==========================================================================
   NEW: SALON NOTE
   ========================================================================== */
.salon-note {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 24px;
    text-align: center;
    font-family: var(--font-body);
}

/* ==========================================================================
   NEW: CLOSING SECTION
   ========================================================================== */
.closing {
    position: relative;
    padding: 100px 0;
    background: var(--color-bg-dark);
    text-align: center;
    overflow: hidden;
}
.closing::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('img/hero_01.jpg') center/cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
}
.closing-inner {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
}
.closing h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: var(--color-text-primary);
    line-height: 1.9;
    margin-bottom: 30px;
    letter-spacing: 0.08em;
}
.closing p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 2.0;
}

/* ==========================================================================
   NEW: CONTACT 4-BOX + EXPANDABLE FORM
   ========================================================================== */
.contact-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.contact-card-4 {
    background: var(--color-bg-section);
    border: 1px solid var(--color-border-subtle);
    cursor: pointer;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.5s var(--transition-smooth);
}
.contact-card-4:hover,
.contact-card-4.active {
    border-color: var(--color-gold);
    transform: translateY(-5px);
}
.contact-card-4.active {
    background: rgba(201, 169, 98, 0.05);
}
.contact-card-4 .contact-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.2rem;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s var(--transition-smooth);
}
.contact-card-4:hover .contact-icon,
.contact-card-4.active .contact-icon {
    border-color: var(--color-gold);
    background: var(--color-gold);
}
.contact-card-4 .contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-gold);
    transition: stroke 0.5s var(--transition-smooth);
}
.contact-card-4:hover .contact-icon svg,
.contact-card-4.active .contact-icon svg {
    stroke: var(--color-bg-dark);
}
.contact-card-4 h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: var(--color-text-primary);
}
.contact-card-4 p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.contact-form-area {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--transition-smooth);
    position: relative;
    z-index: 1;
}
.contact-form-area.open {
    max-height: 3000px;
}
.contact-form-inner {
    padding: 48px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-section);
    margin-top: 1.5rem;
}
.contact-form-inner h4 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: 0.1em;
}
.contact-form-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px dashed var(--color-border);
}

/* ==========================================================================
   NEW: CONTACT FORM STYLES
   ========================================================================== */
.cf { width: 100%; }

.cf-group {
    margin-bottom: 32px;
}
.cf-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}
.cf-sublabel {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}
.cf-req {
    display: inline-block;
    font-size: 0.6rem;
    color: #fff;
    background: #c45c5c;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.05em;
    border-radius: 2px;
}
.cf-opt {
    display: inline-block;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-subtle);
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.05em;
}

/* Input / Textarea */
.cf-input,
.cf-textarea {
    width: 100%;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 12px 16px;
    transition: border-color 0.3s var(--transition-smooth);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}
.cf-input:focus,
.cf-textarea:focus {
    border-color: var(--color-gold);
}
.cf-input::placeholder,
.cf-textarea::placeholder {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
.cf-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.8;
}

/* Radio buttons */
.cf-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cf-radios-vertical {
    flex-direction: column;
    gap: 8px;
}
.cf-radio {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.cf-radio input[type="radio"] {
    display: none;
}
.cf-radio span {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-subtle);
    background: transparent;
    transition: all 0.3s var(--transition-smooth);
    letter-spacing: 0.03em;
}
.cf-radio:hover span {
    border-color: var(--color-gold);
    color: var(--color-gold);
}
.cf-radio input[type="radio"]:checked + span {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-bg-dark);
    font-weight: 500;
}

/* 2-column row */
.cf-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Address: zip row */
.cf-address {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cf-row-zip {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cf-zip-prefix {
    font-size: 1rem;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}
.cf-input-zip {
    max-width: 160px;
}
.cf-zip-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: all 0.3s var(--transition-smooth);
}
.cf-zip-btn:hover {
    background: var(--color-gold);
    color: var(--color-bg-dark);
    border-color: var(--color-gold);
}

/* Submit */
.cf-submit-wrap {
    text-align: center;
    padding-top: 16px;
}
.cf-submit-btn {
    display: inline-block;
    padding: 16px 64px;
    background: var(--color-gold);
    border: 1px solid var(--color-gold);
    color: var(--color-bg-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
}
.cf-submit-btn:hover {
    background: var(--color-gold-light);
    border-color: var(--color-gold-light);
}
.cf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form result message */
.cf-result {
    text-align: center;
    padding: 32px 24px;
    margin-top: 24px;
    border: 1px solid;
}
.cf-result-success {
    border-color: rgba(100, 180, 100, 0.3);
    background: rgba(100, 180, 100, 0.05);
}
.cf-result-error {
    border-color: rgba(200, 100, 100, 0.3);
    background: rgba(200, 100, 100, 0.05);
}
.cf-result-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    font-weight: 600;
}
.cf-result-success .cf-result-icon {
    background: rgba(100, 180, 100, 0.15);
    color: #6ab46a;
}
.cf-result-error .cf-result-icon {
    background: rgba(200, 100, 100, 0.15);
    color: #c46a6a;
}
.cf-result-msg {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    line-height: 1.8;
    white-space: pre-line;
}

/* Confirm overlay */
.cf-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}
.cf-confirm-box {
    background: var(--color-bg-section, #111);
    border: 1px solid var(--color-border, #333);
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 149, 62, 0.5) transparent;
}
.cf-confirm-box::-webkit-scrollbar { width: 6px; }
.cf-confirm-box::-webkit-scrollbar-track { background: transparent; }
.cf-confirm-box::-webkit-scrollbar-thumb {
    background: rgba(184, 149, 62, 0.4);
    border-radius: 3px;
}
.cf-confirm-box::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 149, 62, 0.7);
}
.cf-confirm-box h4 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}
.cf-confirm-lead {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
}
.cf-confirm-body {
    border-top: 1px solid var(--color-border-subtle, #222);
    padding-top: 20px;
    margin-bottom: 32px;
}
.cf-confirm-dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0;
    font-size: 0.88rem;
}
.cf-confirm-dl dt {
    color: var(--color-text-muted);
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--color-border-subtle, #1a1a1a);
    font-weight: 400;
}
.cf-confirm-dl dd {
    color: var(--color-text-primary);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-subtle, #1a1a1a);
    margin: 0;
    word-break: break-word;
}
.cf-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.cf-confirm-back {
    padding: 14px 36px;
    background: transparent;
    border: 1px solid var(--color-border, #444);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}
.cf-confirm-back:hover {
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
}
.cf-confirm-send {
    padding: 14px 36px;
    background: var(--color-gold);
    border: 1px solid var(--color-gold);
    color: var(--color-bg-dark);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}
.cf-confirm-send:hover {
    background: var(--color-gold-light);
    border-color: var(--color-gold-light);
}
@media (max-width: 768px) {
    .cf-confirm-box { padding: 28px 20px; }
    .cf-confirm-dl { grid-template-columns: 100px 1fr; font-size: 0.82rem; }
    .cf-confirm-actions { flex-direction: column-reverse; }
    .cf-confirm-back, .cf-confirm-send { width: 100%; text-align: center; }
}

/* ==========================================================================
   NEW: BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 800;
    width: 48px;
    height: 48px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--color-border);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--transition-smooth);
    backdrop-filter: blur(10px);
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--color-gold);
    color: var(--color-bg-dark);
    border-color: var(--color-gold);
}
.back-to-top:hover svg {
    stroke: var(--color-bg-dark);
}

/* ==========================================================================
   13. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    header { padding: 1rem 2rem; }
    nav { display: none; }
    section { padding: 5rem 0; }
    section > .container { padding: 0 2rem; }
    .hero-content h1 { white-space: normal; font-size: clamp(1.8rem, 5vw, 3rem); }
    .reason-block { height: auto; min-height: 500px; }
    .reason-content-wrapper { padding: 3rem 2rem; }
    .reason-number { font-size: 5rem; }
    .reason-inner { padding: 2rem; }
    .works-grid { grid-template-columns: 1fr; padding: 0 2rem; }
    .designer-main { grid-template-columns: 1fr; gap: 2rem; }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .regional-chart-body { grid-template-columns: 1fr; }
    .chart-legend { flex-direction: row; justify-content: center; gap: 1.5rem; padding: 1rem; border-radius: 10px; }
    .legend-arrow { width: 30px; height: 2px; }
    .insulation-comparison { grid-template-columns: 1fr; }
    .salon-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cf-row-2 { grid-template-columns: 1fr 1fr; }
    .contact-form-inner { padding: 40px 32px; }
    .designer-flat-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
    .footer-main { grid-template-columns: 1fr; gap: 2rem; }
    .side-cta { display: none; }
    .intro-lead-inner { margin: 0 2rem; padding: 48px 32px; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-indicators { bottom: 100px; }
    .reason-inner h3 { font-size: 1.5rem; }
    .collab-logos img { max-height: 60px; }
    .designer-flat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
    .designer-flat-member .member-photo { width: 110px; height: 110px; }
    .contact-grid-4 { grid-template-columns: 1fr; }
    .cf-row-2 { grid-template-columns: 1fr; gap: 16px; }
    .cf-radios { gap: 8px; }
    .cf-radio span { padding: 8px 14px; font-size: 0.8rem; }
    .contact-form-inner { padding: 32px 20px; }
    .closing { padding: 60px 0; }
    .closing-inner { padding: 0 24px; }
    .intro-lead { padding: 60px 0; }
    .intro-lead-inner { margin: 0 1.5rem; padding: 40px 24px; }
    .house-visual { width: 240px; height: 180px; }
    .chart-row { grid-template-columns: 80px 1fr 50px; }

    /* ==========================================================================
       矢印位置設定 - SP (768px以下)
       house-visual: 240px x 180px
       ========================================================================== */
    
    /* 矢印サイズ調整 */
    .arrow {
        font-size: 1.2rem;
        transform: rotate(var(--angle, 0deg)) scaleX(1.3);
    }

    /* ---------- BAD HOUSE (SP) ---------- */
    /* 冬側（左）：外からの冷気 */
    .bad-winter-cold-roof  { left: 75px;  top: 30px;  }
    .bad-winter-cold-wall1 { left: 49px;  top: 85px;  }
    .bad-winter-cold-wall2 { left: 49px;  top: 110px; }
    /* 冬側（左）：逃げる暖気 */
    .bad-winter-warm-roof  { left: 65px;  top: 40px;  }
    .bad-winter-warm-wall1 { left: 49px;  top: 97px;  }
    .bad-winter-warm-wall2 { left: 49px;  top: 122px; }
    /* 夏側（右）：外からの暑気 */
    .bad-summer-warm-roof  { right: 75px;  top: 65px;  }
    .bad-summer-warm-wall1 { right: 65px;  top: 85px;  }
    .bad-summer-warm-wall2 { right: 65px;  top: 110px; }
    /* 夏側（右）：逃げる冷気 */
    .bad-summer-cold-roof  { right: 90px;  top: 55px;  }
    .bad-summer-cold-wall1 { right: 65px;  top: 97px;  }
    .bad-summer-cold-wall2 { right: 65px;  top: 122px; }

    /* ---------- GOOD HOUSE (SP) ---------- */
    /* 冬側（左）：ブロックされる冷気 */
    .good-winter-cold-roof  { left: 62px;  top: 25px;  }
    .good-winter-cold-wall1 { left: 30px;  top: 92px;  }
    .good-winter-cold-wall2 { left: 30px;  top: 117px; }
    /* 冬側（左）：保持される暖気 */
    .good-winter-warm-roof  { left: 84px;  top: 48px;  }
    .good-winter-warm-wall1 { left: 64px;  top: 92px;  }
    .good-winter-warm-wall2 { left: 64px;  top: 117px; }
    /* 夏側（右）：ブロックされる暑気 */
    .good-summer-warm-roof  { left: 136px; top: 67px;  }
    .good-summer-warm-wall1 { left: 149px; top: 92px;  }
    .good-summer-warm-wall2 { left: 149px; top: 117px; }
    /* 夏側（右）：保持される冷気 */
    .good-summer-cold-roof  { left: 157px; top: 46px;  }
    .good-summer-cold-wall1 { left: 181px; top: 92px;  }
    .good-summer-cold-wall2 { left: 181px; top: 117px; }

    /* ==========================================================================
       Loader - SP (Mobile)
       スマホ版のローディングアニメーション - より控えめでエレガントに
       ========================================================================== */
    .loader-content {
        padding: 0 2rem;
        width: auto;
        max-width: 90vw;
    }
    
    .loader-logo {
        margin-bottom: 1.5rem;
    }
    .loader-logo-img {
        height: 24px;
    }
    
    .loader-line {
        width: 120px;
        margin-top: -0.5rem;
    }
}

/* ==========================================================================
   HAMBURGER MENU & MOBILE NAV
   ========================================================================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1100;
    padding: 10px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-text-primary);
    margin: 6px 0;
    transition: all 0.3s var(--transition-smooth);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}
.mobile-nav-overlay.active .mobile-nav a {
    opacity: 1;
    transform: translateY(0);
}
.mobile-nav-overlay.active .mobile-nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav a:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav a:hover { color: var(--color-gold); }
.mobile-nav-cta {
    margin-top: 1rem;
    padding: 0.8rem 2.5rem;
    border: 1px solid var(--color-gold);
    color: var(--color-gold) !important;
    font-size: 1rem !important;
    letter-spacing: 0.15em;
}

@media (max-width: 1024px) {
    .hamburger { display: block; }
}

/* ==========================================================================
   MOBILE: 768px and below - comprehensive adjustments
   ========================================================================== */
@media (max-width: 768px) {
    /* --- Header --- */
    header { padding: 0.8rem 1.2rem; }
    header.scrolled { padding: 0.6rem 1.2rem; }
    .logo-img { height: 22px; }

    /* --- Hero --- */
    .hero-content p { font-size: 0.9rem; line-height: 1.9; margin-bottom: 2rem; }
    .scroll-indicator { bottom: 1.5rem; }
    .scroll-line { height: 40px; }

    /* --- Philosophy --- */
    .philosophy .section-header { padding: 4rem 1.5rem 2.5rem; }
    .reason-block { min-height: 380px; max-height: none; height: auto; }
    .reason-content-wrapper { padding: 2.5rem 1.2rem; }
    .reason-number { font-size: 4rem; top: 3%; left: 4%; }
    .reason-inner { padding: 2rem 1.5rem; }
    .reason-inner h3 { font-size: 1.25rem; margin-bottom: 1rem; }
    .reason-inner p { font-size: 0.9rem; line-height: 2; }
    .reason-scroll-hint { bottom: 1rem; }

    /* --- Gallery / Works --- */
    .works-grid { padding: 0 1.2rem; gap: 1.5rem; }
    .work-card { aspect-ratio: 4/5; }
    .work-content { padding: 1.5rem; }
    .work-content h3 { font-size: 1.3rem; }
    .work-content p { opacity: 1; font-size: 0.85rem; }
    .work-link { opacity: 1; transform: translateX(0); }

    /* --- Technology --- */
    .performance-intro p { font-size: 0.9rem; }
    .tech-rokumen { margin-top: 3rem; padding-top: 2.5rem; }
    .tech-rokumen-heading { font-size: 1.4rem !important; margin-bottom: 2rem; }
    .thermo { margin-top: 3rem; padding-top: 2.5rem; }
    .thermo-heading { font-size: 1.1rem; margin-bottom: 2rem; }

    /* --- Designer --- */
    .designer-header-logo {
        flex-direction: column;
        gap: 16px;
        padding: 20px 16px;
        margin-bottom: 32px;
    }
    .designer-header-logo img { height: 36px; }
    .designer-header-logo .designer-x { width: 32px; height: 32px; }
    .designer-header-logo .designer-x svg { width: 32px; height: 32px; }
    .designer-header-logo .designer-title-text {
        font-size: 1.6rem;
        letter-spacing: 0.2em;
    }
    .designer-lead h3 { font-size: 1.15rem; margin-bottom: 16px; }
    .designer-lead p { font-size: 0.9rem; line-height: 2; }

    /* --- Salon --- */
    .salon-info h3 { font-size: 1.2rem; }
    .salon-info p { font-size: 0.9rem; }
    .salon-gmap iframe { height: 160px; }

    /* --- Contact --- */
    .contact-intro p { font-size: 0.9rem; }
    .contact-card-4 { padding: 2rem 1.2rem; }
    .contact-card-4 h3 { font-size: 0.95rem; }
    .contact-card-4 p { font-size: 0.8rem; }

    /* --- Closing --- */
    .closing h2 { font-size: 1.2rem; line-height: 1.8; }
    .closing p { font-size: 0.9rem; }

    /* --- Footer --- */
    footer { padding: 3rem 1.5rem 1.5rem; }
    .footer-brand p { font-size: 0.8rem; }
    .footer-links h4, .footer-salons h4 { font-size: 0.8rem; }
    .footer-links a, .footer-salons a { font-size: 0.8rem; }

    /* --- Section common --- */
    .section-header { margin-bottom: 3rem; }

    /* --- Back to top --- */
    .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }
}

/* ==========================================================================
   MOBILE: 480px and below - small phones
   ========================================================================== */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    section > .container { padding: 0 1rem; }
    section { padding: 3.5rem 0; }

    .hero-content h1 { font-size: 1.5rem; }
    .hero-content p { font-size: 0.85rem; }
    .hero-cta .cta-btn { padding: 0.7rem 1.5rem; font-size: 0.8rem; }

    .section-label { font-size: 2rem; }

    .philosophy .section-header { padding: 3rem 1rem 2rem; }
    .reason-block { min-height: 320px; }
    .reason-inner { padding: 1.5rem 1.2rem; }
    .reason-inner h3 { font-size: 1.1rem; }
    .reason-inner p { font-size: 0.85rem; }

    .performance-intro p br { display: none; }
    .tech-rokumen-text p br { display: none; }
    .intro-lead p br { display: none; }
    .designer-lead p br { display: none; }
    .closing p br { display: none; }

    .designer-flat-grid { gap: 24px 16px; }
    .designer-flat-member .member-photo { width: 90px; height: 90px; }
    .designer-flat-member h4 { font-size: 0.9rem; }

    .salon-card .salon-map { height: 160px; }

    footer { padding: 2.5rem 1rem 1.5rem; }
}