/* Knife Sabaki (ナイフさばき) — páginas públicas. Identidade v2: dojo-cozinha à noite.
   Noite índigo com brilho de lanterna, painéis de papel washi em moldura de madeira, títulos a pincel,
   botões de laca vermelha com borda dourada. O tema já é noturno; os painéis ficam claros para leitura. */
:root {
  --night: #141a33; --night2: #1f2750; --indigo: #26306b; --wood: #6b4226; --wood-dark: #3e2413; --wood-light: #9a6a3f;
  --washi: #f7f0e1; --washi2: #efe4cc; --ink: #1b1a24; --ink-soft: #57503f;
  --lacquer: #b3202a; --lacquer-dark: #7e1219; --gold: #d4af37; --gold-soft: #f1d27a; --lantern: #ff9d3c;
  --radius: 10px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --brush: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; line-break: strict; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.8; font-weight: 500; min-height: 100vh;
  background:
    radial-gradient(420px 320px at 8% 0%, rgba(255, 157, 60, .28), transparent 70%),
    radial-gradient(420px 320px at 92% 0%, rgba(255, 157, 60, .22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, transparent 2px 64px),
    linear-gradient(180deg, var(--night) 0%, var(--night2) 70%, #2a1d17 100%) fixed;
  background-color: var(--night);
}
a { color: var(--lacquer); font-weight: 700; }
.topbar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 16px 14px; max-width: 980px; margin: 0 auto;
}
/* noren (cortina) no topo */
.topbar::before {
  content: ""; position: absolute; inset: 0 16px auto 16px; height: 8px; border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--lacquer-dark), var(--lacquer), var(--lacquer-dark)); box-shadow: 0 2px 0 var(--gold);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--brush);
  font-size: 1.7rem; letter-spacing: 1px; text-shadow: 0 2px 0 var(--lacquer-dark), 0 0 18px rgba(255,157,60,.35); }
.langs { display: flex; gap: 4px; padding: 4px; border-radius: 8px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood)); border: 2px solid var(--wood-dark); box-shadow: inset 0 0 0 1px var(--gold); }
.langs a { padding: 3px 12px; border-radius: 5px; text-decoration: none; color: var(--washi); font-size: .85rem; }
.langs a.on { background: var(--lacquer); color: #fff; box-shadow: inset 0 0 0 1px var(--gold-soft); }
.wrap { max-width: 980px; margin: 0 auto; padding: 4px 16px 40px; }
.card {
  position: relative; margin: 20px 0; padding: 26px 24px; border-radius: var(--radius);
  background:
    repeating-linear-gradient(12deg, rgba(120,90,40,.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-35deg, rgba(120,90,40,.03) 0 1px, transparent 1px 11px),
    linear-gradient(180deg, var(--washi), var(--washi2));
  border: 7px solid var(--wood);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 2px var(--wood-dark), 0 14px 30px rgba(0,0,0,.45);
}
.card h1, .card h2 { font-family: var(--brush); font-weight: 400; color: var(--indigo); line-height: 1.3; margin: .2em 0 .5em; }
.card h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.card h2 { font-size: 1.35rem; margin-top: 1.5em; padding-bottom: 4px;
  background: linear-gradient(90deg, var(--lacquer) 0 64px, rgba(179,32,42,.25) 64px 70%, transparent) bottom left / 100% 3px no-repeat; }
.card h3 { font-size: 1.05rem; margin: 1.2em 0 .3em; color: var(--indigo); }
.muted { color: var(--ink-soft); font-size: .92rem; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 18px;
  background: radial-gradient(360px 300px at 80% 50%, rgba(255,157,60,.25), transparent 70%), linear-gradient(180deg, var(--washi), var(--washi2)); }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; text-align: center; } .hero .mascot { max-width: 230px; margin: 0 auto; } }
.hero .logo { max-width: 100%; height: auto; }
.hero .title { font-family: var(--brush); font-size: clamp(2.6rem, 9vw, 4.2rem); line-height: 1.05; margin: 0; color: var(--ink);
  text-shadow: 3px 3px 0 rgba(179,32,42,.35); }
.hero .title small { display: block; font-size: .42em; letter-spacing: 2px; color: var(--lacquer); margin-top: 6px; }
.hero .sub { font-size: 1.15rem; font-weight: 700; margin: .7em 0 1em; color: var(--indigo); }
.mascot { width: 100%; height: auto; filter: drop-shadow(0 10px 0 rgba(0,0,0,.25)); animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .mascot { animation: none; } }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .badges { justify-content: center; } }
.badge { display: inline-flex; flex-direction: column; min-width: 170px; padding: 8px 16px; border-radius: 8px; background: #0d0d12;
  color: #fff; border: 2px solid var(--gold); text-decoration: none; line-height: 1.2; }
.badge small { font-size: .7rem; opacity: .8; font-weight: 500; }
.badge strong { font-size: 1.05rem; }
.badge.soon { opacity: .6; cursor: default; }
.btn {
  display: inline-block; font: inherit; font-weight: 900; font-size: 1.05rem; color: #fff; text-decoration: none; cursor: pointer;
  padding: 12px 28px; border-radius: 8px; border: 2px solid var(--gold);
  background: linear-gradient(180deg, #d8434c 0%, var(--lacquer) 45%, var(--lacquer-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 2px var(--wood-dark), 0 5px 0 var(--wood-dark);
  text-shadow: 0 1px 0 rgba(0,0,0,.45); transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 2px var(--wood-dark), 0 1px 0 var(--wood-dark); }
.btn.danger { background: linear-gradient(180deg, #5a1015 0%, #3d0a0e 100%); }
.btn.ghost { background: linear-gradient(180deg, #3a4690, var(--indigo)); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
/* 木札 (plaquinhas de madeira) */
.feature { border-radius: 8px; padding: 14px 14px 12px; color: var(--washi);
  background: repeating-linear-gradient(95deg, rgba(0,0,0,.08) 0 3px, transparent 3px 9px), linear-gradient(180deg, var(--wood-light), var(--wood));
  border: 2px solid var(--wood-dark); box-shadow: inset 0 0 0 1px rgba(241,210,122,.6); }
.feature b { display: block; font-family: var(--brush); font-weight: 400; font-size: 1.3rem; color: #fff; }
.feature .ico { font-size: 1.6rem; }
form { display: grid; gap: 14px; }
label { font-weight: 700; display: grid; gap: 6px; }
input[type=email], input[type=password], input[type=text], select, textarea {
  font: inherit; font-weight: 500; width: 100%; padding: 12px 14px; border-radius: 8px; border: 2px solid var(--wood);
  background: #fffdf8; color: var(--ink); box-shadow: inset 0 2px 4px rgba(62,36,19,.12);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 8px; padding: 12px 16px; margin: 12px 0; font-weight: 700; border: 2px solid; }
.notice.ok { background: #e7f3e3; color: #1f4d1a; border-color: #5f8f4e; }
.notice.err { background: #fbe3e2; color: #7e1219; border-color: var(--lacquer); }
.notice.info { background: #fbf1d3; color: #5b4300; border-color: var(--gold); }
table.kv { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--wood); border-radius: 8px; overflow: hidden; background: #fffdf8; }
table.kv th, table.kv td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid rgba(107,66,38,.25); }
table.kv tr:last-child th, table.kv tr:last-child td { border-bottom: 0; }
table.kv th { width: 32%; background: rgba(38,48,107,.08); font-weight: 900; color: var(--indigo); }
@media (max-width: 600px) { table.kv th, table.kv td { display: block; width: 100%; } table.kv th { border-bottom: 0; } }
.todo { background: var(--gold-soft); color: #5b4300; padding: 0 6px; border-radius: 4px; font-weight: 900; }
ul.checks { list-style: none; padding: 0; }
ul.checks li { padding-left: 1.8em; position: relative; margin: .35em 0; }
ul.checks li::before { content: "一"; position: absolute; left: 0; color: var(--lacquer); font-family: var(--brush); font-weight: 900; }
ul.keep li::before { content: "印"; color: var(--indigo); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding-left: 2.4em; position: relative; margin: .6em 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.8em; height: 1.8em; border-radius: 50%;
  background: var(--lacquer); color: #fff; border: 2px solid var(--gold); display: grid; place-items: center; font-weight: 900; }
.foot { max-width: 980px; margin: 0 auto; padding: 10px 16px 40px; font-size: .88rem; text-align: center; color: #cfd3ea; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 8px; }
.foot a { color: var(--gold-soft); }
.center { text-align: center; }

/* Botão de 2 linhas (禁則処理: nunca quebrar palavra no meio) */
.btn-2line { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.25; word-break: keep-all; }
.btn-2line small { font-size: .72em; font-weight: 600; opacity: .9; letter-spacing: .04em; }
