/*
Theme Name: Reborn Furniture
Theme URI: https://example.com/reborn-furniture
Author: Antigravity
Description: Mies van der Rohe inspired architectural minimalism. "Less is more. God is in the details."
Version: 2.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Outfit:wght@200;300;400;500&family=Noto+Sans+JP:wght@200;300;400;500&family=Noto+Serif+JP:wght@200;300;400&display=swap');

:root {
    /* Miesian Monochromatic & Pure Steel Palette */
    --primary-gold: #c5a059;
    --gold-light: #dfba73;
    --dark-bg: #0e0f12;            /* 建築的な漆黒スレート */
    --dark-section: #121418;       /* 構造グリッド背景 */
    --dark-surface: #181a1f;       /* 面を構成するサーフェス */
    --dark-card-hover: #1f2128;
    
    /* Strict Hairlines (1pxの構造線) */
    --border-hairline: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(197, 160, 89, 0.4);
    
    /* Typography Colors */
    --text-primary: #ffffff;
    --text-secondary: #dcdfe4;
    --text-muted: #8a919e;
    --text-dim: #555b66;
}

/* Strict Reset: 角丸の完全排除（純粋幾何学） */
* {
    border-radius: 0 !important;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-secondary);
    font-family: 'Noto Sans JP', 'Outfit', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.06em;
    line-height: 1.8;
}

/* Typography Hierarchy */
.font-serif {
    font-family: 'Noto Serif JP', 'Cormorant Garamond', Georgia, serif !important;
}

.font-sans {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
}

h1, h2, h3, .heading-serif {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

/* Miesian Architectural Label (構造キャプション) */
.subheading-label {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.rh-divider {
    border-color: var(--border-hairline) !important;
}

/* Minimal Architectural Header */
.v-app-bar.rh-app-bar {
    background: rgba(14, 15, 18, 0.94) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-hairline) !important;
    box-shadow: none !important;
}

.rh-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.32em;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
}

.rh-brand-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
}

/* Miesian Pure Geometry Buttons (枠線と矩形のみ) */
.v-btn.rh-btn-gold {
    background: transparent !important;
    border: 1px solid var(--primary-gold) !important;
    color: var(--primary-gold) !important;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.v-btn.rh-btn-gold:hover {
    background: var(--primary-gold) !important;
    color: #000000 !important;
}

.v-btn.rh-btn-outline {
    background: transparent !important;
    border: 1px solid var(--border-hairline) !important;
    color: #ffffff !important;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.v-btn.rh-btn-outline:hover {
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   Before/After Slider (極限の構造美)
   ========================================================================== */
.ba-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    border: 1px solid var(--border-hairline);
    background: #000000;
}

.ba-slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-slider-image.after {
    z-index: 1;
}

.ba-slider-image.before {
    z-index: 2;
    border-right: 1px solid rgba(255, 255, 255, 0.7);
}

.ba-slider-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Center Hairline & Minimal Handle */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ffffff;
    z-index: 5;
    transform: translateX(-50%);
}

.ba-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    transform: translate(-50%, -50%);
    background: rgba(14, 15, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.ba-slider-container:hover .ba-handle-circle {
    border-color: var(--primary-gold);
}

/* Minimal Labels */
.ba-label {
    position: absolute;
    top: 16px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border: 1px solid var(--border-hairline);
    z-index: 4;
    pointer-events: none;
}

.ba-label.label-before { left: 16px; }
.ba-label.label-after { right: 16px; }

.ba-hint-bar {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-subtle);
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    z-index: 4;
    pointer-events: none;
}

/* Side by Side Mode */
.ba-side-by-side {
    display: flex;
    gap: 12px;
    width: 100%;
}

.ba-side-item {
    flex: 1;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--border-hairline);
    background: #000000;
}

.ba-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mode Switcher */
.ba-mode-toggle {
    display: inline-flex;
    gap: 0px;
    border: 1px solid var(--border-hairline);
}

.ba-mode-btn {
    padding: 5px 14px;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ba-mode-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ==========================================================================
   Grid Card (建築的グリッドフレーム)
   ========================================================================== */
.repair-grid-card {
    transition: border-color 0.3s ease;
    background: transparent !important;
    border: 1px solid var(--border-hairline);
    overflow: hidden;
    text-decoration: none;
    display: block;
    padding: 12px;
}

.repair-grid-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.ba-grid-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000000;
    cursor: pointer;
}

.ba-grid-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.repair-grid-card:hover .ba-grid-image {
    transform: scale(1.02);
}

.ba-grid-image.before { z-index: 2; }
.ba-grid-image.after { z-index: 1; }

.ba-grid-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid var(--border-hairline);
    z-index: 3;
}

.ba-grid-badge.is-after {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.ba-grid-quick-toggle {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.7);
    font-family: 'Outfit', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    z-index: 3;
}

.repair-grid-card .card-category {
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary-gold);
}

.repair-grid-card .card-title {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1.3;
    margin-top: 4px;
}

.repair-grid-card .card-scope {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   Minimal Structural Table (仕様・料金グリッド)
   ========================================================================== */
.rh-spec-table {
    border-top: 1px solid var(--border-hairline);
    width: 100%;
}

.rh-spec-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-hairline);
    align-items: baseline;
}

.rh-spec-label {
    width: 32%;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary-gold);
}

.rh-spec-value {
    width: 68%;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    color: #ffffff;
}

/* Category Filter Tabs (Miesian) */
.rh-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0px;
    border-bottom: 1px solid var(--border-hairline);
    margin-bottom: 48px;
}

.rh-filter-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rh-filter-btn:hover {
    color: #ffffff;
}

.rh-filter-btn.active {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

/* Content Box (Minimal Framed Section) */
.content-box {
    border: 1px solid var(--border-hairline);
    padding: 48px 36px;
    background: transparent;
}

/* Hidden Admin Shortcut: Logo Long Press */
.rh-logo-wrapper {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    cursor: pointer;
    display: inline-block;
}

.rh-logo-progress-bar {
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 1px;
    background: var(--primary-gold);
    pointer-events: none;
    transition: width 0.05s linear;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: #262930; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-gold); }

/* Utility */
.text-gold { color: var(--primary-gold) !important; }
