@charset "UTF-8";
/* =========================================================
   toll.css
   通行料金ページ固有のスタイル。
   共通パーツ（ヘッダー・フッター・パンくず・ページ見出し・
   見出しラベル・ページ内目次・赤い注意書き・アコーディオン・
   料金表・資料リンクカード・丸矢印）は common.css を参照。

   Figma で text-box-trim になっている行（1行の見出し・段落）は、
   行の高さを持たせた実装だと余白が広く出るので、そのぶんを
   前後の余白から引いている（CLAUDE.md「Figma の数値を
   そのまま入れてはいけない箇所」）。
     本文 16px・行間 1.8 の1行 → 上下 6.4px ずつ
     h3 22px・行間 1.4 → 上下 4.4px ずつ
   ========================================================= */

/* =========================================================
   リード文＋ページ内目次
   ========================================================= */
.p-toll__intro {
  padding-top: 32px;
}

/* リード文だけ行間 2・字送り 0.54px（デザイン値） */
.p-toll__lead {
  line-height: 2;
  letter-spacing: 0.54px;
}

.p-toll__alert {
  margin-top: 13px;
}

.p-toll__toc {
  margin-top: 64px;
}

/* =========================================================
   本文の共通の余白
   ========================================================= */
.p-toll__text {
  margin-top: 16px;
  letter-spacing: 0.42px;
}

/* =========================================================
   車種・区間別の通行料金
   ========================================================= */
.p-toll__fare {
  padding-top: 100px;
}

.p-toll__accordion {
  margin-top: 28px;
}

/* 列の幅：入口 76px・区間 160px・料金3列は残りを等分 */
.p-toll__col-entry {
  width: 76px;
}

.p-toll__col-gate {
  width: 160px;
}

/* 見出し行の高さ（デザイン 34px / 41px）。行の区切り線 1px を含む */
.p-toll__table thead tr:first-child > * {
  height: 34px;
}

.p-toll__table thead tr:nth-child(2) > * {
  height: 41px;
}

.p-toll__table tbody tr > * {
  height: 64px;
}

/* 2行目以降は「入口」のセル（rowspan）が無いので、区間名が行の先頭になり、
   共通の「行の先頭のセルは左線なし」（.c-fare-table tr > :first-child）に当たって
   「入口」との間の縦線が消えてしまう。区間名の列には常に左線を引く */
.p-toll__table tbody tr + tr > th[scope="row"] {
  border-left: 1px solid #adadad;
}

/* 「入口」は縦書き（入／口の2文字を縦に並べる）。
   セル自体に writing-mode を当てると上下中央にならないので中の文字に当てる */
.p-toll__table-entry {
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.p-toll__table-entry-text {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0;
  /* 2026-11-25：縦書きの行（＝縦の長さ）が足りないと「入」と「口」が2列に折り返し、
     縦書きは右の列から読むため左から見ると「口入」に見えていた（SP・タブレットで発生）。
     折り返させず必ず1列に並べる */
  white-space: nowrap;
}

/* デザインでは PDF の案内は1行（leading-none）。
   本文の行の高さの余分（6.4px）を前後から引く */
.p-toll__pdf-lead {
  margin-top: 52.6px;
}

.p-toll__pdf {
  margin-top: 9.6px;
}

/* =========================================================
   往復割引券の利用方法
   ========================================================= */
/* デザインでは PDF ボタンの下 67px に見出し（22px・leading-none）。
   h3 の行の高さの余分（上 4.4px）を引く */
.p-toll__roundtrip-head {
  margin-top: 62.6px;
}

/* 行間 30.4px・字送り 0.42px（デザイン値） */
.p-toll__roundtrip {
  line-height: 1.9;
  letter-spacing: 0.42px;
}

.p-toll__roundtrip-label {
  font-weight: 700;
}

/* 番号は全角の「１．」。2行になっても本文の頭がそろうよう、
   番号の列の幅を固定して本文を字下げする。
   デザインは 53px だが、番号と本文が離れすぎて見えるので 35px に詰めている */
@counter-style royu-fullwidth {
  system: numeric;
  symbols: "０" "１" "２" "３" "４" "５" "６" "７" "８" "９";
}

.p-toll__steps {
  list-style: none;
}

.p-toll__steps li {
  position: relative;
  padding-left: 35px;
}

.p-toll__steps li::before {
  /* counter() には @counter-style の suffix が付かないので「．」はここで足す */
  content: counter(list-item, royu-fullwidth) "．";
  position: absolute;
  top: 0;
  left: 0;
}

/* =========================================================
   お支払い方法
   ========================================================= */
.p-toll__payment {
  padding-top: 100px;
}

/* デザイン 40px から h3 の余分（上 4.4px）を引く */
.p-toll__head3 {
  margin-top: 35.6px;
}

/* デザイン 30px から h3 の余分（下 4.4px）を引く */
.p-toll__pay-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px;
  margin-top: 25.6px;
}

/* 面（白・角丸8px）は共通の .c-panel。リンクはカードの下端にそろえる */
.p-toll__pay {
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 36px 28px;
}

.p-toll__pay-title {
  padding-bottom: 16px;
  border-bottom: 1px solid #d4d4d4;
  color: #3ea1ac;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.p-toll__pay-text {
  margin-top: 28px;
  color: #333;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
}

/* 「定期券ご購入の皆様へ」など。テキストに下線＋小さい丸矢印 */
.p-toll__pay-link {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 7px;
  margin-top: auto;
  padding-top: 54px;
  color: #333;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.p-toll__pay-link-text {
  border-bottom: 1.5px solid currentColor;
}

.p-toll__pay-link-btn {
  width: 22px;
  height: 22px;
  transition: background-color 0.3s ease;
}

.p-toll__pay-link-btn img {
  width: 4.2px;
  height: 5.6px;
}

/* =========================================================
   障がい者割引制度
   ========================================================= */
.p-toll__discount {
  padding-top: 100px;
  padding-bottom: 160px;
}

.p-toll__discount .p-toll__text {
  margin-top: 26px;
}

.p-toll__pdf--discount {
  margin-top: 40px;
}

/* 資料カードの幅は PC だけ 580px（CLAUDE.md「資料リンクカードの幅」） */
@media (min-width: 1200px) {
  .p-toll__toc .c-page-toc {
    grid-template-columns: repeat(4, 245px);
  }

  .p-toll__pdf {
    width: 580px;
  }
}

/* =========================================================
   1199px以下（タブレット・SP）
   ========================================================= */
@media (max-width: 1199px) {
  .p-toll__intro {
    padding-top: 28px;
  }

  .p-toll__lead {
    line-height: 1.8;
  }

  .p-toll__toc {
    margin-top: 56px;
  }

  .p-toll__text {
    margin-top: 18px;
  }

  .p-toll__fare {
    padding-top: 64px;
  }

  .p-toll__accordion {
    margin-top: 20px;
  }

  .p-toll__col-entry {
    width: 29px;
  }

  .p-toll__col-gate {
    width: 37px;
  }

  .p-toll__table tbody tr > * {
    height: 44px;
  }

  .p-toll__table-entry {
    font-size: 1.4rem;
  }

  .p-toll__pdf-lead {
    margin-top: 41.4px;
  }

  .p-toll__pdf {
    margin-top: 8px;
  }

  /* SPのデザインは未作成。本文ブロックの間隔（40px）から h3（18px）の余分 3.6px を引く */
  .p-toll__roundtrip-head {
    margin-top: 36.4px;
  }

  /* 番号（14px の「１．」＝28px）に少し間をあける */
  .p-toll__steps li {
    padding-left: 32px;
  }

  .p-toll__payment {
    padding-top: 64px;
  }

  /* デザイン 40px から h3（18px）の余分 3.6px を引く */
  .p-toll__head3 {
    margin-top: 36.4px;
  }

  /* タブレット幅は2列。1列にすると1枚が横に間延びするため */
  .p-toll__pay-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22.4px;
  }

  .p-toll__pay {
    min-height: 0;
    padding: 26px 20px;
  }

  .p-toll__pay-title {
    font-size: 1.8rem;
  }

  .p-toll__pay-text {
    margin-top: 18px;
    font-size: 1.4rem;
  }

  .p-toll__pay-link {
    padding-top: 24px;
    font-size: 1.3rem;
  }

  .p-toll__discount {
    padding-top: 64px;
    padding-bottom: 100px;
  }

  .p-toll__discount .p-toll__text {
    margin-top: 16px;
  }

  .p-toll__pdf--discount {
    margin-top: 16px;
  }
}

/* =========================================================
   767px以下（SP）
   ========================================================= */
@media (max-width: 767px) {
  .p-toll__pay-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ホバー
   ========================================================= */
@media (hover: hover) and (min-width: 768px) {
  .p-toll__pay-link:hover {
    color: #3ea1ac;
  }

  .p-toll__pay-link:hover .p-toll__pay-link-btn {
    background-color: #3ea1ac;
  }
}

/* =========================================================
   翻訳（GTranslate）表示時の調整（2026-11-30）
   ========================================================= */
/* 縦書きの「入口」：upright のままだと英語が1文字ずつ縦に積まれる
   （e/n/t/r/a/n/c/e）。mixed にして英字は横倒しで読めるようにする
   （中国語・韓国語は mixed でも漢字・ハングルは立ったまま） */
html:is(.translated-ltr, .translated-rtl) .p-toll__table-entry-text {
  text-orientation: mixed;
}

/* SP の料金表：区間名の列（37px）に「Treasure hall」が入りきらず金額のセルに
   はみ出し、金額（「1,050 yen」）もセルの端に詰まっていた。
   区間名の列を広げ、金額の文字を小さくする */
@media (max-width: 767px) {
  html:is(.translated-ltr, .translated-rtl) .p-toll__col-gate {
    width: 64px;
  }

  html:is(.translated-ltr, .translated-rtl) .p-toll__table tbody th[scope="row"] {
    font-size: 1.1rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  html:is(.translated-ltr, .translated-rtl) .p-toll__table td {
    font-size: 1.4rem;
  }
}
