@charset "UTF-8";
.page-technologies {
  /* =============================================================
     page-technologies.php 専用スタイル（めっきと白金の技術）
     - 独立ファイル。functions.php で is_page_template('page-technologies.php') 時のみ enqueue
     - ラッパー div .page-technologies 配下に全て入れ子＝他ページに影響しない
     - スクロール出現は共通 .js-anim（common.js が .is-show を付与）に相乗り
     - Figma: file jxTcyMzIexGPPWGxSPe1Rl / node 1-56636（PC基準）
     ============================================================= */
}
.page-technologies {
  /* 規約1: デザインにパンくずは無いが custom_breadcrumb() をコードに組み込み、表示のみ抑止 */
}
.page-technologies .breadcrumb {
  display: none;
}
.page-technologies .p-tech {
  --navy: #001a51;
  --card-border: #6d7fac;
  --tab-bg: #e5e9f1;
  --shadow: #b3bcd4;
  --gray04: #f9fbff;
  --f-koulen: "Koulen", sans-serif;
  --f-jockey: "Jockey One", sans-serif;
  --f-noto: "Noto Sans JP", sans-serif;
  overflow-x: clip;
  background: #fff; /* テーマ既定の固定背景（工場写真）を隠しデザイン通り白地にする */
  position: relative;
  z-index: 1;
}
.page-technologies .p-tech .p-tech-inner {
  width: min(90%, 1328px);
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}
.page-technologies {
  /* 共通: js-anim 出現（フェード＋押し上げ） */
}
.page-technologies .p-tech .js-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.page-technologies .p-tech .js-anim.is-show {
  opacity: 1;
  transform: none;
}
.page-technologies {
  /* =========================================================
     1. ヘッダー（ページタイトル / FV）
     → news 等と共通の template-parts/page-tit.php を使用。
       背景・描線アニメ・tit-ja ワイプは subpage.css の .page-tit が担当。
       technologies だけ FV 右側に製品画像（.fv-product）をデザイン通り配置し、
       描線アニメのあとに「最後に出現」させる。
     ========================================================= */
}
.page-technologies .page-tit .inner {
  position: relative;
  z-index: 3;
}
.page-technologies .page-tit .fv-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.page-technologies .page-tit .fv-product {
  position: absolute;
  right: -1%;
  top: 58%;
  width: min(38vw, 620px);
  margin: 0;
  transform: translateY(-50%) translateX(24px);
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.page-technologies .page-tit .fv-product img {
  width: 100%;
  height: auto;
  display: block;
}
.page-technologies {
  /* 描線・tit-ja のあとに製品画像を最後に出現させる */
}
.page-technologies .page-tit.is-show .fv-product {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  transition-delay: 2.4s;
}
.page-technologies {
  /* =========================================================
     2. セクション共通（見出しブロック）
     ========================================================= */
}
.page-technologies .p-tech-sec {
  position: relative;
  padding: clamp(80px, 8.3vw, 160px) 0;
}
.page-technologies .p-tech-sec--technology {
  background: linear-gradient(180deg, #e0edff 0%, #e0f2ff 10%, #ffffff 25%, #ffffff 100%);
}
.page-technologies .p-tech-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  text-align: center;
}
.page-technologies {
  /* 装飾見出し（FEATURES / TECHNOLOGY）はデザインの字形・輪郭・影を忠実に再現した
     SVG（Figma書き出し）を使用。Webフォント読込に依存せずデザインと画素一致する。 */
}
.page-technologies .p-tech-head__en {
  display: block;
  line-height: 0;
  margin-bottom: 4px;
  max-width: 100%;
}
.page-technologies .p-tech-head__en img {
  height: clamp(64px, 11.5vw, 155px);
  width: auto;
  max-width: 100%;
  display: block;
}
.page-technologies .p-tech-head__sub {
  background: var(--navy);
  color: #fff;
  font-family: var(--f-noto);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.3;
  width: 100%;
  padding: 6px 24px;
  box-sizing: border-box;
}
.page-technologies .p-tech-head__ttl {
  font-family: var(--f-noto);
  font-weight: 500;
  color: #000;
  line-height: 1.6;
  font-size: clamp(22px, 3vw, 40px);
}
.page-technologies .p-tech-lead {
  margin-top: 40px;
  min-height: 190px; /* デザインの p ブロックは h-190px：テキスト上寄せ＋下の余白でカードとの間隔をとる */
  font-family: var(--f-noto);
  font-weight: 500;
  color: #000;
  line-height: 1.6;
  text-align: center;
  font-size: clamp(16px, 1.5vw, 24px); /* 規約4: 最小16px（タブレット域でも下回らない）。デザインPC24px/SP16px */
}
.page-technologies {
  /* =========================================================
     3. Features カード（千鳥2列）
     ========================================================= */
}
.page-technologies .p-tech-features__grid {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start; /* デザインは items-start：カードを行高に引き伸ばさない（下部の余白を防ぐ） */
  gap: 56px; /* デザイン div_img は行・列とも 56px。offset ラッパと相まって千鳥位置が一致 */
}
.page-technologies .p-tech-features__col {
  /* 右列（偶数）を下方向にずらして千鳥にする。幅は柔軟＋デザイン上限620px
     （広いPCでは620pxで確定＝デザイン通り、狭くなると縮んで中間幅でも2列を維持） */
  flex: 1 1 calc(50% - 28px);
  max-width: 620px;
  min-width: 0;
}
.page-technologies .p-tech-features__col--offset80 {
  padding-top: 80px;
}
.page-technologies .p-tech-features__col--offset40 {
  padding-top: 40px;
}
.page-technologies .p-tech-card {
  position: relative;
  flex: 1 1 calc(50% - 28px);
  max-width: 604px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.page-technologies .p-tech-features__col .p-tech-card {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
}
.page-technologies .p-tech-card__num {
  position: absolute;
  top: -13px;
  left: -13px;
  width: 72px;
  height: 72px;
  background: var(--card-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
  box-sizing: border-box;
  z-index: 2;
}
.page-technologies .p-tech-card__check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  font-family: var(--f-noto);
  font-size: 12px;
  line-height: 1;
}
.page-technologies .p-tech-card__check::before,
.page-technologies .p-tech-card__check::after {
  content: "";
  width: 6px;
  height: 12px;
  border-left: 1px solid #fff;
}
.page-technologies .p-tech-card__check::before {
  transform: skewX(18deg);
}
.page-technologies .p-tech-card__check::after {
  transform: skewX(-18deg);
}
.page-technologies .p-tech-card__no {
  font-family: var(--f-koulen);
  color: #fff;
  font-size: 40px;
  line-height: 1;
}
.page-technologies .p-tech-card__head {
  background: var(--tab-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-family: var(--f-noto);
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 24px);
  color: #000;
  text-align: center;
}
.page-technologies .p-tech-card__body {
  display: flex;
  gap: 24px;
  align-items: center;
}
.page-technologies .p-tech-card__desc {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--f-noto);
  font-weight: 500;
  font-size: clamp(16px, 1.1vw, 20px); /* 規約4: 最小16px。デザインPC20px/SP16px */
  line-height: 1.6;
  color: #000;
}
.page-technologies .p-tech-card__img {
  position: relative;
  flex: 0 0 286px;
  width: 286px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
}
.page-technologies .p-tech-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-technologies {
  /* =========================================================
     Features カード出現アニメ（コーディング指示 node 1-56620）
     ・カードごとに出現ポイントを持つ：各 .p-tech-card 自身が js-anim
       ＝共通 IntersectionObserver が個別に .is-show を付与。画面に入った
       カードから順にフェードイン（親セクション一括ではない）。
       カードのフェード（opacity/translateY）は共通 .js-anim ベースが担当。
     ・番号バッジは各カードの is-show 基準で「色面が左から伸びて→番号表示」
       （選ばれる理由ページと同じ動き）。遅延はカード出現からの相対値。
     ・左右のカードはほぼ同じ高さで同時に発火して見えるため、右列（offset付き＝
       .p-tech-features__col 内）だけ発火を --fire=0.15s 遅らせる。カード本体
       フェード・バッジ伸長・番号表示すべてに相対加算される。
     ========================================================= */
}
.page-technologies .p-tech-features__col .p-tech-card {
  --fire: 0.15s; /* 右列のみ：発火を少し遅らせる（左列は既定の 0s） */
}
.page-technologies .p-tech-card.js-anim {
  transition-delay: var(--fire, 0s); /* カード本体フェードの発火遅延（右列だけ+0.15s） */
}
.page-technologies .p-tech-card__num {
  /* 色面（グレーの角丸パネル）を左基点に横方向へ伸長。番号は伸長後に表示するため
     伸長中は中身 opacity:0 で見えず、scaleX による横歪みは視認されない */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
  transition-delay: calc(var(--fire, 0s) + 0.2s); /* カード出現の少し後にパネル伸長を開始 */
}
.page-technologies .p-tech-card.is-show .p-tech-card__num {
  transform: scaleX(1);
}
.page-technologies .p-tech-card__check,
.page-technologies .p-tech-card__no {
  opacity: 0;
  transition: opacity 0.3s ease;
  transition-delay: calc(var(--fire, 0s) + 0.55s); /* パネル伸長（0.2+0.4s）後に番号を表示 */
}
.page-technologies .p-tech-card.is-show .p-tech-card__check,
.page-technologies .p-tech-card.is-show .p-tech-card__no {
  opacity: 1;
}
.page-technologies {
  /* =========================================================
     4. Technology プロセスカード（ジグザグ＋破線コネクタ）
     ========================================================= */
}
.page-technologies .p-tech-flow {
  margin-top: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.page-technologies .p-tech-flow__row {
  display: flex;
  width: 100%;
}
.page-technologies .p-tech-flow__row--right {
  justify-content: flex-end;
}
.page-technologies .p-tech-proc {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  align-items: flex-start;
  width: min(100%, 1040px);
}
.page-technologies .p-tech-proc__label {
  flex: 0 0 220px;
  width: 220px;
  min-height: 200px;
  background: var(--tab-bg);
  border: 2px solid var(--card-border);
  border-radius: 4px 4px 40px 4px;
  box-shadow: 10px 10px 0 0 var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  box-sizing: border-box;
  text-align: center;
  font-family: var(--f-noto);
  font-weight: 700;
  font-size: clamp(18px, 1.4vw, 24px);
  color: #000;
}
.page-technologies .p-tech-proc__main {
  flex: 1 1 0;
  min-width: 0;
  padding-top: 40px;
}
.page-technologies .p-tech-proc__inner {
  border-right: 2px solid var(--card-border);
  border-bottom: 2px solid var(--card-border);
  border-radius: 0 0 4px 0;
  padding: 24px 24px 24px 0;
}
.page-technologies .p-tech-proc__flex {
  display: flex;
  gap: 24px;
  align-items: center;
}
.page-technologies .p-tech-proc__desc {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--f-noto);
  font-weight: 500;
  font-size: clamp(16px, 1.1vw, 20px); /* 規約4: 最小16px。デザインPC20px/SP16px */
  line-height: 1.6;
  color: #000;
}
.page-technologies .p-tech-proc__media {
  flex: 0 0 375px;
  width: 375px;
  height: 200px; /* デザイン: メディアは画像＋キャプションで高さ200px合計（画像がflexで縮む） */
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-technologies .p-tech-proc__img {
  position: relative;
  flex: 1 1 0; /* 200pxのメディア内でキャプションを除いた残りを画像が占める（固定200pxにしない） */
  min-height: 0;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(180deg, var(--gray04) 0%, #dae8f2 100%);
}
.page-technologies .p-tech-proc__img--dark {
  background: #4c505c;
}
.page-technologies .p-tech-proc__img--light {
  background: #e9f8ff;
}
.page-technologies .p-tech-proc__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-technologies .p-tech-proc__img--contain img {
  object-fit: contain;
}
.page-technologies {
  /* デザイン指定の配置（幅80%程度＋周囲にグラデ背景）。Figma の絶対配置 %を inline style で付与 */
}
.page-technologies .p-tech-proc__img .p-tech-imgpos {
  position: absolute;
  max-width: none;
  object-fit: fill;
}
.page-technologies .p-tech-proc__cap {
  font-family: var(--f-noto);
  font-weight: 500;
  font-size: 16px; /* 規約4: 最小16px。デザインは PC/SP とも 16px */
  line-height: 1.6;
  color: #000;
}
.page-technologies {
  /* 破線コネクタ（PCのみ・装飾） */
}
.page-technologies .p-tech-flow__connector {
  position: absolute;
  left: 107px;
  width: 133px;
  height: 228px;
  z-index: 0;
  pointer-events: none;
}
.page-technologies .p-tech-flow__connector img {
  width: 100%;
  height: 100%;
  display: block;
}
.page-technologies .p-tech-flow__connector--flip {
  transform: scaleY(-1);
}
.page-technologies .p-tech-flow__connector--c1 {
  top: 200px;
}
.page-technologies .p-tech-flow__connector--c2 {
  top: 428px;
}
.page-technologies .p-tech-flow__connector--c3 {
  top: 856px;
}
.page-technologies .p-tech-flow__connector--c4 {
  top: 1084px;
}
.page-technologies {
  /* =========================================================
     レスポンシブ
     ========================================================= */
  /* ===== 中間（〜1300px = テーマ lb）：1列・全幅。カード内は横並びのまま。
         PCの千鳥2列は幅が足りないと窮屈なので、この幅で1列へ切替。コネクタ非表示 ===== */
}
@media (max-width: 1300px) {
  .page-technologies {
    /* Features 1列 */
  }
  .page-technologies .p-tech-features__grid {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .page-technologies .p-tech-features__col,
  .page-technologies .p-tech-card {
    flex: none;
    width: 100%;
    max-width: none;
  }
  .page-technologies .p-tech-features__col--offset80,
  .page-technologies .p-tech-features__col--offset40 {
    padding-top: 0;
  }
  .page-technologies {
    /* Technology 1列・左寄せ・コネクタ非表示 */
  }
  .page-technologies .p-tech-flow__connector {
    display: none;
  }
  .page-technologies .p-tech-flow__row,
  .page-technologies .p-tech-flow__row--right {
    justify-content: flex-start;
  }
  .page-technologies .p-tech-proc {
    width: 100%;
  }
  .page-technologies .p-tech-flow {
    gap: 32px;
  }
  .page-technologies .p-tech-proc {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }
  .page-technologies .p-tech-proc__label {
    flex: none;
    width: auto;
    min-height: 0;
    padding: 12px 24px;
    border-radius: 4px 4px 32px 4px;
    font-size: 20px;
  }
  .page-technologies .p-tech-proc__main {
    width: 100%;
    padding-top: 0;
  }
  .page-technologies .p-tech-proc__inner {
    border: none;
    border-radius: 0;
    padding: 0;
  }
  .page-technologies .p-tech-proc__flex {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .page-technologies .p-tech-proc__desc {
    font-size: 16px;
  }
  .page-technologies .p-tech-proc__media {
    flex: none;
    width: 100%;
  }
  .page-technologies .p-tech-proc__media img{
    object-fit: cover;
  }
  .page-technologies .p-tech-proc__cap {
    font-size: 16px;
  }

  
}
.page-technologies {
  /* ===== SP（〜767px = テーマ sp）：SPデザイン準拠。カード内も縦積み・全幅・SP余白/文字 ===== */
}
@media (max-width: 767px) {
  .page-technologies {
    /* SPは左右24px固定（PCの min(90%) 由来の余分な%マージンを解消＝デザインの24px余白）
       ※基本ルール .p-tech .p-tech-inner に勝つよう同じ詳細度で指定 */
  }
  .page-technologies .p-tech .p-tech-inner {
    width: 100%;
    max-width: none;
    padding-inline: 24px;
  }
  .page-technologies {
    /* SPのリード文はデザイン通り左寄せ（Features/バー/タイトルは中央のまま） */
  }
  .page-technologies .p-tech-lead {
    min-height: 0;
    margin-top: 24px;
    text-align: left;
  }
  .page-technologies {
    /* 規約4: モバイルのp本文はPC版で改行指定があっても改行なし（左寄せで自然折返し）。SPデザインも br なし */
  }
  .page-technologies .p-tech-lead br {
    display: none;
  }
  .page-technologies {
    /* SP見出し(白金鍍金〜/用途や目的〜)はデザイン20px。400pxでも1行に収める */
  }
  .page-technologies .p-tech-head__ttl {
    font-size: 20px;
  }
  .page-technologies {
    /* Technology見出し「用途や目的に応じた多様なめっき技術」は17文字と長く、20pxだと
       375pxで2行になる（真幅340px>コンテナ323px）。font-sizeは極力20pxのまま
       （20px維持は幅≥416px、390pxでも18.7pxとほぼ20px）、狭い端末だけviewport幅で
       必要分を微縮小し1行に収める（375px=18px→真幅306pxで余白17px）。
       Featuresは13文字で余裕があり20pxのまま */
  }
  .page-technologies .p-tech-sec--technology .p-tech-head__ttl {
    font-size: clamp(16px, 4.8vw, 20px);
  }
  .page-technologies {
    /* SPのセクション上下余白はデザイン約40px（PCの clamp 80-160 由来の過大余白を解消） */
  }
  .page-technologies .p-tech-sec {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .page-technologies {
    /* Technology直後のサンプル帳との間隔はデザインで詰まっているため下余白を小さく */
  }
  .page-technologies .p-tech-sec--technology {
    padding-bottom: 8px;
  }
  .page-technologies {
    /* Features カード：padding16／タイトル20／説明16→画像 の縦積み・全幅／番号 top-21
       カード間はデザイン(div_img)のフレーム間隔 56px に合わせる */
  }
  .page-technologies .p-tech-features__grid {
    gap: 56px;
  }
  .page-technologies .p-tech-features__col .p-tech-card {
    --fire: 0s; /* SPは縦1列＝左右の概念がないので右列の発火遅延を無効化 */
  }
  .page-technologies .p-tech-card {
    padding: 16px;
  }
  .page-technologies .p-tech-card__num {
    top: -21px;
  }
  .page-technologies .p-tech-card__head {
    font-size: 20px;
  }
  .page-technologies .p-tech-card__body {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .page-technologies .p-tech-card__desc {
    font-size: 16px;
  }
  .page-technologies .p-tech-card__img {
    flex: none;
    width: 100%;
    height: 200px;
  }
  .page-technologies {
    /* Technology カード：ラベルタブ自動幅→説明→画像+キャプション の縦積み・枠線なし */
  }
  
  .page-technologies {
    /* FV（image#9 準拠）＝ヘッダー下に、タイトル(左)と製品画像(右)を縦中央でコンパクトに配置 */
  }
  .page-technologies .page-tit .inner {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    min-height: calc(var(--header-height, 100px) + 152px);
    padding: var(--header-height, 100px) 24px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .page-technologies .page-tit .fv-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .page-technologies .page-tit .fv-product {
    position: absolute;
    right: -10%; /* 右へずらし、画像の約2割を右端で見切れさせる（fv-imgのoverflow:hiddenでクリップ） */
    top: var(--header-height, 100px);
    bottom: 0;
    width: 44%;
    height: auto;
    margin: 0;
    transform: none;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .page-technologies .page-tit .fv-product img {
    width: auto;
    max-width: 100%;
    max-height: 150px;
    height: auto;
    margin: 0;
  }
  .page-technologies {
    /* is-show の基本ルール transform:translateY(-50%) がSP配置をずらすため打ち消す */
  }
  .page-technologies .page-tit.is-show .fv-product {
    transform: none;
  }
}
.page-technologies {
  /* テーマの --header-height 未設定バグ（common.js が #header を探すが実体は id="js-header"）で
     SP の page-tit padding 指定が calc無効化で壊れ、タイトルが固定ヘッダーに潜り下部が過剰余白になる。
     padding を全指定で上書きし、FVをデザイン通りコンパクトにする（上=ヘッダー回避／下=小さめ） */
}
@media (min-width: 768px) and (max-width: 1180px) {
  .page-technologies .page-tit .inner {
    padding: calc(var(--header-height, 80px) + 28px) 0 24px;
  }
}
