:root {
  --paper: #f6f3ec;
  --ink: #141414;
  --ink-soft: #5b5850;
  --rule: #141414;
  --k-green: #1d3527;
  --k-green-2: #24432f;
  --k-gold: #c9a84f;
  --k-cream: #efe6cc;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Zen Kaku Gothic New", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* 言語切り替え：選んでいない方を隠す */
html[data-lang="en"] [data-l="ja"],
html[data-lang="ja"] [data-l="en"] { display: none !important; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  background: rgba(246, 243, 236, .92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--rule);
  font-family: var(--mono);
  font-size: 13px; letter-spacing: .18em;
}
.brand { text-decoration: none; font-weight: 500; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-right { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; border: 1.5px solid var(--ink); border-radius: 2px; }
.lang-switch button {
  appearance: none; border: 0; margin: 0;
  padding: 3px 9px;
  background: transparent; color: var(--ink);
  font: inherit; letter-spacing: .1em; cursor: pointer;
}
.lang-switch button + button { border-left: 1.5px solid var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.section-title em { font-style: normal; }

/* hero */
.hero {
  min-height: calc(100svh - 56px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 16px 64px;
  text-align: center;
}
.hero-logo {
  width: min(360px, 72vw);
  mix-blend-mode: multiply;
}
.hero-copy { margin: 36px 0 0; font-size: 17px; letter-spacing: .08em; }
.hero-copy-en { margin: 4px 0 0; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .2em; }

/* sections */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px;
}
.section-title {
  display: flex; align-items: baseline; gap: 16px;
  margin: 0 0 40px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rule);
  font-size: 14px; font-weight: 400; color: var(--ink-soft);
}
.section-title span {
  font-family: var(--mono); font-weight: 500;
  font-size: 28px; color: var(--ink); letter-spacing: .12em; text-transform: uppercase;
}

/* works */
.work { margin-bottom: 32px; }
.work--klontier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  background:
    repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.015) 6px 7px),
    linear-gradient(160deg, var(--k-green-2), var(--k-green));
  color: var(--k-cream);
  border-radius: 6px;
}
.work-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.work-shots img { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.work-shots img:nth-child(2) { margin-top: 40px; }
.work-body { align-self: center; }
.work-meta { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .15em; opacity: .75; }
.work-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 44px; letter-spacing: .14em; line-height: 1.2;
  color: var(--k-gold);
}
.work-title--plain { font-family: var(--mono); font-size: 26px; letter-spacing: .1em; color: var(--ink); }
.work-sub { margin: 4px 0 20px; font-family: var(--mono); font-size: 12px; color: var(--k-gold); opacity: .8; }
.work-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block; padding: 10px 22px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em;
  text-decoration: none; border-radius: 2px;
}
.btn--gold { background: var(--k-gold); color: #16251b; font-weight: 500; }
.btn--gold:hover { background: #d8b962; }
/* KLONTIER: スマホは即起動、PCはQR */
.k-note { margin: 16px 0 0; font-family: var(--mono); font-size: 12px; color: var(--k-gold); letter-spacing: .08em; }
.only-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .only-touch { display: block; }
  .only-desktop { display: none !important; }
}
.k-qr { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.k-qr img { background: #fff; padding: 6px; border-radius: 4px; flex: none; }
.k-qr p { margin: 0; font-size: 14px; line-height: 1.7; }
.a2hs { margin-top: 18px; font-size: 14px; }
.a2hs summary { cursor: pointer; color: var(--k-gold); }
.a2hs ol { margin: 10px 0 0; padding-left: 1.3em; line-height: 1.8; }
.a2hs li { margin-bottom: 6px; }

/* StreetFlow */
.work--streetflow {
  position: relative;
  padding: 40px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 220, 255, .16), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(255, 40, 160, .16), transparent 55%),
    #0d0d12;
  color: #ececf2;
  border-radius: 6px;
  overflow: hidden;
}
.sf-logo { width: min(520px, 100%); margin: -8px auto 24px; }
.sf-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sf-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.sf-shots .sf-main { grid-column: 1 / -1; }
.sf-body {
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px;
  margin-top: 32px;
}
.sf-body p { margin: 0; }
.sf-title {
  font-family: var(--mono); font-size: 30px; letter-spacing: .08em;
  background: linear-gradient(90deg, #22e0ff, #ffe14a 50%, #ff3fa4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn--neon {
  background: linear-gradient(90deg, #22e0ff, #ff3fa4);
  color: #0d0d12; font-weight: 500;
}
.btn--neon:hover { filter: brightness(1.1); }

/* company */
.info {
  display: grid; grid-template-columns: 140px 1fr;
  margin: 0;
}
.info dt, .info dd {
  margin: 0; padding: 18px 0;
  border-bottom: 1px solid #cfcabd;
}
.info dt { font-size: 14px; color: var(--ink-soft); }
.info small { font-family: var(--mono); color: var(--ink-soft); }

/* contact */
.mail { margin-top: 20px; font-family: var(--mono); font-size: 22px; }
.mail a { text-decoration: none; border-bottom: 2px solid var(--ink); }

/* footer */
.site-footer {
  padding: 56px 16px 40px;
  border-top: 2px solid var(--rule);
  text-align: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .1em;
}
.footer-logo { width: 72px; margin: 0 auto 12px; mix-blend-mode: multiply; }

/* mobile */
@media (max-width: 720px) {
  .site-header { padding: 12px 16px; font-size: 11px; }
  .site-header { letter-spacing: .04em; gap: 8px; }
  .brand { white-space: nowrap; }
  .site-header nav { gap: 8px; }
  .header-right { gap: 8px; }
  .lang-switch button { padding: 2px 6px; }
  .section { padding: 56px 16px; }
  .section-title span { font-size: 22px; }
  .work--klontier { grid-template-columns: 1fr; padding: 24px 16px; gap: 28px; }
  .work--streetflow { padding: 24px 16px; }
  .sf-body { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .work-title { font-size: 34px; }
  .info { grid-template-columns: 88px 1fr; }
  .mail { font-size: 17px; }
}
