/* ============================================================
   SUKIYA 数寄屋 — wabi-sabi tea-room database
   Design system: washi paper, sumi ink, generous余白, mincho type
   ============================================================ */

:root {
  /* paper / ink */
  --paper:      #f3efe6;   /* warm washi base */
  --paper-2:    #ece6d9;   /* deeper panel */
  --paper-3:    #e4ddcc;   /* card / placeholder ground */
  --sumi:       #211f1b;   /* ink, warm near-black */
  --sumi-soft:  #46433b;   /* secondary ink */
  --ash:        #8d887a;   /* muted taupe-gray */
  --ash-2:      #b4ae9f;   /* faint */
  --line:       rgba(33,31,27,0.14);
  --line-soft:  rgba(33,31,27,0.08);
  --shu:        #a6492f;   /* vermilion seal accent (used sparingly) */

  --maxw: 1320px;
  --gut: 40px;

  --serif-ja: "Shippori Mincho", "Noto Serif JP", serif;
  --serif-en: "Cormorant Garamond", "Shippori Mincho", serif;
  --body-ja:  "Noto Serif JP", "Shippori Mincho", serif;
  --mono:     "Zen Kaku Gothic New", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--sumi);
  font-family: var(--body-ja);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint paper grain */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(0,0,0,0.012) 0, transparent 60%),
    radial-gradient(circle at 82% 78%, rgba(0,0,0,0.012) 0, transparent 55%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---- typographic helpers ---- */
.u-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ash);
}
.u-en { font-family: var(--serif-en); font-style: italic; letter-spacing: 0.01em; }
.u-tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.u-vert { writing-mode: vertical-rl; text-orientation: mixed; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* seal mark */
.seal {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border: 1.5px solid var(--shu);
  color: var(--shu);
  font-family: var(--serif-ja); font-weight: 600;
  font-size: 15px; line-height: 1;
  border-radius: 3px;
}

/* ============================================================
   App shell + transitions
   ============================================================ */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; }
.view-fade { animation: viewIn 0.6s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Header
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.hdr-in { display: flex; align-items: center; gap: 34px; height: 70px; }
.brand { display: flex; align-items: baseline; gap: 12px; cursor: pointer; }
.brand-mark { font-family: var(--serif-ja); font-weight: 600; font-size: 23px; letter-spacing: 0.34em; padding-left: 0.34em; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.24em; color: var(--ash); text-transform: uppercase; }
.hdr-nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.hdr-nav a { font-size: 13px; letter-spacing: 0.06em; color: var(--sumi-soft); position: relative; padding: 6px 0; transition: color 0.3s; }
.hdr-nav a::after { content:""; position:absolute; left:0; bottom:0; width:0; height:1px; background: var(--sumi); transition: width 0.35s var(--ease); }
.hdr-nav a:hover { color: var(--sumi); }
.hdr-nav a:hover::after, .hdr-nav a.is-active::after { width: 100%; }
.hdr-nav a.is-active { color: var(--sumi); }
.hdr-nav a.ai { color: var(--shu); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.lang-toggle button { border: 0; background: transparent; padding: 5px 9px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ash); transition: all 0.25s; }
.lang-toggle button.on { background: var(--sumi); color: var(--paper); }
.hdr-search { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; transition: all 0.3s; }
.hdr-search:hover { background: var(--sumi); color: var(--paper); border-color: var(--sumi); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; height: calc(100vh - 70px); min-height: 600px; overflow: hidden; }
.hero-stage { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.on { opacity: 1; }
.hero-img { position: absolute; inset: 0; }
.hero-slide .hero-img.ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(20,18,15,0.34) 0%, rgba(20,18,15,0.05) 32%, rgba(20,18,15,0.10) 60%, rgba(20,18,15,0.62) 100%); }
.hero-copy { position: absolute; left: var(--gut); bottom: 64px; right: var(--gut); color: #f4efe4; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.hero-copy .lead { max-width: 680px; }
.hero-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.82; margin-bottom: 20px; }
.hero-title { font-family: var(--serif-ja); font-weight: 500; font-size: clamp(38px, 6vw, 78px); line-height: 1.04; letter-spacing: 0.02em; margin: 0 0 14px; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.hero-en { font-family: var(--serif-en); font-style: italic; font-size: clamp(18px, 2vw, 26px); opacity: 0.86; }
.hero-meta { text-align: right; font-size: 12px; line-height: 1.9; opacity: 0.85; white-space: nowrap; }
.hero-meta .nm { font-family: var(--serif-ja); font-size: 15px; opacity: 1; }
.hero-side { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 18px; color: #f4efe4; }
.hero-side .vline { writing-mode: vertical-rl; font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.8; }
.hero-dots { display: flex; flex-direction: column; gap: 9px; }
.hero-dots button { width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(244,239,228,0.7); background: transparent; padding: 0; transition: all 0.4s; }
.hero-dots button.on { background: #f4efe4; transform: scale(1.25); }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color:#f4efe4; font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.7; display:flex; flex-direction:column; align-items:center; gap:7px; }
.hero-scroll .bar { width: 1px; height: 34px; background: linear-gradient(180deg, rgba(244,239,228,0.8), transparent); animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100%{ transform: scaleY(0.4); transform-origin: top; opacity:0.4 } 50%{ transform: scaleY(1); opacity:0.9 } }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--paper-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.sec-head .ttl { display: flex; align-items: baseline; gap: 18px; }
.sec-jp { font-family: var(--serif-ja); font-weight: 500; font-size: 27px; letter-spacing: 0.08em; }
.sec-en { font-family: var(--serif-en); font-style: italic; font-size: 17px; color: var(--ash); white-space: nowrap; }
.sec-more { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sumi-soft); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s, color 0.3s; }
.sec-more:hover { gap: 14px; color: var(--sumi); }
.sec-line { height: 1px; background: var(--line); margin-bottom: 44px; }

/* ============================================================
   Image placeholder (washi-toned)
   ============================================================ */
.ph { position: relative; overflow: hidden; background: var(--paper-3); }
.ph-wash { /* tonal wash, gradient set inline per tone */
  position: absolute; inset: 0; transform-origin: center;
}
.ph-grain { /* fine diagonal grain so it reads as placeholder */
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(33,31,27,0.05) 0 1px, transparent 1px 7px);
}
.ph-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; z-index: 2; color: rgba(33,31,27,0.5); }
.ph-label .mk { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; }
.ph-label .jp { font-family: var(--serif-ja); font-size: 13px; letter-spacing: 0.16em; }
.ph-label.on-dark { color: rgba(244,239,228,0.55); }
.ph-corner { position: absolute; top: 12px; left: 12px; width: 14px; height: 14px; border-top: 1px solid rgba(33,31,27,0.3); border-left: 1px solid rgba(33,31,27,0.3); z-index: 2; }
.ph-corner.br { top: auto; left: auto; bottom: 12px; right: 12px; border: 0; border-bottom: 1px solid rgba(33,31,27,0.3); border-right: 1px solid rgba(33,31,27,0.3); }

/* full-bleed photo placeholders dim the grain a touch */
.hero-img .ph-grain, .dt-hero .ph-grain { opacity: 0.3; }

/* ============================================================
   Project cards
   ============================================================ */
.grid { display: grid; gap: 30px 30px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }

.pcard { cursor: pointer; }
.pcard .frame { aspect-ratio: 4/3; }
.pcard.tall .frame { aspect-ratio: 3/4; }
.pcard .frame .ph { width: 100%; height: 100%; }
.pcard .frame { overflow: hidden; }
.pcard .frame .ph-wash { transition: transform 1.1s var(--ease); }
.pcard:hover .frame .ph-wash { transform: scale(1.05); }
.pcard .cap { padding-top: 16px; }
.pcard .cap .lab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pcard .cap .lab .u-label { white-space: nowrap; }
.pcard .cap .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px; font-size: 11.5px; color: var(--ash); }
.pcard .cap .nm { font-family: var(--serif-ja); font-weight: 500; font-size: 18px; letter-spacing: 0.04em; line-height: 1.35; transition: color 0.3s; }
.pcard:hover .cap .nm { color: var(--shu); }
.pcard .cap .en { font-family: var(--serif-en); font-style: italic; font-size: 14px; color: var(--ash); margin-top: 1px; }
.pcard .cap .meta { margin-top: 9px; }
.pcard .cap .meta .dot { color: var(--line); }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ash); border: 1px solid var(--line); border-radius: 2px; padding: 3px 7px; }

/* feature row */
.feat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.fcard { cursor: pointer; }
.fcard .frame { aspect-ratio: 16/10; overflow: hidden; }
.fcard .frame .ph { width:100%; height:100%; }
.fcard .frame .ph-wash { transition: transform 1.1s var(--ease); }
.fcard:hover .frame .ph-wash { transform: scale(1.04); }
.fcard .lab { margin: 14px 0 6px; }
.fcard .ttl { font-family: var(--serif-ja); font-weight: 500; font-size: 18px; line-height: 1.45; letter-spacing: 0.02em; }
.fcard:hover .ttl { color: var(--shu); }

/* boards strip */
.board { cursor: pointer; }
.board .frame { aspect-ratio: 1/1; overflow:hidden; position: relative; }
.board .frame .ph { width:100%; height:100%; }
.board .cnt { position: absolute; right: 12px; bottom: 12px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--paper); background: rgba(33,31,27,0.7); padding: 4px 8px; border-radius: 2px; }
.board .nm { font-family: var(--serif-ja); font-size: 15px; margin-top: 12px; letter-spacing: 0.04em; }
.board .en { font-family: var(--serif-en); font-style: italic; font-size: 12.5px; color: var(--ash); }

/* utensils */
.ucard { cursor: pointer; }
.ucard .frame { aspect-ratio: 1/1; overflow: hidden; background: var(--paper); }
.ucard .frame .ph { width:100%; height:100%; }
.ucard .frame .ph-wash { transition: transform 1.1s var(--ease); }
.ucard:hover .frame .ph-wash { transform: scale(1.05); }
.ucard .cap { padding-top: 14px; }
.ucard .cap .cat { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); }
.ucard .cap .nm { font-family: var(--serif-ja); font-weight: 500; font-size: 15.5px; margin-top: 6px; line-height: 1.4; letter-spacing: 0.02em; }
.ucard:hover .cap .nm { color: var(--shu); }
.ucard .cap .mk { font-size: 11.5px; color: var(--ash); margin-top: 5px; }

/* makers */
.maker { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-soft); cursor: pointer; transition: padding-left 0.35s var(--ease); }
.maker:hover { padding-left: 10px; }
.maker .av { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.maker .av .ph { width:100%; height:100%; border-radius:50%; }
.maker .nm { font-family: var(--serif-ja); font-size: 17px; letter-spacing: 0.04em; }
.maker .en { font-family: var(--serif-en); font-style: italic; font-size: 13px; color: var(--ash); }
.maker .role { margin-left: auto; }

/* ============================================================
   Footer
   ============================================================ */
.ftr { background: var(--sumi); color: var(--paper); padding: 80px 0 36px; margin-top: 0; }
.ftr-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(244,239,228,0.12); }
.ftr-brand .bm { font-family: var(--serif-ja); font-weight: 600; font-size: 30px; letter-spacing: 0.3em; padding-left: 0.3em; }
.ftr-brand .bm-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em; color: rgba(243,239,230,0.5); text-transform: uppercase; margin-top: 8px; }
.ftr-brand .tl { font-family: var(--serif-en); font-style: italic; font-size: 15px; opacity: 0.7; margin-top: 16px; max-width: 280px; line-height: 1.6; }
.ftr-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ash-2); margin: 0 0 18px; font-weight: 500; }
.ftr-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ftr-col a { font-size: 13px; opacity: 0.82; transition: opacity 0.3s; }
.ftr-col a:hover { opacity: 1; }
.ftr-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.ftr-bottom .cc { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ash-2); }
.ftr-social { display: flex; gap: 18px; }
.ftr-social a { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; transition: opacity 0.3s; }
.ftr-social a:hover { opacity: 1; }

/* ============================================================
   Search results page
   ============================================================ */
.sr-head { padding: 56px 0 30px; border-bottom: 1px solid var(--line); }
.sr-crumb { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash); display:flex; gap:10px; align-items:center; }
.sr-crumb a:hover { color: var(--sumi); }
.sr-title { display:flex; align-items: baseline; gap: 18px; margin-top: 20px; }
.sr-title h1 { font-family: var(--serif-ja); font-weight: 500; font-size: 40px; letter-spacing: 0.06em; margin: 0; }
.sr-title .en { font-family: var(--serif-en); font-style: italic; font-size: 22px; color: var(--ash); white-space: nowrap; }
.sr-title .ct { margin-left: auto; font-size: 13px; color: var(--ash); }
.sr-title .ct b { font-family: var(--serif-ja); color: var(--sumi); font-size: 17px; }

.sr-body { display: grid; grid-template-columns: 232px 1fr; gap: 50px; padding: 40px 0 110px; align-items: start; }
.filters { position: sticky; top: 92px; }
.fgroup { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.fgroup:first-child { padding-top: 0; }
.fgroup h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); margin: 0 0 15px; font-weight: 500; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; color: var(--sumi-soft); cursor: pointer; transition: color 0.25s; }
.fopt:hover { color: var(--sumi); }
.fopt .box { width: 14px; height: 14px; border: 1px solid var(--ash); border-radius: 2px; display: grid; place-items: center; transition: all 0.25s; flex: none; }
.fopt.on .box { background: var(--sumi); border-color: var(--sumi); }
.fopt.on .box::after { content:""; width: 6px; height: 6px; background: var(--paper); }
.fopt.on { color: var(--sumi); }
.fopt .ct { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ash-2); }

.sr-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.sr-sort { display: flex; gap: 6px; }
.sr-sort button { border: 1px solid var(--line); background: transparent; padding: 7px 14px; font-size: 12px; color: var(--sumi-soft); border-radius: 2px; transition: all 0.25s; }
.sr-sort button.on { background: var(--sumi); color: var(--paper); border-color: var(--sumi); }
.sr-empty { padding: 80px 0; text-align: center; color: var(--ash); font-family: var(--serif-ja); }

/* chips on results */
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; background: var(--paper-3); border: 1px solid var(--line); padding: 5px 11px; border-radius: 2px; cursor: pointer; }
.chip .x { color: var(--ash); }
.chip:hover { border-color: var(--sumi); }

/* ============================================================
   Detail page
   ============================================================ */
.dt-hero { position: relative; height: 78vh; min-height: 540px; overflow: hidden; }
.dt-hero .ph { width:100%; height:100%; }
.dt-hero .veil { position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,18,15,0.32), rgba(20,18,15,0.04) 40%, rgba(20,18,15,0.5)); }
.dt-back { position: absolute; top: 26px; left: var(--gut); z-index: 4; color: #f4efe4; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; display:flex; align-items:center; gap:9px; }
.dt-hero-copy { position: absolute; left: var(--gut); bottom: 50px; color: #f4efe4; }
.dt-hero-copy .kk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.82; margin-bottom: 16px; }
.dt-hero-copy h1 { font-family: var(--serif-ja); font-weight: 500; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; margin: 0; letter-spacing: 0.02em; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.dt-hero-copy .en { font-family: var(--serif-en); font-style: italic; font-size: clamp(18px,2.2vw,28px); opacity: 0.86; margin-top: 12px; }

.dt-body { display: grid; grid-template-columns: 1fr 300px; gap: 70px; padding: 80px 0 60px; align-items: start; }
.dt-lead { font-family: var(--serif-ja); font-weight: 400; font-size: 24px; line-height: 1.95; letter-spacing: 0.04em; text-wrap: pretty; }
.dt-lead .en { display:block; font-family: var(--serif-en); font-style: italic; font-size: 18px; color: var(--sumi-soft); margin-top: 26px; line-height: 1.8; letter-spacing: 0.01em; }
.dt-spec { position: sticky; top: 92px; border-top: 2px solid var(--sumi); }
.dt-spec dl { margin: 0; }
.dt-spec .row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.dt-spec dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); padding-top: 3px; white-space: nowrap; }
.dt-spec dd { margin: 0; font-family: var(--serif-ja); font-size: 15px; text-align: right; white-space: nowrap; }
.dt-spec dd .en { display:block; font-family: var(--serif-en); font-style: italic; font-size: 12px; color: var(--ash); }
.dt-cta { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.btn { display: inline-flex; align-items:center; justify-content:center; gap:10px; padding: 13px 18px; font-size: 13px; letter-spacing: 0.06em; border: 1px solid var(--sumi); border-radius: 2px; background: transparent; color: var(--sumi); transition: all 0.3s; }
.btn:hover { background: var(--sumi); color: var(--paper); }
.btn.solid { background: var(--sumi); color: var(--paper); }
.btn.solid:hover { background: var(--shu); border-color: var(--shu); }

.dt-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; padding: 20px 0 90px; }
.dt-gallery .g-main { aspect-ratio: 3/2; }
.dt-gallery .g-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.dt-gallery .ph { width:100%; height:100%; }
.dt-credit { font-size: 11px; color: var(--ash); font-family: var(--mono); letter-spacing: 0.1em; margin-top: 14px; }

.dt-materials { padding: 70px 0; border-top: 1px solid var(--line); }
.mat-row { display:flex; align-items:center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: padding-left 0.3s var(--ease); }
.mat-row:hover { padding-left: 8px; }
.mat-row .sw { width: 46px; height: 46px; flex:none; }
.mat-row .sw .ph { width:100%; height:100%; }
.mat-row .nm { font-family: var(--serif-ja); font-size: 16px; white-space: nowrap; }
.mat-row .en { font-family: var(--serif-en); font-style: italic; font-size: 13px; color: var(--ash); white-space: nowrap; }
.mat-row > div:nth-child(2) { min-width: 0; }
.mat-row .mk { margin-left:auto; font-size: 12px; color: var(--ash); }

/* ============================================================
   Matching: header CTA, builders, journal, inquiry form
   ============================================================ */
.hdr-cta { font-family: var(--serif-ja); font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em; color: var(--paper); background: var(--shu); border: 1px solid var(--shu); border-radius: 2px; padding: 9px 15px; transition: all 0.3s; white-space: nowrap; }
.hdr-cta:hover { background: var(--sumi); border-color: var(--sumi); }

.sr-sub { font-family: var(--body-ja); font-size: 15px; line-height: 1.9; color: var(--sumi-soft); max-width: 680px; margin: 18px 0 0; }

/* client 3-step CTA on home */
.client-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; background: var(--paper-2); border: 1px solid var(--line-soft); padding: 40px; }
.cc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cc-step h4 { font-family: var(--serif-ja); font-weight: 600; font-size: 16px; margin: 0 0 8px; letter-spacing: 0.04em; }
.cc-step p { font-family: var(--body-ja); font-size: 13px; line-height: 1.8; color: var(--sumi-soft); margin: 0; }
.cc-act h3 { font-family: var(--serif-ja); font-weight: 500; font-size: 21px; line-height: 1.5; margin: 8px 0 18px; }

/* builder card */
.bld-grid { gap: 26px 30px; }
.bcard { cursor: pointer; }
.bcard .frame { aspect-ratio: 16/10; overflow: hidden; }
.bcard .frame .ph { width: 100%; height: 100%; transition: transform 0.8s var(--ease); }
.bcard:hover .frame .ph { transform: scale(1.04); }
.bcard .cap { padding-top: 14px; }
.bcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bcard .nm { font-family: var(--serif-ja); font-weight: 500; font-size: 19px; letter-spacing: 0.04em; margin-top: 7px; transition: color 0.3s; }
.bcard:hover .nm { color: var(--shu); }
.bcard .en { font-family: var(--serif-en); font-style: italic; font-size: 14px; color: var(--ash); margin-top: 1px; }
.bcard-spec { font-family: var(--body-ja); font-size: 12.5px; color: var(--sumi-soft); margin-top: 10px; letter-spacing: 0.02em; }

/* registered / unregistered badge */
.bld-badge { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 2px; }
.bld-badge.sm { font-size: 9.5px; padding: 3px 7px; letter-spacing: 0.08em; }
.bld-badge.on { background: var(--shu); color: var(--paper); }
.bld-badge.off { background: transparent; color: var(--ash); border: 1px solid var(--line); }

.bld-unreg { margin-top: 18px; padding: 20px 22px; background: var(--paper-2); border-left: 2px solid var(--ash); }
.bld-unreg p { font-family: var(--body-ja); font-size: 14px; line-height: 1.85; margin: 0; }
.bld-unreg p.sub { margin-top: 10px; color: var(--sumi-soft); font-size: 13px; }
.bld-links { margin-top: 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bld-links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--shu); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.bld-links a:hover { color: var(--sumi); }
.bld-tel { font-family: var(--mono); font-size: 12px; color: var(--ash); letter-spacing: 0.06em; }

/* CTA band (for-builders / directory) */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; background: var(--sumi); color: var(--paper); padding: 36px 40px; }
.cta-band h3 { font-family: var(--serif-ja); font-weight: 500; font-size: 23px; margin: 8px 0 0; letter-spacing: 0.03em; }
.cta-band p { font-family: var(--body-ja); font-size: 14px; opacity: 0.78; margin: 10px 0 0; max-width: 540px; line-height: 1.8; }
.cta-band .u-label { color: var(--paper); opacity: 0.6; }
.cta-band .btn.solid { background: var(--shu); border-color: var(--shu); color: var(--paper); }
.cta-band .btn.solid:hover { background: var(--paper); color: var(--sumi); border-color: var(--paper); }

/* for-builders steps */
.fb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.fb-step { padding: 30px; background: var(--paper-2); border: 1px solid var(--line-soft); }
.fb-step h3 { font-family: var(--serif-ja); font-weight: 600; font-size: 19px; margin: 0 0 12px; letter-spacing: 0.03em; }
.fb-step p { font-family: var(--body-ja); font-size: 14px; line-height: 1.85; color: var(--sumi-soft); margin: 0; }

/* journal */
.jr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 30px; padding: 40px 0 20px; }
.jr-card { cursor: pointer; }
.jr-card .frame { aspect-ratio: 3/2; overflow: hidden; }
.jr-card .frame .ph { width: 100%; height: 100%; transition: transform 0.8s var(--ease); }
.jr-card:hover .frame .ph { transform: scale(1.04); }
.jr-cap { padding-top: 16px; }
.jr-cap h3 { font-family: var(--serif-ja); font-weight: 500; font-size: 19px; line-height: 1.45; letter-spacing: 0.03em; margin: 8px 0 0; transition: color 0.3s; }
.jr-card:hover .jr-cap h3 { color: var(--shu); }
.jr-cap p { font-family: var(--body-ja); font-size: 13.5px; line-height: 1.8; color: var(--sumi-soft); margin: 10px 0 0; }
.jr-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sumi-soft); }

/* article body */
.dt-hero.short { height: 46vh; min-height: 320px; }
.art-body { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.art-lead { font-family: var(--serif-ja); font-weight: 500; font-size: 22px; line-height: 1.9; letter-spacing: 0.03em; margin: 0 0 36px; }
.art-body p { font-family: var(--body-ja); font-size: 16px; line-height: 2.05; letter-spacing: 0.02em; margin: 0 0 24px; }
.art-cta { margin-top: 50px; padding: 34px 36px; background: var(--paper-2); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.art-cta h3 { font-family: var(--serif-ja); font-weight: 500; font-size: 22px; margin: 8px 0; }
.art-cta p { font-size: 14px; color: var(--sumi-soft); margin: 0; }
.art-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- inquiry modal (the lead form) ---- */
.iq-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(20,18,15,0.55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; overflow-y: auto; animation: viewIn 0.3s var(--ease) both; }
.iq-modal { position: relative; width: 100%; max-width: 580px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.35); padding: 40px 42px 34px; }
.iq-close { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--sumi-soft); font-size: 14px; transition: all 0.3s; }
.iq-close:hover { background: var(--sumi); color: var(--paper); border-color: var(--sumi); }
.iq-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
.iq-head h3 { font-family: var(--serif-ja); font-weight: 500; font-size: 26px; margin: 8px 0 0; letter-spacing: 0.04em; }
.iq-badge { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 2px; }
.iq-badge.on { background: var(--shu); color: var(--paper); }
.iq-badge.off { background: var(--paper-2); color: var(--sumi-soft); border: 1px solid var(--line); }
.iq-form { display: flex; flex-direction: column; gap: 16px; }
.iq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iq-field { display: flex; flex-direction: column; gap: 6px; }
.iq-field > span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--sumi-soft); }
.iq-field > span i { color: var(--shu); font-style: normal; }
.iq-field input, .iq-field select, .iq-field textarea { font-family: var(--body-ja); font-size: 15px; color: var(--sumi); background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px; padding: 11px 13px; width: 100%; transition: border-color 0.25s; }
.iq-field input:focus, .iq-field select:focus, .iq-field textarea:focus { outline: none; border-color: var(--shu); }
.iq-field textarea { resize: vertical; line-height: 1.7; }
.iq-agree { display: flex; align-items: flex-start; gap: 10px; font-family: var(--body-ja); font-size: 13px; line-height: 1.7; color: var(--sumi-soft); cursor: pointer; }
.iq-agree input { margin-top: 3px; flex: none; accent-color: var(--shu); }
.iq-err { font-family: var(--body-ja); font-size: 13px; color: var(--shu); }
.iq-submit { width: 100%; margin-top: 4px; }
.iq-foot { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ash); line-height: 1.7; text-align: center; }
.iq-done { text-align: center; padding: 16px 0 8px; }
.iq-done .seal { display: inline-grid; place-items: center; width: 46px; height: 46px; background: var(--shu); color: var(--paper); font-family: var(--serif-ja); border-radius: 50%; margin-bottom: 18px; }
.iq-done h3 { font-family: var(--serif-ja); font-weight: 500; font-size: 24px; margin: 0 0 12px; }
.iq-done p { font-family: var(--body-ja); font-size: 15px; line-height: 1.9; color: var(--sumi-soft); margin: 0 auto 18px; max-width: 420px; }
.iq-note { font-family: var(--body-ja); font-size: 12.5px; line-height: 1.7; color: var(--ash); background: var(--paper-2); padding: 12px 16px; border-radius: 2px; margin: 0 auto 22px; max-width: 440px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .jr-grid { grid-template-columns: repeat(2, 1fr); }
  .client-cta { grid-template-columns: 1fr; }
  .fb-steps { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .grid.c4 { grid-template-columns: repeat(2,1fr); }
  .grid.c3 { grid-template-columns: repeat(2,1fr); }
  .feat-row { grid-template-columns: 1fr; }
  .dt-body { grid-template-columns: 1fr; gap: 40px; }
  .dt-spec { position: static; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .hdr-nav { display: none; }
}
@media (max-width: 760px) {
  :root { --gut: 22px; }
  .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .sr-body { grid-template-columns: 1fr; }
  .filters { position: static; }
  .hero-copy { flex-direction: column; align-items: flex-start; }
  .hero-meta { text-align: left; }
  .dt-gallery { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr; }
  .jr-grid { grid-template-columns: 1fr; }
  .cc-steps { grid-template-columns: 1fr; }
  .iq-row { grid-template-columns: 1fr; }
  .iq-modal { padding: 32px 24px 28px; }
  .client-cta, .cta-band, .art-cta { padding: 26px 22px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- 実在会社：実写真・国内/海外グループ・出典（2026-06-08 追加） ---- */
.bcard .frame .bcard-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.bcard:hover .frame .bcard-img { transform: scale(1.04); }
.dt-hero .dt-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bld-group-head { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line, rgba(20,18,15,0.12)); }
.bld-group-head h2 { font-family: var(--serif-ja); font-weight: 500; font-size: 20px; letter-spacing: 0.06em; margin: 0; }
.bld-group-head .ct { font-family: var(--mono); font-size: 12px; color: var(--ash); }
.bld-fact { font-family: var(--body-ja); font-size: 14.5px; line-height: 1.9; color: var(--sumi); margin: 0 0 12px !important; }
.bld-source { margin-top: 12px !important; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ash); }
