/* Misé 事業計画 やさしい版 — 手づくりの説明冊子スタイル */

:root {
  --paper: #FBF7EF;
  --paper-2: #F4ECDD;
  --paper-3: #EFE4CF;
  --ink: #2C2620;
  --ink-soft: #6B6052;
  --ink-faint: #968a78;
  --coral: #E2613C;
  --coral-soft: #f0a085;
  --coral-wash: #fae4da;
  --green: #2F7D5B;
  --green-soft: #7bb398;
  --green-wash: #dcebe2;
  --line: #e3d8c2;
  --line-strong: #d0c2a4;
  --shadow: 0 8px 30px rgba(64, 48, 28, 0.10);
  --shadow-soft: 0 3px 14px rgba(64, 48, 28, 0.07);
  --radius: 20px;
  --radius-sm: 13px;
  --font: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(226, 97, 60, 0.05), transparent 38%),
    radial-gradient(circle at 86% 78%, rgba(47, 125, 91, 0.05), transparent 42%);
  line-height: 1.95;
  font-size: 17px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--coral); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- progress bar ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--green));
  z-index: 120;
  transition: width 0.12s linear;
}

/* ---------- top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}
.brand small {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 9px;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a:focus-visible { background: var(--coral-wash); color: var(--coral); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 9px 13px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  gap: 7px;
  align-items: center;
}
.nav-toggle .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.nav-toggle .bars span {
  width: 17px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- layout ---------- */
main { display: block; }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 76px 22px;
  border-bottom: 1px dashed var(--line);
}
.section:last-of-type { border-bottom: none; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  background: var(--coral-wash);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.kicker .num {
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

h1, h2, h3 { line-height: 1.42; font-weight: 800; letter-spacing: 0.01em; }
h2.section-title {
  font-size: clamp(25px, 4.4vw, 38px);
  margin: 0 0 8px;
}
h3 { font-size: clamp(19px, 2.6vw, 23px); margin: 34px 0 12px; }

.lead {
  font-size: clamp(17px, 2.1vw, 19px);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 6px 0 28px;
}

p { margin: 0 0 16px; max-width: 64ch; }

.takeaway {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--green-wash);
  border-left: 6px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 15px 19px;
  margin: 22px 0;
  font-weight: 700;
  color: #245f44;
  line-height: 1.7;
}
.takeaway::before {
  content: "つまり";
  flex: 0 0 auto;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  margin-top: 3px;
}

.note {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--paper-3);
  color: var(--ink-soft);
  margin-left: 4px;
  vertical-align: middle;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 22px 40px;
}
.hero-cover {
  background: linear-gradient(155deg, var(--paper-2), var(--paper));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.hero-cover::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral-wash), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 5.6vw, 52px);
  margin: 14px 0 18px;
}
.hero h1 .hl {
  color: var(--coral);
  position: relative;
  white-space: nowrap;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft);
  margin-bottom: 26px;
  line-height: 1.85;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 13px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.stat .big {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--coral);
  line-height: 1.2;
  display: block;
}
.stat .lbl {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.55;
  margin-top: 5px;
  display: block;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- cards / generic ---------- */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.cols-2 > * { min-width: 0; }
.cols-2.tight { gap: 18px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
  box-shadow: var(--shadow-soft);
}
.card.cream { background: var(--paper-2); }

/* before / after */
.ba-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ba-wrap > * { min-width: 0; }
.ba {
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid var(--line);
}
.ba.before { background: #fbf0ec; border-color: var(--coral-soft); }
.ba.after { background: var(--green-wash); border-color: var(--green-soft); }
.ba .lbl {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ba.before .lbl { background: var(--coral); color: #fff; }
.ba.after .lbl { background: var(--green); color: #fff; }
.ba p { margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); }
.ba svg { display: block; width: 100%; height: auto; }

/* figure / svg holder */
.figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  overflow: visible;
}
.figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.figure .cap {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

/* ---------- tables ---------- */
.table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
  background: #fff;
}
table.t th, table.t td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.t thead th {
  background: var(--paper-3);
  font-weight: 800;
  color: var(--ink);
  position: sticky;
  top: 0;
}
table.t tbody tr:nth-child(even) td { background: var(--paper); }
table.t .hi { color: var(--coral); font-weight: 800; }
table.t .mise td { background: var(--coral-wash) !important; }
table.t .mise td:first-child { font-weight: 800; color: var(--coral); }

/* ---------- list ---------- */
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px dashed var(--line);
  max-width: 64ch;
}
.plain-list li:last-child { border-bottom: none; }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 18px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--coral);
}
.plain-list.green li::before { background: var(--green); }

.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.numbered > li {
  counter-increment: n;
  position: relative;
  padding: 14px 0 14px 50px;
  border-bottom: 1px dashed var(--line);
  max-width: 66ch;
}
.numbered > li:last-child { border-bottom: none; }
.numbered > li::before {
  content: counter(n);
  position: absolute;
  left: 0; top: 14px;
  width: 32px; height: 32px;
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.numbered .mini-take {
  display: block;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  margin-top: 6px;
}

/* ---------- swot quadrants ---------- */
.quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quad .q {
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 2px solid;
}
.quad .q h4 { margin: 0 0 10px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.quad .q ul { margin: 0; padding-left: 18px; font-size: 14px; }
.quad .q li { margin-bottom: 7px; }
.q.s { background: var(--green-wash); border-color: var(--green-soft); }
.q.s h4 { color: var(--green); }
.q.w { background: #fdf3ea; border-color: #e9c89e; }
.q.w h4 { color: #b06a1e; }
.q.o { background: var(--coral-wash); border-color: var(--coral-soft); }
.q.o h4 { color: var(--coral); }
.q.r { background: #f6eef0; border-color: #d8a6b0; }
.q.r h4 { color: #a84a5c; }

/* ---------- metric chips ---------- */
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 20px 0;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.metric .v { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; color: var(--green); display: block; }
.metric .k { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; margin-top: 5px; display: block; }

/* ---------- heatmap ---------- */
.heat { display: grid; gap: 5px; font-size: 12px; }
.heat .cell {
  border-radius: 9px;
  padding: 10px 8px;
  text-align: center;
  font-weight: 700;
  color: #fff;
}

/* ---------- simulator ---------- */
.sim {
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.controls .ctrl { margin-bottom: 18px; }
.controls label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 7px;
}
.controls label .out {
  color: var(--coral);
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 7px;
  border-radius: 7px;
  background: var(--line-strong);
  outline-offset: 3px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid #fff;
  cursor: pointer;
}
input[type="range"]:focus-visible { box-shadow: 0 0 0 3px var(--coral-wash); }

.sim-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sim-out .o {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.sim-out .o .k { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.sim-out .o .v { font-size: clamp(19px, 3vw, 24px); font-weight: 800; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.sim-out .o.good .v { color: var(--green); }
.sim-out .o.bad .v { color: var(--coral); }
.sim-reset {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 9px 16px;
  font-family: var(--font);
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.sim-reset:hover { background: var(--paper-3); }

/* ---------- toggle buttons ---------- */
.toggle {
  display: inline-flex;
  background: var(--paper-3);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
}
.toggle button {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.toggle button[aria-pressed="true"] {
  background: var(--coral);
  color: #fff;
}

/* ---------- donut legend ---------- */
.legend { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.legend .sw { width: 15px; height: 15px; border-radius: 4px; flex: 0 0 auto; }

/* ---------- closing ---------- */
.closing {
  background: linear-gradient(160deg, var(--ink), #3c342a);
  color: var(--paper);
  border-radius: 28px;
  padding: clamp(30px, 5vw, 54px);
  text-align: center;
  margin-top: 18px;
}
.closing h2 { color: #fff; font-size: clamp(24px, 4vw, 36px); }
.closing .big-line {
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 800;
  color: var(--coral-soft);
  line-height: 1.7;
  margin: 18px auto 8px;
  max-width: 24ch;
}
.steps-road { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 26px auto 0; text-align: left; }
.steps-road .step {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.steps-road .step .n {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.steps-road .step span.tx { font-size: 15px; line-height: 1.7; }

footer.foot {
  text-align: center;
  padding: 40px 20px 60px;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- svg illustration animations ---------- */
@keyframes spin360 { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes drip { 0% { stroke-dashoffset: 0; opacity: 1; } 50% { opacity: 0.3; } 100% { stroke-dashoffset: -28; opacity: 1; } }
@keyframes waterDrop { 0% { transform: translateY(0); } 100% { transform: translateY(46px); } }
@keyframes pulseDot { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.wheelSpin { animation: spin360 26s linear infinite; }
.loopSpin { animation: spin360 5s linear infinite; }
.bkLeak line { stroke-dasharray: 6 6; animation: drip 0.9s linear infinite; }
.bkWater { animation: waterDrop 2.6s ease-in infinite alternate; }
.mapMise { transform-origin: 290px 62px; animation: pulseDot 2.4s ease-in-out infinite; }
.heroArrow path { stroke-dasharray: 6 8; animation: drip 1.2s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .wheelSpin, .loopSpin, .bkLeak line, .bkWater, .mapMise, .heroArrow path { animation: none; }
}

/* ---------- noscript ---------- */
.noscript {
  background: var(--coral-wash);
  border: 1px solid var(--coral-soft);
  color: #8a3a20;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  max-width: var(--maxw);
  margin: 14px auto;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .cols-2 { grid-template-columns: 1fr; }
  .sim-grid { grid-template-columns: 1fr; gap: 22px; }
  .quad { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.85; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 14px 16px;
    margin: 0;
    gap: 1px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 10px; font-size: 15px; border-bottom: 1px dashed var(--line); }
  .nav-toggle { display: inline-flex; }
  .stat-row { grid-template-columns: 1fr; }
  .ba-wrap { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .sim-out { grid-template-columns: 1fr; }
  .section { padding: 54px 18px; }
  .hero { padding: 34px 18px 24px; }
}

@media (max-width: 420px) {
  .section { padding: 46px 15px; }
  .hero-cover { padding: 22px; }
  .card, .figure, .sim { padding: 17px; }
}
