/* NICHIJO — shared styles
   Aesthetic: quiet editorial, washi paper, ink, a single vermilion accent */

:root {
  --paper: #faf7f0;
  --paper-2: #f3efe4;
  --ink: #1f1d1a;
  --ink-soft: #57534c;
  --ink-faint: #8a857b;
  --hair: #e5dfd1;
  --shu: #c2502f;        /* 朱色 — the single accent */
  --shu-soft: #d98a6f;
  --maxw: 660px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.72;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: 0 24px;
}

/* faint paper texture via layered radial gradients */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(194,80,47,0.05), transparent 60%),
    radial-gradient(100% 60% at 50% 110%, rgba(31,29,26,0.04), transparent 55%);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 0 96px;
  animation: rise 0.9s cubic-bezier(.16,1,.3,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- masthead ---- */
.mast { text-align: center; margin-bottom: 56px; }

.mark {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 44px;
  letter-spacing: 0.18em;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
}
.mark .dot { color: var(--shu); }

.brand {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-family: "Newsreader", serif;
}

/* ---- landing hero ---- */
.hero-tag {
  font-size: 27px;
  line-height: 1.4;
  font-weight: 400;
  max-width: 18ch;
  margin: 40px auto 0;
  text-align: center;
  color: var(--ink);
}
.hero-sub {
  margin: 26px auto 0;
  max-width: 46ch;
  text-align: center;
  color: var(--ink-soft);
  font-size: 18px;
}
.hairline {
  width: 44px; height: 1px;
  background: var(--shu);
  margin: 44px auto;
  opacity: 0.8;
}
.links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  color: var(--ink);
  background: var(--paper-2);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { border-color: var(--shu); color: var(--shu); transform: translateY(-1px); }

/* ---- document pages ---- */
.doc h1 {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.doc .updated {
  color: var(--ink-faint);
  font-size: 15px;
  font-style: italic;
  margin-bottom: 40px;
}
.doc h2 {
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 20px;
  margin: 40px 0 12px;
  padding-top: 4px;
}
.doc h2 .num { color: var(--shu); font-weight: 500; margin-right: 10px; }
.doc p { margin: 0 0 16px; color: var(--ink); }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; color: var(--ink); }
.doc strong { font-weight: 600; }
.doc a { color: var(--shu); text-decoration: none; border-bottom: 1px solid var(--shu-soft); }
.doc a:hover { background: rgba(194,80,47,0.07); }

.faq { border-top: 1px solid var(--hair); padding-top: 22px; margin-top: 8px; }
.faq h3 {
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 18px;
  margin: 24px 0 6px;
}

/* ---- footer / back ---- */
.foot {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-faint);
}
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--shu); }
.foot .seal { font-family: "Noto Serif JP", serif; letter-spacing: 0.12em; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .mark { font-size: 38px; }
  .hero-tag { font-size: 23px; }
  .doc h1 { font-size: 28px; }
}
.doc a.mark { padding-bottom: 20px; }
