/* ==========================================================================
   TOPページ セクション(FV以外)
   ========================================================================== */

/* FV以降のセクション共通背景: ビューポート固定レイヤー
   白地 + 薄いドットマトリクス + メルカトル地図アニメーション(canvas)。
   各セクションは透過にし、このレイヤーを透かして見せる
   (FV・パララックス帯・フッターは不透過なので上に被さる) */
.top-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #fff;
  background-image: radial-gradient(rgba(34, 39, 31, 0.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
}

.top-bg__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* 地図・航路・船をまとめて薄くする(2026-09-28「もう少し薄く」。色ごとの濃さは map-bg.js、比率はそのまま) */
  opacity: 0.6;
}

/* ---------- NEWS ---------- */
.top-news {
  padding: 110px var(--gut-r) 80px;
}

.top-news__inner {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px 56px;
  align-items: start;
}

.top-news__label-en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text);
}

.top-news__label-ja {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.top-news__label-ja .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-deep);
  flex: none;
}

.top-news__list {
  list-style: none;
  border-top: 1px solid var(--hair-light);
}

.top-news__item {
  border-bottom: 1px solid var(--hair-light);
}

.top-news__link {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 8px;
  transition: background 0.2s;
}

.top-news__link:hover {
  background: rgba(28, 107, 22, 0.04);
}

.top-news__date {
  font-family: var(--font-en);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.top-news__cat {
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--green-deep);
  border: 1px solid var(--green-deep);
  border-radius: 2px;
  padding: 5px 10px;
  min-width: 108px;
  text-align: center;
}

.top-news__ttl {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  transition: color 0.2s;
}

.top-news__link:hover .top-news__ttl {
  color: var(--green-deep);
}

.top-news__arw {
  font-family: var(--font-en);
  color: var(--hair-light);
  transition: color 0.2s, transform 0.2s;
}

.top-news__link:hover .top-news__arw {
  color: var(--green-deep);
  transform: translateX(4px);
}

.top-news__empty {
  border: 1px dashed var(--hair-light);
  border-radius: 2px;
  padding: 40px;
  text-align: center;
  color: var(--text-dim);
}

.top-news__more {
  margin-top: 36px;
  display: flex;
  justify-content: flex-end;
}

.top-news__all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  border: 1px solid var(--green-deep);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  transition: background 0.25s, color 0.25s;
}

.top-news__all:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: #fff;
}

.top-news__all .arw {
  font-family: var(--font-en);
}

/* ---------- ABOUT ---------- */
.top-about {
  padding: 130px var(--gut-r) 130px;
}

.top-about__inner {
  max-width: 1200px;
  margin-inline: auto;
}

/* セクションラベル: 大見出しの下に配置 */
.top-about__eyebrow,
.top-biz__eyebrow {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  margin: 22px 0 0;
}

.top-about__eyebrow {
  margin-bottom: 44px;
}

.top-about__heading,
.top-biz__heading,
.top-info__title {
  font-family: 'Unbounded', var(--font-en), sans-serif;
  font-size: clamp(34px, 7vw, 120px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #1e7d2c;
  margin-bottom: 0;
}

/* グラデーション文字(深緑ベース + 明るい緑のグロー) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .top-about__heading,
  .top-biz__heading,
  .top-info__title {
    display: inline-block;
    background-image:
      radial-gradient(46% 70% at 40% 50%, rgba(83, 219, 78, 0.95) 0%, rgba(83, 219, 78, 0) 100%),
      linear-gradient(120deg, #0e2413 0%, #1e7d2c 42%, #123a1b 76%, #0c1d10 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.top-about__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px 72px;
  align-items: start;
}

.top-about__stmt {
  /* 最長の行「世界各地への中古車輸出を」(12 文字)が左列に 1 行で収まる大きさ */
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: var(--text);
}

.top-about__lead {
  font-size: 28px;
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 46px;
  text-wrap: pretty;
}

.top-about__block {
  border-top: 1px solid var(--hair-light);
  padding-top: 34px;
}

.top-about__block + .top-about__block {
  margin-top: 40px;
}

.top-about__block-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  margin-bottom: 14px;
}

.top-about__countries {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
}

.top-about__countries li {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--text);
}

.top-about__countries li::after {
  content: "/";
  color: var(--hair-light);
  margin: 0 14px;
}

.top-about__countries li:last-child::after {
  content: "";
  margin: 0;
}

/* ---------- セクション間ブレイク(固定写真のパララックス帯) ----------
   写真をビューポートに固定し、スクロールで窓から覗くような動きを出す。
   fixed 非対応環境(iOS Safari 等)は通常スクロールにフォールバック */
.top-break {
  position: relative;
  width: 100%;
  height: clamp(340px, 54vh, 560px);
  background-image:
    linear-gradient(rgba(4, 7, 5, 0.55), rgba(4, 7, 5, 0.55)),
    url(../img/car-inf-back.jpg);
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* FVと同系の網点スクリーン(4pxグリッドの暗いドット)を薄めに重ねる */
.top-break::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.5) 1px, transparent 1.3px);
  background-size: 4px 4px;
  opacity: 0.3;
}

/* ---------- 事業内容 ---------- */
.top-biz {
  padding: 20px 0 100px;
}

.top-biz__inner {
  max-width: calc(1200px + 2 * var(--gut-r));
  padding-inline: var(--gut-r);
  margin-inline: auto;
}

.top-biz__head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px 72px;
  align-items: end;
  margin-bottom: 64px;
}

.top-biz__head .top-biz__heading {
  margin-bottom: 0;
}

.top-biz__lead {
  font-size: 18px;
  line-height: 2.1;
  letter-spacing: 0.03em;
  color: var(--text);
  max-width: 30em;
  text-wrap: pretty;
}

.top-biz__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hair-light);
  /* border-bottom: 1px solid var(--hair-light); */
}

.top-biz__card:not(:first-child) {
  border-left: 1px solid var(--hair-light);
}

/* カード: 画面幅いっぱいの 1 枚(3 列 → 2 列 → 2026-09-24 に「輸出業務の代行」を外して 1 枚)。
   PC は左に文字・右に写真の横並び、SP は縦積み。ホバーはタイトルの緑グラデーション + 写真ズームのみ */
.top-biz__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 52px min(4.5vw, 64px);
}

@media (min-width: 901px) {
  .top-biz__card-link {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "ttl  ph"
      "desc ph"
      "foot ph";
    column-gap: min(5vw, 80px);
    /* 中身は上の見出しエリア(.top-biz__inner)と同じ幅で中央に置く。罫線は li 側なので画面幅いっぱいのまま */
    max-width: calc(1200px + 2 * var(--gut-r));
    margin-inline: auto;
    padding: 90px var(--gut-r);
  }

  .top-biz__card-link .top-biz__ttl { grid-area: ttl; }
  .top-biz__card-link .top-biz__desc { grid-area: desc; min-height: 0; }
  /* 高さの上限を外して列幅いっぱいに(上限があると広い画面で写真の幅が縮み、中身が左に寄る) */
  .top-biz__card-link .top-biz__ph { grid-area: ph; margin-bottom: 0; max-height: none; }
  .top-biz__card-link .top-biz__foot { grid-area: foot; align-self: end; }
}

@media (hover: hover) and (pointer: fine) {
  .top-biz__card-link:hover .top-biz__ph::before,
  .top-biz__card-link:hover .top-biz__ph img {
    transform: scale(1.1);
  }

  /* 非対応ブラウザ用フォールバック(単色の緑) */
  .top-biz__card-link:hover .top-biz__ttl {
    color: var(--green-deep);
  }

  .top-biz__card-link:hover .top-biz__view-circle {
    transform: translateX(4px);
  }

  .top-biz__card-link:hover .top-biz__ttl::after {
    transform: scaleX(1);
  }
}

/* ホバー時のタイトル: 見出しと同じ緑グラデーション文字 */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media (hover: hover) and (pointer: fine) {
    .top-biz__card-link:hover .top-biz__ttl {
      background-image:
        radial-gradient(46% 70% at 40% 50%, rgba(83, 219, 78, 0.95) 0%, rgba(83, 219, 78, 0) 100%),
        linear-gradient(120deg, #0e2413 0%, #1e7d2c 42%, #123a1b 76%, #0c1d10 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }
  }
}

.top-biz__ttl {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  word-break: keep-all;
  color: var(--text);
  margin-bottom: 6px;
}

/* タイトル下のグラデーション下線: ホバーで左から右へ伸びる */
.top-biz__ttl::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, #1e7d2c 0%, #53db4e 55%, #0c1d10 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.top-biz__desc {
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 30px;
  min-height: 3.8em;
}

.top-biz__ph {
  position: relative;
  /* 2 列で幅が広いので 16:9 にし、広い画面では高さも抑える(SP は 4:3 に戻す) */
  aspect-ratio: 16 / 9;
  max-height: 420px;
  border: 1px solid var(--hair-light);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 34px;
}

/* 写真面。ホバーでズーム(読み込み前はストライプの仮面が見える) */
.top-biz__ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, #dae0d8 0 8px, #d2d9d0 8px 16px);
  transition: transform 0.7s ease;
}

.top-biz__ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.top-biz__ph span {
  position: relative;
}

.top-biz__foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.top-biz__en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--text-dim);
}

/* view more ○→ */
.top-biz__view {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--green-deep);
}

.top-biz__view-circle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--green-deep);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.top-biz__more {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

/* 汎用アウトラインボタン(緑) */
.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  border: 1px solid var(--green-deep);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  transition: background 0.25s, color 0.25s;
}

.top-btn:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: #fff;
}

.top-btn .arw {
  font-family: var(--font-en);
}

/* ---------- 求人情報 / 会社概要 リンクカード ---------- */
.top-info {
  padding: 20px 0 75px;
}

.top-info__inner {
  max-width: calc(1200px + 2 * var(--gut-r));
  padding-inline: var(--gut-r);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.top-info__card {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.top-info__card--reverse {
  flex-direction: row-reverse;
}

.top-info__ph {
  flex: 0 0 min(47%, 595px);
  aspect-ratio: 595 / 300;
  border: 1px solid var(--hair-light);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.top-info__ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, #dae0d8 0 8px, #d2d9d0 8px 16px);
  transition: transform 0.6s ease;
}

.top-info__ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.top-info__ph span {
  position: relative;
}

.top-info__title {
  font-size: clamp(30px, 3.4vw, 56px);
  line-height: 1.15;
}

.top-info__sub {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.top-info__text {
  margin-top: 26px;
  max-width: 24em;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--text);
}

/* view more ○→(事業カードと同じスタイル) */
.top-info__view {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--green-deep);
}

.top-info__view-circle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--green-deep);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .top-info__card:hover .top-info__ph::before,
  .top-info__card:hover .top-info__ph img {
    transform: scale(1.1);
  }

  .top-info__card:hover .top-info__view-circle {
    transform: translateX(4px);
  }
}

@media (max-width: 900px) {
  .top-news {
    padding: 72px 24px 96px;
  }

  .top-break {
    height: 300px;
    /* iOS Safari は fixed + cover で表示が壊れるため通常スクロールに */
    background-attachment: scroll;
  }

  .top-biz {
    padding: 0 0 64px;
  }

  .top-biz__head {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    margin-bottom: 52px;
  }

  .top-biz__heading {
    font-size: 38px;
  }

  .top-biz__grid {
    grid-template-columns: 1fr;
  }

  .top-biz__card:not(:first-child) {
    border-left: 0;
  }

  .top-biz__card:not(:last-child) {
    border-bottom: 1px solid var(--hair-light);
  }

  .top-biz__card-link {
    padding: 42px 24px;
  }

  .top-biz__ph {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .top-biz__desc {
    min-height: 0;
  }

  .top-biz__ttl {
    font-size: 24px;
  }

  .top-biz__desc {
    font-size: 18px;
  }

  /* 下のフッター(Contact)の上余白と足して空きすぎないように(2026-09-28: 96 → 48px) */
  .top-info {
    padding: 0 0 48px;
  }

  .top-info__inner {
    gap: 72px;
  }

  .top-info__card,
  .top-info__card--reverse {
    flex-direction: column;
    gap: 22px;
  }

  .top-info__ph {
    flex: none;
    width: 100%;
  }

  .top-info__title {
    font-size: 34px;
  }

  .top-info__sub {
    margin-top: 4px;
  }

  .top-info__text {
    margin-top: 14px;
    max-width: none;
  }

  .top-info__view {
    margin-top: 20px;
  }

  .top-biz__more {
    justify-content: center;
  }

  .top-btn {
    width: 100%;
    justify-content: center;
  }

  .top-about {
    padding: 64px 24px 96px;
  }

  .top-about__heading {
    font-size: 38px;
  }

  .top-about__eyebrow,
  .top-biz__eyebrow {
    font-size: 16px;
    margin-top: 14px;
  }

  .top-about__eyebrow {
    margin-bottom: 28px;
  }

  .top-about__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* SP も PC と同じ 3 行の改行を保つ(12 文字の行が画面幅に収まる大きさ) */
  .top-about__stmt {
    font-size: clamp(22px, 6.6vw, 30px);
  }

  .top-about__lead {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .top-about__block-title {
    font-size: 15px;
  }

  .top-news__inner {
    grid-template-columns: 1fr;
  }

  .top-news__label-en {
    font-size: 28px;
  }

  .top-news__link {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 20px 4px;
  }

  .top-news__date {
    font-size: 13px;
  }

  .top-news__cat {
    font-size: 12px;
  }

  .top-news__ttl {
    width: 100%;
    font-size: 16px;
  }

  .top-news__arw {
    display: none;
  }

  .top-news__more {
    justify-content: center;
  }

  .top-news__all {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-news__link,
  .top-news__ttl,
  .top-news__arw,
  .top-news__all {
    transition: none;
  }
}
