:root {
  --ink: #24312b;
  --muted: #66746d;
  --green: #0aa966;
  --green-dark: #087c4d;
  --green-pale: #e8f7ef;
  --cream: #f7f5ef;
  --paper: #fffefa;
  --line: #dfe6e1;
  --amber: #f4a62a;
  --shadow: 0 18px 48px rgba(32, 54, 43, 0.08);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.8; background: var(--cream); }
a { color: inherit; }

.topbar {
  min-height: 68px;
  padding: 12px max(20px, calc((100vw - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 254, 250, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--green); }
.page-label { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; }

main { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 86px 0 58px; border-bottom: 1px solid var(--line); }
.eyebrow, .chapter-kicker { margin: 0 0 10px; color: var(--green-dark); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(42px, 7vw, 76px); line-height: 1.16; letter-spacing: -.045em; }
.lead { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: clamp(16px, 2.4vw, 20px); }
.quick-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.quick-nav a { padding: 8px 14px; border: 1px solid #b9ccc2; border-radius: 99px; background: var(--paper); color: var(--green-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.quick-nav a:hover { border-color: var(--green); }

.notice { margin: 46px 0 16px; padding: 24px 26px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; border: 2px solid #f0c16f; border-radius: 18px; background: #fff9e9; box-shadow: var(--shadow); }
.notice-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--amber); font-size: 24px; font-weight: 900; }
.notice h2 { margin: 0 0 4px; font-size: 18px; }
.notice p { margin: 0; }

.chapter { padding: 92px 0 26px; scroll-margin-top: 20px; }
.chapter-heading { margin-bottom: 34px; display: flex; align-items: center; gap: 20px; }
.chapter-number { min-width: 82px; color: var(--green); font: 800 44px/1 Georgia, serif; }
.chapter-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.3; letter-spacing: -.025em; }
.chapter-kicker { margin: 0 0 4px; }

.step-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step-card, .instruction { display: grid; grid-template-columns: 48px 1fr; gap: 17px; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.step-card.wide { margin-top: 26px; }
.step-num, .instruction-num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--green); font-weight: 900; }
.step-card h3, .instruction h3 { margin: 1px 0 7px; font-size: 19px; }
.step-card p, .instruction p { margin: 0; color: var(--muted); }
.small-note { margin-top: 10px !important; color: var(--green-dark) !important; font-size: 13px; font-weight: 800; }

.shot-placeholder { margin: 24px 0 0; border: 1px solid #bed0c6; border-radius: 17px; overflow: hidden; background: var(--paper); }
.shot-stage { min-height: 310px; padding: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; background-color: #eef4f0; background-image: linear-gradient(#dce8e1 1px, transparent 1px), linear-gradient(90deg, #dce8e1 1px, transparent 1px); background-size: 22px 22px; }
.shot-stage::before { content: ""; width: 54px; height: 40px; margin-bottom: 9px; border: 3px solid #7d9789; border-radius: 6px; background: radial-gradient(circle at 70% 28%, #7d9789 0 4px, transparent 5px), linear-gradient(145deg, transparent 48%, #7d9789 49% 55%, transparent 56%); opacity: .72; }
.shot-stage strong { font-size: 19px; }
.shot-stage > span:last-child { color: #70847a; font-size: 13px; font-weight: 700; }
.shot-number { padding: 4px 9px; border-radius: 5px; color: var(--green-dark); background: white; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.shot-placeholder figcaption { padding: 14px 18px; border-top: 1px solid #d6e1db; }
details summary { color: var(--green-dark); cursor: pointer; font-size: 13px; font-weight: 900; }
details p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.shots-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.compact .shot-stage { min-height: 245px; }
.landscape .shot-stage { min-height: 380px; }

.instruction { max-width: 780px; margin-bottom: 24px; background: var(--green-pale); border-color: #bee0cf; }
.play-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; padding: 2px; border-radius: 18px; overflow: hidden; background: var(--ink); }
.play-choice article { padding: 28px; background: var(--paper); }
.play-choice span { color: var(--muted); font-size: 12px; font-weight: 800; }
.play-choice h3 { margin: 5px 0; color: var(--green-dark); font-size: 25px; }
.play-choice p { margin: 0; color: var(--muted); }

.fix-list { margin-top: 34px; border-top: 2px solid var(--ink); }
.fix-list article { padding: 23px 4px; display: grid; grid-template-columns: 190px 1fr 1.3fr; align-items: start; gap: 24px; border-bottom: 1px solid var(--line); }
.fix-label { color: var(--green-dark); font-size: 13px; font-weight: 900; }
.fix-list h3, .fix-list p { margin: 0; }
.fix-list h3 { font-size: 17px; line-height: 1.6; }
.fix-list p { color: var(--muted); font-size: 14px; }
.repeat-note { margin: 30px 0 0; padding-left: 16px; border-left: 4px solid var(--green); font-weight: 800; }

.export-flow { padding: 30px; display: flex; align-items: center; justify-content: center; gap: 28px; border-radius: 18px; background: var(--ink); color: white; }
.export-flow div { display: flex; align-items: center; gap: 12px; }
.export-flow span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #8fa198; border-radius: 50%; color: #9ef1c9; font-weight: 900; }
.export-flow p { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.5; }
.export-flow i { color: #91a69a; font-style: normal; }
.save-work { margin-top: 20px; padding: 19px 22px; display: flex; align-items: center; gap: 15px; border-radius: 15px; background: var(--green-pale); }
.save-work span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 21px; }
.save-work p { margin: 0; }
.after-note { margin-top: 36px; padding: 28px 30px; border-left: 5px solid var(--green); background: var(--paper); }
.after-note h3 { margin: 0 0 5px; }
.after-note p { margin: 0; color: var(--muted); }

.finish { margin: 88px 0 70px; padding: 54px 28px; border-radius: 24px; text-align: center; color: white; background: var(--green-dark); }
.finish span { width: 48px; height: 48px; margin: 0 auto 16px; display: grid; place-items: center; border: 2px solid #8de2b8; border-radius: 50%; font-size: 26px; }
.finish h2 { margin: 0; font-size: clamp(25px, 4vw, 38px); }
.finish p { margin: 8px 0 0; color: #c8ead9; }

footer { padding: 26px max(20px, calc((100vw - 1040px) / 2)); display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); background: var(--paper); font-size: 13px; }
footer p { margin: 0; }
footer a { color: var(--green-dark); font-weight: 900; }

@media (max-width: 720px) {
  main { width: min(100% - 28px, 600px); }
  .hero { padding: 58px 0 42px; }
  .notice { grid-template-columns: 38px 1fr; padding: 20px 17px; gap: 12px; }
  .notice-icon { width: 34px; height: 34px; font-size: 19px; }
  .chapter { padding-top: 68px; }
  .chapter-heading { align-items: flex-start; gap: 12px; }
  .chapter-number { min-width: 53px; font-size: 33px; }
  .step-grid, .shots-two, .play-choice { grid-template-columns: 1fr; }
  .shot-stage, .landscape .shot-stage { min-height: 230px; padding: 25px 18px; }
  .fix-list article { grid-template-columns: 1fr; gap: 5px; }
  .export-flow { align-items: stretch; flex-direction: column; gap: 10px; }
  .export-flow i { padding-left: 10px; transform: rotate(90deg); align-self: flex-start; }
  footer { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
