/* ShipHub マニュアルサイト 共通スタイル
   色・数値の正は docs/design-spec.md。色は :root の変数だけを変えれば全体に反映される */

:root {
  --sh-brand: #1E88E5;   /* ボタン、Lessonピル、告知バー、リンク、見出し下線、STEP番号 */
  --sh-navy: #102A4C;    /* 見出し、ロゴ文字、フッター背景 */
  --sh-text: #1C2A3A;    /* 本文 */
  --sh-sub: #5C6B7D;     /* 補足文、日付、パンくず */
  --sh-line: #DBE6F2;    /* カード・サイドボックスの枠線 */
  --sh-yellow: #FFD54A;  /* 記事ページのボタン、タイトルのマーカー下線 */
  --sh-bg: #FFFFFF;
  --sh-pale-1: #EAF4FD;  /* 薄い青グラデの始点 */
  --sh-pale-2: #DCECFB;
  --sh-pale-3: #CFE4FA;  /* 薄い青グラデの終点 */
  --sh-toc-bg: #EAF2FB;  /* 目次ボックス */
  --sh-contact-bg: #E9F3FD; /* お問い合わせボックス */
  --sh-hairline: #E6EDF5;
  --sh-body-sub: #3C4B5E;
  --sh-placeholder: #8A97A8;
  --sh-chev: #9FB0C4;
}

/* ===== ベース ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--sh-text);
  background: var(--sh-bg);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.sh { display: flex; flex-direction: column; min-height: 100vh; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 48px; }

/* ===== ヘッダー ===== */
.hdr {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 48px;
  background: var(--sh-bg);
  border-bottom: 1px solid var(--sh-hairline);
}
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 36px; font-size: 14px; font-weight: 700; }
.nav a:hover { color: var(--sh-brand); }
.srch {
  display: flex; align-items: center; gap: 10px;
  background: #F1F5FA; border-radius: 999px; padding: 10px 18px;
  width: 230px; font-size: 13px; color: var(--sh-placeholder);
}
.srch svg { flex-shrink: 0; }

/* スマホ用メニュー開閉ボタン（PCでは非表示） */
.menu-btn {
  display: none;
  background: transparent; border: 0; padding: 8px; cursor: pointer;
}

/* ===== 告知バー ===== */
.notice {
  background: var(--sh-brand); color: #fff;
  display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 24px; font-size: 14px; font-weight: 700; text-align: center;
}
.notice a {
  background: var(--sh-yellow); color: var(--sh-navy);
  font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 999px; white-space: nowrap;
}

/* ===== メインビジュアル（トップ） ===== */
.hero {
  background: linear-gradient(90deg, var(--sh-pale-1) 0%, var(--sh-pale-2) 55%, var(--sh-pale-3) 100%);
  position: relative; overflow: hidden;
}
.hero .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 56px; padding-bottom: 56px;
}
.hero-text { display: flex; flex-direction: column; gap: 16px; max-width: 520px; position: relative; z-index: 1; }
.hero-eyebrow { font-size: 14px; font-weight: 700; color: var(--sh-navy); }
.hero h1 { font-size: 44px; font-weight: 900; line-height: 1.25; color: var(--sh-navy); }
.hero-lead { font-size: 14px; line-height: 1.9; color: var(--sh-body-sub); }
.hero-search {
  display: flex; background: #fff; border-radius: 999px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(16,42,76,.10); max-width: 420px; margin-top: 6px;
}
.hero-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 12px 18px 12px 44px; font-size: 13px; font-family: inherit; color: var(--sh-text);
}
.hero-search input::placeholder { color: var(--sh-placeholder); }
.hero-search .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); }
.hero-search label { position: relative; flex: 1; display: flex; }
.hero-search button {
  border: 0; background: var(--sh-brand); color: #fff; font-weight: 700; font-size: 14px;
  padding: 0 26px; cursor: pointer; font-family: inherit;
}
.hero-img { width: 520px; height: 260px; flex-shrink: 0; display: block; object-fit: contain; }

/* ===== 2カラム ===== */
.main { display: flex; gap: 28px; padding-top: 40px; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.side { display: flex; flex-direction: column; gap: 20px; width: 240px; flex-shrink: 0; }

/* ===== セクション見出し ===== */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.h2 {
  font-size: 24px; font-weight: 900; display: inline-block;
  padding-bottom: 10px; border-bottom: 3px solid var(--sh-brand); color: var(--sh-text);
}
.more { font-size: 13px; font-weight: 700; color: var(--sh-brand); }

/* ===== レッスンカード ===== */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--sh-line); border-radius: 12px;
  padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px;
  position: relative; min-height: 118px; box-shadow: 0 2px 8px rgba(30,100,180,.06);
}
.pill {
  display: inline-block; background: var(--sh-brand); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; align-self: flex-start;
}
.ct { font-size: 18px; font-weight: 900; line-height: 1.3; color: var(--sh-navy); width: 60%; }
.cd { font-size: 12px; color: var(--sh-sub); line-height: 1.6; width: 60%; }
.ill {
  position: absolute; right: 16px; top: 14px; width: 88px; height: 70px; border-radius: 12px;
  background: linear-gradient(135deg, #E3F1FF, #BFDCF7);
  display: flex; align-items: center; justify-content: center;
}
.ill img { width: 76px; height: 60px; object-fit: contain; }
.card .arrow {
  position: absolute; right: 16px; bottom: 14px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sh-brand); display: flex; align-items: center; justify-content: center;
}
/* カード全体をリンクにする。a.card-link は位置を持たせず、::after をカード（.card）いっぱいに広げる
   （矢印 .arrow は a の中の span。以前は a 自体が .arrow で位置を持っていたため、押せるのが矢印だけになっていた） */
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; z-index: 1; }
.card-link:focus-visible { outline: none; }

/* ===== カードのホバー（共通部品）=====
   押せるカードに付ける：カード .card-lift、アイコン .card-lift__icon、右下の矢印 .card-lift__arrow
   使っているページ：Lesson6 トップのジャンルカード（.faq-genre-card）、マニュアル一覧のレッスンカード（index.html の .card）
   動きを変えるときはここだけ直す。docs/design-spec.md「カードのホバー」参照 */
.card-lift {
  position: relative;
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), box-shadow .28s ease, border-color .2s ease;
}
.card-lift__icon { display: inline-block; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.card-lift__arrow {
  position: absolute; right: 14px; bottom: 12px;
  opacity: 0; transform: translateX(-8px); transition: opacity .25s ease, transform .25s ease;
}
.card-lift__arrow:not(.arrow) { font-size: 16px; font-weight: 900; line-height: 1; color: var(--sh-brand); }
/* 丸い矢印ボタン（マニュアル一覧）は、デザイン仕様どおりふだんから表示し、ホバーで右へ少し動かす */
.card-lift__arrow--keep { opacity: 1; transform: translateX(0); }
/* 浮き上がり：カーソルがある端末のホバーと、キーボードで選んだとき */
@media (hover: hover) {
  .card-lift:hover {
    transform: translateY(-6px) scale(1.02); z-index: 1;
    box-shadow: 0 14px 28px rgba(31, 111, 209, .18), 0 4px 8px rgba(0, 0, 0, .06); border-color: var(--sh-brand);
  }
  .card-lift:hover .card-lift__icon { transform: scale(1.25) rotate(-8deg); }
  .card-lift:hover .card-lift__arrow { opacity: 1; transform: translateX(0); }
  .card-lift:hover .card-lift__arrow--keep { transform: translateX(4px); }
}
.card-lift:focus-visible {
  transform: translateY(-6px) scale(1.02); z-index: 1; outline: 3px solid rgba(30, 136, 229, .35); outline-offset: 2px;
  box-shadow: 0 14px 28px rgba(31, 111, 209, .18), 0 4px 8px rgba(0, 0, 0, .06); border-color: var(--sh-brand);
}
.card-lift:focus-visible .card-lift__icon { transform: scale(1.25) rotate(-8deg); }
.card-lift:focus-visible .card-lift__arrow { opacity: 1; transform: translateX(0); }
.card-lift:focus-visible .card-lift__arrow--keep { transform: translateX(4px); }
/* カードの中のリンクをキーボードで選んだとき（マニュアル一覧）。:has が使えないブラウザでもほかの指定が消えないよう、別の行に書く */
.card-lift:has(.card-link:focus-visible) {
  transform: translateY(-6px) scale(1.02); z-index: 1; outline: 3px solid rgba(30, 136, 229, .35); outline-offset: 2px;
  box-shadow: 0 14px 28px rgba(31, 111, 209, .18), 0 4px 8px rgba(0, 0, 0, .06); border-color: var(--sh-brand);
}
.card-lift:has(.card-link:focus-visible) .card-lift__icon { transform: scale(1.25) rotate(-8deg); }
.card-lift:has(.card-link:focus-visible) .card-lift__arrow--keep { transform: translateX(4px); }
/* 押した瞬間は少し沈む（スマホはこの動きだけ） */
.card-lift:active { transform: translateY(-2px) scale(.99); box-shadow: 0 6px 14px rgba(31, 111, 209, .14), 0 2px 4px rgba(0, 0, 0, .05); }
/* カーソルがない端末（スマホ）では「→」を常に表示 */
@media (hover: none) { .card-lift__arrow { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .card-lift, .card-lift__icon, .card-lift__arrow { transition: none; }
}

/* ===== サイドボックス ===== */
.sbox { background: #fff; border: 1px solid var(--sh-line); border-radius: 12px; padding: 18px; }
.stt {
  font-size: 14px; font-weight: 900; margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--sh-hairline); color: var(--sh-navy);
}
.cat {
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  padding: 9px 6px; border-bottom: 1px solid #EEF3F8; color: var(--sh-text);
}
.cat:last-child { border-bottom: 0; }
.cat:hover { color: var(--sh-brand); }
.cat svg { flex-shrink: 0; }
.chev { margin-left: auto; color: var(--sh-chev); }

.cbox { background: var(--sh-contact-bg); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.cbox-title { font-size: 13px; font-weight: 900; line-height: 1.5; color: var(--sh-navy); }
.cbox-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sh-brand); color: #fff; font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: 999px; align-self: flex-start; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.chara {
  width: 70px; height: 70px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, #D7EAFF, #9FCDF7);
}
.chara img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 「この記事の内容」 */
.toc-side a { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; padding: 8px 0; color: var(--sh-text); }
.toc-side .num {
  width: 22px; height: 22px; border-radius: 50%; font-size: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sh-hairline); color: var(--sh-sub);
}
.toc-side a.current { color: var(--sh-brand); }
.toc-side a.current .num { background: var(--sh-brand); color: #fff; }

/* ===== フッター ===== */
.ftr {
  background: var(--sh-navy); color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px 24px; margin-top: 64px;
}
.ftr nav { display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; justify-content: center; }
.ftr span { font-size: 12px; color: #AEBBD0; }

/* ===== 記事ページ ===== */
.crumbs {
  padding-top: 18px; font-size: 12px; color: var(--sh-sub);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.crumbs a:hover { color: var(--sh-brand); }
.article { flex: 1; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.art-head { display: flex; gap: 22px; align-items: flex-start; }
.art-date { text-align: center; color: var(--sh-sub); line-height: 1.1; padding-top: 4px; flex-shrink: 0; }
.art-date .y { font-size: 13px; }
.art-date .md { font-size: 26px; font-weight: 700; }
.art-title-block { display: flex; flex-direction: column; gap: 8px; }
.art-title { font-size: 30px; font-weight: 900; color: var(--sh-navy); line-height: 1.3; }
.art-meta { display: flex; gap: 16px; font-size: 12px; color: var(--sh-sub); flex-wrap: wrap; }
.art-meta .cat-link { color: var(--sh-brand); font-weight: 700; }

.eyecatch {
  border-radius: 12px; background: linear-gradient(90deg, #E8F3FD, var(--sh-pale-3));
  min-height: 220px; position: relative; overflow: hidden; padding: 30px 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.eyecatch .pill { font-size: 14px; padding: 5px 16px; }
.eyecatch-title { font-size: 40px; font-weight: 900; line-height: 1.2; color: var(--sh-navy); position: relative; z-index: 1; }
.marker { background: linear-gradient(transparent 60%, var(--sh-yellow) 60%); }
.eyecatch-lead { font-size: 13px; line-height: 1.7; color: var(--sh-body-sub); position: relative; z-index: 1; }
.eyecatch-img {
  position: absolute; right: 36px; top: 50%; transform: translateY(-50%);
  width: 230px; height: 184px; object-fit: contain;
}
.lead { font-size: 16px; line-height: 2.1; color: var(--sh-body-sub); }

.toc { background: var(--sh-toc-bg); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.toc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.toc-head .ttl { font-size: 16px; font-weight: 900; color: var(--sh-navy); display: flex; align-items: center; gap: 8px; }
.toc a {
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500;
  padding: 8px 10px; background: #fff; border-radius: 6px; color: var(--sh-text);
}
.toc a:hover { color: var(--sh-brand); }
.toc .num {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--sh-brand); color: var(--sh-brand);
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* STEPブロック：中の要素の間隔は21px（本文14pxの1.5em）。ブロック同士は .article の gap 28px ＋ 20px ＝ 48px */
.step { display: flex; flex-direction: column; gap: 21px; scroll-margin-top: 76px; }
.article > .step { margin-top: 20px; }
.step h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 900; color: var(--sh-navy); line-height: 1.3; margin-bottom: 4px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--sh-brand); color: #fff;
  font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step p { font-size: 16px; line-height: 2.1; color: var(--sh-body-sub); }
/* スクリーンショット：枠は画像の形に合わせる（固定の高さは付けない。縦横比のまま表示） */
.shot { margin: 11px 0; width: 100%; }                /* .step の gap 21px と合わせて上下およそ32px。飛び出しは下の @media で幅ごと広げる */
/* 画像の後ろに薄い水色を敷いて、画像を浮き上がらせる。赤枠の%座標は内側の .shot-img 基準なので、余白はこの外側に持つ */
.shot-bg { background: #F3F8FE; border-radius: 12px; padding: 14px; text-align: center; font-size: 0; }
.shot-img { position: relative; display: inline-block; max-width: 100%; }
.shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: 560px; border: 1px solid var(--sh-line); border-radius: 8px; }
.shot figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--sh-sub); text-align: center; }
/* 画像を本文幅より広げる（横長スクショを大きく見せる）。負のマージンで左右に飛び出す＝中央寄せのまま拡大。
   飛び出し量は本文横の余白より小さく保ち、横スクロールを出さない（広い画面=余白48pxで40px、中間=余白24pxで16px） */
@media (min-width: 1025px) { .shot { width: calc(100% + 80px); margin-left: -40px; margin-right: -40px; } }
@media (min-width: 769px) and (max-width: 1024px) { .shot { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; } }
/* 本文幅内に収める（左右張り出しなし）。ラベル見本など、大きく見せたくない図に使う */
.shot.shot-inline { width: 100%; margin-left: 0; margin-right: 0; }
@media (min-width: 769px) and (max-width: 1024px) { .shot.shot-inline { width: 100%; margin-left: 0; margin-right: 0; } }
/* 縦長スクショ：高さが出すぎないよう最大高さを設けて中央寄せ（スマホは横幅に合わせる） */
.shot.shot-portrait img { max-height: 500px; }
@media (max-width: 768px) { .shot.shot-portrait img { max-height: none; } }
/* 注目ポイントの印：画像に重ねる赤い囲み。位置は%で指定するので、画像の拡大縮小に追従する */
.mark { position: absolute; border: 3px solid #E53935; border-radius: 6px; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 2px 8px rgba(229,57,53,.25); pointer-events: none; }
.mark[data-n]::after {
  content: attr(data-n); position: absolute; left: -13px; top: -13px; width: 24px; height: 24px; border-radius: 50%;
  background: #E53935; color: #fff; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}

/* 準備中ページ */
.soon { text-align: center; padding: 64px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.soon h1 { font-size: 28px; font-weight: 900; color: var(--sh-navy); }
.soon p { font-size: 16px; color: var(--sh-body-sub); line-height: 1.9; }

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .wrap, .hdr { padding-left: 24px; padding-right: 24px; }
  .nav { gap: 24px; }
  .srch { width: 180px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-img { width: 380px; height: 190px; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .wrap, .hdr { padding-left: 16px; padding-right: 16px; }
  /* ヘッダー：メニューを折りたたむ */
  .srch { display: none; }
  .menu-btn { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px; z-index: 20;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--sh-hairline);
    box-shadow: 0 8px 20px rgba(16,42,76,.08);
  }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--sh-hairline); }
  .hdr { position: relative; }
  .hdr.open .nav { display: flex; }

  .hero .wrap { flex-direction: column; align-items: stretch; padding-top: 32px; padding-bottom: 32px; gap: 20px; }
  .hero-text { max-width: none; }
  .hero h1 { font-size: 30px; }
  .hero-lead br { display: none; }
  .h2 { font-size: 20px; }
  .hero-img { width: 100%; max-width: 420px; height: auto; aspect-ratio: 2 / 1; align-self: center; }

  .main { flex-direction: column; padding-top: 28px; }
  .side { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .ct, .cd { width: calc(100% - 100px); }

  .art-head { gap: 14px; }
  .art-title { font-size: 24px; }
  .eyecatch { padding: 22px 20px; min-height: 0; }
  .eyecatch-title { font-size: 28px; }
  .eyecatch-img { position: static; transform: none; width: 160px; height: 128px; align-self: flex-end; margin-top: -8px; }
  .step h3 { font-size: 18px; }
  .shot img { max-height: none; }
  .shot figcaption { text-spacing-trim: space-all; }   /* Chrome が全角かっこ・句読点を詰める計算と実際の幅がずれ、キャプションの1行が枠から数pxはみ出すのを防ぐ（lesson1・375px） */
  .ftr { margin-top: 40px; }
}

/* ===== 「ShipHubとは？」ページ（about.html） ===== */
.sec { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 76px; }
.sec-h2 {
  display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 900; color: var(--sh-navy);
  padding-bottom: 10px; border-bottom: 2px solid var(--sh-hairline); line-height: 1.3;
}
.body-p { font-size: 16px; line-height: 2.1; color: var(--sh-body-sub); }
.body-p b { color: var(--sh-navy); }
.caption { font-size: 14px; color: var(--sh-sub); text-align: center; }

/* 簡易目次（このページの内容） */
.toc-simple { background: var(--sh-toc-bg); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.toc-simple b { font-size: 14px; color: var(--sh-navy); margin-bottom: 4px; }
.toc-simple a { font-size: 13px; color: var(--sh-text); padding: 4px 0; }
.toc-simple a:hover { color: var(--sh-brand); }

/* Before / After */
.ba { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 12px; align-items: stretch; }
.ba-col { border: 1px solid var(--sh-line); border-radius: 12px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.ba-col.after { border: 2px solid var(--sh-brand); background: #F3F8FE; }
.ba-tag { align-self: flex-start; background: #EEF2F6; color: var(--sh-sub); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.ba-col.after .ba-tag { background: var(--sh-brand); color: #fff; }
.ba-fig { display: flex; align-items: center; justify-content: center; gap: 10px; height: 110px; background: #F6F9FD; border-radius: 8px; }
.ba-col.after .ba-fig { background: #fff; }
.ba-fig .ar { font-size: 22px; color: var(--sh-placeholder); }
.ba-col.after .ba-fig .ar { color: var(--sh-brand); }
.ba-fig .lbl { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ba-fig .lbl span { font-size: 10px; color: var(--sh-brand); font-weight: 700; }
.ba-list { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.8; color: var(--sh-body-sub); }
.ba-col.after .ba-list { color: var(--sh-navy); font-weight: 500; }
.ba-mid { display: flex; align-items: center; justify-content: center; }

/* メリット 2×2 */
.merits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.merit { border: 1px solid var(--sh-line); border-radius: 12px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; background: #fff; }
.merit-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sh-contact-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.merit-txt { display: flex; flex-direction: column; gap: 4px; }
.merit-txt b { font-size: 15px; color: var(--sh-navy); }
.merit-txt span { font-size: 13px; line-height: 1.7; color: var(--sh-body-sub); }

/* 3ステップのフロー */
.flow { background: #F6F9FD; border-radius: 12px; padding: 22px 18px; display: flex; gap: 6px; align-items: flex-start; }
.flow-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.flow-circle { width: 84px; height: 84px; border-radius: 50%; background: var(--sh-contact-bg); border: 3px solid var(--sh-brand); display: flex; align-items: center; justify-content: center; }
.flow-item .pill-s { background: var(--sh-brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.flow-item b { font-size: 15px; color: var(--sh-navy); }
.flow-item small { font-size: 11px; color: var(--sh-sub); }
.flow-arrow { display: flex; align-items: center; padding-bottom: 40px; }

/* STEP小見出し＋リンクカード */
.substep { display: flex; flex-direction: column; gap: 10px; }
.substep h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 900; color: var(--sh-navy); }
.substep h3 .pill-s { background: var(--sh-brand); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.linkcard { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.linkcard-img {
  width: 100%; min-height: 200px; border-radius: 12px; border: 1px solid var(--sh-line);
  background: linear-gradient(90deg, #E8F3FD, var(--sh-pale-3));
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px 32px;
}
.linkcard-img .pill { align-self: flex-start; }
.linkcard-img .pill-soon { background: var(--sh-sub); }
.linkcard-ttl { font-size: 34px; font-weight: 900; line-height: 1.2; color: var(--sh-navy); position: relative; z-index: 1; }
.linkcard-sub { font-size: 13px; color: var(--sh-body-sub); position: relative; z-index: 1; }
.linkcard-ill { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); width: 200px; height: 160px; object-fit: contain; }
.linkcard-btn {
  border: 1px solid var(--sh-line); border-radius: 999px; padding: 10px 28px; font-size: 13px; font-weight: 700;
  color: var(--sh-navy); background: #fff; display: inline-flex; align-items: center; gap: 30px;
}
.linkcard-btn span { color: var(--sh-brand); }
.linkcard:hover .linkcard-btn { border-color: var(--sh-brand); }

/* 配送方法の分岐図 */
.branch { display: flex; flex-direction: column; align-items: center; }
.branch-root { background: var(--sh-brand); color: #fff; font-weight: 900; font-size: 14px; padding: 8px 22px; border-radius: 999px; }
.branch-cols { display: flex; gap: 16px; width: 100%; }
.branch-col { flex: 1; border: 2px solid var(--sh-brand); border-radius: 12px; background: #F3F8FE; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.branch-col.green { border-color: #0E7C66; background: #EFFAF6; }
.branch-col b { font-size: 16px; color: var(--sh-navy); }
.branch-col .sub { font-size: 12px; color: var(--sh-sub); }
.branch-col ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; list-style: none; }
.branch-col li { background: #fff; border: 1px solid var(--sh-line); border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 700; color: var(--sh-navy); }
.branch-foot { margin-top: auto; background: var(--sh-brand); color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 700; text-align: center; }
.branch-col.green .branch-foot { background: #0E7C66; }

.btn-lg { align-self: flex-start; background: var(--sh-brand); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 24px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.btn-lg:hover { filter: brightness(1.08); }

@media (max-width: 768px) {
  .ba { grid-template-columns: 1fr; }
  .ba-mid svg { transform: rotate(90deg); }
  .merits { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: center; gap: 4px; }
  .flow-arrow { padding-bottom: 0; }
  .flow-arrow svg { transform: rotate(90deg); }
  .linkcard-img { padding: 20px; min-height: 0; }
  .linkcard-ttl { font-size: 24px; }
  .linkcard-ill { position: static; transform: none; width: 140px; height: 112px; align-self: flex-end; margin-top: -4px; }
  .branch-cols { flex-direction: column; }
  .branch-lines { display: none; }
  .branch-root { margin-bottom: 14px; }
}

/* ===== スクロール追従の固定メニューバー（全ページ共通・site.jsが生成） ===== */
.stickybar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--sh-hairline);
  box-shadow: 0 2px 10px rgba(16, 42, 76, .10);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 48px;
  /* 初期状態：少し上にずらして透明。position:fixed なので本文のレイアウトには影響しない */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.stickybar.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

.sb-logo { display: flex; align-items: center; flex-shrink: 0; }
.sb-logo img { height: 28px; width: auto; display: block; }
.sb-right { display: flex; align-items: center; gap: 28px; }
.sb-nav { display: flex; gap: 28px; font-size: 13px; font-weight: 700; color: var(--sh-text); }
.sb-nav a:hover { color: var(--sh-brand); }
.sb-search { display: flex; align-items: center; padding: 6px; color: var(--sh-navy); }
.sb-search:hover { color: var(--sh-brand); }
.sb-menu { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }

/* 「動きを減らす」設定のときはアニメーションなしで切り替える */
@media (prefers-reduced-motion: reduce) {
  .stickybar { transition: none; }
}

@media (max-width: 1024px) {
  .stickybar { padding: 0 24px; }
  .sb-nav { gap: 20px; }
}

@media (max-width: 768px) {
  .stickybar { padding: 0 16px; }
  .sb-search { display: none; }
  .sb-menu { display: flex; }
  .sb-nav {
    display: none; position: absolute; left: 0; right: 0; top: 56px;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--sh-hairline);
    box-shadow: 0 8px 20px rgba(16, 42, 76, .08);
  }
  .stickybar.open .sb-nav { display: flex; }
  .sb-nav a { padding: 14px 16px; border-top: 1px solid var(--sh-hairline); }
}

@media print { .stickybar { display: none; } }

/* ===== 原稿・スクショ待ちの仮置き（公開前に必ず消す。「todo」で検索） ===== */
.todo {
  background: #FFF8DC; border: 2px dashed #E6B800; border-radius: 10px;
  padding: 14px 16px; font-size: 13px; font-weight: 700; color: #7A5B00; line-height: 1.7;
}
.shot.todo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 200px; padding: 16px; text-align: center;
  background: #F6F9FD; border: 2px dashed #B9C9DC; border-radius: 10px; color: var(--sh-sub); font-size: 13px;
}

/* ===== 記事内の部品（ポイント・注意・表・手順・チェックリスト） ===== */
.step p b { color: var(--sh-navy); }
/* 特に大事な一文に引く黄色マーカー。HTMLでは <mark class="hl">…</mark> と書く */
mark.hl { background: linear-gradient(transparent 60%, #FFE066 60%); color: inherit; padding: 0 2px; font-weight: 700; }
.sub-h { font-size: 15px; font-weight: 900; color: var(--sh-navy); margin-top: 10px; margin-bottom: -6px; }
.step .note { font-size: 14px; color: var(--sh-sub); margin-top: -10px; }

/* ポイント：薄い青の囲み（目次ボックスと同じ色味） */
.point { background: var(--sh-toc-bg); border-left: 4px solid var(--sh-brand); border-radius: 0 10px 10px 0; padding: 20px; }
.point-ttl { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; color: var(--sh-navy); margin-bottom: 10px; }
.point-ttl svg, .warn-ttl svg { width: 20px; height: 20px; flex-shrink: 0; }
.point ul { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.9; color: var(--sh-body-sub); }
.point li + li { margin-top: 6px; }

/* 重要なルール：薄い黄色＋左に太線 */
.warn { background: #FFF8DC; border-left: 4px solid #E6B800; border-radius: 0 10px 10px 0; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.warn-ttl { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; color: #7A5B00; }
.warn p { font-size: 16px; line-height: 2.1; color: var(--sh-body-sub); }

/* 表（入力項目など） */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.tbl th, .tbl td { border: 1px solid var(--sh-line); padding: 8px 12px; text-align: left; vertical-align: top; }
.tbl th { background: #F3F8FE; color: var(--sh-navy); font-weight: 700; white-space: nowrap; }
.tbl td { color: var(--sh-body-sub); }
.tbl .req { color: var(--sh-brand); font-weight: 700; text-align: center; }
.tbl code { font-family: Consolas, Menlo, monospace; font-size: 14px; background: #F6F9FD; padding: 1px 6px; border-radius: 4px; color: var(--sh-navy); }

/* 番号付きの手順 */
.steps-ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.steps-ol li { counter-increment: s; position: relative; padding-left: 32px; font-size: 16px; line-height: 2.1; color: var(--sh-body-sub); }
.steps-ol li::before {
  content: counter(s); position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sh-brand); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps-ol b { color: var(--sh-navy); }

/* ラベル付きの箇条書き（表示される情報、連携後にできること） */
.dl-list { margin: 0; padding-left: 18px; font-size: 16px; line-height: 2.1; color: var(--sh-body-sub); }
.dl-list li + li { margin-top: 4px; }
.dl-list b { color: var(--sh-navy); }

/* チェックリスト（見た目だけ。クリックしても何も起きない） */
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.7; font-weight: 500; color: var(--sh-text);
  background: #fff; border: 1px solid var(--sh-line); border-radius: 10px; padding: 10px 14px;
}
.checklist li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--sh-brand); border-radius: 5px; background: #fff; }

/* 公開用の「準備中」表示。todo で検索はできるが、黄色の枠は出さない */
.todo.todo-quiet { background: none; border: 0; padding: 0; font-weight: 500; color: var(--sh-sub); font-size: 16px; line-height: 1.9; }

/* ===== 流れ図（4つの箱を矢印でつなぐ。Lesson2 STEP1 など） =====
   HTML: <div class="flow4"><div class="flow4-item"><b>届く</b><small>倉庫に到着</small></div><div class="flow4-arrow"></div>…</div>
   PCは横並び、スマホ（768px以下）は縦並びで矢印が下向きになる */
.flow4 { display: flex; align-items: stretch; gap: 0; margin: 6px 0; }
.flow4-item {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 16px 10px; background: var(--sh-brand); color: #fff; border-radius: 12px; text-align: center;
}
.flow4-item b { font-size: 17px; font-weight: 900; line-height: 1.3; }
.flow4-item small { font-size: 12px; line-height: 1.5; opacity: .9; }
.flow4-arrow { flex: 0 0 34px; display: flex; align-items: center; justify-content: center; color: var(--sh-brand); }
.flow4-arrow::before { content: "➜"; font-size: 22px; font-weight: 900; line-height: 1; }
@media (max-width: 768px) {
  .flow4 { flex-direction: column; }
  .flow4-item { padding: 14px 12px; }
  .flow4-arrow { flex-basis: 30px; }
  .flow4-arrow::before { display: inline-block; transform: rotate(90deg); }
}

/* ===== 在庫カードの再現（Lesson2 STEP4。Lesson3 でも使う前提の共通部品） =====
   HTML の骨格：
   <div class="stock-wrap">
     <div class="stock-card">
       <span class="sc-check"></span>                  ← チェックボックス（無いカードは省く）
       <div class="sc-photo">…</div>                   ← 写真＋画像DL
       <div class="sc-body">…</div>                    ← 管理番号・商品名・ラベル・メモ・サイズ
       <div class="sc-actions">…</div>                 ← 数量・ボタン
     </div>
     <p class="stock-note">※画面はイメージです。…</p>
   </div>
   番号バッジは <span class="badge-n">1</span> を各部品の先頭に置く。文字はすべて実テキストなので、文言はHTMLを直すだけで変えられる */
.stock-wrap { margin: 11px 0; width: 100%; }           /* 余白と左右の張り出しは .shot と同じ */
@media (min-width: 1025px) { .stock-wrap { width: calc(100% + 80px); margin-left: -40px; margin-right: -40px; } }
@media (min-width: 769px) and (max-width: 1024px) { .stock-wrap { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; } }
.stock-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border: 1px solid #D5DCE5; border-radius: 10px; padding: 16px 18px;
  font-size: 13px; line-height: 1.6; color: var(--sh-text);
}
/* 本文の最後の行が1文字だけにならないよう、ブラウザに折り返しを整えてもらう（対応していないブラウザでは今までどおり） */
.lead, .body-p, .step p, .steps-ol li, .dl-list li, .checklist li, .cardlist li, .point li, .tip li, .warn p, .cmp-body p, .taglist-desc, .tbl td, .faq-a p, .shot figcaption { text-wrap: pretty; }
.stock-note, .step p.stock-note { margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--sh-sub); text-align: center; }   /* 注記。.step p（本文）より強く効かせる */
/* チェックボックス（見た目だけ） */
.sc-check { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid #9AA5B4; border-radius: 4px; background: #fff; }
/* 写真（120×120のグレー枠。<img> に差し替えるときは .sc-img の中に <img> を入れる） */
.sc-photo { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.sc-img { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; background: #F1F3F6; border: 1px solid #D5DCE5; border-radius: 4px; color: #8A97A8; font-size: 12px; overflow: hidden; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-dl { font-size: 12px; color: var(--sh-brand); text-decoration: underline; }
.sc-photo .badge-n { position: absolute; left: -8px; top: -8px; }
/* 本文（左から順に積む） */
.sc-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-meta { font-size: 12px; color: var(--sh-sub); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.sc-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sc-name b { font-size: 16px; font-weight: 700; color: var(--sh-text); }
.sc-item { font-size: 13px; color: var(--sh-sub); }
.sc-memo { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: #EAF4FD; color: var(--sh-text); font-size: 13px; padding: 5px 10px; border-radius: 6px; }
.sc-subnote { font-size: 12px; color: var(--sh-sub); }
.sc-size { font-size: 12px; color: var(--sh-sub); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
/* ラベル（ピル型）。アイコン付きにもできるよう inline-flex */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; line-height: 1; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.tag-green { background: #E6F4EA; color: #1E7B34; }
.tag-red { background: #FDECEA; color: #C62828; }
.tag-orange { background: #FFF1E0; color: #8A4B00; }
.tag-purple { background: #F3E8FD; color: #7B1FA2; }
.tag-ico { flex-shrink: 0; }
/* 右端：数量とボタン */
.sc-actions { flex-shrink: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; position: relative; padding-left: 12px; }
.sc-actions .badge-n { position: absolute; left: -10px; top: -8px; }
.sc-qty { display: block; text-align: center; font-size: 12px; color: var(--sh-sub); background: #F1F3F6; border-radius: 4px; padding: 4px 10px; }
.sc-btn { display: block; text-align: center; font-size: 12px; font-weight: 700; line-height: 1; padding: 9px 14px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; min-width: 104px; }
.sc-btn-edit { background: #fff; border-color: var(--sh-brand); color: var(--sh-brand); }
.sc-btn-ask { background: #fff; border-color: #C8D2DE; color: var(--sh-text); }
.sc-btn-ship { background: var(--sh-brand); border-color: var(--sh-brand); color: #fff; }
.sc-btn-off { background: #E9EDF2; border-color: #E9EDF2; color: #9AA5B4; cursor: not-allowed; }
/* 番号バッジ（本文の①〜⑦と対応させる） */
.badge-n {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%; background: #F57C00; color: #fff;
  font-size: 11px; font-weight: 900; line-height: 1; box-shadow: 0 0 0 2px #fff;
}
/* スマホ：写真・本文・ボタンを縦に積む */
@media (max-width: 768px) {
  .stock-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px; }
  .sc-check { margin-top: 0; }
  .sc-photo { align-self: flex-start; }
  .sc-actions { flex-direction: row; flex-wrap: wrap; align-items: center; padding-left: 0; padding-top: 10px; border-top: 1px solid var(--sh-hairline); }
  .sc-actions .badge-n { position: static; }
  .sc-qty { flex: 0 0 auto; }
  .sc-btn { flex: 1 1 auto; min-width: 0; }
}

/* ===== タグ一覧カード（ラベルの説明。Lesson3 でも使う前提の共通部品） =====
   HTML:
   <div class="taglist">
     <div class="taglist-row">
       <div class="taglist-tag"><span class="tag tag-green">在庫あり</span></div>
       <div class="taglist-desc">説明…（長い場合は <details class="taglist-more"><summary>詳しく</summary><div class="taglist-more-body">…</div></details>）</div>
     </div>
     …
   </div>
   タグ列は固定幅で左そろえ。行間にうすい区切り線。スマホ幅ではタグの下に説明が回り込む */
.taglist { background: #fff; border: 1px solid var(--sh-line); border-radius: 12px; overflow: hidden; margin: 11px 0; }
.taglist-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 16px; }
.taglist-row + .taglist-row { border-top: 1px solid var(--sh-hairline); }
.taglist-tag { flex: 0 0 116px; display: flex; }
.taglist-desc { flex: 1 1 auto; min-width: 0; font-size: 16px; line-height: 1.9; color: var(--sh-body-sub); }
.taglist-desc b { color: var(--sh-navy); }
/* 折りたたみ「詳しく」 */
.taglist-more { margin-top: 4px; }
.taglist-more summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; color: var(--sh-brand); font-size: 13px; font-weight: 700; }
.taglist-more summary::-webkit-details-marker { display: none; }
.taglist-more summary::after { content: "▾"; font-size: 10px; line-height: 1; }
.taglist-more[open] summary::after { content: "▴"; }
.taglist-more-body { margin-top: 6px; font-size: 15px; line-height: 1.9; color: var(--sh-body-sub); }
@media (max-width: 768px) {
  .taglist-row { flex-direction: column; gap: 6px; }
  .taglist-tag { flex: none; }
}

/* ===== 画面表記の目印（見た目は変えない） =====
   画面の文言が変わったときに一括で差し替えるための印。
   <span class="term" data-term="box">BOX</span> のように使う。一覧と手順は docs/terms.md */
.term { font: inherit; color: inherit; }

/* ===== スマホで縦積みになる表（横スクロールさせない） =====
   <table class="tbl tbl-stack"> … <td data-label="列名"> と書く。
   スマホ幅では各行がカードになり、セルの上に列名が小さく出る */
@media (max-width: 768px) {
  .tbl-stack { min-width: 0; }
  .tbl-stack, .tbl-stack tbody, .tbl-stack tr, .tbl-stack td { display: block; width: 100%; }
  .tbl-stack thead { display: none; }
  .tbl-stack tr { border: 1px solid var(--sh-line); border-radius: 10px; padding: 6px 0; }
  .tbl-stack tr + tr { margin-top: 10px; }
  .tbl-stack td { border: 0; padding: 6px 14px; }
  .tbl-stack td::before {
    content: attr(data-label); display: block;
    font-size: 13px; font-weight: 700; color: var(--sh-sub); margin-bottom: 2px;
  }
}

/* ===== 本文のデザインルール（Lesson3 から適用） =====
   記事に <article class="article article-rich"> を付けたページだけに効く。Lesson1・2 は従来のまま。
   ルールの説明は docs/design-spec.md「本文のデザインルール」 */

/* ルール1：STEP内の小見出し。左の色線＋薄い背景の帯 */
.article-rich .sub-h {
  margin: 14px 0 -4px; padding: 9px 14px;
  background: #F1F6FC; border-left: 4px solid var(--sh-brand); border-radius: 0 8px 8px 0;
  font-size: 16px; font-weight: 900; color: var(--sh-navy); line-height: 1.5;   /* 本文（16px）とそろえる（2026-10-29） */
}

/* ルール2：一番大事な一文。文字の下半分に #FFE27A ＋太字（1つの小見出しにつき1〜2か所まで） */
.article-rich mark.hl { background: linear-gradient(transparent 50%, #FFE27A 50%); color: inherit; font-weight: 700; padding: 0 2px; }

/* ルール3：比べる情報は横並びのカード（スマホは縦積み）
   <div class="cmp"><div class="cmp-card cmp-orange"><div class="cmp-head">…</div><div class="cmp-body">…</div></div>…</div> */
.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cmp-card { background: #fff; border: 1px solid var(--sh-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.cmp-head { padding: 10px 16px; font-size: 15px; font-weight: 900; line-height: 1.5; color: var(--sh-navy); background: #EAF4FD; border-bottom: 1px solid var(--sh-line); }
.cmp-orange .cmp-head { background: #FFF1E0; color: #8A4B00; border-bottom-color: #F7D9B4; }
.cmp-blue .cmp-head { background: #E3F0FC; color: #0D5BA8; border-bottom-color: #C6DDF5; }
.cmp-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.9; color: var(--sh-body-sub); }
.step .cmp-body p { line-height: 1.9; }
.cmp-body b { color: var(--sh-navy); }
.cmp-note, .step p.cmp-note { font-size: 14px; line-height: 1.8; color: var(--sh-sub); }   /* .step p より強く */
@media (max-width: 768px) { .cmp { grid-template-columns: 1fr; } }

/* ルール4：3項目以上の説明の箇条書きは、区切り線入りの白いカード状リスト
   <ul class="cardlist"><li><span class="cardlist-ttl">項目名</span>説明</li>…</ul> */
.cardlist { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--sh-line); border-radius: 12px; overflow: hidden; }
.cardlist li { padding: 12px 16px; font-size: 16px; line-height: 1.9; color: var(--sh-body-sub); }
.cardlist li + li { border-top: 1px solid var(--sh-hairline); }
.cardlist-ttl { display: block; font-weight: 700; color: var(--sh-navy); }

/* ルール5：選び方のコツ（.tip）。.point（ブランドの青）とも .warn（黄）とも見分けられるよう、
   青緑寄りの青の左線＋薄い水色の背景＋外枠、見出しに 💡 */
.tip { background: #E8F7FA; border: 1px solid #B9E4EC; border-left: 4px solid #0091A8; border-radius: 0 10px 10px 0; padding: 18px 20px; }
.tip-ttl { font-size: 14px; font-weight: 900; color: #00677A; margin-bottom: 8px; }
.tip ul { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.9; color: var(--sh-body-sub); }
.tip li + li { margin-top: 6px; }
.cardlist b { color: var(--sh-navy); }

/* ===== Lesson6 よくある質問（FAQ） =====
   中身は scripts/faq-build.mjs が書き出す：site/lesson6.html（トップ）と site/faq-*.html（ジャンルのページ7つ）。手順は docs/faq-update.md */
.faq-wrap { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.faq-wrap [hidden] { display: none !important; }
.faq-sample-note { background: #FFF8DC; border: 1px dashed #E6B800; border-radius: 10px; padding: 10px 14px; text-align: center; font-size: 13px; font-weight: 700; color: #7A5B00; }

/* 検索窓（トップ・ジャンルのページ共通。全ジャンルから探し、結果は検索窓のすぐ下に出す） */
.faq-search { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.faq-search-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--sh-brand); border-radius: 999px; padding: 12px 20px; cursor: text; }
.faq-search-box:focus-within { box-shadow: 0 0 0 4px rgba(30, 136, 229, .15); }
.faq-search-box svg { flex-shrink: 0; }
.faq-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--sh-text); }
.faq-search-box input::placeholder { color: var(--sh-placeholder); }
.faq-count { font-size: 13px; font-weight: 700; color: var(--sh-navy); padding-left: 8px; }
.faq-empty { display: flex; flex-direction: column; gap: 10px; background: #F6F9FD; border: 1px solid var(--sh-line); border-radius: 12px; padding: 16px 18px; font-size: 14px; color: var(--sh-body-sub); }

/* 質問へのリンクの一覧（検索結果・よく見られる質問）：質問文＋小さなジャンル名 */
.faq-results { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--sh-line); border-radius: 12px; overflow: hidden; }
.faq-results li + li { border-top: 1px solid var(--sh-hairline); }
.faq-results a, .faq-link-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 16px; }
.faq-link-list li { padding: 0; }
.article-rich .cardlist.faq-link-list a { color: inherit; font-weight: inherit; text-decoration: none; }   /* 本文中リンクの下線（.cardlist a）を外す */
.faq-results a:hover, .faq-link-list a:hover { background: #F6F9FD; }
.faq-r-q { flex: 1 1 260px; min-width: 0; display: flex; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--sh-navy); }
.faq-r-q::before { content: "Q"; flex-shrink: 0; color: var(--sh-brand); font-weight: 900; }
.faq-results a:hover .faq-r-q, .faq-link-list a:hover .faq-r-q { color: var(--sh-brand); }
.faq-r-genre { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; line-height: 1; color: var(--sh-sub); background: #F1F5FA; border-radius: 999px; padding: 5px 9px; }
.faq-r-more { padding: 10px 16px; font-size: 12px; color: var(--sh-sub); }

/* よく見られる質問・ジャンルのカード（PC 3列、タブレット・スマホ 2列） */
.faq-featured, .faq-genres { display: flex; flex-direction: column; gap: 14px; }
.faq-genre-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* ジャンルのカード：上から薄い青が白に溶けるグラデーション。動きは共通部品 .card-lift。下の余白は右下の「→」のぶん
   太さの順番：ジャンル名・こんな質問（800）＞ 質問数（700）＞ 質問の例（600）。600・800 は lesson6.html のフォント読み込みで追加している */
.faq-genre-card { display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, #EEF5FD 0%, #FFFFFF 62%); border: 1px solid #CFE2F8; border-radius: 12px; padding: 16px 16px 34px; }
.faq-genre-ico { width: 44px; height: 44px; border-radius: 50%; background: #DCEBFB; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; align-self: flex-start; margin-bottom: 2px; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background-color .2s ease; }   /* 丸ごと拡大・傾ける（.card-lift__icon）。拡大の中心が丸の真ん中になるよう、幅は丸だけ */
.faq-genre-card:focus-visible .faq-genre-ico { background: #C6DEF8; }
@media (hover: hover) { .faq-genre-card:hover .faq-genre-ico { background: #C6DEF8; } }
.faq-genre-name { font-size: 15px; font-weight: 800; color: #0C2A4D; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }   /* 折り返すときは「・」のあと（<wbr>）で */
.faq-genre-count { align-self: flex-start; font-size: 12px; font-weight: 700; line-height: 1; color: #fff; background: var(--sh-brand); border-radius: 99px; padding: 4px 10px; }
.faq-genre-count.is-soon { background: var(--sh-sub); }
.faq-genre-ex { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.faq-genre-ex-label { font-size: 11px; font-weight: 800; line-height: 1.4; color: var(--sh-brand); }
.faq-genre-ex-q { font-size: 13px; font-weight: 600; line-height: 1.7; color: #1F2D3D; }
@media (max-width: 1024px) { .faq-genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ジャンルのページ：見出し・ジャンル切り替えのピル */
.faq-gh { display: flex; flex-direction: column; gap: 6px; }
.faq-gh-up { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--sh-brand); }
.faq-gh-up::before { content: "‹ "; }
.faq-gh-up:hover { text-decoration: underline; }
.faq-gh-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 26px; font-weight: 900; line-height: 1.35; color: var(--sh-navy); }
.faq-gh-ico { font-size: 28px; line-height: 1; }
.faq-gh-count { font-size: 13px; font-weight: 700; color: #fff; background: var(--sh-brand); border-radius: 999px; padding: 4px 12px; line-height: 1.4; }
.faq-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-pill { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 13px; font-weight: 700; line-height: 1; color: var(--sh-navy); background: #fff; border: 1px solid var(--sh-line); border-radius: 999px; padding: 9px 14px; transition: border-color .15s, color .15s; }
.faq-pill:hover { border-color: var(--sh-brand); color: var(--sh-brand); }
.faq-pill.is-current { background: var(--sh-brand); border-color: var(--sh-brand); color: #fff; }

/* ジャンルのページ：質問（開くと回答） */
.faq-items { display: flex; flex-direction: column; gap: 10px; }
.faq-soon { background: #F6F9FD; border: 1px solid var(--sh-line); border-radius: 12px; padding: 18px; text-align: center; font-size: 14px; font-weight: 700; color: var(--sh-sub); }
.faq-item-wrap { position: relative; }
.faq-item { background: #fff; border: 1px solid var(--sh-line); border-radius: 12px; scroll-margin-top: 80px; transition: box-shadow .4s, border-color .2s; }
.faq-item[open] { border-color: #BFD7F0; }
.faq-item.is-target { box-shadow: 0 0 0 3px #FFD54A; }
.faq-item summary { position: relative; list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; padding: 14px 140px 14px 16px; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--sh-navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 18px; top: 21px; width: 8px; height: 8px; border-right: 2px solid var(--sh-sub); border-bottom: 2px solid var(--sh-sub); transform: rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(-135deg); top: 25px; }
.faq-q-mark { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--sh-brand); color: #fff; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.faq-q-text { flex: 1; min-width: 0; }
.faq-copy { position: absolute; top: 12px; right: 42px; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 11px; font-weight: 700; color: var(--sh-brand); background: #fff; border: 1px solid var(--sh-line); border-radius: 999px; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.faq-copy-ico { display: none; flex-shrink: 0; }
.faq-copy:hover { border-color: var(--sh-brand); }
.faq-a { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 16px 50px; font-size: 16px; line-height: 1.9; color: var(--sh-body-sub); }
.faq-a p { margin: 0; }
.faq-lead b { color: var(--sh-navy); }
.faq-rel a { color: var(--sh-brand); font-weight: 700; }
.faq-rel a:hover { text-decoration: underline; }
.faq-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.faq-tag { font: inherit; font-size: 11px; font-weight: 700; line-height: 1; color: #0D5BA8; background: #EAF4FD; border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.faq-tag::before { content: "#"; margin-right: 1px; }
.faq-tag:hover { background: #D6E9FB; }

/* サイドバー：よくある質問のトップと、その下にジャンル（今いるページに色） */
.faq-nav-top { display: block; font-size: 13px; font-weight: 700; padding: 9px 6px; color: var(--sh-text); border-bottom: 1px solid #EEF3F8; }
.faq-nav-list { list-style: none; margin: 6px 0 0 6px; padding: 2px 0 0 12px; border-left: 2px solid var(--sh-hairline); }
.faq-nav-list a { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 4px; color: var(--sh-text); }
.faq-nav-list .nm { flex: 1; min-width: 0; }
.faq-nav-list .n { font-size: 11px; font-weight: 700; color: var(--sh-sub); background: #F1F5FA; border-radius: 999px; padding: 2px 8px; }
.faq-nav-top:hover, .faq-nav-list a:hover { color: var(--sh-brand); }
.faq-nav-top.is-current, .faq-nav-list a.is-current { color: var(--sh-brand); }
.faq-nav-list a.is-current .n { background: var(--sh-brand); color: #fff; }

@media (max-width: 768px) {
  .faq-gh-title { font-size: 22px; }
  /* スマホ：ジャンルのピルは1行にして横にスクロール */
  .faq-pills { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .faq-pills::-webkit-scrollbar { display: none; }
  .faq-item summary { padding: 12px 80px 12px 14px; font-size: 14px; }
  .faq-item summary::after { right: 16px; top: 19px; }
  .faq-item[open] summary::after { top: 23px; }
  /* スマホ：コピーはアイコンだけにして、質問文と重ならないようにする。押したときだけ文字を出す */
  .faq-copy { top: 10px; right: 36px; padding: 6px; }
  .faq-copy-ico { display: block; }
  .faq-copy-label { display: none; }
  .faq-copy.is-flash { padding: 4px 10px; box-shadow: 0 2px 8px rgba(16, 42, 76, .12); }
  .faq-copy.is-flash .faq-copy-ico { display: none; }
  .faq-copy.is-flash .faq-copy-label { display: inline; }
  .faq-a { padding: 0 14px 14px; }
  .faq-genre-card { padding: 14px 14px 32px; }
  .faq-results a, .faq-link-list a { padding: 11px 14px; }
}

/* ===== Lesson5 で追加した部品 ===== */
/* ピルの色の追加：到着待ち＝黄、おすすめしない＝グレー */
.tag-yellow { background: #FFF6C8; color: #8A6D00; }
.tag-gray { background: #EEF1F5; color: #5C6B7D; }
/* 縦積み表で、見出しが空の列にはラベルを出さない */
.tbl-stack td[data-label=""]::before { display: none; }
/* 選び方のコツ・補足枠の中の段落 */
.tip p + p { margin-top: 8px; }
.article-rich .cardlist a, .article-rich .tip a, .dl-list a { color: var(--sh-brand); font-weight: 700; text-decoration: underline; }

/* 画面の再現（一覧）：白いカードの中の、罫線なし・薄い区切り線の表
   <div class="stock-wrap"><div class="ui-screen"><table class="ui-table tbl-stack">…</table></div><p class="stock-note">…</p></div> */
.ui-screen { background: #fff; border: 1px solid #D5DCE5; border-radius: 10px; padding: 2px 10px; overflow: hidden; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ui-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--sh-sub); padding: 12px 10px; border-bottom: 1px solid var(--sh-line); white-space: nowrap; }
.ui-table td { padding: 16px 10px; border-bottom: 1px solid var(--sh-hairline); color: var(--sh-text); vertical-align: middle; line-height: 1.5; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table .mono { font-family: Consolas, Menlo, monospace; font-size: 12px; }
.ui-table .dim { color: #9AA5B4; }
.ui-table .lnk { color: var(--sh-brand); }
.ui-table .lnk + .lnk { margin-left: 14px; }
@media (max-width: 768px) {
  .ui-screen { padding: 10px; }
  .ui-table.tbl-stack td { padding: 6px 12px; }
  .ui-table.tbl-stack tr:last-child td { border-bottom: 0; }
}

/* 画面の再現（入力欄）：薄いグレーのページ地に白い入力カード
   <div class="stock-wrap"><div class="ui-page"><div class="ui-title">…</div><div class="ui-form">…</div></div><p class="stock-note">…</p></div> */
.ui-page { background: #F5F7FA; border-radius: 10px; padding: 16px 18px; }
.ui-title { font-size: 17px; font-weight: 900; color: #111; margin-bottom: 12px; }
.ui-form { background: #fff; border: 1px solid #E3E8EF; border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.ui-form-h { font-size: 15px; font-weight: 700; color: #111; }
.ui-form-sub { font-size: 12px; color: #5C6B7D; margin-top: -8px; }
.ui-form-red { font-size: 12px; color: #C62828; font-weight: 700; margin-top: -6px; }
.ui-form-row { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; }
.ui-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ui-label { font-size: 12px; font-weight: 700; color: #111; }
.ui-label .req { color: #C62828; margin-left: 2px; }
.ui-input { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #C8D2DE; border-radius: 6px; padding: 9px 12px; min-height: 40px; font-size: 13px; color: #111; background: #fff; }
.ui-input.is-empty { color: #9AA5B4; }
.ui-input svg { flex-shrink: 0; color: #5C6B7D; }
.ui-textarea { align-items: flex-start; min-height: 64px; white-space: pre-wrap; line-height: 1.7; }
.ui-hint { font-size: 11px; color: #5C6B7D; }
.ui-btn { align-self: flex-start; background: #1E5EFF; color: #fff; font-weight: 700; font-size: 13px; padding: 10px 22px; border-radius: 6px; margin-top: 4px; }
@media (max-width: 768px) {
  .ui-page { padding: 12px; }
  .ui-form { padding: 14px; }
  .ui-form-row { grid-template-columns: 1fr; }
}

/* ===== Lesson4 料金ページ =====
   料金のしくみ図（flow4 を「＋」でつなぐ）／月額カード／元箱0円の一文／段ボールの料金表 */
/* 流れ図を「＋」でつなぐ版（箱の意味は足し算なので、矢印ではなく＋にする） */
.flow4-plus .flow4-arrow::before { content: "＋"; transform: none; }
@media (max-width: 768px) { .flow4-plus .flow4-arrow::before { transform: none; } }

/* 月額利用料カード */
.price-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: linear-gradient(180deg, #EAF4FD 0%, #FFFFFF 70%); border: 1px solid #CFE2F8; border-radius: 14px; padding: 20px 16px; text-align: center; }
.price-card-label { font-size: 14px; font-weight: 700; color: var(--sh-sub); }
.price-card-amount { font-size: 40px; font-weight: 900; line-height: 1.1; color: var(--sh-navy); }
.price-card-amount .yen { font-size: 22px; font-weight: 900; margin-left: 2px; }
.price-card-sub { font-size: 13px; color: var(--sh-sub); }

/* 「元箱なら0円」の目立つ一文 */
.free-note { display: flex; align-items: center; gap: 10px; background: #E9F6EC; border: 1px solid #BFE3C6; border-left: 4px solid #2E9E4F; border-radius: 0 10px 10px 0; padding: 12px 16px; font-size: 16px; line-height: 1.7; color: var(--sh-body-sub); }
.free-note b { color: #1C6B33; }
.free-note::before { content: "¥0"; flex-shrink: 0; font-weight: 900; font-size: 15px; color: #fff; background: #2E9E4F; border-radius: 999px; padding: 4px 10px; line-height: 1.3; }

/* 料金表（金額は右寄せ。スマホでも横にはみ出さないよう、文字と余白を詰める） */
.price-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-tbl th, .price-tbl td { border: 1px solid var(--sh-line); padding: 7px 12px; text-align: left; }
.price-tbl th { background: #F3F8FE; color: var(--sh-navy); font-weight: 700; }
.price-tbl td { color: var(--sh-body-sub); }
.price-tbl .ta-r { text-align: right; white-space: nowrap; }
.price-tbl thead th.ta-r { text-align: right; }
@media (max-width: 768px) {
  .price-tbl { font-size: 13px; }
  .price-tbl th, .price-tbl td { padding: 6px 8px; }
}

/* 月額オプションの見出し（小見出しの帯の右に料金バッジ） */
.sub-h.opt-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.opt-price { display: inline-flex; align-items: baseline; gap: 1px; background: #fff; border: 1px solid #CFE2F8; border-radius: 999px; padding: 4px 14px; font-weight: 900; color: var(--sh-navy); }
.opt-price .num { font-size: 22px; line-height: 1; }
.opt-price .yen { font-size: 14px; }
.opt-price .per { font-size: 13px; color: var(--sh-sub); font-weight: 700; margin-left: 1px; }

/* 請求のタイミングなど、少し薄い版のポイント枠 */
.point.point-soft { background: #F6F9FD; border-left-color: var(--sh-chev); }

/* 月額カードの「（税込）」（税込表記はこの1か所だけ） */
.price-card-amount .tax { font-size: 15px; font-weight: 700; color: var(--sh-sub); margin-left: 4px; }

/* レッスン動画カード（Vimeo 埋め込み）。HTML は scripts/video-embed.mjs が content/lesson-videos.json から書き出す。
   縦横比は --lesson-video-ratio で変えられる（既定 16:9 = 56.25%）。配色は明示して、ダークモードや強制ダークでも崩れないようにする */
.lesson-video {
  --lesson-video-ratio: 56.25%;
  color-scheme: light;
  background: #fff; border: 1px solid var(--sh-line); border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30,100,180,.06);
  padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
/* STEP の中では .step p（16px・灰色・行間2.1）が効くので、詳細度を上げて見出しの指定を守る */
.lesson-video .lesson-video-ttl { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; color: var(--sh-navy); line-height: 1.4; }
.lesson-video .lesson-video-ttl svg { flex-shrink: 0; }
.lesson-video-frame { position: relative; width: 100%; padding-top: var(--lesson-video-ratio); background: #000; border-radius: 8px; overflow: hidden; }
.lesson-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 480px) { .lesson-video { padding: 10px; gap: 10px; } }
