@charset "UTF-8";
/* ===================================================================
   トップページ固有スタイル
   正本: 00_共立機巧_Web_トップ.ai  アートボード 1366 x 7542 pt
   帯の境界（実測 / design px）:
     FV            0    -  768.4
     ミッション     768.4 - 2168
     実現できること 2168  - 2581   (#E4EFFE のにじみ帯を含む)
     製品情報      2581  - 4261   (#EFF1F2)
     お知らせ      4261  - 5008
     バナー2枚     5008  - 5408
     採用情報      5617  - 6382
     Contact      6512  - 6952
   =================================================================== */

/* ---------- FV ---------- */
.fv {
  position: relative;
  height: 768.4px;
  overflow: hidden;
  background: #BFE0F2;
}
.fv__media {
  position: absolute;
  inset: 0;
}
/* 指示レイヤー: 「FVは動画になります」に備え、video を差し込めば
   そのまま置き換わる構造にしてある（申し送り #1） */
.fv__media img,
.fv__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.fv__inner { position: relative; height: 100%; z-index: 2; }

.fv__title {
  position: absolute;
  left: 455px;
  top: 222px;
  margin: 0;
  font-size: 66px;
  font-weight: 500;
  line-height: 1.52;
  letter-spacing: .12em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(12, 48, 84, .28);
  white-space: nowrap;
}
.fv__lead {
  position: absolute;
  left: 486px;
  top: 428px;
  font-size: 19px;
  line-height: 1.9;
  letter-spacing: .16em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(12, 48, 84, .3);
  white-space: nowrap;
}
.fv__since {
  position: absolute;
  left: 586px;
  top: 520px;
  width: 200px;
  height: auto;               /* 46px 固定だと筆記体の descender が切れる */
  font-family: "Parisienne", "Snell Roundhand", cursive;
  font-size: 46px;
  line-height: 1.25;
  color: #9FF0E8;
  white-space: nowrap;
}

/* 「ふわっと文字が現れる」: 上段が先、下段が少し遅れて */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s cubic-bezier(.22, .61, .36, 1),
              transform 1s cubic-bezier(.22, .61, .36, 1);
}
.rv.is-in { opacity: 1; transform: none; }
.rv--d1 { transition-delay: .18s; }
.rv--d2 { transition-delay: .36s; }
.rv--d3 { transition-delay: .54s; }

/* ---------- ミッション ---------- */
/* ミッション帯は pageY 768.4 -> 1834.5（tech 装飾の開始）まで */
.mission { height: 1066.1px; background: #fff; }
.mission__title {
  position: absolute;
  left: 285.9px;
  top: 78.9px;               /* pageY 847.3 - 768.4 */
  font-size: 38px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--navy);
  white-space: nowrap;
}

/* 3 つの特長ブロック（技術力 / 対応領域 / 技術蓄積） */
.feature { position: absolute; left: 134.9px; width: 620px; }
.feature--1 { top: 238px; }    /* 1006.4 - 768.4 */
.feature--2 { top: 514.7px; }  /* 1283.1 - 768.4 */
.feature--3 { top: 791.4px; }  /* 1559.8 - 768.4 */

/* 実測: 「対応領域」4字のインク幅 187.0px（48px 字）→ 字送り 52.0 →
   トラッキング +0.083em。インク左端は x=195（＝かぎ括弧の内側）。 */
.feature__label {
  position: relative;
  display: inline-block;
  padding: 14px 42px 16px 12px;
  margin-left: 42.3px;         /* 177.2 - 134.9 */
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .040em;  /* 4字のグリフ幅 232px（実測）に合わせた実効値 */
  color: var(--navy);
}
/* 見出しを囲むかぎ括弧（左上・右下） */
.feature__label::before,
.feature__label::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid var(--navy);
}
.feature__label::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.feature__label::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }

.feature__sub {
  margin-top: 28px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .085em;
  color: var(--navy);
}
.feature__body {
  margin-top: 16px;
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: .085em;
  color: var(--ink);
}

/* 背面の巨大な欧文 KYORITSU KIKO */
.mission__ghost {
  position: absolute;
  left: 666px;
  top: 719.1px;               /* 1487.5 - 768.4 */
  margin: 0;
  font-size: 145px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .02em;
  color: var(--ghost);
  text-align: right;
  width: 649px;
  pointer-events: none;
  user-select: none;
}

/* 社屋写真（セピア）。クリッピングマスク解決後の表示矩形を実測:
   x=752.6 y=991.9 w=555.8 h=459.2。行ごとに左右端を走査すると
   中央 (y≈1180) で最大幅になり上下で狭まる = 楕円マスク。 */
.mission__photo {
  position: absolute;
  left: 752.6px;
  top: 223.5px;                /* 991.9 - 768.4 */
  width: 555.8px;
  height: 459.2px;
  overflow: hidden;
  border-radius: 50%;
  margin: 0;
}
.mission__photo img { width: 100%; height: 100%; object-fit: cover; }

.mission__btn { position: absolute; left: 548px; top: 1649.1px; }

/* ピンク〜ティールのブロブ。正本のベクターをそのまま書き出して配置する
   （CSS のグラデーションでは形も階調も一致しない）。
   実測 design x=546.5 y=979.5 w=360.5 h=247 -> 帯 top(768.4) 基準で 211.1px */
.mission__blob {
  position: absolute;
  left: 546.5px;
  top: 211.1px;
  width: 360.5px;
  height: 247px;
  pointer-events: none;
  z-index: 0;
}
.mission__photo, .mission__title, .feature, .mission__ghost, .mission__btn { z-index: 1; }

/* ---------- 実現できること ---------- */
/* ---------- 実現できること ----------
   帯: 装飾の開始 pageY 1834.5 -> 製品情報帯 2581 (h=746.5)
   実測: 見出し 1943.1 / リード 2054.8 / 円上端 2186.5 (径230.5) /
         ボタン 2417.5 (270x60) / 水写真 1834.7 x=992 426x328.3     */
.tech {
  height: 746.5px;
  background: #fff;
  overflow: hidden;
}
.tech__deco {
  position: absolute;
  left: 0;
  top: 0;
  width: 1366px;
  height: 680.5px;
  pointer-events: none;
  z-index: 0;
}
/* 円・文字・ボタンは装飾より前面に */
.tech__title, .tech__lead, .tech__list, .tech__btn, .tech__water { z-index: 1; }
.tech__water {
  position: absolute;
  left: 992px;
  top: .2px;
  width: 426px;
  height: 328.3px;
  object-fit: cover;
  border-radius: 0 0 0 160px;
}
.tech__title {
  position: absolute;
  left: 0; right: 0;
  top: 108.6px;
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: .085em;
  text-align: center;
  color: var(--navy);
}
.tech__lead {
  position: absolute;
  left: 0; right: 0;
  top: 220.3px;
  text-align: center;
  font-size: 18px;
  letter-spacing: .085em;
  color: var(--ink);
}
/* 円 4 つ: 実測 径 257、左端 x=88.5 / 397 / 705.5 / 1014.5（ピッチ 308.5）、
   中心 y=2209 -> 上端 2080.5 -> 帯 top(1834.5) 基準で 246px */
.tech__list {
  position: absolute;
  left: 88.5px;
  top: 286px;              /* 円中心 2249 -> 上端 2120.5 */
  display: flex;
  gap: 51.5px;              /* 308.5 - 257 */
}
.tech__item {
  width: 257px;
  height: 257px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #DCE8F5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  text-align: center;
}
.tech__icon { width: 46px; height: 43px; margin-bottom: 10px; }
.tech__name {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .085em;
  color: var(--navy);
  margin-bottom: 8px;
}
.tech__desc {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--ink);
}
.tech__btn { position: absolute; left: 548px; top: 583px; }

/* ---------- 製品情報 ---------- */
.product { height: 1680px; background: var(--band-grey); }
.product__head { position: absolute; left: 183px; top: 99.2px; }  /* 2680.2 - 2581 */

.product__card {
  position: absolute;
  left: 99px;
  top: 182px;                  /* 2763 - 2581 */
  width: 1165.5px;
  height: 1403.5px;
  background: #fff;
  border-radius: 28px;
}

/* 検索ボックス。カード上端 pageY=2763 を原点とした実測オフセット。
   ラベルのベースライン pageY=2856.2 が枠の中央に来る -> 枠 top = 2856.2-2763-31 = 62 */
.psearch {
  position: absolute;
  left: 84px;                  /* 183 - 99 */
  top: 62px;
  width: 1000px;
  height: 100px;
  border: 1px solid #DDE1E3;
  display: flex;
  align-items: center;
}
.psearch__label {
  flex: none;
  padding-inline: 40px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-right: 1px solid #DDE1E3;
  height: 44px;
  display: flex;
  align-items: center;
}
.psearch__input {
  flex: 1;
  height: 100%;
  padding-inline: 26px;
  border: 0;
  font-size: 16px;
  font-family: inherit;
  letter-spacing: var(--track);
  color: var(--ink);
  background: none;
}
.psearch__input::placeholder { color: #B5B5B5; }
.psearch__input:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.psearch__btn {
  flex: none;
  align-self: stretch;
  margin: 12px;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #1A1A1A;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: opacity .3s ease;
}
.psearch__btn:hover { opacity: .82; }
.psearch__btn .mg { width: 17px; height: 17px; flex: none; }

/* 「製品カテゴリ」帯: 文字 pageY=2959.7、帯は実測 y=2947..2993 */
.product__cat-head {
  position: absolute;
  left: 84px;
  top: 184px;                  /* 2947 - 2763 */
  width: 1000px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #C6CED2;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .085em;
  color: var(--navy);
}

/* サムネ行の上端 pageY = 3017.16 / 3336.58 / 3666.25（実測・不等ピッチ）。
   3 行目だけ広いのは最終行のラベルが 2 行になるため。単一の row-gap では
   合わないので、行ごとに実測オフセットで絶対配置する。 */
.pcats {
  position: absolute;
  left: 84px;                  /* 183 - 99 */
  top: 0;
  width: 1000px;
  height: 100%;
}
.pcat {
  position: absolute;
  width: 310px;
}
.pcat:nth-child(3n+1) { left: 0; }
.pcat:nth-child(3n+2) { left: 345px; }
.pcat:nth-child(3n+3) { left: 690px; }
.pcat:nth-child(-n+3)         { top: 254.2px; }   /* 3017.16 - 2763 */
.pcat:nth-child(n+4):nth-child(-n+6) { top: 573.6px; }   /* 3336.58 - 2763 */
.pcat:nth-child(n+7)          { top: 903.3px; }   /* 3666.25 - 2763 */

.pcat__thumb {
  display: block;
  width: 310px;
  height: 240px;
  object-fit: cover;
  background: #D9D9D9;
}
.pcat__name {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .06em;
  color: var(--navy);
  transition: color .3s ease;
}
.pcat a:hover .pcat__name { color: var(--blue); }
.pcat__name::before {
  content: "";
  flex: none;
  width: 27px;
  height: 27px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 1l7 7-7 7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E")
    no-repeat center / 7px 11px;
}
/* 「製品情報を見る」 ボタン実測 y=4029..4089 (h=60) -> カード相対 1266 */
.product__btn { position: absolute; left: 449px; top: 1269px; }

/* ---------- お知らせ ---------- */
.news { height: 747px; background: #fff; }
.news__head { position: absolute; left: 183px; top: 104.5px; }   /* 4365.5 - 4261 */

.news__list {
  position: absolute;
  left: 183px;
  top: 178.5px;
  width: 1000px;
  border-top: 1px solid #DEDEDE;
}
.news__item { border-bottom: 1px solid #DEDEDE; }
.news__link {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 80px;
  transition: opacity .3s ease;
}
.news__link:hover { opacity: .62; }
.news__date {
  flex: none;
  width: 100px;
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--ink);
}
.news__cat {
  flex: none;
  width: 88px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #fff;
}
/* お知らせカテゴリ 5 パターン（指示レイヤーの色見本を実測） */
.news__cat--info { background: #3E9CBD; }   /* お知らせ */
.news__cat--corp { background: #4557B0; }   /* 企業情報 */
.news__cat--event { background: #64A0EA; }  /* イベント */
.news__cat--product { background: #A268BE; }/* 製品情報 */
.news__cat--recruit { background: #5EA95E; }/* 採用情報 */
.news__title-txt {
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news__btn { position: absolute; left: 548px; top: 551.5px; }

/* ---------- バナー 2 枚 ---------- */
.banners { height: 609px; background: #fff; }
.banner {
  position: absolute;
  top: 0;
  width: 485px;
  height: 400px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}
.banner--faq { left: 183px; }
.banner--dl { left: 698px; }
.banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.banner:hover .banner__bg { transform: scale(1.06); }
/* 正本の色かぶせ。素材写真と正本の同一箇所 66 点を最小二乗で解いた値
   （Q&A: #3370E7 44% / 資料DL: #A74C7E 59%）。 */
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
.banner--faq::after { background: rgba(51, 112, 231, .44); }
.banner--dl::after  { background: rgba(167, 76, 126, .59); }
.banner__body { position: relative; z-index: 1; display: block; }
.banner__en, .banner__ja { display: block; }
.banner__en {
  font-size: 130px;
  font-weight: 300;
  line-height: 1.25;          /* 1 だと & の上下が切れる */
  letter-spacing: .02em;
}
.banner__ja {
  margin-top: 18px;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
}
.banner__icon { width: 100px; height: 72px; margin-bottom: 16px; }

/* ---------- 採用情報 ---------- */
.recruit { height: 765px; background: var(--tint-recruit); }
/* 採用帯の下、Contact 帯までの白い余白（正本 pageY 6382 -> 6512） */
.gap-white { height: 130px; background: #fff; }
/* 見出し pageY=5544.6 -> 帯 top(5617) 基準で -72.4px（前の白帯にはみ出す） */
.recruit__head {
  position: absolute;
  left: 183px;
  top: -72.4px;
}
.recruit__photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 900px;
  height: 540px;
  object-fit: cover;
}
/* 縦組みの見出し。正本実測 x=1032.2 pageY=5617.4 w=146.7 h=511.5。
   フレームの高さ = 列の長さなので、height を与えて自動で折り返させる
   （1行ずつ span で切ると列長が変わる）。 */
.recruit__title {
  position: absolute;
  left: 1032.2px;
  top: .4px;                   /* 5617.4 - 5617 */
  margin: 0;
  writing-mode: vertical-rl;
  width: 146.7px;
  height: 511.5px;
  font-size: 55px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: .08em;
  color: var(--navy);
  z-index: 1;
  font-feature-settings: "halt" 1, "vhal" 1;
}
/* 本文 pageY=6217.4 x=183 w=500（実測） */
.recruit__body {
  position: absolute;
  left: 183px;
  top: 600.4px;
  width: 500px;
  font-size: 16px;
  line-height: 2.4;
  letter-spacing: .085em;
  color: var(--ink);
}
/* ボタン実測 x=911.5 y=6253 w=269.5 -> 帯 top(5617) 基準で 636px */
.recruit__btn { position: absolute; left: 911.5px; top: 636px; z-index: 1; }
/* 採用帯の球体。正本のベクター装飾を書き出して使う
   （CSS の radial-gradient では階調が一致しない）。
   design x=958 y=5888 w=394.5 h=394.5 -> 帯 top(5617) 基準で 271px */
.recruit__blob {
  position: absolute;
  left: 958px;
  top: 271px;
  width: 394.5px;
  height: 394.5px;
  background: url("../img/deco-recruit.png") no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
}

/* =====================================================
   SP
   ===================================================== */
@media (max-width: 900px) {
  .fv { height: 72vh; min-height: 420px; }
  .fv__title,
  .fv__lead,
  .fv__since { position: static; white-space: normal; }
  .fv__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }
  .fv__title { font-size: 30px; }
  .fv__lead { font-size: 13px; margin-top: 16px; }
  .fv__since { font-size: 28px; line-height: 1.3; margin-top: 10px; width: auto; height: auto; }
  /* 中身が縦にあふれたら FV 自体を伸ばす（文字が切れるのを防ぐ） */
  .fv { height: auto; min-height: 72vh; padding: 96px 0 56px; }
  .fv__inner { height: auto; min-height: 0; padding-block: 8px; }

  .mission { padding: 48px 20px 56px; }
  .mission__title,
  .mission__ghost,
  .mission__photo,
  .mission__btn,
  .feature { position: static; }
  .mission__title { font-size: 21px; white-space: normal; text-align: center; line-height: 1.7; }
  .mission__ghost { display: none; }
  .mission__photo {
    width: 100%;
    height: 220px;
    margin: 28px 0 0;
    border-radius: 140px 140px 0 0;
  }
  .feature { width: auto; margin-top: 40px; }
  .feature__label { margin-left: 0; font-size: 30px; padding: 12px 26px 14px; }
  .feature__label::before, .feature__label::after { width: 30px; height: 30px; }
  .feature__sub { font-size: 19px; margin-top: 18px; }
  .feature__body { font-size: 14px; line-height: 1.95; }
  .mission__btn { display: block; margin: 36px auto 0; }

  .tech { padding: 48px 20px 52px; background: var(--tint-blue); }
  .tech__title, .tech__lead, .tech__list, .tech__btn, .tech__water { position: static; }
  .tech__water { display: none; }
  .tech__title { font-size: 21px; }
  .tech__lead { font-size: 14px; margin-top: 12px; }
  .tech__list { flex-wrap: wrap; gap: 14px; margin-top: 30px; }
  /* 円に文が入りきらないと文字があふれるので、SP では最小高さで持つ */
  .tech__item { width: calc(50% - 7px); height: auto; min-height: 0; aspect-ratio: auto;
                border-radius: 14px; padding: 18px 12px; }
  /* 帯自体も中身に合わせて伸ばす */
  .tech { height: auto; }
  .tech > .l-inner { height: auto; }
  .tech__icon { width: 38px; height: 36px; margin-bottom: 8px; }
  .tech__name { font-size: 16px; }
  .tech__desc { font-size: 12px; line-height: 1.6; }
  .tech__btn { display: block; margin: 30px auto 0; }

  .product { padding: 48px 0 56px; }
  .product__head, .product__card { position: static; }
  .product__head { padding-inline: 20px; }
  .product__card {
    width: auto;
    height: auto;
    margin: 26px 12px 0;
    padding: 22px 14px 34px;
    border-radius: 16px;
  }
  .psearch, .product__cat-head, .pcats, .product__btn { position: static; }
  .psearch { width: 100%; height: auto; flex-wrap: wrap; padding: 12px; gap: 10px; }
  .psearch__label { width: 100%; border-right: 0; padding-inline: 4px; height: auto; }
  .psearch__input { width: 100%; flex: 1 1 100%; height: 44px; padding-inline: 10px; border: 1px solid #DDE1E3; }
  .psearch__btn { width: 100%; margin: 0; height: 48px; }
  .product__cat-head { width: 100%; margin-top: 22px; }
  .pcats {
    width: 100%; height: auto; margin-top: 22px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 14px;
  }
  /* SP は絶対配置を解除して 2 カラムに流す */
  .pcat, .pcat:nth-child(3n+1), .pcat:nth-child(3n+2), .pcat:nth-child(3n+3),
  .pcat:nth-child(-n+3), .pcat:nth-child(n+4):nth-child(-n+6), .pcat:nth-child(n+7) {
    position: static; left: auto; top: auto; width: auto;
  }
  .pcat__thumb { width: 100%; height: auto; aspect-ratio: 31 / 24; }
  .pcat__name { font-size: 14px; gap: 8px; margin-top: 10px; }
  .pcat__name::before { width: 20px; height: 20px; background-size: 5px 8px; }
  .product__btn { display: block; margin: 34px auto 0; }

  .news { padding: 48px 20px 52px; }
  .news__head, .news__list, .news__btn { position: static; }
  .news__list { width: 100%; margin-top: 24px; }
  .news__link { height: auto; flex-wrap: wrap; gap: 8px 12px; padding: 16px 0; }
  .news__date { width: auto; font-size: 14px; }
  .news__cat { width: 76px; height: 24px; font-size: 11px; }
  .news__title-txt { width: 100%; font-size: 14px; white-space: normal; }
  .news__btn { display: block; margin: 30px auto 0; }

  .banners { padding: 0 20px 48px; display: grid; gap: 16px; }
  .banner { position: static; width: 100%; height: 200px; }
  .banner__en { font-size: 62px; }
  .banner__ja { font-size: 20px; margin-top: 10px; }
  .banner__icon { width: 62px; height: 45px; }

  .recruit { padding: 48px 20px 56px; }
  .recruit__head, .recruit__photo, .recruit__title, .recruit__body, .recruit__btn, .recruit__blob { position: static; }
  .recruit__blob { display: none; }
  .recruit__photo { width: 100%; height: 220px; margin-top: 24px; }
  .recruit__title {
    writing-mode: horizontal-tb;   /* SP は横組みに戻す */
    height: auto;
    margin-top: 24px;
    font-size: 24px;
    line-height: 1.7;
    letter-spacing: .1em;
  }
  .recruit__body { width: auto; margin-top: 18px; font-size: 14px; line-height: 2.1; }
  .recruit__btn { display: block; margin: 28px auto 0; }
}
