/* assets/css/style.css */
:root {
  --paper: #f5f3ee;
  --surface: #fffdf8;
  --ink: #17231f;
  --muted: #5f6b65;
  --line: #d9ded7;
  --accent: #176b55;
  --accent-soft: #e3efe9;
  --max: 1160px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.72;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.container {
  width: min(calc(100% - 32px), var(--max));
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 243, 238, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  flex: 0 0 34px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  padding: 104px 0 84px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 16px 0 20px;
  max-width: 850px;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 3px;
  background: var(--accent-soft);
  border: 1px solid #c4ded2;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border-radius: 5px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  margin-right: 10px;
}

.btn-primary {
  background: var(--accent);
  color: #fffdf8;
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

section {
  padding: 64px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(23, 35, 31, 0.04);
}

.card h2,
.card h3 {
  margin-top: 0;
}
.card p {
  color: var(--muted);
}

.card a {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}

.content {
  max-width: 820px;
}

.content h2 {
  margin-top: 46px;
  font-size: 30px;
  line-height: 1.15;
}

.content h3 {
  margin-top: 28px;
}

.content p,
.content li {
  color: var(--muted);
}

.content a {
  color: var(--accent);
  font-weight: 700;
}

.breadcrumb {
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cta {
  margin-top: 36px;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid #c4ded2;
  background: var(--accent-soft);
}

footer {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

:focus-visible {
  outline: 3px solid #b6d6c8;
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }

  .hero {
    padding: 72px 0 58px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 60px);
  }
}

/* UI refresh: calmer editorial rhythm with a usable small-screen menu. */
@font-face {
  font-family: "Font Awesome 5 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.urity.org/nagao-assets/fonts/fontawesome/webfonts/fa-brands-400.woff2") format("woff2");
}

@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.urity.org/nagao-assets/fonts/fontawesome/webfonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("https://cdn.urity.org/nagao-assets/fonts/fontawesome/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
  font-family: "Font Awesome 5 Compatibility";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.urity.org/nagao-assets/fonts/fontawesome/webfonts/fa-v4compatibility.woff2") format("woff2");
}

:root {
  --paper: #f6f5f0;
  --surface: #fffefa;
  --ink: #17231f;
  --muted: #53625b;
  --line: #d8ddd6;
  --accent: #12664e;
  --accent-soft: #e7f0ea;
  --max: 1160px;
  --radius: 8px;
}

html { scroll-padding-top: 88px; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.7; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--ink); }
a { text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }

header {
  background: rgba(246, 245, 240, .97);
  backdrop-filter: blur(12px);
}
.nav { min-height: 76px; }
.brand { text-decoration: none; letter-spacing: -.02em; min-height: 48px; }
.brand-logo { width: 40px; height: 40px; flex-basis: 40px; object-fit: contain; }
.nav-links { gap: clamp(12px, 2vw, 24px); }
.nav-links a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav-links a:hover { color: var(--accent); }
.mobile-menu { display: none; }

.hero {
  padding: clamp(72px, 10vw, 126px) 0 clamp(64px, 8vw, 96px);
  background: #eeefe8;
  border-bottom: 1px solid var(--line);
}
.hero .container { max-width: var(--max); }
.hero h1 { max-width: 760px; font-size: clamp(42px, 6.4vw, 76px); line-height: 1.04; }
.hero p { max-width: 680px; font-size: clamp(17px, 1.7vw, 19px); }
.eyebrow { border-radius: 999px; padding: 6px 12px; background: #fffefa; }
.btn { min-height: 48px; margin: 4px 8px 4px 0; padding: 12px 18px; border-radius: 6px; text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover { background: #0d513d; }
.btn-secondary:hover { background: #f3f5f0; }
section { padding: clamp(48px, 7vw, 76px) 0; }
.grid { align-items: stretch; gap: 16px; }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: var(--radius); box-shadow: none; transition: border-color .18s ease, transform .18s ease; }
.card:hover { border-color: #a9bdb0; transform: translateY(-2px); }
.card p { flex: 1; }
.card a { display: inline-flex; align-items: center; min-height: 44px; }
.content { max-width: 760px; }
.content h2 { margin-top: 2.2em; font-size: clamp(27px, 3.2vw, 34px); line-height: 1.18; }
.content p, .content li { color: #45564e; }
.content li { padding-left: 4px; margin: .45em 0; }
.cta { border-radius: var(--radius); background: #edf2eb; border-color: #d2ded3; }
footer { margin-top: 32px; background: #eeefe8; }
:focus-visible { outline: 3px solid #176b55; outline-offset: 4px; }

@media (max-width: 850px) {
  .nav { position: relative; min-height: 68px; }
  .nav-links { display: none; }
  .mobile-menu { display: block; margin-left: auto; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
  .mobile-menu summary { display: flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); font-weight: 650; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::after { content: "▾"; margin-left: 9px; color: var(--accent); }
  .mobile-menu[open] summary::after { content: "▴"; }
  .mobile-nav { position: absolute; z-index: 30; top: calc(100% - 2px); right: 0; display: grid; min-width: min(260px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 14px 28px rgba(23,35,31,.12); }
  .mobile-nav a { display: flex; align-items: center; min-height: 46px; padding: 8px 12px; border-radius: 5px; color: var(--ink); text-decoration: none; }
  .mobile-nav a:hover, .mobile-nav a:focus-visible { background: var(--accent-soft); }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: clamp(40px, 11vw, 58px); }
}

@media (max-width: 420px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand { gap: 8px; font-size: 14px; }
  .brand-logo { width: 34px; height: 34px; flex-basis: 34px; }
  .hero { padding-top: 52px; }
  .hero p { font-size: 16px; }
  .btn { width: 100%; margin-right: 0; }
  .card { padding: 22px; }
  .cta { padding: 22px; }
}

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