/* ============================================================
   タイヤ・ホイールショップ SAKUMA
   白 × 黄緑 / 見出し: Dela Gothic One / 本文: Zen Kaku Gothic New
   タイヤサイズ・数値: Barlow Condensed
   ============================================================ */

:root {
  --bg: #ffffff;
  --tint: #f3f8ea;
  --ink: #1e2419;
  --muted: #5d6753;
  --lime: #8dc63f;
  --lime-deep: #447d10;
  --line: #e2e8d8;
  --font-display: 'Dela Gothic One', 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-data: 'Barlow Condensed', 'Zen Kaku Gothic New', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--lime-deep);
}

:focus-visible {
  outline: 3px solid var(--lime-deep);
  outline-offset: 2px;
}

[id] {
  scroll-margin-top: 76px;
}

/* ---------- 共通部品 ---------- */

.tire-size {
  font-family: var(--font-data);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
}

.btn--primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--lime-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--lime-deep);
}

.btn__label {
  font-size: 0.85rem;
  font-weight: 700;
}

.btn__tel {
  font-family: var(--font-data);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.site-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--lime);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 8px var(--ink);
  flex: none;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-brand__sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.site-brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.site-nav a:hover {
  color: var(--lime-deep);
}

.site-nav__tel {
  font-family: var(--font-data);
  background: var(--ink);
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.site-nav__tel:hover {
  background: var(--lime-deep);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 16px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 20px 88px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--lime-deep);
  letter-spacing: 0.08em;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--lime) 62%);
}

.hero__lead {
  margin: 24px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-weight: 500;
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__hours {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}

/* インチセレクター(シグネチャ) */

.hero__selector {
  justify-self: center;
  width: 100%;
  max-width: 360px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.hero__selector-title {
  margin: 0 0 16px;
  font-weight: 700;
  text-align: center;
}

.inch-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  justify-items: center;
}

.inch-link {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 7px var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.inch-link:hover {
  border-color: var(--lime-deep);
  transform: scale(1.06);
}

.inch-link__num {
  font-family: var(--font-data);
  font-size: 1.9rem;
  font-weight: 600;
}

.inch-link__unit {
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* トレッドパターン帯 */

.tread-band {
  height: 26px;
  background:
    repeating-linear-gradient(
      -55deg,
      var(--lime) 0 14px,
      transparent 14px 28px
    ),
    repeating-linear-gradient(
      55deg,
      var(--lime) 0 14px,
      transparent 14px 28px
    );
  opacity: 0.85;
}

/* ---------- セクション共通 ---------- */

.section {
  padding: 72px 0;
}

.section--tint {
  background: var(--tint);
}

.section__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section__eyebrow {
  margin: 0;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  color: var(--lime-deep);
  text-transform: uppercase;
}

.section__title {
  margin: 6px 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.4;
}

.section__note {
  margin: 0 0 36px;
  max-width: 44em;
  color: var(--muted);
  font-weight: 500;
}

.section__note strong {
  color: var(--ink);
  background: linear-gradient(transparent 66%, var(--lime) 66%);
  font-weight: 700;
}

/* data.js から描画される注記・更新日 */
.data-note {
  margin: -24px 0 28px;
  max-width: 44em;
  color: var(--muted);
  font-weight: 500;
}

.data-note strong {
  color: var(--ink);
  background: linear-gradient(transparent 66%, var(--lime) 66%);
  font-weight: 700;
}

.data-updated {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lime-deep);
}

/* ---------- サービスカード ---------- */

.service-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  background: var(--bg);
  transition: border-color 0.15s ease;
}

.service-card:hover {
  border-color: var(--lime);
}

.service-card__num {
  margin: 0 0 10px;
  display: inline-block;
  background: var(--ink);
  color: var(--lime);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.1em;
}

.service-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.service-card__body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- 新品タイヤ価格表 ---------- */

.tire-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.tire-group {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}

.tire-group__heading {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.15rem;
  border-bottom: 3px solid var(--lime);
  padding-bottom: 8px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-weight: 500;
}

.price-table tr:last-child th,
.price-table tr:last-child td {
  border-bottom: none;
}

.price-table th {
  text-align: left;
  font-size: 1rem;
}

.price-table .tire-size {
  font-size: 1.1rem;
}

.price-table__brand {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lime-deep);
  border: 1px solid var(--lime);
  border-radius: 999px;
  padding: 0 8px;
  vertical-align: 2px;
}

.price-table__price {
  text-align: right;
  font-family: var(--font-data);
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- 中古タイヤ ---------- */

.used-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
}

.used-group {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.used-group__heading {
  margin: 0;
  flex: none;
  width: 96px;
  font-weight: 700;
  font-size: 1.05rem;
}

.size-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-chip {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 14px;
  font-size: 0.95rem;
}

/* ---------- ホイール ---------- */

.wheel-categories {
  display: grid;
  gap: 40px;
}

.wheel-category__heading {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wheel-category__heading::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid var(--ink);
}

.wheel-empty {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 500;
}

.wheel-cards {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wheel-card {
  background: var(--bg);
  border: 2px solid var(--lime);
  border-radius: 14px;
  padding: 16px 18px;
}

.wheel-card p {
  margin: 0 0 4px;
}

.wheel-card__meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.wheel-card__name {
  font-weight: 700;
  font-size: 1.05rem;
}

.wheel-card__spec,
.wheel-card__tire {
  font-size: 0.9rem;
  color: var(--muted);
}

.wheel-card__status--available {
  display: inline-block;
  margin-top: 6px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 12px;
  border-radius: 999px;
}

.wheel-archive {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.wheel-archive summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--muted);
}

.wheel-archive summary:hover {
  color: var(--lime-deep);
}

.wheel-archive[open] summary {
  border-bottom: 1px solid var(--line);
}

.table-scroll {
  overflow-x: auto;
  padding: 0 18px 14px;
}

.wheel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}

.wheel-table th,
.wheel-table td {
  text-align: left;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  white-space: nowrap;
}

.wheel-table thead th {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.status-soldout {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 10px;
}

/* ---------- アクセス ---------- */

.access {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.access__table {
  width: 100%;
  border-collapse: collapse;
}

.access__table th,
.access__table td {
  text-align: left;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.access__table th {
  width: 7em;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.access__map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 16px;
  display: block;
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--ink);
  color: #d9e2cf;
  text-align: center;
  padding: 32px 20px 40px;
  font-size: 0.85rem;
}

.site-footer__line {
  margin: 0 0 6px;
  font-weight: 500;
}

.site-footer__copy {
  margin: 0;
  color: #93a184;
}

/* ---------- モバイル電話バー ---------- */

.call-bar {
  display: none;
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 900px) {
  .tire-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .wheel-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__tel {
    margin-top: 14px;
    text-align: center;
    border-bottom: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 48px 20px 64px;
    gap: 36px;
  }

  .hero__selector {
    max-width: none;
  }

  .inch-links {
    gap: 10px;
  }

  .inch-link {
    width: 76px;
    height: 76px;
  }

  .section {
    padding: 56px 0;
  }

  .tire-groups {
    grid-template-columns: 1fr;
  }

  .used-groups {
    grid-template-columns: 1fr;
  }

  .used-group {
    flex-direction: column;
    gap: 8px;
  }

  .wheel-cards {
    grid-template-columns: 1fr;
  }

  .access {
    grid-template-columns: 1fr;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .call-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
  }

  .call-bar__btn {
    display: block;
    text-align: center;
    background: var(--lime);
    color: var(--ink);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    padding: 13px 16px;
    border-radius: 999px;
    box-shadow: 0 3px 0 var(--lime-deep);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
