/* EL works — Created to create
   Tokens ─────────────────────────────────────────── */
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/Pretendard.woff2") format("woff2-variations"), url("../fonts/Pretendard.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --paper: #f6f7f5;
  --paper-2: #edf0ee;
  --ink: #101617;
  --ink-2: #55605f;
  --ink-3: #5f6b69;
  --line: rgba(16, 22, 23, 0.14);
  --line-strong: rgba(16, 22, 23, 0.4);
  --tq: #19b8b0;
  --tq-text: #0a7c76;
  --tq-soft: #d9f1ef;
  --deep: #0b2224;
  --deep-2: #12393b;
  --on-deep: #eaf3f2;
  --on-deep-2: #9db6b3;
  --line-deep: rgba(234, 243, 242, 0.16);

  --ease: cubic-bezier(0.77, 0, 0.175, 1);   /* strong in-out: things that move on screen */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);  /* strong out: things that enter or respond */
  --dur: 0.5s;
  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
:lang(ja) { word-break: normal; line-break: strict; }
::selection { color: var(--paper); background: var(--tq-text); }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
/* press feedback lives on pointer-down, never only on release */
.link-arrow, .header-link, .menu-btn, .copy-btn, .el-toggle { transition: transform 100ms ease-out, opacity 100ms ease-out; }
.link-arrow:active, .header-link:active, .menu-btn:active, .copy-btn:active, .el-toggle:active { transform: scale(0.97); opacity: 0.75; }
.index-row:active .index-name, .menu-list a:active .menu-word { opacity: 0.6; transition: opacity 80ms ease-out; }
h1, h2, h3, h4, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
strong { font-weight: 700; }
em { font-style: normal; font-weight: 600; }

:focus-visible { outline: 2px solid var(--tq-text); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 6px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Wordmark ───────────────────────────────────────── */
.wordmark { display: inline-flex; align-items: center; line-height: 1; }
.wordmark-text { font-size: 21px; letter-spacing: -0.03em; font-weight: 400; display: inline-block; padding-top: 6px; }
.wordmark-text b { font-weight: 800; }
/* header: the note mark beside the name, sitting on the same baseline */
.wordmark-note { gap: 7px; align-items: baseline; }
.wordmark-note .wordmark-text { padding-top: 0; }
.wm-note { height: 26px; width: auto; color: var(--ink); overflow: visible; }
/* the mark lives inside the wordmark: a single point of light above the L */
.wm-l { position: relative; display: inline-block; }
.wm-l::after { content: ""; position: absolute; left: 47%; top: -0.32em; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--tq); }

/* Header ─────────────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); /* same column as the page content */
  transition: background-color 0.25s ease;
}
.header.is-scrolled { background: rgba(246, 247, 245, 0.82); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none; opacity: 0; transition: opacity 0.25s ease;
  background: linear-gradient(rgba(246, 247, 245, 0.9), rgba(246, 247, 245, 0)); }
.header.is-scrolled::after { opacity: 1; }
.header-nav { display: flex; align-items: center; gap: 28px; }
/* wide screens: every section is one click away in the header; narrow screens use the Menu panel */
.nav-wide { display: none; }
@media (min-width: 1100px) {
  .nav-wide { display: inline-block; }
  .header-nav .menu-btn { display: none; } /* outranks the base .menu-btn rule further down */
}
.header-link { font-weight: 500; font-size: 15px; padding: 12px 0; margin: -4px 0; position: relative; }
.wordmark { padding: 10px 0; margin: -10px 0; }
figcaption a, .footer-meta a, .menu-aside a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.contact-mail a { display: inline-block; padding: 6px 0; margin: -6px 0; }
.header-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.25s var(--ease-out); }

.menu-btn { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 0 0 4px; font-weight: 500; font-size: 15px; }
.menu-icon { position: relative; width: 26px; height: 12px; display: block; }
.menu-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-icon i:first-child { top: 0; }
.menu-icon i:last-child { top: 10.5px; }
.menu-btn[aria-expanded="true"] .menu-icon i:first-child { top: 5.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:last-child { top: 5.25px; transform: rotate(-45deg); }
.menu-label { min-width: 3.2em; text-align: right; } /* the visible word, not its box, ends on the content edge */

/* Menu — unfolds from the header, on the same easing as everything else */
.menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 45;
  max-height: 100dvh; overflow: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--dur) var(--ease), visibility 0s; }
.menu-inner { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.menu-inner > * { padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.menu-list { padding-top: calc(var(--header-h) + 24px); }
.menu-list a {
  display: grid; grid-template-columns: 3.5rem auto 1fr; align-items: baseline; gap: 16px 20px;
  padding: 18px 0; border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.15s var(--ease-out), transform 0.35s var(--ease-out), color 0.2s ease;
  transition-delay: 0s;
}
.menu.is-open .menu-list a, .menu.is-open .menu-aside { opacity: 1; transform: none; transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), color 0.2s ease; transition-delay: calc(0.12s + var(--i) * 0.04s); }
.menu-list a:hover, .menu-list a:focus-visible { color: var(--tq-text); }
.menu-list a:focus-visible { outline-offset: -2px; }
.menu-no { font-size: 13px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.menu-word { font-size: clamp(2rem, 5.2vw, 4.2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.menu-ko { font-size: 14px; color: var(--ink-2); align-self: baseline; }
.menu-aside { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 28px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); line-height: 1.6; opacity: 0; transform: translateY(18px); transition: opacity 0.15s var(--ease-out), transform 0.35s var(--ease-out); }
.menu-aside a:hover { color: var(--tq-text); }
.menu-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(16, 22, 23, 0.32); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.menu-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }

/* Layout ─────────────────────────────────────────── */
.section { padding: clamp(80px, 10vw, 128px) var(--gutter); max-width: var(--max); margin: 0 auto; scroll-margin-top: var(--header-h); }
.section-head { display: grid; gap: clamp(12px, 1.6vw, 20px); margin-bottom: clamp(32px, 4vw, 48px); }
.section-label { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; padding: 10px 0; margin: -4px 0; min-height: 44px; position: relative; }
.link-arrow::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h9M7 2.5 11.5 7 7 11.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h9M7 2.5 11.5 7 7 11.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform 0.25s var(--ease-out); }
.link-arrow::before { content: ""; position: absolute; left: 0; bottom: 2px; height: 1.5px; width: calc(100% - 24px); background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover::after { transform: translateX(4px); }
  .link-arrow:hover::before { transform: scaleX(1); transform-origin: left; }
  .header-link:hover::after { transform: scaleX(1); transform-origin: left; }
  .contact-mail a:hover::after { transform: scaleX(1); background: var(--tq-text); }
}

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; letter-spacing: 0.01em; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status-live::before { background: var(--tq); }
.status-live { color: var(--tq-text); }
.prose .status { margin-left: 8px; vertical-align: 1px; }
.detail-dark .status { color: var(--on-deep-2); }
.detail-dark .status-live { color: var(--tq); }

/* Hero ───────────────────────────────────────────── */
.hero {
  position: relative; min-height: max(100svh, 620px);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(36px, 6vh, 64px);
  max-width: var(--max); margin: 0 auto;
}
.hero-eyebrow { font-size: 15px; font-weight: 500; color: var(--ink-3); align-self: start; }
/* the lockup alone, on the exact centre of the screen */
.hero-center { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.hero-logo { position: relative; display: block; height: min(312px, 21.6vw); aspect-ratio: var(--ar); color: var(--ink); cursor: pointer; border-radius: 12px; }
.lg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lg-leaf { transform-box: fill-box; }

/* 1) the note springs up from below, overshoots, drops back and settles (boing) */
html.js .lg-mark { opacity: 0; }
html.js .hero.is-ready .lg-mark { animation: boing 0.95s 0.15s both; }
@keyframes boing {
  0%   { opacity: 0; transform: translateY(46%) scale(0.96, 1.06); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  12%  { opacity: 1; }
  52%  { transform: translateY(-9%) scale(0.97, 1.04); animation-timing-function: cubic-bezier(0.5, 0, 0.6, 1); }
  70%  { transform: translateY(1.5%) scale(1.05, 0.94); animation-timing-function: cubic-bezier(0.3, 0.6, 0.4, 1); }
  85%  { transform: translateY(-1.2%) scale(0.995, 1.01); }
  100% { opacity: 1; transform: none; }
}
/* 2) once it lands, the leaf unfolds from the top of the stem */
html.js .lg-leaf { transform: scale(0); }
html.js .hero.is-ready .lg-leaf { animation: leaf 0.6s 1s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes leaf { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
/* 3) the words are typed in from the left, top line first (edges set per line from JS) */
html.js .lg-line { clip-path: inset(-20% var(--from, 100%) -20% -5%); }
html.js .hero.is-ready .lg-line1 { animation: type 0.6s 1.45s cubic-bezier(0.45, 0.1, 0.3, 1) both; }
html.js .hero.is-ready .lg-line2 { animation: type 0.8s 1.95s cubic-bezier(0.45, 0.1, 0.3, 1) both; }
@keyframes type {
  from { clip-path: inset(-20% var(--from, 100%) -20% -5%); translate: -6px 0; }
  to   { clip-path: inset(-20% var(--to, -5%) -20% -5%); translate: 0 0; }
}
@supports (animation-timeline: scroll()) {
  html.js .hero-logo { animation: logo-drift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  @keyframes logo-drift { to { transform: translateY(-36px); opacity: 0.4; } }
}

.hero-foot { grid-row: 3; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.hero-lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; max-width: 26em; color: var(--ink-2); }
.hero-links { display: flex; gap: 32px; }

/* Works index ────────────────────────────────────── */
/* the motto heads What we do: letters rise in when the section arrives, then the last word turns over.
   13.6 = width of the longest line ("…animation.") / font-size, measured, so it never leaves the content column */
.works-title {
  display: flex; align-items: flex-start; gap: 0.26em; white-space: nowrap;
  font-size: min(5.5rem, calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 13.6)); line-height: 1.12; letter-spacing: -0.04em; font-weight: 700;
}
.kinetic, .k-line { display: block; }
.k-char { display: inline-block; white-space: pre; }
html.js .works-title .k-char { opacity: 0; transform: translateY(0.45em); }
html.js .works-title.in .k-char { animation: rise 0.7s var(--ease-out) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.rotator { display: block; width: var(--rw, 5.6em); height: 1.12em; overflow: hidden; color: var(--tq-text); }
.rotator-track { display: block; position: relative; height: 1.12em; }
.rotator-word { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; }
.rw-char { display: inline-block; opacity: 0; transform: translateY(105%); transition: transform 0.45s var(--ease-out), opacity 0.25s ease; transition-delay: calc(var(--i) * 22ms); }
.rotator-word.is-current .rw-char { opacity: 1; transform: none; transition: transform 0.55s var(--ease-out), opacity 0.3s ease; transition-delay: calc(140ms + var(--i) * 32ms); }
.rotator-word.is-leaving .rw-char { opacity: 0; transform: translateY(-105%); }
html.js .rotator { opacity: 0; }
html.js .works-title.in .rotator { animation: fade 0.6s 0.5s var(--ease-out) forwards; }
@keyframes fade { to { opacity: 1; } }
.rotator-static { display: none; color: var(--tq-text); }

.works { position: relative; }
.index-list { border-bottom: 1px solid var(--line-strong); }
.index-row {
  display: grid; grid-template-columns: 3rem 96px minmax(0, 1fr) auto; align-items: center; gap: 16px 24px;
  padding: 18px 0; border-top: 1px solid var(--line-strong);
  transition: color 0.3s;
}
.index-thumb { width: 96px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.index-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.35s var(--ease-out); }
.index-thumb-text { display: grid; place-items: center; color: var(--deep); background: var(--tq-soft); font-size: 12px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-align: center; }
.index-no { font-size: 14px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color 0.3s; letter-spacing: 0.02em; }
.index-name { font-size: clamp(2rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; display: inline-block; transition: transform 0.3s var(--ease-out); }
.index-meta { display: flex; gap: 20px; align-items: baseline; font-size: 15px; color: var(--ink-2); }
@media (hover: hover) {
  .index-row:hover .index-name, .index-row:focus-visible .index-name { transform: translateX(14px); }
  .index-row:hover .index-no { color: var(--tq-text); }
  .index-row:hover .index-thumb img, .index-row:focus-visible .index-thumb img { transform: scale(1.04); }
}
.index-row:focus-visible { outline-offset: -2px; }

/* Detail sections ────────────────────────────────── */
.detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 40px clamp(32px, 6vw, 96px); border-top: 1px solid var(--line-strong); }
.detail-side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.detail-no { display: block; font-size: 14px; font-weight: 500; color: var(--ink-3); margin-bottom: 8px; letter-spacing: 0.02em; }
.detail-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.detail-status { margin-top: 12px; }
.detail-title { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 28px; text-wrap: balance; }
.detail-lead { font-size: 19px; font-weight: 500; margin: -10px 0 28px; max-width: 32em; }
.detail-body > .btn { margin-top: 8px; }
.prose { max-width: 40em; font-size: 17px; }
.prose p + p { margin-top: 1.1em; }
/* no one-word last lines, anywhere in running text */
.prose p, .hero-lead, .detail-lead, .contact-lead, .steps span, .values span, .form-note, .note { text-wrap: pretty; }
/* About: on wide screens each sentence starts its own line (br.br-desktop), so the column must hold one sentence */
#about .prose { max-width: 48em; }
/* each sentence is its own line group: it starts on a new line and, when it has to wrap, wraps into even lines */
#about .prose .s { display: block; text-wrap: balance; }
.prose .muted { color: var(--ink-2); font-size: 15px; }
.detail-dark .prose .muted { color: var(--on-deep-2); }
.sub-label { font-size: 14px; font-weight: 500; color: var(--ink-3); margin: 56px 0 14px; }
.steps { max-width: 40em; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 13px; font-weight: 500; color: var(--tq-text); padding-top: 0.35em; font-variant-numeric: tabular-nums; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.guide { max-width: 40em; }
.guide li { position: relative; padding: 10px 0 10px 20px; border-top: 1px solid var(--line); text-wrap: pretty; }
.guide li::before { content: ""; position: absolute; left: 2px; top: 1.35em; width: 6px; height: 6px; border-radius: 50%; background: var(--tq-text); }
.guide li:last-child { border-bottom: 1px solid var(--line); }
.guide-label { margin-top: 40px; }
.note { font-size: 14px; color: var(--ink-2); margin: 14px 0 32px; max-width: 40em; letter-spacing: 0; }
.form-note, .field label, .photo figcaption, .phone figcaption, .footer, .menu-ko, .sub-label { letter-spacing: 0; }

.detail-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 48px; align-items: start; }
.detail-split-rev { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
.phone { border-radius: 24px; overflow: hidden; background: var(--deep); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7); justify-self: end; width: 100%; }
.phone img { width: 100%; }
.phone figcaption { font-size: 13px; color: var(--on-deep-2); padding: 12px 16px; }
.photo { border-radius: 8px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: 13px; color: var(--ink-2); padding: 10px 0 0; }
.photo-wide { margin-top: 64px; max-width: 760px; }
.photo-site { max-width: 760px; margin-bottom: 32px; border: 1px solid var(--line); background: #fff; }
.photo-site img { aspect-ratio: 16 / 10; object-position: top; }
.photo-site figcaption a { color: var(--tq-text); }
.photo-site figcaption a:hover { text-decoration: underline; }
/* one-hue tone for photos that would otherwise fight the palette */


.detail-dark { color: var(--on-deep); background: var(--deep); position: relative; max-width: none; border-top: 0; }
.detail-dark .detail-no, .detail-dark .sub-label { color: var(--on-deep-2); }
.detail-dark .prose { color: var(--on-deep); }
.detail-dark .prose strong { color: #fff; }
.detail-dark :focus-visible { outline-color: var(--tq); }

/* keep the dark section content on the same column grid as the others */
.detail-dark { padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }

/* About: the name, unfolded on demand */
.el-reveal { margin-bottom: 28px; }
.el-toggle { display: inline-flex; align-items: baseline; gap: 0; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.04em; line-height: 1; font-weight: 400; text-align: left; border-radius: 4px; }
.el-letter { display: inline-flex; align-items: baseline; font-weight: 800; }
.el-rest { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 300; color: var(--tq-text); transition: max-width 0.5s var(--ease), opacity 0.3s ease; opacity: 0; vertical-align: baseline; }
.el-toggle[aria-expanded="true"] .el-rest { max-width: 8em; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .el-toggle:hover .el-rest { max-width: 8em; opacity: 1; } }
.el-works { font-weight: 400; margin-left: 0.22em; }
.el-letter { text-decoration: underline; text-decoration-color: var(--tq); text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.el-toggle[aria-expanded="true"] .el-letter { text-decoration-color: transparent; }
.el-hint { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 10px; width: 100%; }
@media (hover: hover) and (pointer: fine) { .el-hint { display: none; } }
.el-toggle { flex-wrap: wrap; }
.el-toggle[aria-expanded="true"] .el-hint { visibility: hidden; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; max-width: 760px; }
.values li { padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 15px; color: var(--ink-2); }
.values strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
#real-live { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Contact ────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px clamp(32px, 6vw, 96px); border-top: 1px solid var(--line-strong); }
.contact-title { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.contact-lead { margin-top: 28px; max-width: 28em; color: var(--ink-2); }
.contact-mail { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; }
.contact-mail a { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.03em; position: relative; }
.contact-mail a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--tq); transform: scaleX(1); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.copy-btn { font-size: 14px; font-weight: 500; color: var(--ink-2); min-height: 44px; padding: 6px 16px; border: 1px solid var(--line-strong); border-radius: 999px; transition: color 0.25s, border-color 0.25s, background-color 0.25s; }
.copy-btn:hover, .copy-btn.is-done { color: var(--tq-text); border-color: var(--tq); }
.copy-btn.is-done { background: var(--tq-soft); }

.contact-form { display: grid; gap: 22px; align-content: start; padding-top: 10px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: transparent; width: 100%;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 10px 0;
  transition: border-color 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5l4-4' fill='none' stroke='%23101617' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center/12px no-repeat; padding-right: 24px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--tq); box-shadow: 0 1px 0 var(--tq); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: #c0392b; box-shadow: none; }
.field .field-error { font-size: 13px; color: #b03a2e; }
.form-note { font-size: 14px; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 500; justify-self: start; transition: background-color 0.2s ease, transform 0.16s var(--ease-out); }
.btn:hover { background: var(--tq-text); }
.btn:active { transform: scale(0.97); }
.form-msg { font-size: 14px; color: var(--tq-text); min-height: 1.5em; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.draft-btn { min-height: 52px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 500; transition: color 0.2s, border-color 0.2s, transform 0.16s var(--ease-out); }
.draft-btn:hover, .draft-btn.is-done { color: var(--tq-text); border-color: var(--tq-text); }
.draft-btn:active { transform: scale(0.97); }
.draft-fallback { display: grid; gap: 8px; }
.draft-fallback[hidden] { display: none; }
.draft-fallback label { font-size: 14px; color: var(--ink-2); }
.draft-fallback textarea { width: 100%; min-height: 160px; padding: 12px; resize: vertical; font: inherit; font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: 8px; }

/* Footer ─────────────────────────────────────────── */
.footer { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; font-size: 14px; color: var(--ink-2); }
.footer-symbol { grid-column: 2; grid-row: 1 / 3; width: 64px; height: auto; align-self: center; }
.footer-motto { grid-column: 1; }
.footer-meta { grid-column: 1 / -1; display: flex; gap: 24px; flex-wrap: wrap; }
.footer-meta a:hover { color: var(--tq-text); }

/* Reveal on scroll ───────────────────────────────── */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .detail-side { position: static; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; }
  .detail-status { margin-top: 0; }
  .detail-split, .detail-split-rev { grid-template-columns: 1fr; }
  .phone { justify-self: center; max-width: 340px; order: -1; }
}
@media (max-width: 899px) {
  :root { --header-h: 60px; }
  .wordmark-text { font-size: 18px; }
  .header-nav { gap: 16px; }
  .hero { min-height: max(100svh, 560px); padding-bottom: 24px; }
  .hero-logo { width: calc(100vw - 2 * var(--gutter)); height: auto; }
  .wm-note { height: 22px; }
  .footer-symbol { display: none; }
  .hero-foot { grid-template-columns: 1fr; gap: 20px; }
  .hero-links { gap: 24px; }
  .br-desktop { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .index-row { grid-template-columns: 2.5rem 72px minmax(0, 1fr); gap: 12px 16px; }
  .index-thumb { width: 72px; }
  .index-meta { grid-column: 3; flex-wrap: wrap; gap: 4px 16px; }
  .index-name { font-size: clamp(1.7rem, 7vw, 3rem); }
  .detail-side { grid-template-columns: 1fr auto; }
  .photo:not(.photo-wide):not(.photo-site) { max-width: 360px; }
  .values { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .menu-list a { grid-template-columns: 2.4rem 1fr; padding: 14px 0; }
  .menu-ko { grid-column: 2; margin-top: -4px; }
  .menu-word { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .menu-aside { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 24px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer { grid-template-columns: 1fr; }
  .status { font-size: 14px; }
}
@media (max-width: 480px) {
  .header-contact { display: none; }
  .header-nav { gap: 12px; }
  .lang-link { font-size: 14px; }
  .index-row { grid-template-columns: 60px minmax(0, 1fr); gap: 10px 14px; }
  .index-no { display: none; }
  .index-thumb { grid-row: 1 / 3; width: 60px; }
  .index-name { grid-column: 2; }
  .index-meta { grid-column: 2; }
}
/* Reduced transparency / more contrast ───────────── */
@media (prefers-reduced-transparency: reduce) {
  .header.is-scrolled { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header::after { display: none; }
  .header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
  .menu-backdrop { background: rgba(16, 22, 23, 0.6); }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #2e3736; --ink-3: #4e5a58; --line: rgba(16, 22, 23, 0.4); --line-strong: rgba(16, 22, 23, 0.7); --tq-text: #065f5a; }
  .header.is-scrolled { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--ink); }
  .header::after { display: none; }
  .copy-btn, .field input, .field select, .field textarea { border-color: var(--ink); }
}

/* Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-delay: 0s !important; }
  html.js .k-char, .k-char { transform: none !important; animation: none !important; opacity: 1; }
  html.js .rotator { animation: none; }
  html.js .hero-logo, html.js .lg-mark, html.js .lg-leaf, html.js .lg-line { animation: none !important; opacity: 1; transform: none; clip-path: none; translate: none; }
  html.js .hero-lead.reveal, html.js .hero-links.reveal { transition-delay: 0s; }
  .works-title { flex-wrap: wrap; white-space: normal; }
  .rotator { display: none; }
  .rotator-static { display: block; }
  html.js .reveal { opacity: 1; transform: none; }
  .el-rest { transition: none; }
}
