:root {
  --ink: #10233d;
  --muted: #52657a;
  --line: #d8e0e7;
  --paper: #f7f5ef;
  --white: #ffffff;
  --navy: #082847;
  --blue: #146aa8;
  --blue-pale: #e7f2f9;
  --green: #1e765d;
  --green-pale: #e8f3ed;
  --orange: #c95d14;
  --orange-pale: #fff0df;
  --focus: #f0b429;
  --max: 1120px;
  --reading: 780px;
  font-family: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); font-size: 17px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.site-header { background: var(--white); border-bottom: 4px solid var(--navy); }
.site-header__inner, .container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: grid; gap: 2px; text-decoration: none; line-height: 1.25; }
.brand small { color: var(--muted); font-size: 13px; font-weight: 700; }
.brand strong { color: var(--navy); font-size: 22px; letter-spacing: .03em; }
.header-link { color: var(--navy); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.hero { background: var(--navy); color: var(--white); padding: 72px 0 64px; }
.hero--manufacturing { --accent: var(--blue); --accent-pale: var(--blue-pale); }
.hero--wholesale { --accent: var(--green); --accent-pale: var(--green-pale); }
.eyebrow { margin: 0 0 12px; color: var(--accent, var(--orange)); font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.hero .eyebrow { color: #ffcf91; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 18em; margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.35; letter-spacing: .025em; }
.hero__lead { max-width: 42em; margin: 22px 0 0; font-size: 18px; }
.hero__notice { max-width: 58em; margin: 26px 0 0; padding: 14px 16px; border: 1px solid #5e738c; color: #e7edf2; font-size: 14px; }
.jump { display: inline-flex; align-items: center; min-height: 48px; margin-top: 28px; padding: 10px 20px; border: 2px solid #fff; color: #fff; font-weight: 800; text-decoration: none; }
.jump:hover { background: #fff; color: var(--navy); }

.industry-switch { background: var(--white); border-bottom: 1px solid var(--line); }
.industry-switch__inner { width: min(calc(100% - 40px), var(--max)); margin: auto; display: flex; flex-wrap: wrap; gap: 0; }
.industry-switch a { padding: 13px 18px; font-weight: 800; text-decoration: none; border-left: 1px solid var(--line); }
.industry-switch a[aria-current="page"] { color: var(--white); background: var(--accent, var(--navy)); }
.industry-switch a:hover { background: var(--paper); }

.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section--ink { background: #edf1f4; }
.section h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.45; }
.section__lead { max-width: var(--reading); margin: 18px 0 0; }
.boundary { max-width: var(--reading); margin: 30px 0 0; padding: 18px 22px; border: 1px solid #e0b17e; background: var(--orange-pale); }
.boundary h3 { margin: 0 0 6px; font-size: 18px; color: #85400f; }
.boundary p { margin: 0; font-size: 15px; }

.contents { padding: 32px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.contents h2 { margin: 0 0 14px; font-size: 19px; }
.contents ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.contents a { display: block; min-height: 52px; padding: 9px 10px; border: 1px solid var(--line); background: #fbfcfd; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.35; }
.contents a:hover { border-color: var(--accent); background: var(--accent-pale); }

.theme-list { display: grid; gap: 42px; margin-top: 36px; }
.theme { scroll-margin-top: 24px; padding: 0; border-top: 7px solid var(--accent); background: var(--white); box-shadow: 0 2px 0 rgba(16, 35, 61, .09); }
.theme__heading { padding: 26px 30px 22px; background: var(--accent-pale); }
.theme__number { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 31px; padding: 2px 9px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .08em; }
.theme h3 { margin: 14px 0 0; font-size: clamp(22px, 2.7vw, 30px); line-height: 1.45; }
.theme__body { padding: 30px; }
.theme__image { margin: 0 0 30px; background: #eaf0f3; border: 1px solid var(--line); }
.theme__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.theme__image figcaption { padding: 10px 14px; color: var(--muted); font-size: 13px; }
.vertical-flow { display: grid; gap: 0; max-width: var(--reading); }
.flow-step { position: relative; padding: 0 0 32px 56px; }
.flow-step:not(:last-child)::before { content: ""; position: absolute; top: 38px; bottom: 8px; left: 18px; width: 2px; background: var(--accent); }
.flow-step::after { content: ""; position: absolute; top: 9px; left: 9px; width: 20px; height: 20px; border: 6px solid var(--accent); border-radius: 50%; background: var(--white); }
.flow-step h4 { margin: 0 0 7px; font-size: 20px; line-height: 1.45; }
.flow-step p { margin: 0; }
.speech { position: relative; margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line); background: #fbfcfc; font-size: 16px; }
.speech::before { content: ""; position: absolute; top: -9px; left: 24px; width: 16px; height: 16px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fbfcfc; transform: rotate(45deg); }
.calculation { max-width: var(--reading); margin-top: 0; padding: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calculation h4 { margin: 0 0 12px; font-size: 19px; }
.formula { margin: 0; color: var(--navy); font-family: "BIZ UDPGothic", monospace; font-weight: 800; line-height: 1.7; }
.money { margin: 18px 0 0; color: var(--orange); font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.4; }
.money small { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.inventory-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: var(--reading); margin: 20px 0; }
.inventory-split div { padding: 16px; border: 1px solid var(--line); background: #fbfcfc; }
.inventory-split strong { display: block; color: var(--orange); font-size: 27px; line-height: 1.4; }
.inventory-split p { margin: 5px 0 0; font-size: 14px; }
.caveat { max-width: var(--reading); margin: 20px 0 0; color: var(--muted); font-size: 14px; }

.closing { background: var(--navy); color: var(--white); }
.closing .container { max-width: var(--reading); }
.closing h2 { font-size: clamp(25px, 3vw, 34px); }
.closing p { color: #dce7ef; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 14px; padding: 12px 24px; background: #f0a345; color: #142b40; font-weight: 900; text-decoration: none; }
.button:hover { background: #ffbe68; }
.site-footer { padding: 32px 0; background: #061c31; color: #dce7ef; font-size: 14px; }
.site-footer p { margin: 0; }

@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-header__inner { min-height: 72px; gap: 12px; }
  .brand strong { font-size: 17px; }
  .header-link { font-size: 14px; }
  .hero { padding: 52px 0 46px; }
  .section { padding: 54px 0; }
  .contents ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme__heading, .theme__body { padding: 23px 20px; }
  .theme-list { gap: 32px; }
}
@media (max-width: 420px) {
  .site-header__inner, .container, .industry-switch__inner { width: min(calc(100% - 28px), var(--max)); }
  .site-header__inner { align-items: flex-start; padding: 15px 0; }
  .brand small { font-size: 11px; }
  .contents ol { grid-template-columns: 1fr; }
  .industry-switch a { flex: 1 1 100%; border-left: 0; border-bottom: 1px solid var(--line); }
  .flow-step { padding-left: 45px; }
  .flow-step:not(:last-child)::before { left: 14px; }
  .flow-step::after { left: 5px; }
  .inventory-split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 業種別LPの導入：1場面の漫画を先に見せ、本文は縦読みへつなぐ。 */
.hero { background: var(--accent-pale); color: var(--navy); padding: 32px 0; }
.hero .eyebrow { color: var(--accent); margin-bottom: 8px; }
.hero h1 { max-width: none; font-size: clamp(30px, 3.3vw, 42px); }
.hero__layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .7fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero__lead { max-width: 34em; margin: 12px 0 0; font-size: 17px; }
.hero__comic { width: 100%; max-width: 460px; margin: 0; border: 1px solid #b8c8d4; background: #fff; box-shadow: 5px 5px 0 rgba(16,35,61,.13); }
.hero__comic .comic-scene { aspect-ratio: 3 / 2; }
.jump { margin-top: 18px; border-color: var(--navy); color: var(--navy); background: #fff; }
.jump:hover { background: var(--navy); color: #fff; }
@media (max-width: 768px) { .hero { padding: 24px 0 26px; } .hero__layout { grid-template-columns: 1fr; gap: 16px; } .hero__lead { margin-top: 8px; } .hero__comic { max-width: 330px; } .jump { min-height: 44px; margin-top: 12px; } }

.header-link { display:inline-flex; align-items:center; min-height:44px; }
.brand { min-height: 44px; }

/* 各テーマを上から下へ追う3コマとして表示する。 */
.vertical-flow { display:grid; gap:18px; max-width:var(--reading); }
.flow-step { position:relative; padding:24px 20px; border:1px solid var(--line); }
.flow-step::after, .flow-step::before { content:none; }
.flow-step:not(:last-child)::after { content:"↓"; position:absolute; z-index:2; left:50%; bottom:-31px; display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--accent); border-radius:50%; background:#fff; color:var(--accent); font-size:17px; font-weight:900; transform:translateX(-50%); }
.flow-step h4 { margin-top:28px; } .flow-step h4::before { position:absolute; top:0; left:0; display:inline-flex; align-items:center; min-height:26px; padding:2px 12px; color:#fff; font-size:13px; font-weight:900; letter-spacing:.05em; }
.flow-step--problem { background:#fff; } .flow-step--problem h4::before { content:"1 困りごと"; background:var(--navy); }
.flow-step--solution { background:var(--accent-pale); border-color:var(--accent); } .flow-step--solution h4::before { content:"2 改善策"; background:var(--accent); }
.flow-step--effect { background:var(--orange-pale); border-color:#e2ae7b; } .flow-step--effect h4::before { content:"3 初年度の効果"; background:var(--orange); }
.flow-step .theme__image { margin:20px 0 0; background:#fff; } .flow-step--effect .calculation { max-width:none; margin:20px 0 0; padding:18px; border:1px solid #e2ae7b; background:#fffaf4; } .flow-step--effect .calculation h4 { margin:0 0 12px; }
.inventory-split { gap:14px; } .inventory-split div { padding:16px; } .inventory-split div:first-child { border-color:#7ca8c4; background:#eef6fa; } .inventory-split div:last-child { border-color:#e2ae7b; background:var(--orange-pale); } .inventory-split span { display:block; margin-bottom:6px; font-size:14px; font-weight:800; line-height:1.45; } .inventory-split div:first-child span, .inventory-split div:first-child strong { color:var(--blue); } .inventory-split div:last-child span, .inventory-split div:last-child strong { color:var(--orange); }
.compact-assumptions { padding:14px 0 0; background:#fff; } .compact-assumptions p { margin:0; font-size:14px; color:var(--muted); } .compact-assumptions details { max-width:var(--reading); margin-top:8px; } .compact-assumptions summary { min-height:44px; display:flex; align-items:center; color:var(--navy); font-weight:800; cursor:pointer; } .compact-assumptions details p { padding:0 0 12px; }
.skip-link { top:-64px; transform:none; } .skip-link:focus { top:8px; transform:none; } @media (max-width:420px) { .flow-step { padding:22px 15px; } }

/* 3コマの帯はHTML要素で固定し、コマ間の矢印と独立させる。 */
.vertical-flow { gap:42px; }
.flow-step h4::before { content:none !important; }
.frame-label { position:absolute; top:0; left:0; display:inline-flex; align-items:center; min-height:26px; padding:2px 12px; color:#fff; font-size:13px; font-weight:900; letter-spacing:.05em; line-height:1.35; }
.flow-step--problem .frame-label { background:var(--navy); }
.flow-step--solution .frame-label { background:var(--accent); }
.flow-step--effect .frame-label { background:var(--orange); }
.flow-step:not(:last-child)::after { bottom:-34px; width:24px; height:24px; }
.comic-scene { overflow:hidden; background-size:215% 215%; }

body.industry-manufacturing { --accent:var(--blue); --accent-pale:var(--blue-pale); }
body.industry-wholesale { --accent:var(--green); --accent-pale:var(--green-pale); }

/* 左のコマ枠線と、見出し・本文・吹き出し・挿絵の間隔を保つ。 */
.flow-step { padding-inline-start: 44px; }
@media (max-width: 420px) { .flow-step { padding-inline-start: 32px; } }
