/* =========================================================
   矢野建設株式会社 デモサイト 共通スタイル
   色は役割名で使う。太さは 700 まで。
   ========================================================= */

:root {
  /* オレンジが基調。見やすさ優先で、濃いオレンジの面・黒い面は使わない（2026-10-31 ユーザー指示） */
  --c-ink: #2a2017;          /* 文字の色（面には使わない） */
  --c-ink-2: #8a7b6d;        /* 写真が読み込まれるまでの下地 */
  --c-brand: #b0541a;        /* 白・薄い面の上のオレンジの文字・線 */
  --c-accent: #f39248;       /* 基調のオレンジ。ボタン・帯の面（上の文字は濃い茶） */
  --c-orange-light: #f9d3b4; /* 薄いオレンジ。お問い合わせの枠など */
  --c-orange-pale: #fdf3ea;  /* ごく薄いオレンジ。区切りの面・フッター */
  --c-paper: #fbf9f6;
  --c-paper-2: #efe9e2;
  --c-white: #ffffff;
  --c-text: #1f1a16;
  --c-mute: #635b54;
  --c-line: rgba(31, 26, 22, .14);

  --f-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --f-en: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 88px);
  /* 2列の段組みはすべてこの線にそろえる（右の列の左端＝中央＋24px） */
  --cols-2: minmax(0, 1fr) minmax(0, 1fr);
  --cols-gap: 48px;
  --sec-y: clamp(88px, 12vw, 200px);
  --header-h: 76px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --fs-hero: clamp(38px, 5.6vw, 96px);
  --fs-h2: clamp(30px, 4.4vw, 68px);
  --fs-h3: clamp(21px, 2vw, 30px);
  --fs-lead: clamp(16px, 1.35vw, 20px);
  --fs-body: 16px;
  --fs-small: 13px;
}

@media (min-width: 900px) { :root { --header-h: 88px; } }


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-text);
  font-family: var(--f-ja);
  font-size: var(--fs-body);
  line-height: 1.9;
  font-weight: 400;
  font-feature-settings: "palt";
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--c-accent); color: var(--c-ink); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.en { font-family: var(--f-en); letter-spacing: .02em; font-feature-settings: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.br-pc { display: none; }
@media (min-width: 900px) { .br-pc { display: inline; } .br-sp { display: none; } }

p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  color: var(--c-white);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .45s var(--ease), box-shadow .4s;
}
/* 少しでもスクロールしたら、すりガラス（白の半透明＋ぼかし）にする */
.site-header.is-solid {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--c-text);
  box-shadow: 0 1px 0 var(--c-line), 0 8px 24px rgba(28, 24, 20, .06);
}
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { transform: none; background: transparent; box-shadow: none; color: var(--c-text); -webkit-backdrop-filter: none; backdrop-filter: none; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 44px; height: 44px; border-radius: 6px; image-rendering: auto; }
.brand__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.2; }
.brand__ja { font-size: 19px; font-weight: 700; letter-spacing: .08em; }
.brand__en { font-family: var(--f-en); font-size: 9.5px; font-weight: 500; letter-spacing: .08em; opacity: .75; white-space: nowrap; }
@media (min-width: 900px) {
  .site-header { padding-inline: calc(var(--gutter) * .55); }
  .brand { gap: 14px; }
  .brand__mark { width: 52px; height: 52px; }
  .brand__ja { font-size: 23px; }
  .brand__en { font-size: 11.5px; letter-spacing: .1em; }
}

.gnav { display: none; }
.gnav__list { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 32px); }
.gnav a { position: relative; font-size: 15px; font-weight: 500; letter-spacing: .06em; padding-block: 6px; }
.gnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.gnav .btn-contact {
  padding: 10px 20px; border-radius: 999px; background: var(--c-accent); color: var(--c-ink); font-weight: 700;
}
.gnav .btn-contact::after { display: none; }
.header-tel { display: none; }

.menu-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 60;
  border: 1px solid currentColor;
}
.menu-btn span { position: absolute; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span:nth-child(1) { transform: translateY(-4px); }
.menu-btn span:nth-child(2) { transform: translateY(4px); }
body.menu-open .menu-btn span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { transform: rotate(-45deg); }

@media (min-width: 1180px) {
  .gnav { display: block; }
  .menu-btn { display: none; }
}

/* スマホ・タブレットの全画面メニュー */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--c-white);
  color: var(--c-text);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2));
  transition: clip-path .7s var(--ease);
  overflow-y: auto;
  visibility: hidden;
}
body.menu-open { overflow: hidden; }
body.menu-open .menu { clip-path: circle(150% at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2)); visibility: visible; }
.menu__list li { border-bottom: 1px solid var(--c-line); }
.menu__list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; }
.menu__list .ja { font-size: clamp(22px, 5.6vw, 34px); font-weight: 700; }
.menu__list .en { font-size: 11px; letter-spacing: .2em; color: var(--c-mute); }
.menu__foot { margin-top: 32px; display: grid; gap: 12px; font-size: 14px; color: var(--c-mute); }
.menu__foot a.tel { font-family: var(--f-en); font-size: 28px; font-weight: 600; color: var(--c-brand); letter-spacing: .04em; }
@media (min-width: 1180px) { .menu { display: none; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .06em;
  background: var(--c-white); color: var(--c-text); border: 1px solid var(--c-line);
  transition: transform .35s var(--ease), background-color .35s;
}
.btn .arrow {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-accent); color: var(--c-ink); transition: transform .45s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn--light { background: var(--c-white); color: var(--c-ink); }
.btn--accent { background: var(--c-accent); color: var(--c-ink); border-color: transparent; }
.btn--accent .arrow { background: var(--c-white); color: var(--c-brand); }
.btn--line { background: transparent; color: var(--c-text); border: 1px solid var(--c-line); }
.arrow svg { width: 14px; height: 14px; }

/* ---------- 見出し ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-en); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--c-brand);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.32; letter-spacing: .02em; margin-top: 20px; }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.5; }
.lead { font-size: var(--fs-lead); line-height: 2; color: var(--c-mute); max-width: 40em; }

.section { padding: var(--sec-y) var(--gutter); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 120px); }
.is-soft { background: var(--c-orange-pale); }
.is-white { background: var(--c-white); }
.sec-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 6vw, 96px); }
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: var(--cols-2); align-items: end; gap: var(--cols-gap); }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px;
  color: var(--c-white); overflow: hidden; background: var(--c-ink-2);
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 32, 23, .4) 0%, rgba(42, 32, 23, 0) 26%),
    linear-gradient(0deg, rgba(42, 32, 23, .66) 0%, rgba(42, 32, 23, .14) 52%, rgba(42, 32, 23, 0) 75%);
}
.hero__inner {
  position: absolute; inset: auto var(--gutter) clamp(96px, 13vh, 150px); z-index: 2;
  display: grid; gap: clamp(20px, 3vw, 36px);
}
.hero__label { font-family: var(--f-en); font-size: 12px; font-weight: 600; letter-spacing: .28em; color: var(--c-accent); }
.hero__title { font-size: var(--fs-hero); font-weight: 700; line-height: 1.16; letter-spacing: .02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: block; transform: translateY(110%); animation: rise .6s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.hero__text { max-width: 36em; font-size: var(--fs-lead); line-height: 2; color: rgba(255, 255, 255, .86); opacity: 0; animation: fade .6s .2s var(--ease) forwards; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__bar {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; color: rgba(255, 255, 255, .8);
}
.hero__count { display: flex; align-items: center; gap: 14px; }
.hero__progress { width: clamp(60px, 10vw, 140px); height: 1px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.hero__progress i { position: absolute; inset: 0; background: var(--c-accent); transform-origin: left; transform: scaleX(0); }
.hero__progress i.run { animation: prog 6s linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--c-accent), transparent); animation: cue 2s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__place { display: none; }
@media (min-width: 700px) { .hero__place { display: block; } }

/* ---------- 流れる帯 ---------- */
.marquee { background: var(--c-accent); color: var(--c-ink); overflow: hidden; padding-block: 18px; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  font-family: var(--f-en); font-size: clamp(20px, 2.6vw, 36px); font-weight: 600; letter-spacing: .04em;
  white-space: nowrap; padding-right: 48px; display: inline-flex; align-items: center; gap: 48px;
}
.marquee__track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-white); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 会社の紹介と数字 ---------- */
.about { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 900px) {
  .about { grid-template-columns: var(--cols-2); column-gap: var(--cols-gap); align-items: start; }
  /* 右の本文の1行目を、左の見出しの1行目の字面の上端にそろえる（英字ラベル＋余白28px＋見出しの行間の上半分） */
  .about__body { padding-top: calc(44px + .275 * clamp(26px, 3vw, 46px)); }
}
.about__statement { font-size: clamp(26px, 3vw, 46px); font-weight: 700; line-height: 1.55; letter-spacing: .02em; }
.about__statement em { font-style: normal; color: var(--c-brand); }
.about__body { display: grid; gap: 28px; font-size: 16px; color: var(--c-mute); }
.about__body p { max-width: 36em; }


/* ---------- 事業パネル（横に広がる） ---------- */
.panels { display: flex; flex-direction: column; gap: 8px; padding-inline: 8px; }
.panel {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 62vh; min-height: 62svh; color: var(--c-white);
  display: flex; align-items: flex-end;
}
.panel__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 32, 23, .72), rgba(42, 32, 23, 0) 70%); }
.panel__body { position: relative; z-index: 1; padding: clamp(24px, 3vw, 44px); display: grid; gap: 14px; width: 100%; text-shadow: 0 1px 3px rgba(20, 14, 8, .55), 0 0 14px rgba(20, 14, 8, .35); }
.panel__no { font-family: var(--f-en); font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--c-accent); }
.panel__title { font-size: clamp(24px, 2.4vw, 38px); font-weight: 700; line-height: 1.35; }
.panel__en { font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; color: rgba(255, 255, 255, .7); text-transform: uppercase; }
.panel__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.panel__tags li { font-size: 13px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; }
@media (min-width: 1000px) {
  .panels { flex-direction: row; height: 78vh; min-height: 560px; }
  /* カーソルを当てても幅・文章は変えない（4枚とも同じ幅で、説明文は常に表示） */
  .panel { flex: 1 1 0; min-height: 0; }
}
.panel__desc { font-size: 15px; line-height: 1.9; color: rgba(255, 255, 255, .86); max-width: 30em; }

/* ---------- ICT ---------- */
/* 背景：クリーム色の紙＋左上の写真（斜めの帯・下は砂ぼこりのように消える）＋右下の砂利の写真＋左下の大きな英字 */
.ict-sec { background: #f9efe3; overflow: clip; isolation: isolate; }
.ict-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ict-bg > * { position: absolute; margin: 0; }
.ict-bg__band {
  left: 0; bottom: 0; width: 58%; height: 46%;
  background: linear-gradient(to top, rgba(240, 212, 178, .5), rgba(244, 224, 200, .25) 70%, rgba(244, 224, 200, 0));
  clip-path: polygon(0 0, 100% 78%, 100% 100%, 0 100%);
  -webkit-mask: linear-gradient(to right, #000 45%, transparent);
  mask: linear-gradient(to right, #000 45%, transparent);
}
.ict-bg__photo {
  left: 0; top: 0; width: 50%; aspect-ratio: 20 / 9;
  /* 油圧ショベルの運転席を帯の右寄りに大きく置く。上の切れ目は前と同じで、下へ36px（1440px幅）多く見せる */
  background: url(../img/ict-machines.jpg) 7.5% 47.5% / 180% auto no-repeat;
  filter: sepia(.18) saturate(.9) contrast(.96) brightness(1.03);
  -webkit-mask: url(../img/ict-mask-photo.svg) 0 0 / 100% 100% no-repeat;
  mask: url(../img/ict-mask-photo.svg) 0 0 / 100% 100% no-repeat;
}
.ict-bg__strip {
  right: 0; bottom: 0; width: 24%; aspect-ratio: 1000 / 715;
  background: url(../img/ict-ts.jpg) 0% 100% / 260% auto no-repeat;
  filter: sepia(.45) saturate(.75) contrast(1.02) brightness(1.06);
  -webkit-mask: url(../img/ict-mask-strip.svg) 0 0 / 100% 100% no-repeat;
  mask: url(../img/ict-mask-strip.svg) 0 0 / 100% 100% no-repeat;
}
/* 大きな英字は切らずに全体を見せる（背景ではなく .ict の中に置く） */
.ict__word {
  /* 斜体の字が箱からはみ出すと background-clip:text で切れるので、内側に余白を取る */
  margin: 0 0 0 -.08em; padding: .08em .12em .06em .04em; display: grid; justify-items: start; pointer-events: none;
  width: max-content; justify-self: start; /* 列の幅で箱が切られると字も切れるので、字の幅に合わせる */
  font-family: var(--f-en); font-size: clamp(48px, 5.8vw, 112px); /* 左の列＋列の間に収まる大きさ */ font-weight: 700; font-style: italic;
  line-height: .86; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
  color: transparent;
  background: linear-gradient(#f39248, #f39248), url(../img/ict-ts.jpg) 40% 80% / cover;
  background-blend-mode: screen;
  -webkit-background-clip: text; background-clip: text;
  opacity: .5;
  /* 右へ少し薄くするが、最後の字まで読める濃さを残す */
  -webkit-mask: linear-gradient(100deg, #000 40%, rgba(0, 0, 0, .7));
  mask: linear-gradient(100deg, #000 40%, rgba(0, 0, 0, .7));
}
.ict-bg::after {
  content: ""; position: absolute; inset: 0;
  background: url(../img/ict-grain.svg) 0 0 / 240px 240px;
  opacity: .12; mix-blend-mode: multiply;
}
.ict-sec > .ict { position: relative; z-index: 1; }

/* スクロールで見出しを追いかけさせない（sticky なし）。左の列に見出し・ボタン類・英字、右の列に工程（縦1列） */
.ict-sec { padding-bottom: clamp(40px, 5vw, 80px); }
.ict { display: grid; gap: clamp(28px, 3vw, 48px); }
.ict__intro { order: -2; }
.ict__actions { order: -1; }
@media (min-width: 900px) {
  .ict {
    grid-template-columns: var(--cols-2); column-gap: var(--cols-gap);
    grid-template-rows: auto auto 1fr; grid-template-areas: "intro steps" "actions steps" "word steps";
  }
  .ict__intro { grid-area: intro; padding-top: clamp(40px, 5vw, 96px); } /* 左上の写真の下から始める */
  @media (min-width: 1600px) { .ict__intro { padding-top: 6vw; } }
  /* 英字は工程の下端より下げ、区画の下端近くに置く */
  .ict-sec { padding-bottom: clamp(16px, 1.6vw, 28px); }
  /* 工程のカードは区画の上の余白へ少し食い込ませて上げる */
  .steps { grid-area: steps; align-content: start; margin-top: calc(-1 * clamp(28px, 3vw, 56px)); margin-bottom: clamp(28px, 3.6vw, 60px); }
  .ict__actions { grid-area: actions; }
  .ict__word { grid-area: word; align-self: end; }
}
@media (max-width: 899px) {
  /* スマホ：写真を幅いっぱいにして、見出しは写真の下から始める */
  .ict-sec { padding-top: 26vw; padding-bottom: 18vw; } /* 下は右下の砂利の写真に英字がかからない高さ */
  .ict__word { font-size: calc((100vw - 44px) / 8); }
  .ict-bg__photo { width: 100%; }
  .ict-bg__strip { width: 30%; }
  .ict-bg__band { width: 100%; height: 30%; }
}
/* ICTアドバイザーの枠と「ICT・保有機械を見る」を横に並べる（幅が足りないときは下へ） */
.ict__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.ict__badge {
  display: inline-grid; gap: 4px; padding: 16px 24px; border-radius: 14px;
  background: var(--c-white); box-shadow: 0 10px 30px rgba(120, 72, 28, .1);
}
.ict__badge b { font-size: 16px; font-weight: 700; color: var(--c-brand); }
.ict__badge span { font-size: 13px; color: var(--c-mute); }
/* 工程は1段ずつ白い面に載せ、左に大きな番号を置いて区切る（線は使わない。2026-10-31 ユーザー指示） */
.steps { counter-reset: step; display: grid; gap: 12px; }
.step {
  display: grid; grid-template-columns: clamp(52px, 4.4vw, 68px) 1fr; column-gap: clamp(16px, 1.8vw, 28px);
  padding: clamp(16px, 1.5vw, 22px) clamp(18px, 2vw, 30px); border-radius: 14px;
  background: rgba(255, 255, 255, .72); box-shadow: 0 8px 24px rgba(120, 72, 28, .06);
}
.step__no { display: grid; align-content: start; font-family: var(--f-en); font-size: clamp(34px, 2.9vw, 46px); font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--c-accent); }
.step__no small { font-size: 11px; font-weight: 600; letter-spacing: .2em; line-height: 1.4; margin-bottom: 4px; color: var(--c-brand); }
.step__body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.step__title { font-size: clamp(20px, 1.6vw, 24px); font-weight: 700; line-height: 1.4; }
.step__text { color: var(--c-mute); font-size: 15px; line-height: 1.8; max-width: 34em; }
.step__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
/* 字面が上に寄るので、高さを決めて上の余白を1px多くする（画素で実測して合わせた） */
.step__tools li {
  display: inline-flex; align-items: center; height: 26px; padding: 1px 14px 0; line-height: 1;
  font-size: 12px; font-weight: 600; border-radius: 999px; border: 1px solid var(--c-brand); color: var(--c-brand); background: rgba(255, 255, 255, .55);
}

/* ---------- 施工実績のレール ---------- */
.rail-wrap { position: relative; }
[data-rail] { container-type: inline-size; } /* カード幅をスクロールバーを除いた幅（cqw）で決める */
.rail {
  /* カードは中央にそろえて止める。両端のカードも中央まで来られるよう、左右に（幅−カード）/2 の余白 */
  /* 一度に見える枚数：スマホは中央1枚＋左右の端、700px〜は3枚、1000px〜は4枚、1200px〜は5枚（本文の左右の余白の内側に収める） */
  --rail-card: 62cqw;
  position: relative; /* カードの offsetLeft をレール基準にする（main.js の中央寄せ） */
  display: flex; gap: 16px; overflow-x: auto; padding: 0 calc((100% - var(--rail-card)) / 2) 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag a { pointer-events: none; }
.rail-card { flex: 0 0 var(--rail-card); scroll-snap-align: center; display: grid; gap: 10px; align-content: start; }
@media (min-width: 700px) { .rail { --rail-card: calc((100cqw - 2 * var(--gutter) - 2 * 16px) / 3); } }
@media (min-width: 1000px) {
  .rail { --rail-card: calc((100cqw - 2 * var(--gutter) - 3 * 16px) / 4); }
  .rail .rail-card__title { font-size: 15px; }
  .rail .rail-card__meta { font-size: 12px; }
}
@media (min-width: 1200px) { .rail { --rail-card: calc((100cqw - 2 * var(--gutter) - 4 * 16px) / 5); } }
.rail-card__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-paper-2); }
.rail-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); user-select: none; -webkit-user-drag: none; }
.rail-card:hover img { transform: scale(1.05); }
.rail-card__meta { display: flex; gap: 12px; font-size: 13px; color: var(--c-mute); }
.rail-card__cat { color: var(--c-brand); font-weight: 700; }
.rail-card__title { font-size: 16px; font-weight: 700; line-height: 1.6; }
/* 前へ／バー／次へ を中央に並べる */
.rail-ctrl { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 24px var(--gutter) 0; }
.rail-ctrl button { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--c-line); display: grid; place-items: center; transition: background-color .3s; }
.rail-ctrl button:hover { background: var(--c-orange-pale); border-color: var(--c-brand); color: var(--c-brand); }
.rail-ctrl svg { width: 16px; height: 16px; }
.rail-bar { flex: 0 1 360px; height: 2px; background: var(--c-line); position: relative; }
.rail-more { display: flex; justify-content: center; padding: 40px var(--gutter) 0; }
.rail-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c-brand); width: 20%; transition: left .2s; }

/* ---------- 保有機械（タイル） ---------- */
.bento { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; }
  .bento .tile--wide { grid-column: span 2; }
  .bento .tile--tall { grid-row: span 2; }
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); min-height: 280px;
  background: var(--c-ink-2); color: var(--c-white); display: flex; align-items: flex-end;
}
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 32, 23, .72), rgba(42, 32, 23, 0) 60%); pointer-events: none; }
.tile__body { position: relative; z-index: 1; padding: 24px; display: grid; gap: 6px; }
.tile__en { font-family: var(--f-en); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--c-accent); text-transform: uppercase; }
.tile__title { font-size: 20px; font-weight: 700; line-height: 1.45; }
.tile__spec { font-size: 13px; color: rgba(255, 255, 255, .78); line-height: 1.7; }
.tile__count { margin-left: .6em; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.tile--text { background: var(--c-orange-pale); color: var(--c-text); border: 1px solid var(--c-orange-light); }
.tile--text .tile__en { color: var(--c-brand); }
.tile--text .tile__spec { color: var(--c-mute); }
.tile--text::after { display: none; }

/* ---------- 採用の帯 ---------- */
.cta-recruit {
  position: relative; min-height: 86vh; min-height: 86svh; color: var(--c-white); overflow: hidden;
  display: flex; align-items: center; padding: var(--sec-y) var(--gutter);
}
.cta-recruit__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-recruit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42, 32, 23, .66), rgba(42, 32, 23, .08) 75%); }
.cta-recruit__inner { position: relative; z-index: 1; display: grid; gap: 28px; max-width: 900px; }
.cta-recruit__big { font-family: var(--f-en); font-size: clamp(64px, 13vw, 220px); font-weight: 600; line-height: .9; letter-spacing: -.03em; }
.cta-recruit p { font-size: var(--fs-lead); color: rgba(255, 255, 255, .86); max-width: 32em; }

.flow { display: flex; flex-wrap: wrap; gap: .2em .5em; }
.flow span { white-space: nowrap; display: inline-flex; align-items: center; gap: .5em; }
.flow span + span::before { content: "→"; color: var(--c-accent); }

/* ---------- お知らせ ---------- */
.news { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .news { grid-template-columns: var(--cols-2); column-gap: var(--cols-gap); }
  .news .news-list a, .news .news-list .row { grid-template-columns: 120px 1fr; }
  .news .news-list .ttl { grid-column: 1 / -1; }
}
.news-list li { border-top: 1px solid var(--c-line); }
.news-list li:last-child { border-bottom: 1px solid var(--c-line); }
.news-list a, .news-list .row { display: grid; gap: 6px 28px; padding: 24px 0; align-items: baseline; transition: padding-left .4s var(--ease); }
@media (min-width: 700px) { .news-list a, .news-list .row { grid-template-columns: 120px 120px 1fr; } }
.news-list a:hover { padding-left: 12px; }
.news-list time { font-family: var(--f-en); font-size: 14px; color: var(--c-mute); letter-spacing: .06em; }
.news-list .cat { justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--c-brand); color: var(--c-brand); background: var(--c-white); }
.news-list .ttl { font-size: 16px; font-weight: 500; }

/* トップのお知らせ（ヒーロー直下・中央の1列・各行を低く） */
.top-news { max-width: 880px; margin-inline: auto; }
.top-news__head { text-align: center; margin-bottom: clamp(28px, 3.5vw, 48px); }
.top-news__head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.top-news .news-list a { grid-template-columns: auto 1fr; gap: 4px 16px; padding: 14px 0; align-items: center; }
.top-news .news-list .ttl { grid-column: 1 / -1; font-size: 15px; line-height: 1.6; }
@media (min-width: 700px) {
  .top-news .news-list a { grid-template-columns: 104px 96px 1fr; gap: 0 20px; padding: 16px 8px; }
  .top-news .news-list .ttl { grid-column: auto; }
  .top-news .news-list .cat { justify-self: center; }
}
/* 「お知らせをもっと見る」はトップの他のボタン（会社案内を見る など）と同じ大きさ */
.top-news__more { text-align: center; margin-top: 40px; }

/* ---------- お問い合わせの帯 ---------- */
/* 低い1本の帯：見出し／電話／フォームのボタンを横に並べる（2026-10-31「デカすぎてダサい」の指摘で作り直し） */
.cta-contact { padding: clamp(40px, 5vw, 72px) var(--gutter); }
.cta-contact__inner {
  display: grid; gap: 20px; align-items: center;
  padding: clamp(22px, 2.4vw, 32px) clamp(22px, 3vw, 44px); border-radius: var(--radius);
  background: var(--c-white); box-shadow: 0 1px 0 var(--c-line), 0 18px 40px rgba(120, 72, 28, .07);
}
@media (min-width: 760px) { .cta-contact__inner { grid-template-columns: 1fr auto; } .cta-contact__head { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .cta-contact__inner { grid-template-columns: 1fr auto auto; column-gap: clamp(28px, 3vw, 48px); } .cta-contact__head { grid-column: auto; } }
.cta-contact__head { display: grid; gap: 4px; }
.cta-contact__ja { font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; line-height: 1.5; }
.cta-contact__note { font-size: 13px; color: var(--c-mute); line-height: 1.7; }
.cta-contact__tel { display: flex; align-items: center; gap: 14px; }
.cta-contact__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-orange-pale); color: var(--c-brand); }
.cta-contact__icon svg { width: 20px; height: 20px; }
.cta-contact__tel b { display: block; font-size: clamp(26px, 2.3vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: .01em; white-space: nowrap; }
.cta-contact__tel small { display: block; font-size: 12px; color: var(--c-mute); line-height: 1.6; margin-top: 4px; }
.cta-contact__tel:hover b { color: var(--c-brand); }
.cta-contact__form {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 8px 0 24px;
  border-radius: 999px; background: var(--c-accent); color: var(--c-ink); font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: background .3s var(--ease);
}
.cta-contact__form > svg { width: 20px; height: 20px; flex: none; }
.cta-contact__form span:not(.arrow) { flex: 1; }
.cta-contact__form .arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c-white); color: var(--c-brand); transition: transform .3s var(--ease); }
.cta-contact__form:hover { background: #f08436; }
.cta-contact__form:hover .arrow { transform: translateX(3px); }
@media (max-width: 759px) { .cta-contact__form { width: 100%; } }

/* ---------- フッター ---------- */
/* トップのICTの英字「ICT CONSTRUCTION」と同じ作り：基調のオレンジに砂利の写真をスクリーンで重ねたザラザラの面
   ＋紙の粒＋「R」に入っている白い線のような細い斜めの線 */
.site-footer {
  --c-mute: #4a3b30; --c-line: rgba(31, 26, 22, .2);
  position: relative; isolation: isolate;
  background: linear-gradient(rgba(253, 243, 234, .3), rgba(253, 243, 234, .3)), linear-gradient(#f39248, #f39248), url(../img/ft-grit.jpg) 0 0 / 378px auto repeat;
  background-blend-mode: normal, screen;
  color: var(--c-text); border-top: 4px solid var(--c-accent); padding: clamp(64px, 8vw, 120px) var(--gutter) 0; overflow: hidden;
}
.site-footer::before, .site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.site-footer::before { background: url(../img/ict-grain.svg) 0 0 / 240px 240px; opacity: .14; mix-blend-mode: multiply; }
.site-footer::after { background: url(../img/ft-lines.svg) left bottom / 100% auto no-repeat; }
/* スマホ：「R」にかかる線が英字の上に来るように置く（下はスマホの下部バーの余白） */
@media (max-width: 899px) { .site-footer::after { background-position: 52% calc(100% - 130px); background-size: 200% auto; } }
.footer-grid { display: grid; gap: 48px; }
/* 2列目の左端を、本文の2列の線（中央＋24px）にそろえる */
@media (min-width: 1000px) { .footer-grid { grid-template-columns: calc((100% - var(--cols-gap)) / 2) minmax(0, 1.3fr) minmax(0, 1fr); column-gap: var(--cols-gap); } }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand .brand { color: var(--c-text); }
.footer-office { display: grid; gap: 6px; font-size: 14px; color: var(--c-mute); }
.footer-office b { color: var(--c-text); font-weight: 700; font-size: 15px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; font-size: 14px; }
.footer-nav a { color: var(--c-mute); transition: color .3s; }
.footer-nav a:hover { color: var(--c-brand); }
.footer-big {
  font-family: var(--f-en); letter-spacing: -.03em; line-height: .8;
  font-size: 8.4vw; white-space: nowrap; margin-top: clamp(56px, 8vw, 120px);
  font-style: italic; font-weight: 700; padding-right: .1em; /* 斜体の最後の字が切れないように */
  color: rgba(255, 255, 255, .34);
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid var(--c-line); font-size: 12px; color: var(--c-mute); position: relative; z-index: 1; }
.footer-bottom .en { letter-spacing: .08em; }

/* ---------- スマホの下部バー ---------- */
.mobile-bar {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.mobile-bar.is-show { transform: none; }
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 999px;
  font-size: 15px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.mobile-bar svg { width: 18px; height: 18px; }
.mobile-bar .tel { background: var(--c-white); color: var(--c-brand); border: 1px solid var(--c-brand); }
.mobile-bar .mail { background: var(--c-accent); color: var(--c-ink); }
@media (min-width: 900px) { .mobile-bar { display: none; } }
@media (max-width: 899px) { .site-footer { padding-bottom: 84px; } }

/* ---------- 下層ページの見出し ---------- */
.page-hero {
  position: relative; min-height: 72vh; min-height: 72svh; color: var(--c-white); overflow: hidden;
  display: flex; align-items: flex-end; padding: calc(var(--header-h) + 40px) var(--gutter) clamp(48px, 7vw, 96px);
  background: var(--c-ink-2);
}
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 32, 23, .66), rgba(42, 32, 23, .06) 70%), linear-gradient(180deg, rgba(42, 32, 23, .38), transparent 30%); }
.page-hero__inner { position: relative; z-index: 1; display: grid; gap: 18px; width: 100%; }
.page-hero__en { font-family: var(--f-en); font-size: clamp(56px, 11vw, 190px); font-weight: 600; line-height: .92; letter-spacing: -.03em; }
.page-hero__en span { display: inline-block; transform: translateY(100%); opacity: 0; animation: rise2 .6s var(--ease) forwards; }
@keyframes rise2 { to { transform: none; opacity: 1; } }
.page-hero__ja { font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; letter-spacing: .1em; display: flex; align-items: center; gap: 14px; }
.page-hero__ja::before { content: ""; width: 28px; height: 1px; background: var(--c-accent); }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.crumb li + li::before { content: "/"; margin-right: 10px; opacity: .6; }

/* ---------- 事業案内の交互ブロック ---------- */
.feature { display: grid; gap: 0; }
.feature + .feature { margin-top: 8px; }
@media (min-width: 1000px) {
  .feature { grid-template-columns: 1fr 1fr; min-height: 86vh; }
  .feature--rev .feature__img { order: 2; }
}
.feature__img { min-height: 56vw; background-size: cover; background-position: center; }
@media (min-width: 1000px) { .feature__img { min-height: auto; } }
.feature__body { padding: clamp(48px, 7vw, 120px) var(--gutter); display: grid; gap: 24px; align-content: center; background: var(--c-white); }
.feature__no { font-family: var(--f-en); font-size: clamp(64px, 8vw, 120px); font-weight: 600; line-height: 1; color: var(--c-paper-2); letter-spacing: -.03em; }
.feature__body p { color: var(--c-mute); max-width: 34em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--c-brand); color: var(--c-brand); background: var(--c-white); }

/* ---------- 表（会社概要・募集要項） ---------- */
.spec { border-top: 1px solid var(--c-line); }
.spec > div { display: grid; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--c-line); }
@media (min-width: 760px) { .spec > div { grid-template-columns: 200px 1fr; } }
.spec dt { font-weight: 700; font-size: 15px; }
.spec dd { color: var(--c-mute); font-size: 15px; }

.two-col { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 900px) { .two-col { grid-template-columns: var(--cols-2); column-gap: var(--cols-gap); } .two-col > :first-child { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }

/* 沿革 */
.timeline { position: relative; display: grid; gap: 0; }
.timeline li { display: grid; gap: 4px 32px; padding: 28px 0 28px 32px; position: relative; border-left: 1px solid var(--c-orange-light); }
@media (min-width: 760px) { .timeline li { grid-template-columns: 180px 1fr; } }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 38px; width: 11px; height: 11px; border-radius: 50%; background: var(--c-accent); }
.timeline .year { font-family: var(--f-en); font-size: 28px; font-weight: 600; line-height: 1.2; color: var(--c-brand); }
.timeline .month { font-size: 13px; color: var(--c-mute); }
.timeline .ev { font-size: 18px; font-weight: 700; }

/* 代表あいさつ */
.message { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 1000px) { .message { grid-template-columns: 1fr 1fr; } }
.message__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--c-paper-2); }
.message__photo img { width: 100%; height: 100%; object-fit: cover; }
.message__body { display: grid; gap: 24px; }
.message__body p { color: var(--c-mute); max-width: 34em; }
.message__sign { font-size: 15px; }
.message__sign b { font-size: 22px; font-weight: 700; margin-left: 12px; }

/* 拠点 */
.offices { display: grid; gap: 12px; }
@media (min-width: 900px) { .offices { grid-template-columns: 1fr 1fr; } }
.office { background: var(--c-white); border-radius: var(--radius); overflow: hidden; display: grid; align-content: start; }
.office iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(.4); }
.office__body { padding: 28px 32px 32px; display: grid; gap: 8px; }
.office__body .h3 { margin-bottom: 4px; }
.office__body p { color: var(--c-mute); font-size: 15px; }

/* ---------- 施工実績の一覧 ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter button {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-white);
  font-size: 14px; font-weight: 500; transition: all .3s var(--ease);
}
.filter button[aria-pressed="true"] { border-color: var(--c-brand); color: var(--c-brand); box-shadow: inset 0 0 0 1px var(--c-brand); font-weight: 700; }
.filter .count { font-family: var(--f-en); font-size: 12px; margin-left: 6px; opacity: .6; }
.works-grid { display: grid; gap: 40px 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1600px) { .works-grid { grid-template-columns: repeat(4, 1fr); } }
.work { display: grid; gap: 14px; text-align: left; cursor: zoom-in; }
.work[hidden] { display: none; }
.work__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-paper-2); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.work:hover .work__img img { transform: scale(1.06); }
.work__meta { display: flex; gap: 12px; font-size: 13px; color: var(--c-mute); }
.work__cat { color: var(--c-brand); font-weight: 700; }
.work__title { font-size: 17px; font-weight: 700; line-height: 1.6; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--c-white); }
.lightbox::backdrop { background: rgba(42, 32, 23, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__inner { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 16px; padding: 64px var(--gutter) 32px; }
.lightbox__inner img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox__cap { display: grid; gap: 4px; }
.lightbox__cap .cat { font-size: 13px; color: var(--c-accent); font-weight: 700; }
.lightbox__cap .ttl { font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); display: grid; place-items: center; }
.lightbox__close svg { width: 18px; height: 18px; }

/* ---------- 採用 ---------- */

/* ---------- 採用情報（recruit.html） ---------- */
/* 上下の余白を他より詰め、区画の数を減らす（働く環境は募集要項の左の列へ） */
.rc-sec { padding-block: clamp(56px, 6.4vw, 104px); }
.rc-sec--line { border-top: 1px solid var(--c-line); }
.rc-head { margin-bottom: clamp(32px, 4vw, 56px); }
.rc-lead { display: grid; gap: 14px; }
.rc-lead .lead { line-height: 1.9; }

/* 職種：写真＋本文のカード。写真の左下に大きな番号 */
.rc-jobs { display: grid; gap: 16px; }
@media (min-width: 900px) { .rc-jobs { grid-template-columns: 1fr 1fr; gap: 24px; } }
.rc-job { display: grid; grid-template-rows: auto 1fr; background: var(--c-white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--c-line), 0 18px 40px rgba(120, 72, 28, .08); }
.rc-job__media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.rc-job__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.rc-job:hover .rc-job__media img { transform: scale(1.03); }
.rc-job__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 32, 23, .5), rgba(42, 32, 23, 0) 55%); }
.rc-job__no {
  position: absolute; left: clamp(20px, 2.4vw, 36px); bottom: -.14em; z-index: 1;
  font-size: clamp(72px, 8vw, 128px); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--c-white);
}
.rc-job__body { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 2.6vw, 40px) clamp(20px, 2.6vw, 40px) clamp(24px, 2.6vw, 36px); }
.rc-job__en { font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--c-brand); }
.rc-job__title { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; line-height: 1.35; margin-top: -6px; }
.rc-job__text { color: var(--c-mute); font-size: 15px; line-height: 1.85; }
/* 給与：新卒と中途を横に並べる */
.rc-pay { display: grid; grid-template-columns: 1fr 1fr; margin-top: 6px; border-top: 1px solid var(--c-line); }
.rc-pay > div { display: grid; gap: 6px; align-content: start; padding-top: 16px; }
.rc-pay > div + div { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--c-line); }
.rc-pay > div:first-child { padding-right: clamp(16px, 2vw, 28px); }
.rc-pay dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--c-brand); }
.rc-pay dd { font-size: clamp(16px, 1.3vw, 19px); font-weight: 700; line-height: 1.6; font-feature-settings: "palt"; }
.rc-pay dd span { display: block; white-space: nowrap; } /* 金額の途中で折り返さない */
@media (max-width: 519px) {
  /* 狭い幅では新卒・中途を縦に並べ、見出しと金額を横に */
  .rc-pay { grid-template-columns: 1fr; }
  .rc-pay > div { grid-template-columns: 4em 1fr; padding: 14px 0 0; }
  .rc-pay > div + div { padding-left: 0; border-left: 0; margin-top: 14px; border-top: 1px solid var(--c-line); }
  .rc-pay > div:first-child { padding-right: 0; }
  .rc-pay dt { padding-top: 4px; }
}

/* 募集要項：左に見出し・働く環境・写真、右に表（sticky にしない） */
.rc-req { display: grid; gap: clamp(36px, 4vw, 56px); }
@media (min-width: 900px) { .rc-req { grid-template-columns: var(--cols-2); column-gap: var(--cols-gap); align-items: stretch; } }
.rc-req__side { display: grid; grid-template-rows: auto auto auto auto 1fr; align-content: start; } /* 見出し・職種名・働く環境・写真（写真が残りの高さを埋める） */
.rc-benefit { margin-top: clamp(28px, 3vw, 44px); padding: clamp(20px, 2.2vw, 32px); border-radius: var(--radius); background: var(--c-orange-pale); }
.rc-benefit__en { font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--c-brand); }
.rc-benefit__title { font-size: 20px; font-weight: 700; margin-top: 4px; }
.rc-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 16px; }
@media (min-width: 1200px) { .rc-perks { grid-template-columns: repeat(3, 1fr); } }
.rc-perk { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.rc-perk svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--c-accent); color: var(--c-ink); }
.rc-perk b { font-weight: 700; white-space: nowrap; }
@media (max-width: 419px) { .rc-perks { column-gap: 12px; } .rc-perk { gap: 8px; font-size: 14px; } }
.rc-req__photo { margin: 16px 0 0; min-height: 220px; border-radius: var(--radius); overflow: hidden; }
.rc-req__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .rc-req__photo { display: none; } }
.rc-spec > div { padding: 16px 0; }
@media (min-width: 760px) { .rc-spec > div { grid-template-columns: 140px 1fr; } }
.rc-spec dd { line-height: 1.8; }

/* 職種カードは募集要項のページへのリンク */
.rc-job { color: inherit; }
.rc-job .rc-job__body { grid-template-rows: auto auto auto auto auto 1fr; } /* 「募集要項を見る」を2枚とも下端にそろえる */
.rc-job__more { align-self: end; }
.rc-job__more { display: inline-flex; align-items: center; gap: 12px; justify-self: start; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--c-brand); }
.rc-job__more .arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-ink); transition: transform .3s var(--ease); }
.rc-job:hover .rc-job__more .arrow { transform: translateX(3px); }

/* 採用トップ：働く環境（2職種に共通） */
.rc-env { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .rc-env { grid-template-columns: var(--cols-2); column-gap: var(--cols-gap); align-items: stretch; } }
.rc-env__text { display: grid; gap: 20px; align-content: start; }
.rc-env__text .h2 { margin-top: 0; }
.rc-env__text .rc-perks { margin-top: 4px; }
.rc-facts { display: grid; border-top: 1px solid var(--c-line); }
.rc-facts > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.rc-facts dt { font-size: 14px; font-weight: 700; }
.rc-facts dd { font-size: 14px; color: var(--c-mute); line-height: 1.8; }
.rc-env__photo { margin: 0; min-height: 280px; border-radius: var(--radius); overflow: hidden; }
.rc-env__photo img { width: 100%; height: 100%; object-fit: cover; }

/* 職種のページ：写真と概要 */
.rc-detail { display: grid; gap: clamp(24px, 3vw, 40px); align-items: center; }
@media (min-width: 900px) { .rc-detail { grid-template-columns: var(--cols-2); column-gap: var(--cols-gap); } }
.rc-detail__media { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.rc-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.rc-detail__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 32, 23, .45), rgba(42, 32, 23, 0) 50%); }
.rc-detail__body { display: grid; gap: 16px; align-content: start; }
.rc-detail__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; line-height: 1.3; margin: -4px 0 0; }
.rc-detail__title small { font-size: 13px; font-weight: 700; line-height: 1; padding: 7px 12px 6px; border-radius: 999px; border: 1px solid var(--c-brand); color: var(--c-brand); background: var(--c-white); }
.rc-detail .rc-pay { max-width: 520px; }
.rc-req__job { margin-top: 12px; font-size: 16px; font-weight: 700; color: var(--c-brand); }

/* 職種のページ：ほかの募集職種 */
.rc-other-wrap { display: grid; justify-items: center; gap: 16px; padding: clamp(48px, 6vw, 88px) var(--gutter) 0; }
.rc-other__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--c-mute); }
.rc-other {
  display: grid; grid-template-columns: clamp(96px, 12vw, 160px) 1fr auto; align-items: center; gap: clamp(16px, 2vw, 28px);
  width: min(100%, 880px); padding: 12px clamp(16px, 2vw, 28px) 12px 12px; border-radius: var(--radius);
  background: var(--c-white); box-shadow: 0 1px 0 var(--c-line), 0 14px 32px rgba(120, 72, 28, .07);
}
.rc-other img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.rc-other__body { display: grid; gap: 4px; min-width: 0; }
.rc-other__body .rc-job__en { font-size: 11px; }
.rc-other__body b { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.4; }
.rc-other__text { font-size: 14px; color: var(--c-mute); line-height: 1.7; }
.rc-other .arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-ink); transition: transform .3s var(--ease); }
.rc-other:hover .arrow { transform: translateX(3px); }
.rc-back { font-size: 14px; font-weight: 700; color: var(--c-brand); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 599px) {
  .rc-other { grid-template-columns: 88px 1fr; }
  .rc-other .arrow, .rc-other__text { display: none; }
}

/* ---------- フォーム ---------- */
.form { display: grid; gap: 28px; }
.field { display: grid; gap: 10px; }
.field label, .field .label { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.req { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--c-brand); color: var(--c-brand); background: var(--c-white); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-text);
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(181, 79, 0, .15); }
.field textarea { min-height: 200px; resize: vertical; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { font-weight: 500; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-white); cursor: pointer; }
.radios input { position: absolute; opacity: 0; }
.radios label:has(input:checked) { border-color: var(--c-brand); color: var(--c-brand); box-shadow: inset 0 0 0 1px var(--c-brand); font-weight: 700; }
.agree { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.agree input { width: 20px; height: 20px; accent-color: var(--c-brand); }
.form-done { display: none; padding: 24px 28px; border-radius: 14px; background: var(--c-white); border: 1px solid var(--c-brand); color: var(--c-brand); font-weight: 700; }
.form-done.is-show { display: block; }

/* ---------- 出てくる動き ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .05s; }
.reveal-d2 { transition-delay: .1s; }
.reveal-d3 { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 折り返し：最後の行に数文字だけ残さない／日本語は文節で折る ---------- */
p, li, dd, dt, b, .tile__title, .work__title, .rail-card__title { text-wrap: pretty; word-break: auto-phrase; }
h1, h2, h3, .h2, .h3, .about__statement, .panel__title, .step__title, .cta-contact__ja, .ev, .tile__title, .work__title, .rail-card__title, .stat__label {
  text-wrap: balance; word-break: auto-phrase;
}
