/* ===========================================================
   固定ページ（page.php）。型は page-guide.html、表は page-tokushoho.html／page-company.html、本文は page-privacy.html
   ご案内の列 .gm-side は本文の左（2026-10-16 ユーザー決定。モックの body.lay-left の形。切り替えは持たない）
   本文は標準ブロック＋クラス名（inc/patterns.php・docs/block-patterns.md）。className は figure（表）や div（グループ）に付く
   =========================================================== */
.gm-page{display:grid;grid-template-columns:240px minmax(0,1fr);gap:56px;padding:26px 0 88px;align-items:start}
.gm-pg{min-width:0}
.gm-pg-head .eyebrow{font-size:.85rem;font-weight:500;color:var(--gm-green-dark);letter-spacing:.08em}
.gm-pg-head h1{font-size:2rem;font-weight:700;line-height:1.4;letter-spacing:.04em}
.gm-pg-head .eyebrow+h1{margin-top:2px}
.gm-pg-head .lead{margin-top:14px;font-size:1.02rem;line-height:1.95;color:#444}

/* 要点の帯 */
.gm-keys{display:grid;grid-template-columns:repeat(4,1fr);margin-top:26px;background:var(--gm-mist);border-radius:4px;padding:20px 0 18px}
.gm-keys>div{padding:0 14px;border-left:1px solid var(--gm-pale);text-align:center;display:flex;flex-direction:column;align-items:center}
.gm-keys>div:first-child{border-left:0}
.gm-keys dt{font-size:.82rem;color:var(--gm-sub);font-weight:500}
.gm-keys dd{font-size:2rem;font-weight:700;line-height:1.25;letter-spacing:0;font-variant-numeric:tabular-nums;margin-top:2px;white-space:nowrap}
.gm-keys dd small{font-size:.5em;font-weight:700;margin-left:2px}
.gm-keys dd.g{color:var(--gm-green-dark)}
.gm-keys p{font-size:.78rem;color:var(--gm-sub);line-height:1.5;margin-top:4px}

/* 本文 */
.gm-txt{font-size:1rem;line-height:2;color:#333}
.gm-txt a{color:var(--gm-green-dark);text-decoration:underline;text-underline-offset:3px}
.gm-pg-body p+p{margin-top:12px}
.gm-pg-body>p:first-child{margin-top:24px} /* 本文が段落から始まるとき（ゴム直を使う理由）、要点の帯との間を空ける。記事は guide.css で 0 */
/* 本文の直下の H2 = 見出し帯（モックの .gm-sec h2。id は目次の飛び先） */
.gm-pg-body>h2{font-size:1.35rem;font-weight:700;letter-spacing:.06em;line-height:1.4;color:#fff;background:var(--gm-green);border-radius:4px;padding:11px 20px;margin:56px 0 22px;scroll-margin-top:calc(var(--gm-head-h,86px) + 16px)}
.gm-pg-body>h3{font-size:1.12rem;font-weight:700;line-height:1.5;margin:36px 0 12px;padding-left:12px;border-left:4px solid var(--gm-green)}
.gm-pg-body>h2+h3{margin-top:0}
/* クラスの無いリスト（緑の点・番号） */
.gm-pg-body>ul:not([class*="gm-"]),.gm-list{margin:10px 0 16px}
.gm-pg-body>ul:not([class*="gm-"]) li,.gm-list li{position:relative;padding:3px 0 3px 22px;line-height:1.8}
.gm-pg-body>ul:not([class*="gm-"]) li::before,.gm-list li::before{content:"";position:absolute;left:4px;top:.95em;width:8px;height:8px;border-radius:50%;background:var(--gm-green)}
.gm-pg-body>ol:not([class*="gm-"]){list-style:decimal;margin:10px 0 16px;padding-left:1.6em}
.gm-pg-body>ol:not([class*="gm-"]) li{padding:3px 0;line-height:1.8}

/* 表 .gm-tbl（1列目が見出し。標準の表ブロックでは td なので位置で当てる。特商法はカスタムHTMLの table.gm-tbl） */
.gm-tbl{margin:4px 0 16px}
table.gm-tbl,.gm-tbl>table{width:100%;border-collapse:collapse;font-size:.97rem;border-top:2px solid var(--gm-ink)}
.gm-tbl :is(th,td){padding:14px 16px;border:0;border-bottom:1px solid var(--gm-line);text-align:left;vertical-align:middle;line-height:1.7}
.gm-tbl tr>:first-child{width:38%;font-weight:500;background:#fafbf7}
.gm-tbl td :is(b,strong){font-size:1.3rem;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:0;margin-right:2px}
.gm-tbl td :is(b,strong).g,.gm-tbl td mark{color:var(--gm-green-dark);background:none}
.gm-tbl td small{color:var(--gm-sub);font-size:.85rem}
.gm-tbl td ul li{position:relative;padding-left:1em}
.gm-tbl td ul li::before{content:"・";position:absolute;left:0}
.gm-tbl td p+p{margin-top:6px}
/* 特商法・会社概要の表（見出しなしの表1つ。.gm-law） */
.gm-law{margin-top:24px}
.gm-law :is(th,td){vertical-align:top;line-height:1.8}
.gm-law tr>:first-child{width:30%}
.gm-law td small{font-size:.88rem}
.gm-law :is(tr,th)[id]{scroll-margin-top:calc(var(--gm-head-h,86px) + 16px)} /* 行の id（#info・#payment・#returns・#cancel）と、不良品の行の見出しの id（#return。カラーミーの購入確認画面の ?mode=sk#return から。STEP34） */
.gm-law :is(tr:target,tr:has(>th:target))>*{background:#FFF6DC;transition:background .3s}

/* 注意の枠（style.css の .gm-caution に、ブロックの形を足す） */
.gm-caution>:first-child{margin-top:0}
.gm-caution strong{display:block;color:var(--gm-orange);font-weight:700;font-size:1rem}

/* 手順（番号の丸＋線。li の先頭の太字が見出し） */
.gm-steps{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;counter-reset:st;margin:6px 0 8px;padding:0;list-style:none}
.gm-steps li{position:relative;padding:0 12px;counter-increment:st;font-size:.88rem;color:var(--gm-sub);line-height:1.7}
.gm-steps li::before{content:counter(st);display:grid;place-items:center;width:44px;height:44px;margin:0 auto 10px;border-radius:50%;background:var(--gm-green);color:#fff;font-weight:700;font-size:1.15rem;position:relative;z-index:1}
.gm-steps li::after{content:"";position:absolute;top:22px;left:calc(50% + 22px);right:calc(-50% + 22px);height:2px;background:var(--gm-pale)}
.gm-steps li:last-child::after{content:none}
.gm-steps :is(b,strong){display:block;font-size:1.05rem;font-weight:700;color:var(--gm-ink);text-align:center;margin-bottom:4px;line-height:1.7;background:none}

/* 支払い方法のカード（グループ .gm-pays の中にグループ .gm-pay） */
.gm-pays{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:6px 0 10px}
.gm-pays>*{margin:0}
.gm-pay{border:2px solid var(--gm-line);border-radius:10px;padding:16px 18px}
.gm-pay h4{font-size:1.12rem;font-weight:700;line-height:1.4;display:flex;align-items:center;gap:8px}
.gm-pay .lb{font-size:.72rem;font-weight:700;border-radius:4px;padding:0 8px;color:var(--gm-orange);border:1px solid var(--gm-orange);line-height:1.7}
.gm-pay p{font-size:.93rem;color:#444;line-height:1.8;margin-top:6px}
.gm-pay .brands{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;padding:0;list-style:none}
.gm-pay .brands li{font-size:.8rem;font-weight:500;border:1px solid var(--gm-line);border-radius:4px;padding:2px 8px;background:#fafbf7;line-height:1.7}

/* お届けの方法 2通り（カラム2列＋各列にグループ .gm-way） */
.wp-block-columns.gm-ways,.gm-ways{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:6px 0 10px}
.gm-ways>.wp-block-column{display:flex;flex-direction:column;margin:0}
.gm-way{flex:1;border:2px solid var(--gm-line);border-radius:10px;padding:16px 18px}
.gm-way .lb{display:inline-block;font-size:.75rem;font-weight:700;border-radius:4px;padding:1px 10px;color:var(--gm-green-dark);border:1px solid var(--gm-green);line-height:1.7}
.gm-way h4{font-size:1.2rem;font-weight:700;margin-top:8px;line-height:1.4}
.gm-way p:not(.lb){font-size:.93rem;color:#444;line-height:1.8;margin-top:6px}
.gm-way.is-o{border-color:#F0B79A;background:#FFFBF8}
.gm-way.is-o .lb{color:var(--gm-orange);border-color:var(--gm-orange)}

/* だれが何をするか（表ブロック。1列目＝項目、2列目＝通常の配送、3列目＝車上渡し。お客様のセルは3列目の2行目から） */
.gm-who{margin:4px 0 8px}
.gm-who>table{width:100%;border-collapse:collapse;font-size:.95rem;border-top:2px solid var(--gm-ink)}
.gm-who thead{border:0}
.gm-who :is(th,td){padding:11px 14px;border:0;border-bottom:1px solid var(--gm-line);text-align:center;vertical-align:middle;line-height:1.6}
.gm-who thead :is(th,td){font-size:.88rem;font-weight:700;background:#fafbf7}
.gm-who thead :is(th,td):nth-child(3){color:var(--gm-orange)}
.gm-who thead small{font-weight:400;color:var(--gm-sub)}
.gm-who tbody td{font-weight:700;width:29%;color:var(--gm-green-dark)}
.gm-who tbody td:first-child{text-align:left;font-weight:500;width:42%;color:inherit}
.gm-who tbody tr+tr td:nth-child(3){color:var(--gm-orange);background:#FFF4EE}

/* 確認リスト（li の先頭の太字が見出し） */
.gm-check{border:1px solid var(--gm-line);border-radius:8px;padding:6px 20px;margin:6px 0 10px;list-style:none}
.gm-check li{position:relative;padding:14px 0 14px 34px;border-bottom:1px solid var(--gm-line);line-height:1.75;font-size:.95rem;color:#444}
.gm-check li:last-child{border-bottom:0}
.gm-check li::before{content:"";position:absolute;left:2px;top:18px;width:18px;height:18px;border:2px solid var(--gm-green);border-radius:3px}
.gm-check li::after{content:"";position:absolute;left:8px;top:20px;width:6px;height:11px;border-right:2.5px solid var(--gm-green);border-bottom:2.5px solid var(--gm-green);transform:rotate(45deg)}
.gm-check :is(b,strong){display:block;font-weight:700;font-size:1rem;color:var(--gm-ink);background:none}

/* ポイントの枠（STEP17 で guide.css から移した。固定ページ・記事の両方で使う。グループ .gm-points の中にグループ .gm-point。1つ目の段落の太字が見出し）。番号は counter。.is-plain は番号なし */
.gm-points{counter-reset:pt;display:grid;gap:14px;margin:10px 0 20px}
.gm-points>*{margin:0}
.gm-point{counter-increment:pt;position:relative;border:1px solid var(--gm-line);border-radius:10px;padding:18px 22px 18px 74px}
.gm-point::before{content:counter(pt);position:absolute;left:18px;top:18px;width:40px;height:40px;border-radius:50%;background:var(--gm-green);color:#fff;font-weight:700;font-size:1.15rem;display:grid;place-items:center}
.gm-points.is-plain .gm-point{padding-left:22px}
.gm-points.is-plain .gm-point::before{content:none}
.gm-txt .gm-point>p{font-size:.95rem;color:#444;line-height:1.8;margin-top:6px}
.gm-txt .gm-point>p:first-child{margin-top:0;font-size:1.08rem;line-height:1.5;color:var(--gm-ink)}
.gm-point>p:first-child strong{display:block;font-weight:700}

/* よくある質問（詳細ブロック details.gm-faq を1問ずつ並べる） */
details.gm-faq{border-top:0;border-bottom:1px solid var(--gm-line)}
details.gm-faq:first-child,:not(details.gm-faq)+details.gm-faq{border-top:1px solid var(--gm-line)}
details.gm-faq>:not(summary){padding:0 0 20px;color:#444;line-height:1.9;font-size:.98rem}
details.gm-faq[open] summary::after{transform:translateY(-30%) rotate(-135deg)}

/* プライバシーポリシー：飾らない。番号つきの小見出し＋本文（グループ .gm-pp） */
.gm-pp{margin-top:24px;border-top:2px solid var(--gm-ink);padding-top:22px;font-size:.98rem;line-height:1.95;color:#333}
.gm-pp>p{margin-bottom:8px}
.gm-pp h2{font-size:1.08rem;font-weight:700;line-height:1.5;margin:34px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--gm-line)}
.gm-pp p+p{margin-top:8px}
.gm-pp ol{margin:8px 0 10px;padding:12px 18px;background:#fafbf7;border-radius:6px;list-style:none}
.gm-pp ol li{padding:2px 0}

/* 会社概要：コーポレートサイトへのリンク（グループ .gm-corp） */
.gm-corp{margin-top:36px}
.gm-corp h2{font-size:1.08rem;font-weight:700;line-height:1.5;padding-bottom:8px;border-bottom:1px solid var(--gm-line)}
.gm-corp ul{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px;padding:0;list-style:none}
.gm-corp li{line-height:1.7}
.gm-corp a{position:relative;display:block;border:1px solid var(--gm-line);border-radius:8px;padding:12px 32px 12px 16px;font-weight:500;color:inherit;text-decoration:none;transition:border-color .15s}
.gm-corp a:hover{border-color:var(--gm-green);color:var(--gm-green-dark)}
.gm-corp a::after{content:"";position:absolute;right:14px;top:50%;width:6px;height:6px;border-top:1.5px solid #888;border-right:1.5px solid #888;transform:translateY(-50%) rotate(45deg)}
.gm-pg-body .ext,.gm-corp .ext{font-size:.85rem;color:var(--gm-sub);margin-top:10px;line-height:1.7}

/* ご案内の列：メニュー「ご利用ガイド」＋今のページの目次＋お問い合わせの枠（メールだけ。STEP19。961px以上は張り付く。低い画面は列の中だけスクロール） */
.gm-side{order:-1;position:sticky;top:calc(var(--gm-head-h,86px) + 20px);font-size:.95rem;max-height:calc(100vh - var(--gm-head-h,86px) - 36px);overflow-y:auto;scrollbar-width:thin}
.gm-side .ttl{font-size:.8rem;font-weight:700;color:var(--gm-sub);letter-spacing:.1em;padding-bottom:8px;border-bottom:2px solid var(--gm-ink)}
.gm-side>ul>li{position:relative;border-bottom:1px solid var(--gm-line)}
.gm-side>ul>li>a{display:block;padding:12px 2px;font-weight:500;line-height:1.5}
/* 開閉できる項目（ご利用ガイド）だけ右端に矢印のボタン。閉じて「>」、開いて「v」（2026-10-16 ユーザー指示。ドロワーの .gm-dr-acc と同じ作り）。ほかの項目は矢印なし */
.gm-side>ul>li.has-acc>a{padding-right:40px}
.gm-side-acc{position:absolute;right:0;top:0;width:36px;font:inherit;line-height:1.5;padding:0;height:calc(1.5em + 24px);border:0;background:transparent;cursor:pointer;display:grid;place-items:center}
.gm-side-acc::after{content:"";width:7px;height:7px;border-top:1.5px solid #888;border-right:1.5px solid #888;transform:translateX(-2px) rotate(45deg);transition:transform .22s ease}
.gm-side-acc:hover::after,.gm-side li.is-cur>.gm-side-acc::after{border-color:var(--gm-green-dark)}
.gm-side li.is-open>.gm-side-acc::after{transform:translateY(-2px) rotate(135deg)}
.gm-side-panel{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .25s ease,visibility 0s .25s}
.gm-side li.is-open>.gm-side-panel{grid-template-rows:1fr;visibility:visible;transition:grid-template-rows .25s ease,visibility 0s 0s}
.gm-side-in{overflow:hidden;min-height:0}
.gm-side>ul>li>a:hover{color:var(--gm-green-dark)}
.gm-side li.is-cur>a{color:var(--gm-green-dark);font-weight:700}
.gm-toc{margin:0 0 12px 4px;border-left:2px solid var(--gm-line)}
.gm-toc a{display:block;padding:5px 0 5px 14px;margin-left:-2px;border-left:2px solid transparent;font-size:.88rem;color:var(--gm-sub);line-height:1.5}
.gm-toc a:hover{color:var(--gm-green-dark)}
.gm-toc a.is-on{color:var(--gm-green-dark);font-weight:700;border-left-color:var(--gm-green)}
.gm-side .help{margin-top:22px;background:var(--gm-mist);border-radius:8px;padding:16px 16px 18px;font-size:.88rem;line-height:1.7}
.gm-side .help b{display:block;font-size:.95rem}
.gm-side .help p{margin-top:6px;color:var(--gm-sub);font-size:.85rem;line-height:1.7}
.gm-side .help .btn{display:block;text-align:center;margin-top:12px;background:#fff;border:2px solid var(--gm-green);border-radius:8px;padding:8px;font-weight:700;color:var(--gm-green-dark)}
/* ログイン中は管理バーの分だけ下げる（訪問者には影響なし。style.css の .admin-bar .gm-head と同じ） */
@media (min-width:961px){.admin-bar .gm-side{top:calc(var(--gm-head-h,86px) + var(--wp-admin--admin-bar--height,0px) + 20px);max-height:calc(100vh - var(--gm-head-h,86px) - var(--wp-admin--admin-bar--height,0px) - 36px)}}
.admin-bar .gm-pg-body>h2,.admin-bar .gm-law :is(tr,th)[id]{scroll-margin-top:calc(var(--gm-head-h,86px) + var(--wp-admin--admin-bar--height,0px) + 16px)}
/* 960px以下の目次（本文の冒頭） */
.gm-toc-m{display:none;margin-top:22px;border:1px solid var(--gm-line);border-radius:8px;padding:12px 18px}
.gm-toc-m b{display:block;font-size:.85rem;color:var(--gm-sub);margin-bottom:4px}
.gm-toc-m ol{counter-reset:tc}
.gm-toc-m li{counter-increment:tc}
.gm-toc-m a{display:block;padding:5px 0;color:var(--gm-green-dark);font-weight:500;font-size:.95rem}
.gm-toc-m a::before{content:counter(tc)". ";color:var(--gm-sub);font-weight:400}

/* ノートPCの横幅（961〜1366px）：中身を約1000pxにするのは style.css（.gm-wrap）。この幅でも左の列 240px＋本文で収まる */

/* 縦が短い画面（拡大率150〜160%のノートPC。モックと同じ） */
@media (min-width:961px) and (max-height:760px){
  .gm-pg-body>h2{font-size:1.2rem;padding:7px 16px;margin-bottom:18px}
  .gm-side{font-size:.9rem}
  .gm-side>ul>li>a{padding:8px 2px}
  .gm-side>ul>li.has-acc>a{padding-right:40px}
  .gm-side-acc{height:calc(1.5em + 16px)}
  .gm-toc a{padding:3px 0 3px 14px}
  .gm-side .help{margin-top:14px;padding:12px 14px}
}

@media (max-width:960px){
  .gm-page{grid-template-columns:minmax(0,1fr);gap:48px;padding-bottom:64px}
  .gm-side{order:0;position:static;max-height:none;overflow:visible}
  .gm-side-acc,.gm-side-panel{display:none}
  .gm-side>ul>li.has-acc>a{padding-right:2px}
  .gm-toc-m{display:block}
  .gm-keys{grid-template-columns:repeat(2,1fr);row-gap:18px}
  .gm-keys>div:nth-child(3){border-left:0}
  .gm-pg-body>h2{margin-top:44px}
}
@media (max-width:640px){
  .gm-pg-head h1{font-size:1.55rem}
  .gm-keys dd{font-size:1.6rem}
  .gm-pg-body>h2{font-size:1.15rem;padding:9px 14px}
  .gm-tbl :is(th,td){display:block;width:auto !important;padding:10px 12px}
  .gm-tbl tr>:first-child{border-bottom:0;padding-bottom:4px}
  .gm-tbl tr>:not(:first-child){padding-top:4px}
  .gm-steps{grid-auto-flow:row;grid-template-columns:1fr;grid-auto-columns:auto}
  .gm-steps li{display:grid;grid-template-columns:44px 1fr;column-gap:14px;text-align:left;padding:0 0 18px}
  .gm-steps li::before{grid-row:1/3;margin:0}
  .gm-steps li::after{top:44px;bottom:0;left:21px;right:auto;width:2px;height:auto}
  .gm-steps :is(b,strong){text-align:left;padding-top:8px;margin-bottom:0}
  .gm-pays,.wp-block-columns.gm-ways,.gm-ways{grid-template-columns:1fr}
  .gm-who>table{font-size:.88rem}
  .gm-who :is(th,td){padding:10px 8px}
  .gm-check{padding:4px 14px}
  .gm-point{padding:16px 16px 16px 62px}
  .gm-point::before{left:14px;top:16px;width:34px;height:34px;font-size:1rem}
  .gm-points.is-plain .gm-point{padding-left:16px}
  .gm-pp{font-size:.95rem}
  .gm-pp ol{padding:10px 14px}
  .gm-corp ul{grid-template-columns:1fr 1fr}
}
