/* ==========================================================
   舟田運送 共通スタイル
   色・書体・余白はすべて :root の値で決めています
   ========================================================== */
:root {
  --blue: #004ea2;        /* メインの青（現行サイトと同じ） */
  --navy: #071f3b;        /* 濃紺（暗い背景・文字） */
  --aqua: #1aa6c4;        /* トラックの水色 */
  --red: #d3191c;         /* トラックの赤いライン */
  --ink: #16222e;         /* 本文の文字 */
  --mute: #5d6b78;        /* 補助の文字 */
  --paper: #eef2f4;       /* 薄い背景 */
  --line: #d5dde2;        /* 罫線 */
  --white: #fff;

  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(88px, 12vw, 176px);
  --header-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 4px; }
::selection { background: var(--blue); color: var(--white); }

.container { width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto; }
.section { padding-block: var(--section); }

/* ---------- 動きの共通（JSが動くときだけ隠す） ---------- */
.js [data-reveal=""] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js [data-reveal=""].is-in { opacity: 1; transform: none; }

.line { display: block; overflow: hidden; }
.line > span { display: block; }
.js [data-reveal="lines"] .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js [data-reveal="lines"] .line:nth-child(2) > span { transition-delay: .12s; }
.js [data-reveal="lines"].is-in .line > span { transform: none; }

.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; overflow: hidden; vertical-align: top; }
.char > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.is-in .char > span { transform: none; }

.photo { overflow: hidden; background: var(--paper); }
.photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.18; }
/* 写真は最初から表示する（スクロールに合わせて後から出す動きは、表示が遅く見えるため 2026-10-08 に廃止） */

/* ---------- ボタン ---------- */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-width: min(100%, 280px); padding: 17px 20px 17px 32px;
  border: 1px solid var(--blue); border-radius: 999px;
  color: var(--blue); font-weight: 700; font-size: 15px; line-height: 1.6;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.button::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--blue);
  transform: translateX(-101%); transition: transform .6s var(--ease);
}
.button .arrow { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--blue); color: var(--white); transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease); }
.button-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.button-light::before { background: var(--white); }
.button-light .arrow { background: var(--white); color: var(--blue); }
@media (hover: hover) {
  .button:hover { color: var(--white); }
  .button:hover::before { transform: none; }
  .button:hover .arrow { background: var(--white); color: var(--blue); transform: translateX(4px); }
  .button-light:hover { color: var(--blue); }
  .button-light:hover .arrow { background: var(--blue); color: var(--white); }
}

/* ---------- 見出し（英語＋日本語） ---------- */
.heading { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(40px, 6vw, 88px); font-weight: 700; }
.heading-en { font-family: var(--font-en); font-weight: 600; font-size: clamp(64px, 10.5vw, 160px); line-height: .82; letter-spacing: -.01em; color: var(--blue); text-transform: uppercase; }
.heading-ja { display: flex; align-items: center; gap: 14px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; letter-spacing: .12em; color: var(--navy); }
.heading-ja::before { content: ""; width: 36px; height: 3px; background: var(--red); }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; gap: 32px; padding-inline: clamp(20px, 3vw, 48px);
  color: var(--navy);
  transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), height .5s var(--ease), box-shadow .5s;
}
@media (min-width: 768px) { .page-home .header { color: var(--white); } }
.is-scrolled .header { height: 68px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--navy); box-shadow: 0 1px 0 rgba(7,31,59,.08); }
.header-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 22px; font-weight: 900; letter-spacing: .08em; line-height: 1; }
.header-logo img { width: 40px; height: 40px; border-radius: 50%; }
.header-nav ul { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.header-nav a, .header-contact { display: flex; flex-direction: column; align-items: center; gap: 5px; line-height: 1; }
.nav-ja { font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.nav-en { font-family: var(--font-en); font-size: 11px; font-weight: 500; letter-spacing: .18em; opacity: .65; }
.header-nav a { position: relative; padding-block: 10px; }
.header-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.header-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-contact { padding: 13px 30px; border-radius: 999px; background: var(--blue); color: var(--white); transition: background .4s var(--ease); }
@media (hover: hover) {
  .header-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .header-contact:hover { background: var(--aqua); }
}
.menu-button { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); }
.menu-button span { position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; margin-top: -1px; background: var(--white); transition: transform .5s var(--ease); }
.menu-button span:first-child { transform: translateY(-4px); }
.menu-button span:last-child { transform: translateY(4px); }
.is-menu-open .menu-button span:first-child { transform: rotate(45deg); }
.is-menu-open .menu-button span:last-child { transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 96px var(--gutter) 40px; background: var(--navy); color: var(--white);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); overflow-y: auto;
}
.drawer[hidden] { display: none; }
.is-menu-open .drawer { clip-path: inset(0); }
.drawer li { border-bottom: 1px solid rgba(255,255,255,.14); opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.25s + var(--i) * 50ms); }
.is-menu-open .drawer li { opacity: 1; transform: none; }
.drawer a { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; }
.drawer .nav-ja { font-size: 20px; }
.drawer .nav-en { font-size: 13px; }
.drawer a[aria-current="page"] .nav-ja { color: var(--aqua); }
.drawer-tel { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-en); line-height: 1; }
.drawer-tel span { font-size: 14px; letter-spacing: .18em; opacity: .65; }
.drawer-tel a { font-size: 40px; font-weight: 600; letter-spacing: .02em; }
.is-menu-open .header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }

@media (max-width: 1099px) {
  :root { --header-h: 72px; }
  .header-nav, .header-contact { display: none; }
  .menu-button { display: block; }
}

/* ---------- 開幕 ---------- */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 20px; background: var(--white); animation: intro-out .9s var(--ease-io) 1.1s forwards; }
.intro img { width: 72px; height: 72px; animation: intro-logo .8s var(--ease) both; }
.intro-line { width: 120px; height: 3px; background: var(--red); transform-origin: left; animation: intro-line .9s var(--ease-io) .15s both; }
@keyframes intro-logo { from { opacity: 0; transform: translateY(16px); } }
@keyframes intro-line { from { transform: scaleX(0); } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- ファーストビュー ---------- */
/* 写真は暗くしない。PCはトラック5台の手前の路面にキャッチフレーズを置き、スマホは写真の上に文字を出して写真は切らずに全体を見せる。
   文字の大きさを vw（画面幅の割合）で決めているのは、路面の帯の高さが画面幅に比例するため。変えるとトラックに重なる */
.hero { position: relative; height: min(100svh, 56.25vw); overflow: hidden; background: var(--navy); color: var(--white); }
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 100%; transform-origin: 50% 100%; animation: hero-zoom 2.4s var(--ease) 1.1s both; }
.hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 22%; background: linear-gradient(180deg, rgba(7,31,59,.32), rgba(7,31,59,0)); pointer-events: none; }
@keyframes hero-zoom { from { scale: 1.06; } }
.hero-copy { position: absolute; z-index: 1; left: var(--gutter); bottom: 1.5vw; }
.hero-en { display: flex; gap: 1.2vw; margin-bottom: .9vw; font-family: var(--font-en); font-size: max(11px, 1vw); font-weight: 500; letter-spacing: .28em; line-height: 1; opacity: 0; animation: fade-up 1s var(--ease) 1.9s forwards; }
.hero-en span + span::before { content: ""; display: inline-block; width: 2vw; height: 1px; margin-right: 1.2vw; vertical-align: middle; background: currentColor; }
.hero-title { display: flex; gap: .45em; font-size: 4.2vw; font-weight: 900; line-height: 1.16; letter-spacing: .06em; white-space: nowrap; }
.hero-title .line > span { transform: translateY(105%); animation: line-up 1.2s var(--ease) 1.45s forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 1.58s; }
.hero-title em { font-style: normal; margin-left: .45em; }
.hero-stripe { width: 100%; height: 1.5vw; margin-top: .7vw; color: var(--red); clip-path: inset(-50% 100% -50% 0); animation: draw 1.6s var(--ease-io) 1.9s forwards; overflow: visible; }
.hero-stripe path { vector-effect: non-scaling-stroke; }
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { clip-path: inset(-50% 0 -50% 0); } }
@keyframes scroll-line { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.hero-scroll { position: absolute; z-index: 1; right: clamp(20px, 3vw, 48px); bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 1vw; font-family: var(--font-en); font-size: max(10px, .85vw); letter-spacing: .28em; line-height: 1; }
.hero-scroll span { writing-mode: vertical-rl; }
.hero-scroll::after { content: ""; width: 1px; height: 5vw; background: linear-gradient(var(--white) 50%, rgba(255,255,255,.25) 0); background-size: 100% 200%; animation: scroll-line 2.2s var(--ease-io) infinite; }
@media (max-width: 767px) {
  .hero { display: flex; flex-direction: column; height: auto; padding-top: calc(var(--header-h) + 28px); background: var(--white); color: var(--navy); }
  .hero::after, .hero-scroll { display: none; }
  .hero-copy { position: static; order: -1; padding: 0 var(--gutter) 28px; }
  .hero-en { gap: 14px; margin-bottom: 14px; font-size: 12px; color: var(--blue); }
  .hero-en span + span::before { width: 24px; margin-right: 14px; }
  .hero-title { display: block; font-size: 10.6vw; white-space: normal; }
  .hero-stripe { height: 16px; margin-top: 14px; }
  .hero-media { position: static; aspect-ratio: 16 / 9; overflow: hidden; }
}

/* ---------- 新着情報（1行） ---------- */
.news-line { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 22px var(--gutter); border-bottom: 1px solid var(--line); line-height: 1.6; }
.news-label { font-family: var(--font-en); font-weight: 600; font-size: 18px; letter-spacing: .14em; color: var(--blue); }
.news-item { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; }
.news-item time { font-family: var(--font-en); font-size: 16px; letter-spacing: .08em; color: var(--mute); }

/* ---------- 私たちについて ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-text { position: sticky; top: 120px; }
.about-text > p { font-size: clamp(15px, 1.25vw, 17px); line-height: 2.3; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--navy); }
.stats > div { padding: 20px 0 0; }
.stats > div + div { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.stats dt { font-size: 13px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; color: var(--mute); }
.stats dd { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-en); font-weight: 600; font-size: clamp(56px, 7vw, 104px); line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.stats small { font-family: var(--font-ja); font-size: 16px; font-weight: 700; color: var(--navy); }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); }
.about-photo-1 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.about-photo-2, .about-photo-3 { aspect-ratio: 3 / 2; }
.about-photo-3 { margin-top: clamp(24px, 4vw, 64px); }

/* ---------- 流れる文字 ---------- */
.marquee { overflow: hidden; padding-block: clamp(8px, 2vw, 24px); }
.marquee-track { display: flex; gap: .5em; width: max-content; font-family: var(--font-en); font-style: italic; font-weight: 600; font-size: clamp(88px, 17vw, 260px); line-height: .9; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line); will-change: transform; }
.marquee-track span:nth-child(even) { color: var(--paper); -webkit-text-stroke: 0; }

/* ---------- 事業内容 ---------- */
/* 番号は写真の外側の上、説明欄は写真の角をまたいで外側へ張り出す。01 と 02 は左右対称 */
.service { background: var(--paper); }
.service-item { --side: clamp(96px, 15vw, 216px); --overlap: clamp(72px, 10vw, 152px); display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.service-item + .service-item { margin-top: clamp(80px, 11vw, 160px); }
.service-no { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: calc(var(--overlap) + 24px); font-family: var(--font-en); line-height: 1; color: var(--blue); }
.service-no span { font-size: 13px; font-weight: 500; letter-spacing: .24em; }
.service-no b { font-size: clamp(72px, 10.5vw, 152px); font-weight: 600; line-height: .82; }
.service-no::after { content: ""; flex: 1; width: 1px; margin: 14px 0 0 4px; background: var(--blue); opacity: .35; }
.service-photo { grid-column: 2; grid-row: 1; aspect-ratio: 16 / 9; }
.service-card { grid-column: 1 / -1; grid-row: 2; justify-self: start; position: relative; z-index: 1; width: clamp(360px, 48%, 600px); margin-top: calc(var(--overlap) * -1); padding: clamp(28px, 3.6vw, 52px); background: var(--white); box-shadow: 0 24px 60px -32px rgba(7, 31, 59, .28); }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; width: 72px; height: 4px; background: var(--red); }
.service-card h3 { margin-bottom: 18px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; line-height: 1.4; letter-spacing: .08em; color: var(--navy); }
.service-card p { font-size: 15px; }
.service-card .button { margin-top: 28px; }
.service-item.is-reverse { grid-template-columns: minmax(0, 1fr) var(--side); }
.is-reverse .service-no { grid-column: 2; align-items: flex-end; }
.is-reverse .service-no::after { margin: 14px 4px 0 0; }
.is-reverse .service-photo { grid-column: 1; }
.is-reverse .service-card { justify-self: end; }
.is-reverse .service-card::before { left: auto; right: 0; }

/* ---------- 頼りになる存在であり続ける ---------- */
.statement { position: relative; padding-block: var(--section); background: var(--navy); color: var(--white); overflow: hidden; }
.statement::before { content: ""; position: absolute; inset: 0; background: url(../images/home/fleet.webp) center / cover; opacity: .16; }
.statement-inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement-title { font-size: clamp(30px, 3.9vw, 58px); white-space: nowrap; font-weight: 900; line-height: 1.35; letter-spacing: .06em; }
.statement-title::after { content: ""; display: block; width: 96px; height: 4px; margin-top: 28px; background: var(--red); }
.statement-body p + p { margin-top: 1.6em; }
.statement-body .button { margin-top: 40px; }

/* ---------- 安全と環境 ---------- */
.safety-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.safety .heading { margin-bottom: clamp(28px, 3vw, 44px); }
.safety-text .button { margin-top: 36px; }
.safety-photo { aspect-ratio: 16 / 10; }

/* ---------- 会社案内 ---------- */
.company { padding-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; display: grid; grid-template-columns: 46% 54%; grid-template-rows: auto auto 1fr auto; min-height: clamp(260px, 26vw, 360px); height: 100%; padding: clamp(24px, 3vw, 44px); background: var(--blue); color: var(--white); overflow: hidden; transition: background .6s var(--ease); }
.tile > :not(figure) { grid-column: 1; }
.tile > :not(figure):not(.arrow) { padding-right: clamp(16px, 2vw, 32px); }
.tile figure { position: absolute; inset: 0 0 0 46%; overflow: hidden; }
.tile figure img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.tile-en { font-family: var(--font-en); font-size: 13px; letter-spacing: .24em; line-height: 1; opacity: .7; }
.tile h3 { margin: 12px 0 14px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; line-height: 1.4; letter-spacing: .1em; }
.tile p { font-size: 14px; line-height: 1.9; }
.tile .arrow { align-self: end; width: 44px; height: 44px; margin-top: 20px; padding: 12px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease); }
.tiles li:nth-child(n+3) .tile { grid-template-columns: 54% 46%; }
.tiles li:nth-child(n+3) .tile > :not(figure) { grid-column: 2; }
.tiles li:nth-child(n+3) .tile > :not(figure):not(.arrow) { padding-right: 0; padding-left: clamp(24px, 3vw, 44px); }
.tiles li:nth-child(n+3) .tile .arrow { margin-left: clamp(24px, 3vw, 44px); }
.tiles li:nth-child(n+3) .tile figure { inset: 0 46% 0 0; }
.tiles li:nth-child(2) .tile, .tiles li:nth-child(3) .tile { background: var(--navy); }
@media (hover: hover) {
  .tile:hover figure img { scale: 1.08; }
  .tile:hover .arrow { background: var(--white); color: var(--blue); transform: translateX(6px); }
}

/* ---------- お問い合わせの案内 ---------- */
.cta { padding-block: clamp(80px, 10vw, 144px); background: var(--blue); color: var(--white); overflow: hidden; }
.cta-inner { width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta-title { font-family: var(--font-en); font-weight: 600; font-size: clamp(72px, 11vw, 168px); line-height: .82; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-top: 32px; }
.cta-tel { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-en); line-height: 1; }
.cta-tel span { font-size: 14px; letter-spacing: .18em; opacity: .7; }
.cta-tel a { font-size: clamp(34px, 3.6vw, 48px); font-weight: 600; letter-spacing: .02em; }
.cta-tel small { font-family: var(--font-ja); font-size: 13px; }

/* ---------- フッター ---------- */
.footer { background: var(--navy); color: var(--white); overflow: hidden; }
.footer-inner { width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto; padding-block: clamp(64px, 8vw, 104px) clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px clamp(40px, 8vw, 144px); }
.footer-name { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font-size: clamp(20px, 2vw, 26px); font-weight: 900; letter-spacing: .08em; line-height: 1.4; }
.footer-name img { border-radius: 50%; }
.footer-company { font-size: 14px; }
.footer-tel { margin-top: 12px; font-family: var(--font-en); font-size: 20px; letter-spacing: .06em; line-height: 1.6; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, auto); gap: 6px clamp(32px, 5vw, 72px); font-size: 14px; font-weight: 700; }
.footer-nav a { position: relative; display: inline-block; padding-block: 4px; }
.footer-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
@media (hover: hover) { .footer-nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px var(--gutter); border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; }
.footer-word { position: absolute; left: 50%; bottom: 100%; translate: -50% 38%; font-family: var(--font-en); font-style: italic; font-weight: 600; font-size: clamp(80px, 19vw, 300px); line-height: .8; white-space: nowrap; color: rgba(255,255,255,.04); pointer-events: none; }
/* ページの先頭へ戻るボタン：画面の右下に付いてくる。一番上にいる間は隠す */
.to-top { position: fixed; z-index: 80; right: clamp(16px, 2.4vw, 36px); bottom: clamp(16px, 2.4vw, 36px); display: grid; place-items: center; gap: 2px; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: var(--white); box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 10px 24px -10px rgba(7,31,59,.5); font-family: var(--font-en); font-size: 11px; letter-spacing: .16em; line-height: 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s, background .4s var(--ease); }
.to-top .arrow { width: 18px; height: 18px; margin-top: 8px; rotate: -90deg; transition: transform .4s var(--ease); }
.to-top span { margin-bottom: 9px; padding-left: .16em; }
.is-top-visible .to-top { opacity: .45; visibility: visible; transform: none; }
.is-top-visible .to-top:focus-visible { opacity: 1; }
.is-menu-open .to-top { opacity: 0; visibility: hidden; }
@media (hover: hover) { .is-top-visible .to-top:hover { opacity: 1; } .to-top:hover .arrow { transform: translateX(3px); } }

/* ==========================================================
   下層ページ
   ========================================================== */
/* トップ部分：見出しと写真を横に並べ、写真は元の比率のまま切らずに、開いた最初の画面に収める */
.page-hero { padding-top: calc(var(--header-h) + clamp(20px, 3vw, 48px)); }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: clamp(20px, 2.6vw, 36px); font-size: 12px; font-weight: 700; line-height: 1.6; color: var(--mute); }
.breadcrumb li + li::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 14px; vertical-align: middle; background: currentColor; }
.breadcrumb a { color: var(--blue); }
.page-title { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); }
.page-title-en { font-family: var(--font-en); font-weight: 600; font-size: clamp(60px, 8vw, 128px); line-height: .8; letter-spacing: -.01em; color: var(--blue); text-transform: uppercase; }
.page-title-ja { display: flex; align-items: center; gap: 14px; font-size: clamp(17px, 1.7vw, 24px); font-weight: 900; line-height: 1.5; letter-spacing: .12em; color: var(--navy); }
.page-title-ja::before { content: ""; flex: none; width: 48px; height: 4px; background: var(--red); }
.page-hero-media { justify-self: end; width: min(100%, calc((100svh - var(--header-h) - 96px) * (var(--ar)))); aspect-ratio: var(--ar); }
.page-hero-media img { scale: 1; }
@media (max-width: 899px) {
  .page-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .page-hero-media { justify-self: stretch; width: 100%; }
}
@media (max-width: 599px) {
  .page-hero-media { width: auto; margin-inline: calc(var(--gutter) * -1); }
}

.section-paper { background: var(--paper); }
.section-tight { padding-top: 0; }
.sub-heading { margin-bottom: clamp(24px, 3vw, 40px); padding-left: 20px; border-left: 4px solid var(--red); font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; line-height: 1.5; letter-spacing: .08em; color: var(--navy); }
.text p + p { margin-top: 1.4em; }

/* 写真と文章の横並び */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.is-reverse > :first-child { order: 2; }
.split-photo { aspect-ratio: 3 / 2; }
.split + .block, .block + .block, .split + .split { margin-top: clamp(64px, 8vw, 120px); }

/* 番号つきの特長 */
/* 番号つきの特長：カードにせず、大きな番号と本文を並べ、縦の細い罫線で区切る */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { position: relative; padding: 4px clamp(24px, 4vw, 64px) 4px clamp(72px, 7vw, 104px); }
.feature + .feature { border-left: 1px solid var(--line); padding-left: calc(clamp(72px, 7vw, 104px) + clamp(24px, 4vw, 64px)); padding-right: 0; }
.feature .feature-no { position: absolute; left: 0; top: 0; font-family: var(--font-en); font-weight: 600; font-size: clamp(48px, 5vw, 72px); line-height: .9; color: var(--blue); }
.feature + .feature .feature-no { left: clamp(24px, 4vw, 64px); }
.feature h4 { margin: 0 0 14px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 900; line-height: 1.5; letter-spacing: .06em; color: var(--navy); }
.feature p { font-size: 15px; }
.feature p + p { margin-top: 1em; }

/* 大きな数字（倉庫の広さ など） */
.figures { display: grid; grid-template-columns: auto auto auto; border-top: 1px solid var(--navy); margin-top: clamp(32px, 4vw, 48px); }
.figures > li { padding: 18px 0 0; }
.figures > li + li { padding-left: clamp(14px, 2vw, 24px); border-left: 1px solid var(--line); }
.figures b { display: block; font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--navy); }
.figures span { display: block; font-family: var(--font-en); font-weight: 600; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.3; color: var(--blue); white-space: nowrap; }
.figures small { font-family: var(--font-ja); font-size: 15px; font-weight: 700; color: var(--navy); margin-left: 2px; }

.check-list { border-top: 1px solid var(--line); }
.check-list li { position: relative; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); line-height: 1.8; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 30px; width: 16px; height: 2px; background: var(--red); }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 20px); margin-top: clamp(40px, 5vw, 72px); }
.gallery .photo { aspect-ratio: 4 / 3; }
.gallery li:nth-child(even) { margin-top: clamp(16px, 3vw, 48px); }

/* 表（会社データ・募集要項） */
.table { border-top: 1px solid var(--navy); }
.table > div { display: grid; grid-template-columns: clamp(120px, 22%, 260px) minmax(0, 1fr); gap: 8px 24px; padding: clamp(18px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--line); }
.table dt { font-weight: 900; letter-spacing: .08em; color: var(--blue); }
.table dt small { display: block; font-size: 12px; font-weight: 500; color: var(--mute); }
.narrow { max-width: 960px; }

/* 車両紹介 */
.vehicles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 96px) clamp(24px, 4vw, 64px); }
.vehicle:nth-child(even) { margin-top: clamp(0px, 6vw, 96px); }
.vehicle .photo { aspect-ratio: 3 / 2; }
.vehicle-head { display: flex; align-items: baseline; gap: 16px; margin: 20px 0 14px; }
.vehicle-no { font-family: var(--font-en); font-weight: 600; font-size: 20px; letter-spacing: .1em; line-height: 1; color: var(--red); }
.vehicle h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 900; line-height: 1.4; letter-spacing: .04em; color: var(--navy); }
.spec { border-top: 1px solid var(--navy); font-size: 15px; }
.spec > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.7; }
.spec dt { font-weight: 700; color: var(--mute); }
.spec dd { font-weight: 700; }
.vehicle-note { margin-top: 14px; font-size: 15px; }
.fleet-note { display: inline-block; margin-bottom: 28px; padding: 6px 18px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.8; }
.fleet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 80px); border-top: 1px solid var(--navy); }
.fleet > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fleet dt { font-weight: 700; }
.fleet dd { font-family: var(--font-en); font-weight: 600; font-size: 34px; line-height: 1; color: var(--blue); white-space: nowrap; }
.fleet dd small { font-family: var(--font-ja); font-size: 14px; color: var(--navy); margin-left: 4px; }

/* 認証 */
/* 認証：先方の要望で証書を大きく見せる（文字が読める大きさ）。箱には入れない */
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.cert img { width: 100%; }
.cert p { margin-top: 24px; }
.cert-mark { width: min(100%, 640px); margin: clamp(56px, 7vw, 104px) auto 0; }
.cert-mark img { width: 100%; }

/* ごあいさつ */
.message { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.message-photo { aspect-ratio: 1; position: sticky; top: 120px; }
.message-name { margin-bottom: 28px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; line-height: 1.5; letter-spacing: .1em; color: var(--navy); }
.message-name small { display: block; font-size: 14px; font-weight: 700; color: var(--mute); }
.message .text { font-size: clamp(15px, 1.25vw, 17px); line-height: 2.3; }
/* 所在地：カードにせず、左に名称と住所、右に大きな地図を並べ、細い罫線で区切る */
.offices { counter-reset: office; border-top: 1px solid var(--navy); }
.office { counter-increment: office; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: auto 1fr; column-gap: clamp(24px, 5vw, 80px); padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.office h2 { grid-column: 1; display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; line-height: 1.4; letter-spacing: .1em; color: var(--navy); }
.office h2::before { content: counter(office, decimal-leading-zero); font-family: var(--font-en); font-weight: 600; font-size: .8em; letter-spacing: .1em; color: var(--red); }
.office address { grid-column: 1; }
.office-map { grid-column: 2; grid-row: 1 / 3; aspect-ratio: 16 / 8; background: var(--white); }
.office-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* フォーム */
.form-intro { margin-bottom: clamp(28px, 3vw, 40px); }
.form-frame { background: var(--white); border: 1px solid var(--line); }
.form-frame:empty { min-height: 200px; }
.form-frame iframe { display: block; width: 100%; border: 0; }
.formzu-frame { height: 1120px; }
.formzu-frame-tall { height: 1260px; }
.tel-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 32px; padding: 24px clamp(20px, 3vw, 40px); background: var(--paper); line-height: 1.6; }
.tel-box b { font-size: 14px; }
.tel-box a { font-family: var(--font-en); font-weight: 600; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; color: var(--blue); }

/* 404 */
.notfound { min-height: 80svh; display: grid; place-content: center; justify-items: center; gap: 24px; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; text-align: center; }
.notfound .page-title-en { font-size: clamp(120px, 26vw, 360px); }

/* ---------- タブレット以下 ---------- */
@media (max-width: 899px) {
  .split, .message, .features { grid-template-columns: minmax(0, 1fr); }
  .certs { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .cert { width: min(100%, 640px); margin-inline: auto; }
  .feature, .feature + .feature { padding: 4px 0 4px 72px; border-left: 0; }
  .feature + .feature { margin-top: 36px; padding-top: 40px; border-top: 1px solid var(--line); }
  .feature + .feature .feature-no { left: 0; top: 36px; }
  .office { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .office-map { grid-column: 1; grid-row: auto; margin-top: 24px; aspect-ratio: 16 / 10; }
  .split.is-reverse > :first-child { order: 0; }
  .message-photo { position: static; width: min(100%, 360px); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-text { position: static; }
  .about-grid, .statement-inner, .safety-grid, .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .safety-grid { align-items: start; }
  .tiles { grid-template-columns: 1fr; }
  .tiles li:nth-child(n) .tile { grid-template-columns: 54% 46%; background: var(--blue); }
  .tiles li:nth-child(even) .tile { background: var(--navy); }
  .tiles li:nth-child(n) .tile > :not(figure) { grid-column: 1; }
  .tiles li:nth-child(n) .tile > :not(figure):not(.arrow) { padding: 0 16px 0 0; }
  .tiles li:nth-child(n) .tile .arrow { margin-left: 0; }
  .tiles li:nth-child(n) .tile figure { inset: 0 0 0 54%; }
  .company .container { width: 100%; }
  .company .heading { padding-inline: var(--gutter); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 事業内容ブロックは、幅767px以下で縦並びにする（狭い画面で説明欄が細くなりすぎるため） ---------- */
@media (max-width: 767px) {
  .service-item, .service-item.is-reverse { grid-template-columns: minmax(0, 1fr); }
  .service-no, .is-reverse .service-no { grid-column: 1; grid-row: auto; flex-direction: row; align-items: baseline; gap: 12px; padding-bottom: 12px; }
  .service-no::after { display: none; }
  .service-no b { font-size: 56px; }
  .service-photo, .is-reverse .service-photo { grid-column: 1; grid-row: auto; margin-inline: calc(var(--gutter) * -1); aspect-ratio: 3 / 2; }
  .service-card, .is-reverse .service-card { grid-row: auto; width: 100%; margin-top: -32px; }
  .is-reverse .service-card::before { left: 0; right: auto; }
}

/* ---------- スマホ ---------- */
@media (max-width: 599px) {
  .vehicles, .fleet { grid-template-columns: minmax(0, 1fr); }
  .formzu-frame { height: 1280px; }
  .formzu-frame-tall { height: 1460px; }
  .vehicle:nth-child(even) { margin-top: 0; }
  .table > div { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures > li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 12px; }
  .figures span { font-size: 30px; }
  .figures b { font-size: 12px; }
  body { font-size: 15px; }
  .news-line { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 18px; }
  .stats dd { font-size: 52px; }
  .stats small { font-size: 13px; }
  .button { width: 100%; }
  .tile { min-height: 0; }
  .tile p { font-size: 13px; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-wrap: wrap; }
}

/* ---------- 「動きを減らす」設定の端末 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .char > span, .line > span { transform: none !important; }
  .photo img { scale: 1; }
  .intro { display: none; }
}
