/*
 * PRODUCT のページ（/sports/・/football/ など・T-1159）。区画の並び・地の色は元の HP から写したデータ（apps/hp/data/products/*.json）。
 * 部品の形（ボタン・文字・写真の枠）は新しい HP の物。組み立ては scripts/hp/products.mjs。
 */
.hp-sub--product { background: #fff; }
.hp-pd { padding-top: 104px; color: #111; font-size: 15px; line-height: 1.8; }
.hp-pd__pagehead { padding: 40px var(--gutter) 32px; background: #f4f5f7; text-align: center; }
.hp-pd__pagetitle { margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: 0.04em; }

/* 章へのリンク（サイズ表の競技・T-1221）。押すとその章へ移る。上の固定のヘッダーに隠れないよう行き先を下げる */
.hp-pd__chapters { padding: 20px var(--gutter); background: #f4f5f7; }
.hp-pd__chapterwrap { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hp-pd__chapter { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border-radius: 12px; background: #fff; color: #111; text-decoration: none; box-shadow: inset 0 0 0 2px #d9dde3; transition: box-shadow 0.15s; }
.hp-pd__chapter:hover, .hp-pd__chapter:focus-visible { box-shadow: inset 0 0 0 2px #111; }
.hp-pd__chapterno { font-size: 12px; font-weight: 700; color: #595959; }
.hp-pd__chaptername { font-size: 17px; font-weight: 900; letter-spacing: 0.04em; }
.hp-pd__chaptersub { font-size: 13px; color: #444; }
.hp-pd [id] { scroll-margin-top: 120px; }
@media (max-width: 600px) { .hp-pd__chapterwrap { grid-template-columns: repeat(2, 1fr); } }

.hp-pd__section { padding: 28px var(--gutter); background-size: cover; background-position: center; }
.hp-pd__section--bgimg { padding: 80px var(--gutter); }
.hp-pd__wrap { max-width: 1140px; margin: 0 auto; }
.hp-pd__row { display: flex; flex-direction: column; gap: 20px; }
.hp-pd__row--multi { flex-direction: row; justify-content: center; align-items: stretch; gap: 24px; }
.hp-pd__row--multi > .hp-pd__col { flex: 0 1 var(--w); min-width: 0; }
.hp-pd__col { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.hp-pd__col--card { padding: 20px; }
.hp-pd__inner { width: 100%; }

.hp-pd__heading { margin: 8px 0 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; line-height: 1.5; letter-spacing: 0.03em; }
.hp-pd__text { font-size: 14px; }
.hp-pd__text p { margin: 0 0 6px; }
.hp-pd__text p:last-child { margin-bottom: 0; }
.hp-pd__link { text-decoration: underline; text-underline-offset: 3px; }
.hp-pd__divider { width: 120px; margin: 4px auto; border: 0; border-top: 2px solid #e00; }

.hp-pd__figure { margin: 0; text-align: center; }
.hp-pd__img { width: 100%; height: auto; margin: 0 auto; }
.hp-pd__figure a { display: block; transition: opacity 0.2s; }
.hp-pd__figure a:hover { opacity: 0.85; }

.hp-pd__btnrow { text-align: center; }
.hp-pd__btn { display: inline-flex; min-width: 260px; height: 56px; padding: 0 28px; font-size: 17px; }
.hp-pd__btn:hover { opacity: 0.85; }

.hp-pd__box, .hp-pd__iconbox { height: 100%; padding: 22px 18px; background: #fff; text-align: center; }
.hp-pd__boximg { width: 100%; height: auto; max-height: 220px; object-fit: contain; margin: 0 auto 10px; }
.hp-pd__boxtitle { margin: 6px 0; font-size: 18px; font-weight: 900; }
.hp-pd__boxtext { margin: 0; font-size: 14px; }
.hp-pd__iconbox .hp-pd__boxtext { text-align: left; }
/* 写真が横にある箱（制作の流れ）: 丸い写真＋見出しと文 */
.hp-pd__box--left, .hp-pd__box--right { display: flex; gap: 20px; align-items: center; text-align: left; border-bottom: 3px solid #f97b0b; border-right: 3px solid #f97b0b; }
.hp-pd__box--right { flex-direction: row-reverse; }
.hp-pd__box--left .hp-pd__boximg, .hp-pd__box--right .hp-pd__boximg { flex: 0 0 110px; width: 110px; height: 110px; margin: 0; border-radius: 50%; object-fit: cover; border: 3px solid #f97b0b; }
.hp-pd__box--left .hp-pd__boxtitle, .hp-pd__box--right .hp-pd__boxtitle { padding: 4px 10px; background: #f2f2f2; font-size: 16px; }
.hp-pd__iconbox { border: 2px solid #111; }
.hp-pd__icon { display: block; width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%; }

.hp-pd__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hp-pd__gimg { margin: 0; background: #fff; }
.hp-pd__gimg .hp-pd__img { aspect-ratio: auto; }

.hp-pd--sp { display: none !important; }

@media (max-width: 767px) {
  .hp-pd { padding-top: 88px; }
  .hp-pd__section { padding: 22px var(--gutter); }
  .hp-pd__section--bgimg { padding: 48px var(--gutter); }
  .hp-pd__row--multi { flex-direction: column; gap: 16px; }
  .hp-pd__row--multi > .hp-pd__col { flex-basis: auto; }
  .hp-pd__gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hp-pd__btn { min-width: 0; width: 100%; max-width: 340px; }
  .hp-pd--pc { display: none !important; }
  .hp-pd--sp { display: revert !important; }
  .hp-pd__figure.hp-pd--sp, .hp-pd__text.hp-pd--sp, .hp-pd__gallery.hp-pd--sp { display: block !important; }
  .hp-pd__gallery.hp-pd--sp { display: grid !important; }
}

/* 開け閉めする Q&A（FAQ・T-1161） */
.hp-pd__faq { display: grid; gap: 10px; text-align: left; }
.hp-pd__qa { border: 1px solid #ddd; border-radius: 10px; background: #fff; }
.hp-pd__q { cursor: pointer; padding: 14px 18px; font-weight: 700; line-height: 1.6; }
.hp-pd__q::marker { color: #f40000; }
.hp-pd__a { padding: 0 18px 16px; line-height: 1.8; }
.hp-pd__works { margin-top: 16px; }

/* 写真の代わりの仮の絵（セミカスタムの柄の全体イメージ・T-1162）。右上に「仮」 */
.hp-fill { position: relative; display: block; margin: 0 auto; }
.hp-fill__tag { position: absolute; top: 6px; right: 6px; padding: 1px 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.6; }
.hp-pd__box--left .hp-fill, .hp-pd__box--right .hp-fill { flex: 0 0 110px; margin: 0; }

/* 表（/newprice/ の価格表・/newsize/ のサイズ表を写した物・T-1163）。スマホは表だけ横に送る */
.hp-pd__heading--sub { font-size: clamp(17px, 1.6vw, 20px); }
.hp-pd__tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; margin: 4px 0; }
.hp-pd__table { border-collapse: collapse; width: 100%; min-width: max-content; font-size: 14px; line-height: 1.5; background: #fff; }
.hp-pd__table th, .hp-pd__table td { border: 1px solid #ddd6ca; padding: 7px 7px; text-align: center; vertical-align: middle; white-space: nowrap; }
.hp-pd__table td:first-child { text-align: left; white-space: normal; min-width: 9em; }
.hp-pd__thead th, .hp-pd__thead td { font-weight: 700; }
.hp-pd__was { text-decoration: line-through; }
.hp-pd__small { font-size: 0.86em; }

/*
 * スマホの表（T-1229）: 元の形の表は隠し、組み替えた表（scripts/hp/products.mjs の tableSp）を出す。
 *   品目ごと（料金）: 品目の名前の下に 行＝通常価格／新規チーム／切替チーム特別・列＝セミ／フル の小さな表
 *   縦横の入れ替え（サイズ）: 行＝サイズ・列＝計測箇所
 */
.hp-pd__tsp { display: none; }
@media (max-width: 767px) {
  .hp-pd__tablewrap--pc { display: none; }
  .hp-pd__tsp { display: grid; gap: 14px; margin: 4px 0; }
  .hp-pd__tsp .hp-pd__table { min-width: 0; width: 100%; table-layout: fixed; font-size: 14px; }
  .hp-pd__tsp .hp-pd__table th, .hp-pd__tsp .hp-pd__table td { white-space: normal; padding: 8px 6px; }
  .hp-pd__tsp .hp-pd__table td:first-child { min-width: 0; }
  .hp-pd__titem-name { margin: 0 0 6px; font-weight: 900; font-size: 15px; line-height: 1.5; }
  .hp-pd__tmini .hp-pd__tcorner { width: 44%; }
  .hp-pd__tmini .hp-pd__tlabel { text-align: left; font-size: 13px; line-height: 1.4; }
  .hp-pd__tmini td { font-size: 15px; font-variant-numeric: tabular-nums; }
  .hp-pd__tsp .hp-pd__tswap { font-size: min(14px, 3.6vw); } /* 360 幅でも女性サイズ（WXXS）・計測箇所が1行に入る */
  .hp-pd__tsp .hp-pd__tswap th, .hp-pd__tsp .hp-pd__tswap td { font-variant-numeric: tabular-nums; padding: 7px 2px; }
  .hp-pd__tswap tr:first-child th { font-size: min(12px, 2.9vw); letter-spacing: 0; }
  .hp-pd__tswap .hp-pd__tcorner { width: 3.6rem; } /* サイズの列（100・XS・WXXS・W5XL）は細く・残りを計測箇所に分ける */ /* 計測箇所（ウエスト・裾口幅）が5列でも1行に入る大きさ */
  /* 入れ物の箱が入れ子になると余白が重なって表が細る（料金の表は 246px まで細っていた）: 箱の内の余白を詰める */
  .hp-pd__col--card { padding: 16px 14px; }
  .hp-pd__col--card .hp-pd__col--card { padding: 14px 12px; }
}
