@charset "UTF-8";

/* ==========================================================================
   KS Interior Studio Stylesheet (st-)
   ========================================================================== */

/* Utility & Reset Override */
.st-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Typography Base */
.st-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 12px;
}

.st-mono-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* Hero Section */
.st-hero {
    padding-top: clamp(56px, 7vw, 96px);
    padding-bottom: clamp(56px, 7vw, 96px);
    border-bottom: 1px solid var(--line);
    background-color: var(--paper);
}

.st-hero-grid {
    display: grid;
    grid-template-columns: 46% minmax(0,1fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
}

.st-hero-copy {
    padding-top: 8px;
    min-width: 0;
}

.st-hero-title {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 24px;
    text-wrap: balance;
}

html[lang="ja"] body.studio-page .st-hero-title {
    font-size: clamp(26px, 2.8vw, 40px);
}

.st-hero-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    max-inline-size: 46ch;
    max-width: 100%;
    margin-bottom: 36px;
}

.st-hero-spec {
    margin-bottom: 32px;
}

.st-spec-row {
    display: grid;
    grid-template-columns: 132px 1fr;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.st-spec-row:first-child {
    border-top: 1px solid var(--line);
}

.st-spec-key {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
}

.st-spec-val {
    color: var(--ink);
}

.st-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.st-btn-primary {
    background-color: var(--ink);
    color: var(--paper);
}

.st-btn-primary:hover {
    background-color: var(--accent);
}

.st-btn-ghost {
    background-color: transparent;
    color: var(--ink);
    border: 1px solid var(--line-strong);
}

.st-btn-ghost:hover {
    border-color: var(--ink);
    background-color: var(--paper-3);
}

/* Hero Visual */
.st-hero-visual {
    margin-top: 4px;
    padding-top: 6px;
    min-width: 0;
}

.st-hero-frame {
    position: relative;
    padding: 10px;
    background-color: var(--paper-2);
    border: 1px solid var(--line-strong);
}

.st-frame-mark {
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.st-frame-mark::before,
.st-frame-mark::after {
    content: '';
    position: absolute;
    background-color: var(--ink);
}

.st-frame-mark::before { width: 12px; height: 1px; top: 5px; left: 0; }
.st-frame-mark::after { width: 1px; height: 12px; top: 0; left: 5px; }

.st-mark-tl { top: -6px; left: -6px; }
.st-mark-tr { top: -6px; right: -6px; }
.st-mark-bl { bottom: -6px; left: -6px; }
.st-mark-br { bottom: -6px; right: -6px; }

.st-hero-img {
    display: block;
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.st-hero-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--ink);
    color: #fff;
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.st-hero-caption {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    text-align: left;
    letter-spacing: 0.06em;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Facts Section */
.st-facts {
    list-style: none;
    padding: 0 clamp(20px, 4vw, 56px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-width: 1280px;
}

.st-fact {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid var(--line);
}

.st-fact:first-child {
    border-left: none;
}

.st-fact-num {
    font-family: var(--font-mono);
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    color: var(--ink);
}

.st-fact-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* Jump Navigation */
.st-jump {
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    background-color: var(--paper);
    border-bottom: 1px solid var(--line);
}

.st-jump-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.st-jump-nav::-webkit-scrollbar { display: none; }

.st-jump-link {
    flex: 0 0 auto;
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-decoration: none;
    color: var(--muted);
    border-right: 1px solid var(--line);
    transition: color 0.2s ease;
    text-transform: uppercase;
}

.st-jump-link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

#st-why, #st-tech, #st-sets, #st-plan, #st-process, #st-faq {
    scroll-margin-top: calc(var(--header-h) + 56px);
}

/* Section Common */
.st-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(72px, 9vw, 128px) clamp(20px, 4vw, 56px);
}

.st-section > * {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.st-section--alt { background-color: var(--paper-3); }
.st-section--line { border-top: 1px solid var(--line); }

.st-sec-head {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    margin-bottom: 40px;
}

.st-sec-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.14em;
}

.st-sec-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-align: right;
}

.st-sec-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(26px, 3.4vw, 44px);
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.2;
}

.st-sec-sub {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 60ch;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 48px;
}

/* Why Grid */
.st-why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 40px;
}

.st-why-item {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    min-width: 0;
}

.st-why-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
    white-space: nowrap;
}

.st-why-title {
    font-size: clamp(19px, 2vw, 22px);
    margin-bottom: 12px;
}

.st-why-text {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* Tech Grid Cards */
.st-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 20px;
}

.st-tech-card {
    background-color: var(--paper);
    border: 1px solid var(--line);
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.st-tech-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
}

.st-tech-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    margin-bottom: 16px;
}

.st-tech-title {
    font-size: 17px;
    margin-bottom: 12px;
}

.st-tech-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.st-tech-line {
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--accent);
    margin-top: auto;
}

/* Gallery Toolbar */
.st-gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.st-filters {
    display: flex;
    gap: 8px;
}

.st-filter {
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--line);
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    transition: all 0.2s;
}

.st-filter.is-active {
    background-color: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.st-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
}

/* Gallery Grid */
.st-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}

.st-shot {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    cursor: zoom-in;
    width: 100%;
    min-width: 0;
}

.st-shot[hidden] {
    display: none;
}

.st-shot-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    border: 1px solid var(--line);
    transition: border-color 0.2s ease;
}

.st-shot:hover .st-shot-media {
    border-color: var(--line-strong);
}

.st-shot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.2, 0, 0.2, 1);
}

.st-shot:hover .st-shot-img {
    transform: scale(1.04);
}

.st-shot:hover .st-shot-title {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent);
}

.st-shot-num {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 7px;
}

.st-shot-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 9.5px;
    padding: 3px 7px;
}

.st-shot-body {
    padding-top: 10px;
}

.st-shot-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.st-shot-note {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.st-shot--wide { grid-column: span 2; }
.st-shot.is-hidden { display: none; }

.st-shot:focus-visible .st-shot-media {
    outline: 2px solid var(--accent);
}

/* Plan Table */
.st-plan-head {
    display: grid;
    grid-template-columns: minmax(0,0.8fr) minmax(0,1fr) minmax(0,1.6fr);
    gap: 16px;
    padding: 16px 8px;
    background-color: var(--paper-3);
    border-top: 1px solid var(--ink);
}

.st-plan-row {
    display: grid;
    grid-template-columns: minmax(0,0.8fr) minmax(0,1fr) minmax(0,1.6fr);
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 16px 8px;
}

.st-plan-head .st-plan-cell {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--muted);
}

.st-plan-cell {
    font-size: 14.5px;
    line-height: 1.5;
}

.st-plan-cell::before {
    content: none;
}

.st-plan-cell strong {
    font-weight: 600;
}

/* Steps Timeline */
.st-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 20px;
}

.st-step {
    display: block;
    border-top: 1px solid var(--line-strong);
    padding: 20px 0 0;
    position: relative;
    min-width: 0;
}

.st-step-num {
    display: block;
    font-size: 11px;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
}

.st-step:not(:last-child)::after {
    display: none;
}

.st-step-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.st-step-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted);
}

/* FAQ Details */
.st-faq-item {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    background-color: var(--paper);
}

.st-faq-item summary {
    list-style: none;
    font-size: clamp(15px, 2vw, 16px);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.st-faq-item summary::-webkit-details-marker { display: none; }

.st-faq-item summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--muted);
}

.st-faq-item[open] summary::after {
    content: '−';
}

.st-faq-item p {
    margin-top: 12px;
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.75;
}

/* Lightbox */
.st-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgba(10, 10, 10, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 40px);
}

.st-lightbox[hidden] { display: none; }

.st-lb-inner {
    max-width: 1100px;
    width: 100%;
    position: relative;
    text-align: center;
}

.st-lb-img {
    max-height: 74vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.st-lb-img:not([src]) {
    visibility: hidden;
}

.st-lb-caption {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-top: 12px;
}

.st-lb-btn {
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.st-lb-close {
    position: fixed;
    top: 14px;
    right: 14px;
}

.st-lb-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.st-lb-prev, .st-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.st-lb-prev { left: -52px; }
.st-lb-next { right: -52px; }

.st-lb-counter {
    margin-top: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

body.st-lb-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1100px) {
    .st-lb-prev, .st-lb-next { position: static; left: auto; right: auto; top: auto; transform: none; }
    .st-lb-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 16px; }
    .st-lb-counter { margin-top: 0; }
}

@media (max-width: 1024px) {
    .st-hero-grid { grid-template-columns: minmax(0,1fr); }
    .st-hero-visual { order: -1; }
    .st-tech-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .st-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .st-shot--wide { grid-column: span 1; }
    .st-steps { grid-template-columns: minmax(0,1fr); gap: 0; }
    .st-step { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; border-top: 1px solid var(--line); padding: 20px 0; }
    .st-step-num { grid-row: 1 / span 2; margin: 0; }
    .st-step-title, .st-step-text { grid-column: 2; }
    .st-step:not(:last-child)::after { display: block; left: 6px; top: 34px; bottom: 0; width: 1px; background: var(--line); }
}

@media (max-width: 767px) {
    .st-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .st-fact:nth-child(odd) { border-left: none; }
    .st-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .st-sec-head { grid-template-columns: minmax(0,1fr); gap: 8px; }
    .st-sec-caption { text-align: left; }
    .st-why-grid { grid-template-columns: minmax(0,1fr); }
    .st-tech-grid { grid-template-columns: minmax(0,1fr); }
    .st-gallery { grid-template-columns: minmax(0,1fr); }
    .st-plan-row { grid-template-columns: minmax(0,1fr); padding: 20px 0; }
    .st-plan-head { display: none; }
    .st-plan-row .st-plan-cell:nth-child(1)::before { content: 'ZONE'; }
    .st-plan-row .st-plan-cell:nth-child(2)::before { content: 'ROLE'; }
    .st-plan-row .st-plan-cell:nth-child(3)::before { content: 'CHECK POINT'; }
    .st-plan-cell::before {
        display: block;
        font-family: var(--font-mono);
        font-size: 9.5px;
        letter-spacing: .14em;
        color: var(--muted);
        margin-bottom: 4px;
    }
    .st-step { grid-template-columns: 40px minmax(0,1fr); }
    .st-hero-actions { flex-direction: column; }
    .st-lb-controls { display: flex; justify-content: center; gap: 20px; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .st-tech-card:hover {
        transform: none;
    }
}

html[lang="ko"] body.studio-page h1,
html[lang="ko"] body.studio-page h2,
html[lang="ko"] body.studio-page h3,
html[lang="ko"] body.studio-page p,
html[lang="ko"] body.studio-page li,
html[lang="ko"] body.studio-page span { word-break: keep-all; }

html[lang="ja"] body.studio-page h1,
html[lang="ja"] body.studio-page h2,
html[lang="ja"] body.studio-page h3,
html[lang="ja"] body.studio-page p,
html[lang="ja"] body.studio-page li,
html[lang="ja"] body.studio-page span { line-break: strict; overflow-wrap: break-word; word-break: normal; }