/* =========================================================
   Service page 専用スタイル（/service.html）
   ========================================================= */

/* ベース */
.page-service main {
  background-color: #ffffff;
}

/* =========================
   見出し装飾
   ========================= */

.page-service .section-title {
  position: relative;
  padding-left: 12px;
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.3;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: #0b4f66;
}

.page-service .section-title::before {
  content: "";
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}

/* ヒーロー直下テキスト微調整 */
.page-service .section-gradient--first .muted {
  margin: 6px 0;
}

.page-service .section-gradient--first .service-actions {
  margin-top: 14px;
}

/* 汎用注記（service.html 用） */
.page-service .text-note {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
}

.page-service .text-note li {
  margin: 4px 0;
}

/* =========================
   お困りごと（あるある導入）
   ========================= */

.page-service .sv-problem {
  padding-top: 40px;
  padding-bottom: 32px;
}

/* 3つの「あるある」全体 */
.page-service .sv-problem-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}

/* 1行ごとの構成（人物＋吹き出し風カード） */
.page-service .problem-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

/* 2人目だけ左右反転 */
.page-service .problem-item.reverse {
  flex-direction: row-reverse;
}

/* イラスト共通 */
.page-service .problem-illust img {
  width: 160px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 吹き出し風カード */
.page-service .speech {
  background: #ffffff;
  border: 2px solid #d9e6f0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 20px;
  color: #0b4f66;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
  max-width: 520px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-service .speech:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.06);
}

/* =========================
   「そんな時は〜」青枠 CTA
   ========================= */

/* 画像＋テキストを囲う枠。HTML側で
   <div class="sv-problem-cta">
     <div class="cta-illustration">…</div>
     <p class="cta-message">…</p>
   </div>
   になっている前提
*/
.page-service .sv-problem-cta {
  display: inline-block;
  background: #f0f8ff;
  border: 1px solid #cde5f4;
  border-radius: 16px;
  padding: 24px 24px 20px;
  margin: 36px auto 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* 親で中央寄せ */
.page-service .sv-problem-cta-wrap {
  display: flex;
  justify-content: center;
}

/* 枠内イラスト */
.page-service .sv-problem-cta .cta-illustration img {
  width: 200px;
  height: auto;
  margin-bottom: 16px;
}

/* 枠内テキスト */
.page-service .sv-problem-cta .cta-message {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0b4f66;
}

/* スマホ時：縦積み */
@media (max-width: 720px) {
  .page-service .problem-item,
  .page-service .problem-item.reverse {
    flex-direction: column;
    text-align: center;
  }

  .page-service .problem-illust img {
    width: 140px;
  }

  .page-service .speech {
    font-size: 0.95rem;
  }

  .page-service .sv-problem-cta {
    margin-top: 24px;
    width: 100%;
    max-width: 360px;
  }
}

/* =========================
   距離制運賃テーブル
   ========================= */

.page-service .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  margin: 12px 0 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
}

.page-service .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}

.page-service .table thead th {
  background: #eef6fd;
  color: #0b4f66;
  text-align: left;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid #d9e6f0;
  white-space: nowrap;
}

.page-service .table thead th:first-child {
  min-width: 260px;
}

.page-service .table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f6;
  color: #475569;
  vertical-align: top;
  line-height: 1.55;
}

.page-service .table tr:last-child td {
  border-bottom: none;
}

/* 中央揃え */
.page-service .table--center thead th,
.page-service .table--center tbody td {
  text-align: center;
}

/* 行間狭め */
.page-service .table--narrow td,
.page-service .table--narrow th {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* =========================
   諸料金・地区割増・特別割増
   ========================= */

.page-service section[aria-labelledby="sv-extra"] h3 {
  margin: 14px 0 8px;
  text-align: left;
}

/* 追加費用：縦並び */
.page-service section[aria-labelledby="sv-extra"] ul.text-note {
  padding-left: 18px;
}

.page-service section[aria-labelledby="sv-extra"] ul.text-note li {
  margin: 4px 0;
}

.page-service .table-fees{
  min-width:760px;
  table-layout:fixed;
}

.page-service .table-fees th:nth-child(1),
.page-service .table-fees td:nth-child(1){
  width:120px;
  white-space:nowrap;
}

.page-service .table-fees th:nth-child(2),
.page-service .table-fees td:nth-child(2){
  width:320px;
  white-space:normal;
  word-break:keep-all;
  overflow-wrap:break-word;
  text-align:left;
}

.page-service .table-fees th:nth-child(3),
.page-service .table-fees td:nth-child(3),
.page-service .table-fees th:nth-child(4),
.page-service .table-fees td:nth-child(4),
.page-service .table-fees th:nth-child(5),
.page-service .table-fees td:nth-child(5){
  width:100px;
  white-space:nowrap;
}

/* =========================
   貨物保険
   ========================= */

.page-service .metrics {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.page-service .metric {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.page-service .metric .label {
  font-weight: 700;
  color: #0b4f66;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.page-service .metric .value {
  font-size: clamp(22px, 4.2vw, 30px);
  font-weight: 800;
  color: #0b4f66;
  line-height: 1.1;
  letter-spacing: 0.3px;
}

@media (min-width: 600px) {
  .page-service .metrics {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

/* 補償対象外貨物 見出し余白 */
.page-service section[aria-labelledby="sv-ins"] h3 {
  margin-top: 18px;
}

/* =========================
   スポット保険オプション
   ========================= */

.page-service .spot-option-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 6px;
  justify-content: flex-start;
}

.page-service .spot-option-box p {
  margin: 0;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  font-size: clamp(18px, 2vw, 22px);
  color: #0b4f66;
  font-weight: 700;
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1.3;
}

/* スポット保険の注意書き */
.page-service .spot-notes li {
  margin: 4px 0;
}

/* =========================
   最大積載量
   ========================= */

.page-service section[aria-labelledby="sv-load"] p {
  margin: 4px 0;
}

/* =========================
   サービスページ CTA
   ========================= */

.page-service .cta .section-title {
  margin-bottom: 8px;
}

/* =========================
   本文内リンクの視認性向上（service.html限定）
   ========================= */

/* 赤帽首都圏公式サイトへのリンクだけ強調 */
.page-service a[href^="https://shutoken.akabou.jp"] {
  color:#0284c7;
  font-weight:700;
  text-decoration:underline;
  text-decoration-style:dotted;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.page-service a[href^="https://shutoken.akabou.jp"]:hover {
  text-decoration-style:solid;
}
