@charset "UTF-8";
/* SP（〜1023px）製品カテゴリ下層の共通（鉄道関連・大型機械関連・建設関連・試作鍛造部品）
   PC の絶対配置をやめて上から流し込む。
   並び：ページタイトル → 導入 → ANATOMY（指で横スワイプ。矢印・ドットは消す）
         → 製品一覧（1列／768〜 2列）→ 納入実績・品質（白いカードを 1列／768〜 2列）
   ページ固有の差分は sp/<page>.css */

:root { --pcat-hero-h: 260px; }

/* ---------- 流し込みの基本 ---------- */
.page main { position: relative; }
.page .pcat-intro, .page .pcat-anatomy, .page .pcat-lineup, .page .pcat-trust {
  position: relative !important; left: auto !important; top: auto !important;
  width: auto !important; height: auto !important;
}
.page .pcat-intro > *, .page .pcat-anatomy > *, .page .pcat-lineup > *, .page .pcat-trust > *, .page .pcat-lineup > ul > li {
  position: relative !important; left: auto !important; top: auto !important; bottom: auto !important;
  transform: none !important; white-space: normal;
}
/* 中身の幅（タブレットは 720px で中央寄せ） */
.page .pcat-intro, .page .pcat-lineup, .page .pcat-trust { padding: var(--sp-sec) max(var(--sp-gutter), calc((100% - var(--sp-max)) / 2)); }

/* 装飾英字＋見出し（PC と同じく英字に見出しを少し重ねる） */
.page .pcat-big {
  display: block; font-size: clamp(40px, 14vw, 80px); line-height: 1; letter-spacing: 1px;
  text-align: center; white-space: nowrap !important;
}
.page .pcat-ttl, .page .pcat-anatomy__ttl {
  display: block; margin-top: -.55em; font-size: clamp(19px, 5.6vw, 26px); line-height: 1.5; text-align: center; white-space: normal !important;
}

/* ---------- ページタイトル（写真の上に和文・英字。下端に大きい英字） ---------- */
.page main > .pcat-hero {
  position: relative !important; left: auto !important; top: auto !important;
  width: 100% !important; height: var(--pcat-hero-h) !important; overflow: hidden;
}
.page .pcat-hero > .pcat-hero__photo {
  position: absolute !important; left: 0 !important; top: 0 !important;
  width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: 60% 50%;
}
.page main > .pcat-hero__ttl { left: var(--sp-gutter); top: 84px; font-size: 28px; line-height: 1.4; }
.page main > .pcat-hero__en { left: var(--sp-gutter); top: 130px; font-size: 13px; letter-spacing: 1.3px; }
.page main > .pcat-hero__big { left: 4px; top: calc(var(--pcat-hero-h) - .78em); font-size: clamp(44px, 15vw, 110px); line-height: 1; letter-spacing: 0; z-index: 1; }

/* ---------- 導入 ---------- */
.page .pcat-intro { text-align: center; }
.page .pcat-intro > * { max-width: var(--sp-max); margin-left: auto; margin-right: auto; }
.page .pcat-intro__copy { font-size: clamp(18px, 5.6vw, 32px); line-height: 1.6; letter-spacing: .5px; white-space: normal !important; }
.page .pcat-intro__txt { margin-top: 20px; font-size: var(--sp-body); line-height: 1.8; letter-spacing: .3px; text-align: left; white-space: normal !important; }
.page .pcat-intro__txt br { display: none; }

/* ---------- ANATOMY（横スワイプ） ---------- */
.page .pcat-anatomy { margin: 0 10px; padding: 48px 0 40px; border-radius: 10px; overflow: hidden; background: #1a202c; }
.page .pcat-anatomy > .pcat-anatomy__bg {
  position: absolute !important; left: 0 !important; top: 0 !important;
  width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important;
}
.page .pcat-anatomy__big { font-size: clamp(40px, 14vw, 80px) !important; }
.page .pcat-anatomy__ttl { padding: 0 var(--sp-gutter); }
.page .pcat-anatomy > .pcat-slider {
  width: auto !important; height: auto !important; margin-top: 24px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 var(--sp-gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.page .pcat-slider::-webkit-scrollbar { display: none; }
.page .pcat-slider__track { transform: none !important; gap: 12px !important; padding: 0 var(--sp-gutter); }
.page .pcat-slide { flex-direction: column; width: min(84vw, 560px); height: auto; border-radius: 10px; scroll-snap-align: start; }
.page .pcat-slide__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.page .pcat-slide__photo img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.page .pcat-slide__body { flex: 1 1 auto; justify-content: flex-start; gap: 12px; padding: 20px 20px 24px; }
.page .pcat-slide__num b { font-size: 28px; }
.page .pcat-slide__num span { font-size: 13px; }
.page .pcat-slide__name { font-size: 19px; line-height: 1.5; letter-spacing: 0 !important; }
.page .pcat-slide__txt { font-size: var(--sp-body); line-height: 1.8; }
.page .pcat-anatomy > .pcat-slider__btn, .page .pcat-anatomy > .pcat-slider__dots { display: none; }

/* ---------- 製品一覧（カード 1列／768〜 2列） ---------- */
.page .pcat-lineup { display: grid; grid-template-columns: 1fr; gap: 16px; }
.page .pcat-lineup > .pcat-big, .page .pcat-lineup > .pcat-ttl { grid-column: 1 / -1; }
.page .pcat-lineup > .pcat-ttl { margin-bottom: 8px; }
.page .pcat-lineup > ul { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* 鉄道関連の型（.pcat-item：部品が全部カード直下） */
.page .pcat-item, .page .pcat-prod {
  display: flex; flex-direction: column; width: auto !important; height: auto !important;
  padding-bottom: 24px; background: #fff; border-radius: 10px; overflow: hidden;
}
.page .pcat-item > *, .page .pcat-prod > * { position: static !important; width: auto !important; height: auto !important; margin-left: 20px; margin-right: 20px; white-space: normal; }
.page .pcat-item__bg, .page .pcat-item__panel, .page .pcat-item__spec, .page .pcat-prod__bg, .page .pcat-prod__panel { display: none; }
.page .pcat-item__photo, .page .pcat-prod__photo {
  order: -1; margin: 0 0 20px !important; width: 100% !important; height: 220px !important; max-width: none;
  padding: 16px; background: #f5fafd; object-fit: contain;
}
.page .pcat-item__cat, .page .pcat-prod__cat { font-size: 13px; line-height: 1.6; white-space: normal; }
.page .pcat-item__name, .page .pcat-prod__name { margin-top: 4px; font-size: 20px; line-height: 1.5; white-space: normal; }
.page .pcat-item__line { order: 0; display: block; width: auto !important; height: 1px !important; margin-top: 16px; background: #d9d9d9; object-fit: cover; }

.page .pcat-item__line { order: 1; } .page .pcat-item__txt { order: 2; }
.page .pcat-item__spec-lbl { order: 3; } .page .pcat-item__spec-val { order: 4; }
.page .pcat-item__txt, .page .pcat-prod__txt { margin-top: 16px; font-size: var(--sp-body); line-height: 1.8; }
/* 主要規格：見出し→値の縦積み（2項目なので表にしない） */
.page .pcat-item__spec-lbl, .page .pcat-item__spec-val { background: #f8f8f8; border: 1px solid #c4c4c4; white-space: normal; }
.page .pcat-item__spec-lbl { margin-top: 16px; padding: 12px 16px 0; border-bottom: 0; font-size: 13px; }
.page .pcat-item__spec-val { padding: 4px 16px 12px; border-top: 0; font-size: 16px; line-height: 1.6; }
.page .pcat-item__spec-val--2 br { display: none; }

/* 大型機械関連・建設関連の型（.pcat-prod：本文が .pcat-prod__body にまとまっている） */
.page .pcat-prod__body { display: block; }
.page .pcat-prod__head { display: block; }
.page .pcat-prod__line { display: block; width: 100% !important; height: 1px !important; margin: 16px 0 0; background: #d9d9d9; object-fit: cover; }
.page .pcat-prod > .pcat-prod__spec { margin-top: 16px !important; padding: 12px 16px; bottom: auto !important; white-space: normal; }
.page .pcat-prod__spec dt { font-size: 13px; }
.page .pcat-prod__spec dd { font-size: 16px; line-height: 1.6; }

/* ---------- 納入実績・品質（薄いグレーの面に白いカード） ---------- */
.page .pcat-trust { background: #f5f5f5; }
.page .pcat-trust > .pcat-trust__band, .page .pcat-trust > .pcat-trust__bg, .page .pcat-trust > .pcat-trust__card { display: none; }
.page .pcat-trust__big { color: #e4e4e4 !important; font-size: clamp(30px, 8.6vw, 64px) !important; }
.page .pcat-trust__ttl { margin-bottom: 8px; }
/* イラスト（納入実績の両手・品質のボルト） */
.page .pcat-trust > img.abs { display: block; width: 120px !important; height: auto !important; margin: 40px auto 0; }
.page .pcat-trust > .pcat-badge { width: 120px !important; height: 113px !important; margin: 40px auto 0; }
.page .pcat-trust__en, .page .pcat-trust__name { display: block; text-align: center; white-space: normal !important; }
.page .pcat-trust__en { margin-top: 12px !important; font-size: 13px; }
.page .pcat-trust__name { margin-top: 2px !important; margin-bottom: 8px; font-size: 22px; }
/* 鉄道関連：見出し(h4)と本文(p)が並んでいるので、2つで 1枚のカードに見せる */
.page .pcat-trust__h { display: block; margin-top: 12px; padding: 16px 20px 0; background: #fff; border: 1px solid #e0e0e0; border-bottom: 0; border-radius: 10px 10px 0 0; font-size: 18px; line-height: 1.5; white-space: normal; }
.page .pcat-trust__p { padding: 6px 20px 16px; background: #fff; border: 1px solid #e0e0e0; border-top: 0; border-radius: 0 0 10px 10px; font-size: var(--sp-body); line-height: 1.8; white-space: normal; }
.page .pcat-trust__p br { display: none; }
/* 大型機械関連・建設関連：カード（.pcat-tcard） */
.page .pcat-trust > .pcat-tcard { width: auto !important; height: auto !important; margin-top: 12px; padding: 16px 20px !important; white-space: normal; }
.page .pcat-tcard__h { font-size: 18px; line-height: 1.5; }
.page .pcat-tcard__p { margin-top: 6px !important; font-size: var(--sp-body); line-height: 1.8; }
.page .pcat-tcard__p br { display: none; }
/* ワイヤー版から足した文（確かな品質を…） */
.page .pcat-trust > [class*="pcat-promise__"] { white-space: normal !important; text-align: center; }
.page .pcat-promise__h { margin-top: 48px; font-size: 20px; line-height: 1.5; }
.page .pcat-promise__txt { margin-top: 12px; font-size: var(--sp-body); line-height: 1.8; text-align: left !important; }
.page .pcat-promise__txt br { display: none; }

/* ---------- タブレット（768〜1023px） ---------- */
@media (min-width: 768px) {
:root { --pcat-hero-h: 360px; }
.page main > .pcat-hero__ttl { left: 40px; top: 120px; font-size: 40px; }
.page main > .pcat-hero__en { left: 40px; top: 184px; font-size: 16px; }
.page .pcat-lineup { grid-template-columns: 1fr 1fr; }
.page .pcat-lineup > ul { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
.page .pcat-anatomy { margin: 0 20px; padding: 64px 0 56px; }
.page .pcat-slide { width: min(70vw, 560px); }
}

/* ---------- ANATOMY：スライド内の写真切り替え（SP）。サムネは 44px 以上のタップ領域 ---------- */
.page .pcat-slide__photo .pcat-pic { position: absolute; inset: 0; }
.page .pcat-slide__photo .pcat-pic--fit { object-fit: contain; background: #fff; }
.page .pcat-pics__nav { left: 10px; bottom: 10px; gap: 6px; }
.page .pcat-pics__btn { width: 52px; height: 44px; border-radius: 4px; }
.page .pcat-pics__btn img { width: 100% !important; height: 100% !important; }

/* ---------- LINEUP：「形状・寸法を見る」PDF（SP）。カードの一番下、タップしやすい高さ ---------- */
.page .pcat-pdf-btn { order: 99; align-self: flex-start; display: inline-flex !important; width: auto !important; height: 44px !important; margin-top: 16px; }
.page .pcat-slide__photo--product .pcat-pic { padding: 24px; background: #f5fafd; }
.page .pcat-tcard--promise { height: auto !important; }
