:root {
  --text-color: #222222;
  --bg-color: #F4EBD5;
  --table-bg: #FFFFFF;
  --accent-color: #FFA410;
  --accent-color-dark: #d68400;
  --border-color: #cfc6b7;
  --border-light: #dfd8cc;
  --muted-color: #555555;
  --container-width: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-color);
  background: var(--bg-color);
  font-family:
    "Yu Gothic",
    "Yu Gothic UI",
    "Hiragino Kaku Gothic ProN",
    "Meiryo",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: #0b57a3;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #ffffff;
  background: #333333;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 24px), var(--container-width));
  margin: 0 auto;
}

/* ヘッダー */
.site-header {
  background: #ffffff;
  border-top: 6px solid var(--accent-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0 20px;
}

.site-header__sub {
  margin: 0 0 6px;
  font-size: 0.875rem;
  color: var(--muted-color);
}

.site-header__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-color);
}

.site-header__lead {
  margin: 10px 0 0;
  font-size: 1rem;
  color: var(--muted-color);
}

/* 本文 */
.site-main {
  padding: 24px 0 48px;
}

/* 施設ブロック全体を白背景で一体化 */
.facility-block {
  margin-bottom: 48px;
  background: #ffffff;
  border: 1px solid var(--border-color);
}

/* 見出し */
.facility-title {
  margin: 0;
  padding: 12px 16px;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text-color);
  background: #ffffff;
  border-left: 8px solid var(--accent-color);
  border-bottom: 1px solid var(--border-light);
}

/* 地図 */
.facility-map {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.facility-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
}

/* 車種タグ */
.vehicle-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.vehicle-type {
  display: inline-block;
  min-width: 110px;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  border: 1px solid var(--border-color);
  background: #f7f7f7;
  color: #666666;
}

.vehicle-type.is-active {
  background: #fff6e7;
  border-color: var(--accent-color-dark);
  color: var(--text-color);
}

.vehicle-type.is-off {
  background: #f3f3f3;
  color: #777777;
}

/* 詳細テーブル */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--table-bg);
}

.detail-table th,
.detail-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  vertical-align: top;
  text-align: left;
  font-size: 0.95rem;
  background: var(--table-bg);
  word-break: break-word;
}

.detail-table th {
  width: 28%;
  font-weight: 700;
  background: #fafafa;
}

/* フッター */
.site-footer {
  padding: 20px 0 32px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-color);
}

/* タブレット以下 */
@media (max-width: 767px) {
  .site-header {
    padding: 20px 0 16px;
  }

  .site-header__title {
    font-size: 1.6rem;
  }

  .site-header__lead {
    font-size: 0.95rem;
  }

  .facility-block {
    margin-bottom: 36px;
  }

  .facility-title {
    padding: 10px 12px;
    font-size: 1.1rem;
    border-left-width: 6px;
  }

  .facility-map iframe {
    height: 260px;
  }

  .vehicle-types {
    padding: 10px 12px;
    gap: 6px;
  }

  .vehicle-type {
    min-width: 0;
    font-size: 0.9rem;
    padding: 7px 10px;
  }

  .detail-table,
  .detail-table tbody,
  .detail-table tr,
  .detail-table th,
  .detail-table td {
    display: block;
    width: 100%;
  }

  .detail-table tr {
    border-bottom: 1px solid var(--border-light);
  }

  .detail-table th,
  .detail-table td {
    border: 0;
    padding: 10px 12px;
  }

  .detail-table th {
    padding-bottom: 4px;
    background: #fafafa;
  }

  .detail-table td {
    padding-top: 0;
  }
}

/* 小さいスマホ */
@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 16px), var(--container-width));
  }

  .site-main {
    padding: 18px 0 40px;
  }

  .facility-block {
    margin-bottom: 28px;
  }

  .facility-map iframe {
    height: 220px;
  }

  .vehicle-type {
    width: 100%;
  }
}

.price-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px; /* スマホで崩れない最低幅 */
  font-size: 14px;
}

.price-table th,
.price-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

.price-table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* スマホ最適化 */
@media (max-width: 600px) {
  .price-table {
    font-size: 12px;
  }

  .price-table th,
  .price-table td {
    padding: 6px;
  }
}

/* フォーカス */
a:focus-visible {
  outline: 3px solid rgba(255, 164, 16, 0.45);
  outline-offset: 2px;
}

.price-table {
  display: table !important;
  width: 100%;
}

.price-table thead {
  display: table-header-group !important;
}

.price-table tbody {
  display: table-row-group !important;
}

.price-table tr {
  display: table-row !important;
}

.price-table th,
.price-table td {
  display: table-cell !important;
}

/* スクロール安定 */
.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 折り返し防止 */
.price-table th,
.price-table td {
  white-space: nowrap;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.facility-map p {
  margin: 12px 16px;
  padding: 8px 10px;
  background: #fafafa;
  border-left: 4px solid var(--accent-color);
  font-size: 0.9rem;
  color: var(--muted-color);
}

.seal {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* 動きを抑える */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}