/*
 * ご注文方法／初めての方（/guide/）とご注文ガイドの3ページ（/order_flow/・/sample/・/color_font/・T-1199）。
 * ページの頭・セミ／フル・流れ・誘いは競技のページとトップの部品（sport.css・sections.css）。ここはガイドだけの部品。
 * 色と部品はトップと同じ（白い地・灰色の地・白いカード・影）。
 */

/* ガイドの3ページの切り替え（モックの上のタブ） */
.hp-gtabs { background: #f7f7f7; border-bottom: 1px solid #e3e3e3; padding: 0 var(--gutter); }
.hp-gtabs ul { display: flex; justify-content: center; gap: 4px; max-width: 1180px; margin: 0 auto !important; }
.hp-gtabs__a { display: block; padding: 18px 24px 16px; font-size: 16px; font-weight: 700; color: #555; border-bottom: 3px solid transparent; }
.hp-gtabs__a:hover { color: #000; }
.hp-gtabs__a[aria-current="page"] { color: #000; border-bottom-color: #000; }

/* /guide/ の流れの下の「ご注文の流れの詳細」 */
.hp-gflow__more { margin-top: 32px !important; text-align: center; }
.hp-gflow__more .hp-case__btn { margin-top: 0; }

/* 料金・サイズ・サンプル（3枚） */
.hp-gbefore { background: var(--c-soft); padding: 96px var(--gutter); }
.hp-gbefore .hp-benefit__lead { text-align: center; }
.hp-gbefore__list { display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); justify-content: center; gap: 24px; margin-top: 40px !important; }
.hp-gbefore__card { display: flex; flex-direction: column; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); padding: 28px 24px; }
.hp-gbefore__title { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.hp-gbefore__text { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.hp-gbefore__small { margin-top: 10px !important; font-size: 13px; line-height: 1.8; color: var(--c-sub); overflow-wrap: anywhere; }
.hp-gbefore__btn { display: flex; align-items: center; justify-content: center; height: 50px; margin-top: auto; background: var(--c-primary, var(--c-btn)); color: var(--c-primary-ink, var(--c-btn-ink)); font-size: 15px; font-weight: 700; }
.hp-gbefore__card > p:last-of-type { margin-bottom: 20px !important; }
.hp-gbefore__btn:hover { background: var(--c-primary-h, var(--c-btn-h)); }

/* 注文の流れ（段ごとの説明） */
.hp-gsteps { max-width: calc(880px + var(--gutter) * 2); margin: 0 auto; padding: 72px var(--gutter) 96px; }
.hp-gsteps__list { counter-reset: none; }
.hp-gstep { position: relative; display: flex; gap: 24px; padding-bottom: 36px; }
.hp-gstep:not(:last-child)::before { content: ""; position: absolute; left: 39px; top: 80px; bottom: 6px; width: 2px; background: var(--c-chip); }
.hp-gstep__no { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; background: var(--bg); color: #fff; font-size: 11px; letter-spacing: 0.08em; line-height: 1.1; }
.hp-gstep__no b { font-size: 30px; font-family: var(--font-en); letter-spacing: 0; }
.hp-gstep__body { flex: 1; min-width: 0; padding-top: 14px; }
.hp-gstep__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 700; line-height: 1.5; }
.hp-gstep__title .hp-flow__badge { font-size: 12px; }
.hp-gstep__text { margin-top: 8px !important; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.hp-gstep__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; height: 48px; margin-top: 14px; padding: 0 20px; background: var(--c-primary, var(--c-btn)); color: var(--c-primary-ink, var(--c-btn-ink)); font-size: 15px; font-weight: 700; }
.hp-gstep__btn:hover { background: var(--c-primary-h, var(--c-btn-h)); }
.hp-gstep__btn--line { background: var(--c-lineapp); color: var(--c-lineapp-ink); }
.hp-gstep__btn--line:hover { background: var(--c-lineapp-h); }
.hp-gsteps__lt { margin-top: 12px; }

/* サンプル品のご依頼・カラー/フォント（同じ文の組み） */
.hp-gsample, .hp-gcolor, .hp-gfont { max-width: calc(980px + var(--gutter) * 2); margin: 0 auto; padding: 72px var(--gutter) 40px; }
.hp-gfont, .hp-gsample { padding-bottom: 96px; }
.hp-guide .hp-flow { padding-bottom: 96px; }
.hp-gsample__rec { background: var(--c-soft); border-left: 4px solid #333; padding: 22px 24px; font-size: 15px; line-height: 1.9; }
.hp-gsample__rec-title { font-size: 17px; font-weight: 700; margin-bottom: 4px !important; }
.hp-gsample__h { margin: 56px 0 18px; font-size: 26px; font-weight: 700; line-height: 1.4; }
section > .hp-gsample__h:first-child { margin-top: 0; }
.hp-gsample__items { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-gsample__items li { padding: 10px 18px; background: #fff; box-shadow: inset 0 0 0 1px #ccc; font-size: 15px; font-weight: 700; }
.hp-gsample__terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 40px 0 0; }
.hp-gsample__term { background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); padding: 24px; }
.hp-gsample__term dt { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.hp-gsample__term dd { margin: 0; }
.hp-gsample__p { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }

/* カラー（先方のカラー表と同じ並び: 列＝色相・段＝ビビッド→6段） */
.hp-gcolor__text { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
/* 99色の生地の見本の写真（先方が撮った実物・T-1236） */
.hp-gcolor__photo { margin: 28px 0 0; }
.hp-gcolor__photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
/* 写真のすぐ下の注意書き（先方 11/30 夕・T-1250） */
.hp-gcolor__photo-note { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--c-sub); overflow-wrap: anywhere; }
.hp-gcolor__chart { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
.hp-gcolor__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hp-gcolor__hue { font-size: 12px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-gcolor__sw { display: block; aspect-ratio: 1; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.hp-gcolor__small { margin-top: 10px !important; font-size: 13px; color: var(--c-sub); }
.hp-gcolor__caution { margin-top: 28px; }
.hp-gcolor__caution .hp-gsample__p + .hp-gsample__p { margin-top: 0.6em !important; }

/* 書体の見本（シミュレーターで選べる書体） */
.hp-gfont__h { margin: 32px 0 0; font-size: 18px; font-weight: 700; }
.hp-gfont__kind { margin-top: 18px !important; font-size: 14px; font-weight: 700; color: var(--c-sub); }
/*
 * 枠の並び（T-1258 先方 11/30 夜「配置バランス」）: 同じまとまりの枠は全部同じ高さ（grid-auto-rows: 1fr）。
 * 印（日本語対応・小文字非対応）は枠の上、番号（NM…）は枠の下に、どちらも枠の中の決まった位置に置き、上下に同じ幅を空ける
 * → 字のかたまりは枠の上下の真ん中・番号は全部の枠で下から同じ位置。
 * 字の大きさ: --gf-<まとまり> × 書体ごとの --k（字の高さをそろえる）。幅に合わせて guide.mjs の FONT_FIT_JS がまとまりごとに同じだけ縮める
 */
.hp-gfont { --gf-number: 40px; --gf-name: 40px; --gf-jp: 26px; --gf-edge: 30px; }
.hp-gfont__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-auto-rows: 1fr; gap: 12px; margin-top: 8px !important; }
.hp-gfont__item { position: relative; display: flex; flex-direction: column; justify-content: center; max-width: 100%; overflow: hidden; padding: var(--gf-edge) 10px; background: var(--bg); color: #fff; }
.hp-gfont__body { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hp-gfont__sample { line-height: 1.15; white-space: nowrap; }
.hp-gfont__sample[data-fit="number"] { font-size: calc(var(--gf-number) * var(--k, 1)); }
.hp-gfont__sample[data-fit="name"] { font-size: calc(var(--gf-name) * var(--k, 1)); }
.hp-gfont__sample[data-fit="jp"] { font-size: calc(var(--gf-jp) * var(--k, 1)); }
.hp-gfont__badges { position: absolute; top: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.hp-gfont__name { position: absolute; bottom: 9px; left: 0; right: 0; font-size: 12px; line-height: 14px; color: #ccc; text-align: center; }
.hp-gfont__item--jp { box-shadow: inset 0 0 0 2px var(--c-primary, var(--c-btn)); }
.hp-gfont__badge { padding: 1px 8px; background: var(--c-primary, var(--c-btn)); color: var(--c-primary-ink, var(--c-btn-ink)); font-size: 11px; line-height: 16px; font-weight: 700; }
.hp-gfont__badge--sub { background: transparent; color: #ccc; box-shadow: inset 0 0 0 1px #888; }

@media (max-width: 960px) {
  .hp-gbefore__list { grid-template-columns: minmax(0, 520px); }
}
@media (max-width: 767px) {
  .hp-gtabs { padding: 0; overflow-x: auto; }
  .hp-gtabs ul { justify-content: flex-start; gap: 0; width: max-content; min-width: 100%; }
  .hp-gtabs ul { justify-content: center; }
  .hp-gtabs__a { padding: 14px 9px 12px; font-size: 13px; white-space: nowrap; }
  .hp-gbefore { padding: 56px var(--gutter); }
  .hp-gbefore__list { gap: 16px; margin-top: 24px !important; }
  .hp-gbefore__card { padding: 22px 18px; }
  .hp-gsteps { padding: 40px var(--gutter) 56px; }
  .hp-gstep { gap: 14px; padding-bottom: 28px; }
  .hp-gstep:not(:last-child)::before { left: 27px; top: 56px; }
  .hp-gstep__no { width: 56px; height: 56px; font-size: 9px; }
  .hp-gstep__no b { font-size: 22px; }
  .hp-gstep__body { padding-top: 6px; }
  .hp-gstep__title { font-size: 18px; }
  .hp-gstep__text { font-size: 14px; }
  .hp-gstep__btn { min-width: 0; width: 100%; }
  .hp-gsample, .hp-gcolor, .hp-gfont { padding: 40px var(--gutter) 24px; }
  .hp-gfont, .hp-gsample, .hp-guide .hp-flow { padding-bottom: 56px; }
  .hp-gsample__h { margin-top: 40px; font-size: 21px; }
  .hp-gsample__terms { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
  .hp-gsample__term { padding: 18px; }
  .hp-gcolor__chart { gap: 3px; }
  .hp-gcolor__col { gap: 3px; }
  .hp-gcolor__hue { display: none; } /* 列が狭く色の名前が切れるので出さない（読み上げは列の aria-label） */
  .hp-gfont__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-gfont { --gf-number: 30px; --gf-name: 30px; --gf-jp: 20px; --gf-edge: 28px; }
}
