/* ===================================================
   稲咲堂 — 共通CSS（深緑×若竹 Bento + v4図解）
   =================================================== */

/* --- 日本語改行ルール --- */
body { margin: 0; word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p, li, b, span, summary { text-wrap: pretty; }

/* --- CSS変数：ルート（v4ページ用デフォルト） --- */
:root {
  --bg: #0e160f;
  --cell: #172318;
  --cell2: #1f2e20;
  --ink: #eef3e6;
  --sub: #a9b8a2;
  --line: #2a3b2b;
  --gold: #b8d46a;
  --on: #0e160f;
}

/* --- CSS変数：暗い面（基本） --- */
.pg {
  --bg: #0e160f;
  --cell: #172318;
  --cell2: #1f2e20;
  --ink: #eef3e6;
  --sub: #a9b8a2;
  --line: #2a3b2b;
  --gold: #b8d46a;
  --on: #0e160f;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans CJK JP', sans-serif;
  color: var(--ink);
  background: var(--bg);
  width: 100%;
  overflow-x: clip;
}

/* --- CSS変数：明るい帯 --- */
.light {
  --bg: #eef2e4;
  --cell: #ffffff;
  --cell2: #f4f7ee;
  --ink: #17231a;
  --sub: #4f5d48;
  --line: #d6dfc9;
  --gold: #3f6b22;
  --on: #ffffff;
  background: var(--bg);
  color: var(--ink);
}

/* --- リセット --- */
.pg a { color: inherit; }
.pg h1, .pg h2, .pg h3 { margin: 0; word-break: keep-all; overflow-wrap: break-word; line-break: strict; }
.pg p, .pg ul { margin: 0; line-break: strict; }
.pg ul { padding: 0; list-style: none; }

/* --- レイアウト --- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.s2 { grid-column: span 2; }
.s3 { grid-column: span 3; }
.s4 { grid-column: 1 / -1; }
.r2 { grid-row: span 2; }

/* --- 書体 --- */
.ant { font-family: 'Shippori Antique B1', 'Noto Serif CJK JP', serif; font-weight: 400; }
.inter { font-family: Inter, sans-serif; font-weight: 900; letter-spacing: -.03em; }
.lab { font-family: Inter, sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .16em; color: var(--sub); }

/* --- 見出しサイズ --- */
.h1 { font-size: 48px; line-height: 1.4; }
.h2 { font-size: 38px; line-height: 1.4; }

/* --- カード --- */
.c {
  background: var(--cell);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color .4s, transform .5s cubic-bezier(.2, .7, .2, 1);
}
a.c:hover { border-color: var(--gold); transform: translateY(-3px); }
.c-gold { background: var(--gold); color: var(--on); border-color: var(--gold); }
.pg a.c-gold { color: var(--on); }
.c-gold .lab { color: var(--on); opacity: .72; }
.c img.ph { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.c:hover img.ph { transform: scale(1.04); }

/* カード：透明見出し */
.t { background: transparent; border: none; padding: 44px 8px 8px; }

/* --- 画像注記 --- */
.imgnote {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  padding: 3px 9px;
  border-radius: 999px;
}

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  padding: 18px 30px;
  border-radius: 999px;
  transition: transform .3s, box-shadow .3s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--gold) 35%, transparent);
}
.b-acc { background: var(--gold); color: var(--on) !important; }
.b-line { border: 1px solid var(--line); }

/* --- 矢印リンク --- */
.go {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
}
.go i {
  font-style: normal;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cell2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s, transform .4s;
}
a.c:hover .go i { background: var(--gold); color: var(--on); transform: rotate(-45deg); }

/* --- リスト項目 --- */
.li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.75;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.li:last-child { border-bottom: none; }
.li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: .65em;
}

/* --- FAQ --- */
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--gold); }
.faq[open] summary::after { content: "－"; }
.faq p { margin-top: 12px; font-size: 14.5px; line-height: 1.9; color: var(--sub); }

/* --- ヘッダー --- */
.hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}
.hd-logo { text-decoration: none; }
.hd-logo img { height: 48px; width: auto; }
.navp {
  display: flex;
  gap: 2px;
  font-size: 13.5px;
  background: var(--cell);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
}
.navp a {
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  transition: background .3s;
}
.navp a:hover { background: var(--cell2); }
.navp a.on { background: var(--gold); color: var(--on); }
.hd-cta { padding: 12px 20px; font-size: 14px; }

/* ハンバーガー */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  margin-left: auto;
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0e160f;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  color: #eef3e6;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
}
.mobile-nav a.on { background: var(--gold); color: var(--on); }
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}


/* --- フッター（.pg の内外どちらでも動くよう色を直接指定） --- */
.ft {
  padding: 40px 0 36px;
  background: #0e160f;
  color: #eef3e6;
}
.ft a { color: #a9b8a2; text-decoration: none; padding: 4px 0; display: inline-block; min-height: 24px; }
.ft a:hover { color: #eef3e6; }
.ft-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.ft-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ft-brand img { height: 56px; width: auto; }
.ft-brand p { font-size: 13px; color: #a9b8a2; line-height: 1.8; }
.ft-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: #a9b8a2;
  max-width: 640px;
}

/* --- テキスト回転（トップページ） --- */
.rot { display: inline-block; height: 1.7em; overflow: hidden; vertical-align: bottom; border-bottom: 1px solid var(--gold); }
.rot > span { display: block; animation: rot 13s cubic-bezier(.77, 0, .18, 1) infinite; }
.rot b { display: block; height: 1.7em; line-height: 1.7em; color: var(--gold); white-space: nowrap; padding: 0 .1em; }

/* --- 順位表（web/） --- */
.tbl {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 16px;
  align-items: center;
}

/* --- ブログ記事本文 --- */
article.c .blog-body {
  max-width: 36em;
  font-size: 17px;
  line-height: 2.05;
}
article.c .blog-body h2 {
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
  margin-top: 2.5em;
  margin-bottom: 1em;
}
article.c .blog-body h3 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
  margin-top: 2em;
  margin-bottom: .8em;
}
article.c .blog-body p {
  margin-bottom: 1.2em;
}
article.c .blog-body ul,
article.c .blog-body ol {
  padding-left: 1.5em;
  list-style: disc;
  margin-bottom: 1.2em;
}
article.c .blog-body ol { list-style: decimal; }
article.c .blog-body a { color: var(--gold); text-decoration: underline; }
article.c .blog-body strong { font-weight: 700; }
article.c .blog-body blockquote {
  border-left: 3px solid var(--line);
  padding-left: 16px;
  color: var(--sub);
  margin: 1.5em 0;
}

/* --- ブログ検索 --- */
.blog-search {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  font-family: inherit;
  background: var(--cell2);
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
}

/* --- ページ送り --- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 0;
}
.pagination a, .pagination span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.pagination .active {
  background: var(--gold);
  color: var(--on);
  border-color: var(--gold);
}
.pagination a:hover { border-color: var(--gold); }
.pagination .next {
  width: auto;
  border-radius: 999px;
  padding: 0 20px;
}

/* --- 「役に立った」ボタン --- */
.helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cell);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .3s;
}
.helpful-btn:hover { border-color: var(--gold); }

/* --- フォーム（contact） --- */
.form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.form-badge-req {
  font-size: 11px;
  color: #fff;
  background: var(--gold);
  border-radius: 4px;
  padding: 1px 6px;
  align-self: flex-start;
}
.form-badge-opt {
  font-size: 11px;
  color: var(--sub);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 6px;
  align-self: flex-start;
}
.form-input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  background: var(--cell2);
  color: var(--ink);
}
.form-input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-radio-label {
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--cell);
  cursor: pointer;
  transition: border-color .3s;
}
.form-radio-label:has(input:checked) {
  border-color: var(--gold);
}
.form-radio-label input[type="radio"] { margin-right: 6px; }

/* --- アニメーション --- */
@keyframes pop {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes rot {
  0%, 15% { transform: translateY(0); }
  20%, 35% { transform: translateY(-1.7em); }
  40%, 55% { transform: translateY(-3.4em); }
  60%, 75% { transform: translateY(-5.1em); }
  80%, 95% { transform: translateY(-6.8em); }
  100% { transform: translateY(-8.5em); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes glow {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

.pop { animation: pop .4s cubic-bezier(.2, .7, .2, 1) both; }
@supports (animation-timeline: view()) {
  .rv {
    animation: pop linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

/* --- prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --- レスポンシブ 1100px --- */
@media (max-width: 1100px) {
  .navp { display: none !important; }
  .hamburger { display: block; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s3 { grid-column: 1 / -1; }
  .h1 { font-size: 44px !important; }
}

/* --- レスポンシブ 760px --- */
@media (max-width: 760px) {
  .wrap { padding: 0 12px; }
  .grid { grid-template-columns: 1fr; gap: 8px; }
  .s2, .s3, .r2 { grid-column: auto; grid-row: auto; }
  .c { padding: 18px; border-radius: 18px; gap: 6px; }
  .t { padding: 24px 6px 4px; }

  /* 見出し：スマホ用サイズ */
  .h1 { font-size: 26px !important; line-height: 1.4 !important; }
  .h2 { font-size: 22px !important; line-height: 1.4 !important; }
  .pg h1, .pg h2, .pg h3 { overflow-wrap: break-word; }

  /* ボタン */
  .btn { width: 100%; box-sizing: border-box; font-size: 14px; padding: 14px 20px; }

  /* ヘッダー：ハンバーガーだけ右に、CTAは非表示 */
  .hd-cta { display: none !important; }
  .hamburger { order: 1; }

  /* テーブル */
  .tbl { grid-template-columns: 1fr 1fr !important; row-gap: 2px !important; }
  .tbl > b { grid-column: 1 / -1; }

  /* リスト項目：スマホで詰める */
  .li { padding: 8px 0; font-size: 14px; }
  .t + .c, .t + a.c { margin-top: -8px; }

  /* ブログ記事 */
  article.c { padding: 28px 18px !important; }

  /* トップ固有 */
  .logo-cell { min-height: 200px !important; }
  .bn { font-size: 48px !important; }
  .head-cell { flex-direction: column !important; align-items: flex-start !important; }

  /* CTA */
  #contact h2 { font-size: 22px !important; }
  #contact .c { padding: 24px 16px !important; }

  /* 明るい帯の余白 */
  .light { padding: 40px 0 32px !important; }

/* インライン見出しサイズの上書き */
  .ant[style*="font-size:38px"] { font-size: 24px !important; }
  .ant[style*="font-size:42px"] { font-size: 24px !important; }
  .ant[style*="font-size:48px"] { font-size: 24px !important; }
  .ant[style*="font-size:54px"] { font-size: 24px !important; }
  .ant[style*="font-size:56px"] { font-size: 32px !important; }
  .ant[style*="font-size:58px"] { font-size: 26px !important; }
  .ant[style*="font-size:60px"] { font-size: 26px !important; }
  .inter[style*="font-size:132px"] { font-size: 56px !important; }
  .inter[style*="font-size:120px"] { font-size: 48px !important; }
  .inter[style*="font-size:96px"] { font-size: 48px !important; }
  .inter[style*="font-size:54px"] { font-size: 36px !important; }
  .inter[style*="font-size:56px"] { font-size: 36px !important; }
  .inter[style*="font-size:44px"] { font-size: 32px !important; }

  /* カード内のinline paddingを上書き */
  .c[style*="padding:44px"] { padding: 18px !important; }
  .c[style*="padding:48px"] { padding: 18px !important; }
  .c[style*="padding:40px"] { padding: 18px !important; }
  .c[style*="padding:56px"] { padding: 22px 16px !important; }
  .c[style*="padding:72px"] { padding: 24px 16px !important; }
  .c[style*="padding:64px"] { padding: 22px 16px !important; }

  /* 料金カードのmin-heightを解除 */
  .c-gold[style*="min-height"] { min-height: auto !important; }
  .c.c-gold { justify-content: flex-start !important; }

  /* パッケージ3列→1列 */
  .pkg-grid { grid-template-columns: 1fr !important; }

  /* header内のリンク */
  header a { white-space: nowrap; }

  /* フッターリンクのタップ領域拡大 */
  .ft-nav a { padding: 10px 0; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }

  /* LP共通：セクション間余白を詰める */
  section[style*="padding-top: 120px"],
  section[style*="padding-top:120px"] { padding-top: 40px !important; }
  .light[style*="padding:110px"] { padding: 40px 0 !important; }
  section[style*="padding:0 0 110px"] { padding-bottom: 40px !important; }
  section[style*="padding:0 0 12px"] { padding-bottom: 4px !important; }

  /* LP：料金数字のスマホサイズ */
  .inter[style*="font-size:72px"] { font-size: 44px !important; }
  .inter[style*="font-size:64px"] { font-size: 40px !important; }
  .inter[style*="font-size:52px"] { font-size: 36px !important; }
  .inter[style*="font-size:48px"] { font-size: 36px !important; }
  .inter[style*="font-size:40px"] { font-size: 32px !important; }
  .inter[style*="font-size:160px"] { font-size: 64px !important; }
  .inter[style*="font-size:104px"] { font-size: 52px !important; }
  .inter[style*="font-size:112px"] { font-size: 52px !important; }
  .inter[style*="font-size:100px"] { font-size: 52px !important; }
  .inter[style*="font-size:80px"] { font-size: 44px !important; }

  /* LP：見出しのスマホサイズ */
  .h1[style*="font-size:84px"],
  .h1[style*="font-size:80px"] { font-size: 32px !important; line-height: 1.3 !important; }
  .ant[style*="font-size:36px"] { font-size: 22px !important; }
  .ant[style*="font-size:34px"] { font-size: 20px !important; }
  .ant[style*="font-size:40px"] { font-size: 24px !important; }

  /* LP：FLOWカードの余白 */
  .c[style*="flex:1 1 200px"] { padding: 14px !important; gap: 4px !important; }
  .c[style*="flex:1 1 200px"] .inter[style*="font-size:40px"] { font-size: 24px !important; }
  .c[style*="flex:1 1 200px"] h3 { margin-top: 6px !important; }

  /* LP：点線カードの空白を詰める */
  .c[style*="border-style:dashed"] { min-height: auto !important; }

  /* LP：price-summary gridを1列に */
  .price-summary { grid-template-columns: 1fr !important; }
  .price-summary > div { padding: 20px 18px !important; }
  .price-summary > div[style*="border-left"] { border-left: none !important; border-top: 1px solid rgba(255,255,255,.15); }
  .price-summary > div[style*="border-right"] { border-right: none !important; border-bottom: 1px solid var(--line); }

  /* LP：steps gridを1列に */
  .steps { grid-template-columns: 1fr !important; }
  .steps .arrow { transform: rotate(90deg); height: 32px; }
}

/* ===================================================
   v4 図解クラス
   =================================================== */

/* --- セクション --- */
.sec {
  background: #152018;
  border: 1px solid #24331f;
  border-radius: 28px;
  padding: 56px 48px;
}
.lt {
  background: #eef2e4;
  color: #1d2a17;
  border-radius: 28px;
  padding: 56px 48px;
}

/* --- v4ラベル --- */
.lt .lab { color: #3f6b22; font-weight: 500; }

/* --- カード（v4） --- */
.card {
  background: #1c2a1c;
  border: 1px solid #3a4f31;
  border-radius: 20px;
  padding: 24px;
}
.lt .card {
  background: #fbfcf7;
  border: 1px solid #dfe6cf;
}

/* --- 図解の台 --- */
.vis {
  background: #101b12;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.lt .vis {
  background: #e3ead3;
}

/* --- 書類の見本 --- */
.paper {
  background: #f6f8f0;
  color: #1d2a17;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0,0,0,.45);
}

/* --- 文字代わりの線 --- */
.sk { display: block; height: 6px; background: #cdd6bd; border-radius: 3px; }
.skd { display: block; height: 6px; background: #3a4f31; border-radius: 3px; }

/* --- チェックマーク --- */
.ck {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #b8d46a; color: #0e160f;
  font-size: 11px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 20px;
}
.lt .ck { background: #3f6b22; color: #fbfcf7; }

/* --- 補助テキスト --- */
.sub { color: #a9b59c; }
.lt .sub { color: #56664c; }

/* --- 大きい数字 --- */
.num {
  font-size: 52px;
  font-weight: 900;
  color: #b8d46a;
  line-height: 1.1;
}

/* --- 横並びフロー（A → B → C） --- */
.flowx {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

/* --- nowrap --- */
.mono { flex-shrink: 0; white-space: nowrap; }

/* --- v4ボタン --- */
.btn-v4 {
  background: #b8d46a;
  color: #0e160f;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
}
.btn-line {
  border: 1px solid #3a4f31;
  color: #e9efdf;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
}

/* --- ブラウザ枠 --- */
.browser {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #3a4f31;
}
.browser-bar {
  background: #24331f;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
}
.browser-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #56664c;
}
.lt .browser { border-color: #dfe6cf; }
.lt .browser-bar { background: #dfe6cf; }
.lt .browser-dot { background: #9aa88a; }

/* --- チップ（料金の内訳） --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251,252,247,0.14);
  border: 1px solid rgba(251,252,247,0.3);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.lt .chip {
  background: #e3ead3;
  border-color: #d6dfc9;
  color: #1d2a17;
}

/* --- 対応エリア帯 --- */
.area-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 16px;
  padding: 18px 22px;
}

/* ===================================================
   v4 レスポンシブ
   =================================================== */

/* --- メニューボタン（v4ヘッダー用） --- */
.menu {
  display: none;
  background: transparent;
  border: 1px solid #3a4f31;
  border-radius: 12px;
  cursor: pointer;
}
.menu span {
  display: block;
  height: 2px;
  background: #e9efdf;
  border-radius: 1px;
}

/* --- 900px以下：ナビ非表示 → メニューボタン表示 --- */
@media (max-width: 900px) {
  header nav { display: none !important; }
  .menu {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 11px;
    box-sizing: border-box;
  }
  header > a:last-of-type { margin-left: auto; }
}

/* --- 701〜1000px：中間グリッド --- */
@media (min-width: 701px) and (max-width: 1000px) {
  .grid,
  [style*="minmax(min(100%, 300px), 1fr)"] {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  }
}

/* --- 700px以下：モバイル全般 --- */
@media (max-width: 700px) {
  /* v4ヘッダー */
  header { padding: 14px 14px !important; flex-wrap: nowrap !important; gap: 10px !important; }
  header > a:last-of-type { padding: 10px 14px !important; font-size: 13px !important; margin-left: auto; }

  /* v4メイン */
  main { padding: 0 12px !important; gap: 14px !important; }

  /* セクション余白 */
  .sec:not([style*="padding"]), .lt:not([style*="padding"]),
  [style*="padding: 56px 48px"], [style*="padding: 48px"] { padding: 30px 18px !important; }
  [style*="padding: 40px"], [style*="padding: 36px"], [style*="padding: 32px"] { padding: 22px 18px !important; }
  [style*="padding: 28px 32px"], [style*="padding: 26px 28px"], [style*="padding: 24px 28px"],
  [style*="padding: 22px 32px"], [style*="padding: 22px 28px"], [style*="padding: 24px 32px"] { padding: 20px 18px !important; }

  /* 文字サイズ */
  h1 { font-size: 28px !important; line-height: 1.5 !important; }
  h2, .h2 { font-size: 23px !important; line-height: 1.5 !important; margin-bottom: 20px !important; }
  h3[style*="font-size: 24px"], h3[style*="font-size: 22px"], h3[style*="font-size: 21px"] { font-size: 19px !important; }
  [style*="font-size: 68px"], [style*="font-size: 64px"], [style*="font-size: 60px"],
  [style*="font-size: 56px"], [style*="font-size: 52px"] { font-size: 40px !important; }
  p[style*="font-size: 44px"], p[style*="font-size: 40px"] { font-size: 34px !important; }
  [style*="font-size: 72px"] { font-size: 52px !important; }
  .num { font-size: 38px !important; }

  /* 横並びフロー → 縦 */
  .flowx { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .flowx > span { transform: rotate(90deg); justify-self: center; align-self: center; }
  .flowx > [aria-hidden] { display: none !important; }
  .flowx > div[style*="border-left"] { border-left: none !important; padding-left: 0 !important; }

  /* テーブル1列化 */
  [style*="grid-template-columns: 200px"],
  [style*="grid-template-columns: 150px"] { grid-template-columns: minmax(0, 1fr) !important; gap: 4px !important; }
  [style*="grid-column: span 2"] { grid-column: auto !important; }

  /* 図解縮小 */
  .vis, [aria-hidden="true"][style*="height: 210px"] { zoom: .8; }

  /* ヒーローの重ね図（絶対配置 → フロー） */
  [style*="height: 470px"], [style*="height: 440px"] {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    gap: 14px;
  }
  [style*="height: 470px"] > div, [style*="height: 440px"] > div {
    position: relative !important;
    left: auto !important; right: auto !important;
    top: auto !important; bottom: auto !important;
    width: auto !important;
    transform: none !important;
  }
  /* ExcelとHP画面を非表示（ヒーロー） */
  [style*="height: 470px"] > div:nth-child(2),
  [style*="height: 470px"] > div:nth-child(3) { display: none !important; }

  /* ABOUT 5工程 → 縦リスト */
  ol[style*="repeat(5, minmax(0, 1fr))"] {
    display: flex !important;
    flex-direction: column;
    gap: 10px !important;
  }
  ol[style*="repeat(5, minmax(0, 1fr))"] > li {
    flex-direction: row !important;
    text-align: left;
  }
  /* 線と括弧を隠す */
  [style*="left: 10%; right: 10%"],
  [style*="margin: 22px 10% 0"] { display: none !important; }

  /* 2列グリッド → 1列 */
  [style*="gap: 8px 16px"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 18px"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
  }
  [style*="repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 18px"] > div {
    border-radius: 12px !important;
    text-align: left !important;
  }
  ol[style*="repeat(2, minmax(0, 1fr))"] { grid-template-columns: minmax(0, 1fr) !important; }

  /* チップの折り返し */
  [style*="display: inline-flex; gap: 16px"] { flex-wrap: wrap; gap: 6px !important; }

  /* 順位表リフロー */
  [style*="minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.2fr)"] {
    grid-template-columns: minmax(0, 1fr) auto !important;
    row-gap: 2px !important;
    padding: 12px 14px !important;
  }
  [style*="minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.2fr)"] > span:nth-child(2) {
    grid-column: 1 / -1;
    order: 3;
    font-size: 14px;
    color: #c9d3bc;
  }
  [style*="minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.2fr)"][style*="font-size: 12px"] {
    display: none !important;
  }

  /* role="table" 1列化 */
  [role="table"] > div { grid-template-columns: minmax(0, 1fr) !important; gap: 2px !important; }
  [role="table"] > div:first-child { display: none !important; }

  /* 丸い輪 → 縦リスト（about） */
  .work-cycle {
    aspect-ratio: auto !important;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }
  .work-cycle .cycle-deco { display: none !important; }
  .work-cycle > span {
    position: static !important;
    transform: none !important;
    align-self: flex-start;
    white-space: normal !important;
  }

  /* STEP料金 → 縦 */
  [style*="repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 18px"] > div {
    border-radius: 12px !important;
    text-align: left !important;
  }
}
