:root {
  --paper: #f3eee6;
  --paper-2: #e7e0d4;
  --ink: #1b2430;
  --muted: #5e675f;
  --faint: #8a8174;
  --line: rgba(27, 36, 48, 0.12);
  --line-strong: rgba(27, 36, 48, 0.22);
  --teal: #14615c;
  --teal-2: #0e3d3c;
  --clay: #c45c32;
  --card: #fffcf8;
  --shadow: 0 18px 50px rgba(27, 36, 48, 0.12);
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --display: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --shell: min(100% - 32px, 1120px);
  --nav: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-ja,
body.is-ja h1, body.is-ja h2, body.is-ja h3 {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}
body.is-ko,
body.is-ko h1, body.is-ko h2, body.is-ko h3 {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  letter-spacing: -0.02em;
}
body.is-ar,
body.is-ar h1, body.is-ar h2, body.is-ar h3 {
  font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.7;
}
body.is-hi,
body.is-hi h1, body.is-hi h2, body.is-hi h3 {
  font-family: "Kohinoor Devanagari", "Nirmala UI", "Mangal", sans-serif;
  letter-spacing: 0;
  line-height: 1.45;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: #d7efe8; color: var(--ink); }

.shell { width: var(--shell); margin-inline: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--teal);
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
}
.skip:focus { top: 0.8rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--nav);
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top);
  background: rgba(243, 238, 230, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__inner { display: flex; align-items: center; gap: 1.25rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
}
.brand img, .brand svg { width: 1.45rem; height: 1.45rem; }

.nav__links {
  display: none;
  gap: 1.1rem;
  margin-inline: auto;
  color: var(--ink);
  font-size: 0.92rem;
}
.nav__links a { position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 0.7rem; }

.lang {
  height: 2.75rem;
  min-width: 7.6rem;
  max-width: 11rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 0 0.7rem;
  font-size: 1rem;
}

.nav__burger {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 0.72rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--ink);
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 0.4rem 1.25rem 1.2rem;
}
.mobile-nav.is-open { display: grid; gap: 0.2rem; }
.mobile-nav a,
.mobile-nav .btn {
  min-height: 2.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.mobile-nav .btn { width: 100%; border-bottom: 0; }

.nav__actions .btn { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s;
}
.btn:hover { transform: translateY(-1px); }
.btn--light { background: var(--teal-2); color: #f7f3ec; font-weight: 600; }
.btn--light:hover { background: var(--teal); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--sm { min-height: 2.3rem; font-size: 0.9rem; }
.btn--lg { min-height: 3rem; padding-inline: 1.2rem; }

.hero { padding: 2.2rem 0 3.2rem; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--clay);
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.04em; line-height: 1.12; margin: 0; }
.hero h1 {
  font-size: clamp(2rem, 9vw, 2.7rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero h1 > span { display: block; }
.hero .eyebrow {
  margin-bottom: 1.2rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #efe7da;
  color: var(--teal-2);
}
.hero__accent { color: var(--teal); margin-top: 0.2rem; }
.lede {
  max-width: 40rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero .lede { max-width: 34rem; margin-top: 1.3rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

.pattern {
  max-width: 26rem;
  margin-top: 1.8rem;
  padding-top: 0.9rem;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.pattern b { color: var(--ink); font-weight: 600; letter-spacing: 0; }

.stage {
  position: relative;
  min-height: 26rem;
  border-radius: 24px;
  overflow: hidden;
  background: #d9d0c3;
}
.stage__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feed__head, .feed__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  color: var(--faint);
  font-size: 0.75rem;
}
.feed__head { border-bottom: 1px solid var(--line); }
.feed__live { color: var(--teal); letter-spacing: 0.06em; }
.feed__list { list-style: none; margin: 0; padding: 0.2rem 0; }
.feed__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
}
.feed__list .tag { display: none; }
.host { min-width: 0; font-family: var(--mono); font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__list li.is-new { animation: row-in 0.5s var(--ease); }
@keyframes row-in {
  from { background: rgba(20, 97, 92, 0.1); }
  to { background: transparent; }
}
.tag { color: var(--muted); }
.when { color: var(--clay); font-variant-numeric: tabular-nums; font-size: 0.74rem; white-space: nowrap; }
.feed__foot { border-top: 1px solid var(--line); }

.networks { padding: 0.4rem 0 3.2rem; }
.networks p { color: var(--teal); font-size: 0.9rem; margin: 0 0 0.85rem; text-align: center; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.pills li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  background: transparent;
}

.section { padding: 2.75rem 0; }
.section--tight { padding-top: 1rem; }
.section__head { max-width: 40rem; margin-bottom: 1.6rem; }
.section__head h2, .band h2, .ask h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

.wide-photo {
  margin: 0 0 1rem;
  border-radius: 22px;
  overflow: hidden;
}
.wide-photo img { width: 100%; height: 200px; object-fit: cover; }

.steps { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.step {
  background: var(--card);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 1.25rem;
  min-height: 200px;
  box-shadow: 0 1px 0 rgba(27, 36, 48, 0.04);
}
.step__k { margin: 0 0 1.2rem; color: var(--teal); font-family: var(--mono); font-size: 0.75rem; }
.step strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}
.step p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: start;
}
.ticks { list-style: none; margin: 1.1rem 0 1.4rem; padding: 0; }
.ticks li { position: relative; padding: 0.32rem 0 0.32rem 1rem; }
.ticks li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  left: 0;
  top: 0.7rem;
}

.console {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.console__label { color: var(--teal); font-size: 0.8rem; padding: 0.95rem 1rem 0; margin: 0; }
.console pre {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #243044;
  overflow: auto;
  background: #f7f3ec;
}
.console .k { color: var(--teal); }
.console .s { color: #9a3d24; }
.console__note { margin: 0; padding: 0 1rem 0.8rem; color: var(--faint); font-size: 0.8rem; background: #f7f3ec; }
.lookup { padding: 0.9rem 1rem 1rem; }
.lookup label { display: block; font-size: 0.82rem; margin-bottom: 0.4rem; }
.lookup__row { display: flex; gap: 0.5rem; }
.lookup input {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: white;
  padding: 0 0.8rem;
  font-size: 1rem;
}
.lookup input:focus-visible, .lang:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.chips button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  background: white;
}
.chips button:hover, .chips button.is-on { color: white; background: var(--teal); border-color: var(--teal); }
.verdict {
  margin-top: 0.75rem;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  display: none;
  background: white;
}
.verdict.is-on { display: block; }
.verdict b { font-family: var(--display); letter-spacing: 0.06em; }
.verdict--blocked b { color: var(--clay); }
.verdict--watch b { color: #9a6b12; }
.verdict p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.88rem; }
.phases { display: flex; gap: 0.4rem; margin-top: 0.65rem; }
.phases span {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.phases span.run::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform-origin: left;
  animation: fill 0.45s var(--ease) forwards;
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.cases { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-top: 1.4rem; }
.case {
  background: var(--card);
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1.2rem;
}
.case__k { margin: 0 0 0.7rem; color: var(--faint); font-size: 0.8rem; }
.case h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.case p { margin: 0; color: var(--muted); }

.notes { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.note {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.note__hit { text-align: left; padding: 0; width: 100%; }
.note__photo { width: 100%; height: 210px; object-fit: cover; }
.note__meta { display: block; color: var(--faint); font-size: 0.78rem; padding: 0.85rem 1rem 0; }
.note h3 { font-size: 1.15rem; padding: 0.3rem 1rem 1rem; }
.note__body { padding: 0 1rem 1.1rem; color: var(--muted); }
.note__body p { margin: 0 0 0.65rem; }
.note__aside { color: var(--teal-2) !important; }
.note.is-open { box-shadow: var(--shadow); }

.prices { display: grid; grid-template-columns: 1fr; gap: 0.9rem; align-items: stretch; }
.price {
  background: var(--card);
  border-radius: 22px;
  padding: 1.25rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.price--hot { background: var(--teal-2); color: #f7f3ec; }
.price--hot p, .price--hot li { color: rgba(247, 243, 236, 0.82); }
.price--hot .btn--light { background: #f7f3ec; color: var(--teal-2); }
.price h3 { font-size: 1.4rem; }
.price__cost {
  font-family: var(--display);
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  margin: 0;
}
.price > p { margin: 0; color: var(--muted); }
.price ul { margin: 0; padding: 0; list-style: none; }
.price li { position: relative; padding: 0.25rem 0 0.25rem 1rem; }
.price li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  left: 0;
  top: 0.7rem;
}
.price--hot li::before { background: #e7a23a; }
.price .btn { margin-top: auto; }

.band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: center;
  background: var(--card);
  border-radius: 28px;
  padding: 1.2rem;
}
.band ul { margin: 0.8rem 0 1.1rem; padding: 0; list-style: none; color: var(--muted); }
.band li { position: relative; padding: 0.2rem 0 0.2rem 1rem; }
.band li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  left: 0;
  top: 0.65rem;
}
.band__photo { margin: 0; border-radius: 18px; overflow: hidden; }
.band__photo img { width: 100%; height: 200px; object-fit: cover; }

.ask { max-width: 40rem; }
.fine { color: var(--faint); font-size: 0.92rem; }

.footer {
  background: var(--teal-2);
  color: rgba(247, 243, 236, 0.78);
  padding: 2.4rem 0 max(2rem, env(safe-area-inset-bottom));
}
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
.footer__grid > :first-child { grid-column: 1 / -1; }
.footer h3 { font-size: 0.78rem; letter-spacing: 0.08em; color: rgba(247, 243, 236, 0.5); margin: 0 0 0.7rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0.35rem 0; }
.footer a:hover, .footer button:hover { color: white; }
.footer .brand { color: #f7f3ec; }
.legal { margin-top: 2rem; color: rgba(247, 243, 236, 0.5); font-size: 0.82rem; }

.dialog {
  width: min(520px, calc(100% - 1.5rem));
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgba(27, 36, 48, 0.46); }
.dialog__inner { padding: 1.3rem; position: relative; }
.dialog h2 { font-size: 1.6rem; margin-bottom: 0.35rem; }
.dialog p { color: var(--muted); }
.form { display: grid; gap: 0.7rem; margin-top: 1rem; }
.form label { display: grid; gap: 0.3rem; font-size: 0.88rem; }
.form input, .form select, .form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: white;
  padding: 0.7rem 0.75rem;
  font-size: 1rem;
}
.form textarea { min-height: 90px; resize: vertical; }
.form__row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.saved {
  display: none;
  margin-top: 0.8rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: #e5f3ef;
  color: var(--teal-2);
}
.saved.is-on { display: block; }
.dialog__x {
  position: absolute;
  top: 0.8rem;
  inset-inline-end: 0.8rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.prose h2 { margin-bottom: 0.8rem; }
.prose p { margin: 0 0 0.75rem; }

.nav__links a[aria-current="page"] { color: var(--teal); }

.check__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start;
}
.check h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
.check__card input {
  width: 100%;
  height: 2.75rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: white;
  padding: 0 0.9rem;
  font-family: var(--mono);
  font-size: 1rem;
}
.check__card {
  background: var(--card);
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.check__card label { display: grid; gap: 0.4rem; font-size: 0.9rem; }
.check__card .form__row { margin-top: 0.9rem; }
.check__card .fine { margin: 0.85rem 0 0; }
.check__result {
  display: none;
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--line);
}
.check__result.is-on { display: block; }
.check__result b { font-family: var(--display); font-size: 1.15rem; }
.check__result p { margin: 0.4rem 0 0; color: var(--muted); }
.check__result .mono { font-family: var(--mono); font-size: 0.78rem; word-break: break-all; color: var(--ink); }
.check__result--blocked { border-color: rgba(196, 92, 50, 0.45); }
.check__result--blocked b { color: var(--clay); }
.check__result--miss { border-color: rgba(20, 97, 92, 0.35); }
.check__result--miss b { color: var(--teal); }
.check__result--bad b { color: var(--clay); }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
  .footer__grid > :first-child { grid-column: auto; }
  .notes, .prices, .steps, .cases { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__actions .btn { display: inline-flex; }
  .hero { padding-top: 2.2rem; }
  .hero__grid { grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr); gap: 2.4rem; }
  .hero h1 { font-size: clamp(2.6rem, 4vw, 4rem); letter-spacing: -0.045em; }
  .stage { min-height: 680px; border-radius: 28px; }
  .section { padding: 4.6rem 0; }
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 2.2rem; }
  .steps, .cases, .notes, .prices { grid-template-columns: repeat(3, 1fr); }
  .band { grid-template-columns: 1.05fr 0.95fr; }
  .check__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; }
  .footer__grid { grid-template-columns: 1.4fr repeat(3, 0.6fr); }
  .feed__list li { grid-template-columns: minmax(0, 1.4fr) 0.8fr auto; }
  .feed__list .tag { display: inline; }
  .wide-photo img { height: min(420px, 36vw); }
  .band__photo img { height: 320px; }
  .note__photo { height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
