/* ==========================================================================
   manga.css — 2026-11-13 ZEUS の機能を紹介する漫画
   中くらいの案内ページ(order / labor / inbound / staff-call)には漫画と「解説を見る」ボタン、
   詳しい説明のページ(yakiniku / feature-kitchen / feature-order / feature-hr / feature-customer)には
   漫画と、その場面を実際の画面で解説する段を置く。
   クラスは全部 mg- で始める(style.css・v2.css とぶつからないように)。
   漫画の画像は assets/img/manga-20261113/。HTML は docs/manga-20261113/build-manga.py が差し込む
   ========================================================================== */

.mg-mid,
.mg-detail {
  --mg-navy: #0b1f33;
  --mg-cyan: #2fd2ff;
  --mg-cyan-ink: #0a86ad;
  --mg-cyan-soft: #e4f7fd;
  --mg-orange: #f0801e;
  --mg-orange-ink: #c2610b;
  --mg-ink: #15212c;
  --mg-text: #2b3a47;
  --mg-muted: #5c6b78;
  --mg-line: #d9e0e6;
  --mg-soft: #f3f6f8;
  --mg-cream: #f7f3ec;
}

.mg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- 漫画1枚 ---- */
.mg-comic { margin: 0 auto; max-width: 600px; }
.mg-comic > a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mg-line, #d9e0e6);
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 31, 51, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mg-comic > a:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(11, 31, 51, 0.18); }
.mg-comic > a:focus-visible { outline: 3px solid var(--mg-cyan-ink, #0a86ad); outline-offset: 4px; }
.mg-comic img { display: block; width: 100%; height: auto; }
.mg-comic figcaption { margin-top: 10px; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--mg-muted, #5c6b78); }

/* ---- 中くらいの案内ページ ---- */
.mg-mid { padding: 56px 0 72px; background: linear-gradient(180deg, #fff 0, var(--mg-soft) 100%); border-bottom: 1px solid var(--mg-line); }
.mg-mid.is-in { padding: 0; margin-top: 64px; background: none; border: 0; }   /* 話題の段の中(説明のあと)に置くとき */
.mg-label {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.mg-label span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--mg-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.mg-next { display: flex; justify-content: center; margin-top: 28px; }
.mg-next .v2-btn { text-align: center; }
.mg-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 36px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.mg-pair .mg-comic { max-width: none; }
@media (max-width: 760px) {
  .mg-pair { grid-template-columns: 1fr; gap: 56px; }
  .mg-pair .mg-comic { max-width: 600px; }
}
@media (max-width: 560px) {
  .mg-mid { padding: 40px 0 56px; }
  .mg-mid.is-in { margin-top: 48px; }
  /* 漫画は字が多いので、スマホでは左右の余白まで広げる */
  .mg-comic { margin-left: -12px; margin-right: -12px; }
  .mg-comic > a { border-radius: 8px; }
}

/* ---- 詳しい説明のページ: 漫画と、場面ごとの解説 ---- */
.mg-detail {
  padding: 80px 0 88px;
  background: linear-gradient(180deg, var(--mg-cream) 0, #fff 560px);
  color: var(--mg-ink);
  border-top: 1px solid var(--mg-line);
}
.mg-detail + .mg-detail { background: linear-gradient(180deg, var(--mg-soft) 0, #fff 560px); }
.mg-head { max-width: 780px; margin: 0 auto 34px; text-align: center; }
.mg-eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--mg-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.mg-head h2 {
  margin: 16px 0 0;
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--mg-navy);
  letter-spacing: 0.01em;
}
.mg-head h2 small { display: block; margin-top: 8px; font-size: clamp(15px, 1.6vw, 18px); font-weight: 800; color: var(--mg-cyan-ink); letter-spacing: 0.04em; }
.mg-head p { margin: 16px auto 0; font-size: 16px; line-height: 1.95; color: var(--mg-text); }
.mg-plan {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mg-cyan-soft);
  color: var(--mg-cyan-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}
.mg-detail .mg-comic { max-width: 560px; }

/* 案内ページに足した話題の段(漫画が主役の段) */
.mg-topic-head { max-width: 760px; }
.mg-topic-head .v2-btns { margin-top: 24px; }

.mg-steps-title {
  margin: 72px auto 0;
  max-width: 780px;
  text-align: center;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 900;
  line-height: 1.5;
  color: var(--mg-navy);
}
.mg-steps-lead { max-width: 780px; margin: 10px auto 0; text-align: center; font-size: 14.5px; line-height: 1.85; color: var(--mg-muted); }

.mg-steps {
  list-style: none;
  margin: 30px auto 0;
  padding: 0;
  max-width: 1060px;
  display: grid;
  gap: 22px;
  counter-reset: mg-step;
}
.mg-step {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--mg-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(11, 31, 51, 0.06);
}
.mg-step.is-text { grid-template-columns: 1fr; }
.mg-step.is-before { background: var(--mg-cream); border-color: #e8dfd0; box-shadow: none; }
.mg-step-media { margin: 0; min-width: 0; }
.mg-step-media > a,
.mg-step-media > .mg-shot {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--mg-line);
  background: var(--mg-soft);
}
.mg-step-media img { display: block; width: 100%; height: auto; }
.mg-step-media.is-phone > a,
.mg-step-media.is-phone > .mg-shot { max-width: 250px; margin: 0 auto; border-radius: 18px; }
.mg-step-media.is-illust > .mg-shot { display: flex; align-items: center; justify-content: center; padding: 26px; background: linear-gradient(160deg, #eef8fc, #fff); }
.mg-step-media.is-illust svg { width: 150px; height: auto; }
.mg-step-media figcaption { margin-top: 9px; font-size: 12.5px; line-height: 1.65; color: var(--mg-muted); }
.mg-step-media.is-phone figcaption { text-align: center; }
.mg-step-text { min-width: 0; }
.mg-step-scene {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--mg-cyan-ink);
  letter-spacing: 0.04em;
}
.mg-step-scene::before {
  counter-increment: mg-step;
  content: counter(mg-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mg-cyan);
  color: var(--mg-navy);
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}
.mg-step.is-before .mg-step-scene { color: #9a5a17; }
.mg-step.is-before .mg-step-scene::before { content: "!"; counter-increment: none; background: #f2c58f; }
.mg-step h3 {
  margin: 10px 0 0;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 900;
  line-height: 1.5;
  color: var(--mg-navy);
}
.mg-step p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.9; color: var(--mg-text); }
.mg-step p b { color: var(--mg-navy); }
.mg-step ul { margin: 12px 0 0; padding: 0; list-style: none; }
.mg-step li { position: relative; margin-top: 6px; padding-left: 20px; font-size: 14.5px; line-height: 1.75; color: var(--mg-text); }
.mg-step li::before { content: ""; position: absolute; left: 4px; top: 0.66em; width: 8px; height: 8px; border-radius: 50%; background: var(--mg-cyan); }
.mg-step.is-before li::before { background: #e3a35d; }
.mg-step .mg-note { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--mg-soft); font-size: 13px; line-height: 1.75; color: var(--mg-muted); }
.mg-step .mg-calc {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--mg-cyan-soft);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
  color: var(--mg-navy);
  font-variant-numeric: tabular-nums;
}
.mg-more { display: inline-block; margin-top: 14px; font-size: 14.5px; font-weight: 800; color: var(--mg-cyan-ink); text-decoration: underline; text-underline-offset: 3px; }
.mg-more::after { content: " →"; }
.mg-more:hover { color: var(--mg-navy); }

.mg-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid var(--mg-navy);
  background: var(--mg-navy);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.mg-btn::after { content: "→"; }
.mg-btn:hover { background: #14365a; color: #fff; }
.mg-btn.is-line { background: transparent; color: var(--mg-navy); }
.mg-btn.is-line:hover { background: var(--mg-navy); color: #fff; }
.mg-btn.is-accent { background: var(--mg-orange); border-color: var(--mg-orange); box-shadow: 0 4px 0 var(--mg-orange-ink); }
.mg-btn.is-accent:hover { background: var(--mg-orange); transform: translateY(2px); box-shadow: 0 2px 0 var(--mg-orange-ink); }
.mg-btn:focus-visible, .mg-more:focus-visible { outline: 3px solid var(--mg-cyan-ink); outline-offset: 3px; }

@media (max-width: 820px) {
  .mg-detail { padding: 60px 0 68px; }
  .mg-step { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .mg-steps-title { margin-top: 56px; }
}
@media (max-width: 560px) {
  .mg-head p { font-size: 15px; text-align: left; }
  .mg-step p { font-size: 15px; }
  .mg-btn { width: 100%; }
}
