:root {
  color-scheme: light;
  --ink: #1f2529;
  --sub: #566169;
  --line: #d9dfe3;
  --bg: #ffffff;
  --bg-soft: #f4f6f3;
  --char-1: #3b4146;
  --char-2: #1d2124;
  --green: #5c8a2b;
  --green-deep: #3f6a1d;
  --green-soft: #eef4e4;
  --link: #0b4aa8;
  --accent: #c64f00;
  --accent-hover: #a84300;
  --code-bg: #20262a;
  --code-ink: #e8ecef;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 20, .08), 0 8px 24px rgba(20, 30, 20, .08);
  --font: "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, "MS Gothic", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.75; font-size: 16px; }
a { color: var(--link); }
a:hover { text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: .92em; background: #eef1f2; padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
pre { margin: 1em 0; background: var(--code-bg); color: var(--code-ink); padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.6; }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }

.top { position: sticky; top: 0; z-index: 10; background: linear-gradient(var(--char-1), var(--char-2)); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.top-in { max-width: 1160px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .02em; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 6px; }
.top nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; min-width: 0; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: #e6eaec; text-decoration: none; padding: 16px 12px; white-space: nowrap; font-size: 14px; border-bottom: 3px solid transparent; }
.top nav a:hover { color: #fff; border-bottom-color: #8fbc4f; }

.hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(115deg, #1c3314 0%, #2f5a1c 48%, #5c8a2b 100%); }
.hero::before { content: ""; position: absolute; inset: -40% -10% -40% 30%; background: repeating-radial-gradient(ellipse at 62% 50%, transparent 0 26px, rgba(255, 255, 255, .09) 26px 27px); pointer-events: none; }
.hero-in { position: relative; max-width: 1160px; margin: 0 auto; padding: 56px 16px 60px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero h1 { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.3; letter-spacing: .01em; }
.hero p { margin: 0 0 14px; }
.lead { font-size: 17px; }
.facts { font-size: 14px; color: #dfeacb; margin: 16px 0 24px !important; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 11px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.hero figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 6px; box-shadow: 0 16px 44px rgba(0, 0, 0, .38); }
.hero video { width: 100%; border-radius: 6px; }

.crumb { max-width: 1160px; margin: 0 auto; padding: 10px 16px; font-size: 13px; color: var(--sub); }
.crumb a { color: var(--sub); }

.cards-wrap { background: var(--bg-soft); border-block: 1px solid var(--line); }
.cards { max-width: 1160px; margin: 0 auto; padding: 28px 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 8px; padding: 14px 16px; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card b { display: block; color: var(--green-deep); font-size: 16px; }
.card span { font-size: 14px; color: var(--sub); }

.layout { max-width: 1160px; margin: 0 auto; padding: 16px 16px 56px; display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 44px; }
.toc { position: sticky; top: 76px; align-self: start; padding-top: 26px; font-size: 14px; }
.toc b { display: block; color: var(--sub); font-size: 12px; letter-spacing: .08em; margin-bottom: 8px; }
.toc a { display: block; padding: 5px 10px; color: var(--ink); text-decoration: none; border-left: 2px solid var(--line); }
.toc a:hover { border-left-color: var(--green); color: var(--green-deep); background: var(--green-soft); }

section { padding-top: 26px; }
h2 { font-size: 25px; line-height: 1.4; margin: 12px 0 18px; padding-bottom: 8px; border-bottom: 3px solid var(--green); }
h3 { font-size: 18px; margin: 28px 0 8px; padding-left: 10px; border-left: 4px solid var(--green); line-height: 1.5; }
p { margin: .8em 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--green-soft); color: var(--green-deep); white-space: nowrap; }
td:first-child { white-space: nowrap; }
td.wrap, #cli td:first-child { white-space: normal; }

.steps { list-style: none; padding: 0; margin: 16px 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 42px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; }

.shot { margin: 16px 0; }
.shot video, .shot > img, .pinned { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #eee; width: 100%; }
figcaption { font-size: 14px; color: var(--sub); margin-top: 8px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }

.pinned { position: relative; overflow: hidden; }
.pinned img { width: 100%; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 2px #fff; }
.box { position: absolute; border: 2px solid var(--accent); border-radius: 4px; pointer-events: none; }
.key { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 50%; background: var(--accent); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 16px 0; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 6px; }
.gallery figcaption { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg-soft); flex: 1; }
.gallery figcaption b { display: block; color: var(--ink); font-size: 15px; }

.grads { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.grads figure { margin: 0; }
.grads img { border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.grads figcaption { font-size: 12px; margin-top: 3px; line-height: 1.3; }

.note { background: var(--green-soft); border-radius: 8px; padding: 12px 16px; margin: 16px 0; font-size: 15px; }

footer { background: var(--char-2); color: #c9d0d4; font-size: 14px; }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 26px 16px; }
footer a { color: #fff; }
footer p { margin: .4em 0; }
.fine { font-size: 12px; color: #98a2a8; margin-top: 12px !important; }

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}
@media (max-width: 820px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding: 36px 16px 40px; gap: 28px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .grads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .top-in { gap: 8px; }
  .brand span { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .pin { width: 17px; height: 17px; line-height: 17px; font-size: 10px; box-shadow: 0 0 0 1px #fff; }
  h2 { font-size: 22px; }
}

.lang { flex: none; margin-left: 8px; color: #fff; text-decoration: none; font-size: 13px; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.lang:hover { background: rgba(255, 255, 255, .16); }
