/* =========================================================
   有限会社麻布自動車観光 - サイト共通スタイル
   ========================================================= */

:root {
  --color-primary: #8a1c2b;
  --color-primary-dark: #6b1420;
  --color-primary-light: #a83246;
  --color-accent: #c9a961;
  --color-accent-light: #f3e6cd;
  --color-accent-dark: #9c7a3c;
  --color-text: #2b2420;
  --color-text-light: #6b5f56;
  --color-bg: #faf7f2;
  --color-white: #ffffff;
  --color-border: #e6ddd0;
  --color-success: #2e6b3e;
  --color-error: #b3261e;

  --font-heading: "Noto Serif JP", serif;
  --font-body: "Noto Sans JP", sans-serif;

  --container-width: 1120px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(43, 36, 32, 0.08);
  --shadow-strong: 0 10px 32px rgba(43, 36, 32, 0.16);

  --header-height: 84px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.4;
  margin: 0 0 0.6em;
  color: var(--color-primary-dark);
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* スクリーンリーダー専用（視覚的に非表示） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ====== オープニング演出（SINCE 2001.） ====== */
.intro-done .intro-splash {
  display: none;
}

html.intro-active,
html.intro-active body {
  overflow: hidden;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 40%, rgba(201, 169, 97, 0.16), transparent 58%),
    linear-gradient(165deg, #6b1420 0%, #54101a 55%, #3a0b12 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.intro-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-splash-inner {
  text-align: center;
  padding: 0 24px;
}

.intro-brand {
  display: block;
  font-family: "Cinzel", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(2.3rem, 9vw, 4.4rem);
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  background: linear-gradient(
    100deg,
    #b8923f 0%,
    #e0c180 28%,
    #fbf3da 50%,
    #e0c180 72%,
    #b8923f 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, 0.42));
  opacity: 0;
  animation:
    intro-reveal 1.7s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s,
    intro-shimmer 4.2s ease-in-out infinite alternate 1.6s;
}

.intro-line {
  display: block;
  width: 0;
  height: 1px;
  margin: 24px auto;
  background: linear-gradient(90deg, transparent, #c9a961, transparent);
  animation: intro-line-grow 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.85s;
}

.intro-since {
  display: block;
  font-family: "Cinzel", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(0.82rem, 2.6vw, 1.15rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--color-accent-light);
  opacity: 0;
  animation: intro-fade-up 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.05s;
}

@keyframes intro-reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.965);
    letter-spacing: 0.02em;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.16em;
  }
}

@keyframes intro-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-shimmer {
  from {
    background-position: 0% center;
  }
  to {
    background-position: 100% center;
  }
}

@keyframes intro-line-grow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 220px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-brand,
  .intro-since {
    animation: none;
    opacity: 1;
  }
  .intro-line {
    animation: none;
    width: 220px;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow);
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--color-accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--color-accent);
  box-shadow: 0 2px 10px rgba(138, 28, 43, 0.18);
}

.logo-text-pre {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1.2;
  color: #000;
  font-family: var(--font-body);
}

.logo-text-main {
  display: block;
  font-size: clamp(1.1rem, 4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.logo-text-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--color-accent-dark);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.28em;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
}

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

.site-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-color: var(--color-accent-light);
  color: var(--color-primary-dark);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--color-primary);
  font-weight: 700;
}

.site-nav a.nav-cta {
  background-color: var(--color-primary);
  color: #fff;
  margin-left: 8px;
}

.site-nav a.nav-cta:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
}

.nav-toggle:hover {
  background-color: var(--color-accent-light);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 66vh;
  background-color: var(--color-primary-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-bottom: 4px solid var(--color-accent);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 169, 97, 0.45), transparent 55%),
    linear-gradient(
      135deg,
      rgba(43, 16, 12, 0.85) 0%,
      rgba(107, 20, 32, 0.68) 50%,
      rgba(138, 28, 43, 0.5) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-primary-dark);
  background: linear-gradient(135deg, #f3e6cd 0%, #c9a961 100%);
  border: none;
  border-radius: 999px;
  padding: 7px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  margin-bottom: 0.5em;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero p {
  font-size: 1.08rem;
  line-height: 1.95;
  max-width: 660px;
  color: var(--color-accent-light);
}

/* ヒーロー内 プレミアムポイント */
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 28px 0 0;
  padding: 0;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3e6cd 0%, #c9a961 100%);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Page header (non-home pages) */
.page-hero {
  min-height: 32vh;
}

.page-hero .hero-inner {
  padding: 60px 0;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.3em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #e7cd92 0%, #c9a961 100%);
  color: var(--color-primary-dark);
  box-shadow: 0 6px 18px rgba(201, 169, 97, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f0d9a4 0%, #d9bd80 100%);
  color: var(--color-primary-dark);
  box-shadow: 0 10px 24px rgba(201, 169, 97, 0.4);
}

.btn-outline {
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  border-color: var(--color-accent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-outline:hover {
  background-color: rgba(201, 169, 97, 0.18);
  border-color: var(--color-accent-light);
  color: #fff;
}

.btn-dark {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-dark:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--color-white);
  background-image: radial-gradient(circle at 100% 0%, rgba(201, 169, 97, 0.07), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(201, 169, 97, 0.05), transparent 55%);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: block;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* 中央ヘッダーのeyebrowに上品なヘアライン装飾 */
.section-header .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-header .section-eyebrow::before,
.section-header .section-eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background-color: var(--color-accent);
  opacity: 0.55;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 18px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent));
  border-radius: 2px;
}

.section-header p {
  color: var(--color-text-light);
}

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  transition: transform 0.2s ease, border-top-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-top-color: var(--color-accent-dark);
  box-shadow: var(--shadow-strong);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.card p:last-child {
  margin-bottom: 0;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6ecd6 0%, #e3cd97 100%);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0.55);
  margin-bottom: 18px;
}

.icon-circle svg {
  width: 28px;
  height: 28px;
}

.icon-circle-lg {
  width: 88px;
  height: 88px;
}

.icon-circle-lg svg {
  width: 44px;
  height: 44px;
}

/* ---------- Thanks page ---------- */
.thanks-block {
  max-width: 720px;
  margin: 0 auto;
}

.thanks-block .contact-method {
  text-align: left;
  max-width: 360px;
  margin: 0 auto;
}

/* Vehicle / photo card */
.media-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  transition: border-top-color 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
  border-top-color: var(--color-accent-dark);
  box-shadow: var(--shadow-strong);
}

.media-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.media-card .media-card-body {
  padding: 24px;
}

/* Photo gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  text-align: center;
}

.gallery-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-caption {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

@media (max-width: 480px) {
  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-photo {
    height: 220px;
  }
}

.featured-photo {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.featured-photo .gallery-photo {
  height: 320px;
}

@media (max-width: 480px) {
  .featured-photo .gallery-photo {
    height: 240px;
  }
}

.document-photo {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.document-photo .gallery-photo {
  height: auto;
  object-fit: contain;
  background: #fff;
}

/* Two column layout */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

/* ---------- Lists with check marks ---------- */
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 7px;
  height: 3px;
  border-left: 2px solid var(--color-primary-dark);
  border-bottom: 2px solid var(--color-primary-dark);
  transform: rotate(-45deg);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

table.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}

table.price-table caption {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 18px 20px 0;
  color: var(--color-primary-dark);
}

table.price-table th,
table.price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

table.price-table thead th {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

table.price-table tbody tr:nth-child(even) {
  background-color: var(--color-bg);
}

table.price-table td.amount {
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

/* ---------- Notice box ---------- */
.notice {
  background-color: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.notice h3 {
  margin-bottom: 0.4em;
  font-size: 1.05rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice ul {
  margin: 0;
}

.notice .check-list li:last-child {
  margin-bottom: 0;
}

/* ---------- Definition / info table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.info-table th,
.info-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.info-table th {
  width: 180px;
  background-color: var(--color-bg);
  font-weight: 700;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
}

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

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 24px;
}

.step {
  display: flex;
  gap: 20px;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.step h3 {
  margin-bottom: 0.3em;
  font-size: 1.05rem;
}

.step p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact cards ---------- */
.contact-methods {
  display: grid;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 18px;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.contact-method .icon-circle {
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-method h3 {
  margin-bottom: 0.2em;
  font-size: 1.05rem;
}

.contact-method p {
  margin-bottom: 0;
  color: var(--color-text-light);
}

.contact-method a {
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 97, 0.35);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(201, 169, 97, 0.28), transparent 55%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-eyebrow {
  display: inline-block;
  color: var(--color-accent);
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.cta-band h2 {
  color: #fff;
  letter-spacing: 0.02em;
}

.cta-band p {
  color: var(--color-accent-light);
  max-width: 560px;
  margin: 0 auto 24px;
}

.cta-band.cta-band-small {
  padding: 28px 24px;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-band.cta-band-small h3 {
  color: #fff;
  margin: 0;
  font-size: 1.1rem;
}

.cta-band.cta-band-small p {
  margin: 4px 0 0;
  color: var(--color-accent-light);
  max-width: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-accent-light);
  margin-top: 80px;
  border-top: 3px solid var(--color-accent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand img {
  height: 56px;
  width: 56px;
  border-radius: 6px;
}

.footer-brand p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
}

.footer-brand .footer-license {
  font-size: 0.8rem;
  color: var(--color-accent-light);
  font-family: var(--font-body);
  opacity: 0.8;
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1em;
  font-family: var(--font-heading);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--color-accent-light);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* =========================================================
   フォーム（見積もり・お問い合わせ）
   ========================================================= */
.form-section {
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  padding: 36px;
}

.quote-form fieldset {
  border: none;
  margin: 0 0 32px;
  padding: 0;
}

.quote-form legend {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 0 0 16px;
  border-bottom: 2px solid var(--color-accent-light);
  margin-bottom: 24px;
  width: 100%;
}

.form-row {
  margin-bottom: 22px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row label.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.required-mark {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.optional-mark {
  display: inline-block;
  background-color: var(--color-border);
  color: var(--color-text-light);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

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

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.form-help {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-bg);
  color: var(--color-text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.radio-group label,
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

.radio-group input,
.checkbox-group input {
  width: auto;
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.date-range span {
  color: var(--color-text-light);
}

.date-range input {
  flex: 1 1 180px;
}

.time-range {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.time-range span {
  color: var(--color-text-light);
}

.time-range input {
  flex: 1 1 140px;
}

/* 入力進捗バー（離脱抑止） */
.form-progress {
  position: sticky;
  top: calc(var(--header-height) + 8px);
  z-index: 10;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.form-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.form-progress-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.form-progress-percent {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.form-progress-track {
  height: 8px;
  border-radius: 999px;
  background-color: var(--color-accent-light);
  overflow: hidden;
}

.form-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent));
  transition: width 0.35s ease;
}

.form-progress.is-complete .form-progress-fill {
  background: linear-gradient(90deg, var(--color-success), #3f8b54);
}

.form-progress.is-complete .form-progress-percent {
  color: var(--color-success);
}

.form-progress-text {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin: 8px 0 0;
}

/* チャットから自動入力された直後のハイライト */
@keyframes quote-filled-flash {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 97, 0);
  }
  25%, 65% {
    box-shadow: 0 0 0 3px var(--color-accent);
  }
}

.quote-filled-flash {
  animation: quote-filled-flash 1.6s ease;
  border-radius: var(--radius);
}

/* Field-level error message (aria-live) */
.field-error {
  display: none;
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 700;
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: var(--color-error);
  background-color: #fdf2f1;
}

.form-row.has-error .field-error {
  display: block;
}

/* Confirm checkbox block */
.confirm-block {
  background-color: var(--color-accent-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 8px;
}

.confirm-block label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
  cursor: pointer;
}

.confirm-block input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
}

/* ===== MailFormPro のJSによる上書き対策（#mailformpro スコープで強制） =====
   本番ではMailFormProのJSがフィールドにインラインstyleを当てるため、
   サイトの体裁を !important で確実に優先させ、枠外へのはみ出しを防ぐ。 */
#mailformpro input:not([type="checkbox"]):not([type="radio"]),
#mailformpro select,
#mailformpro textarea {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 送信確認ボックス: 文言と必須バッジが必ず枠内で折り返すようにする */
#mailformpro .confirm-block label {
  flex-wrap: wrap;
  white-space: normal !important;
}
#mailformpro .confirm-block label > span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
#mailformpro .confirm-block input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px !important;
}

/* Form-level summary error (aria-live region) */
.form-error-summary {
  display: none;
  background-color: #fdf2f1;
  border: 1px solid var(--color-error);
  border-radius: var(--radius);
  color: var(--color-error);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 700;
}

.form-error-summary.is-visible {
  display: block;
}

.form-error-summary ul {
  margin-top: 8px;
}

.form-error-summary li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
  font-weight: 500;
}

.form-error-summary li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.form-error-summary a {
  color: var(--color-error);
  text-decoration: underline;
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

/* ---------- Accordion (詳細項目 / FAQ / 注記) ---------- */
.accordion-heading {
  margin: 0;
}

.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-white);
  overflow: hidden;
  margin-bottom: 12px;
}

.accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary-dark);
  text-align: left;
}

.accordion-trigger:hover {
  background-color: var(--color-bg);
}

.accordion-trigger .accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-panel-inner {
  padding: 0 22px 22px;
  color: var(--color-text-light);
}

.accordion-panel-inner p:last-child {
  margin-bottom: 0;
}

/* "詳しく入力する" toggle (form-specific) */
.form-detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 8px;
}

.form-detail-toggle:hover {
  background-color: var(--color-accent-light);
}

.form-detail-toggle .accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.form-detail-toggle[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.form-detail-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.form-detail-panel-inner {
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
  margin-top: 12px;
}

/* ---------- Thanks page ---------- */
.thanks-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.thanks-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background-color: var(--color-accent-light);
  color: var(--color-success);
  margin: 0 auto 24px;
}

.thanks-icon svg {
  width: 44px;
  height: 44px;
}

/* =========================================================
   チャットボット ウィジェット
   ========================================================= */
.chatbot-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.06);
  background-color: var(--color-primary-dark);
}

.chatbot-toggle svg {
  width: 28px;
  height: 28px;
}

.chatbot-toggle .icon-close {
  display: none;
}

.chatbot-toggle[aria-expanded="true"] .icon-chat {
  display: none;
}

.chatbot-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.chatbot-toggle[aria-expanded="true"] .chat-badge,
.chatbot-toggle[aria-expanded="true"] .chat-preview {
  display: none;
}

/* Unread badge */
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
  animation: chat-badge-pop 0.3s ease;
}

@keyframes chat-badge-pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Initial preview bubble */
.chat-preview {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 1499;
  max-width: 240px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  padding: 14px 18px;
  box-shadow: var(--shadow-strong);
  font-size: 0.85rem;
  line-height: 1.6;
  animation: chat-preview-in 0.4s ease;
  cursor: pointer;
}

.chat-preview button.chat-preview-close {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-text-light);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes chat-preview-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 1500;
  width: min(440px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 130px));
  background-color: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chatbot-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chatbot-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1498;
  background-color: rgba(43, 36, 32, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.chatbot-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chatbot-header-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.chatbot-header-text span {
  font-size: 0.75rem;
  color: var(--color-accent-light);
}

.chatbot-close {
  display: none;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.chatbot-close svg {
  width: 18px;
  height: 18px;
}

.chatbot-messages {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--color-bg);
}

.chat-msg {
  max-width: 90%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1.75;
  animation: chat-msg-in 0.2s ease;
}

@keyframes chat-msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg.bot {
  align-self: flex-start;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(43, 36, 32, 0.08);
}

.chat-msg.user {
  align-self: flex-end;
  background-color: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg a {
  color: inherit;
  text-decoration: underline;
}

/* CTA button inside a bot message */
.chat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none !important;
}

.chat-cta:hover {
  background-color: var(--color-primary-dark);
}

.chat-cta.chat-cta-outline {
  background-color: transparent;
  color: var(--color-primary) !important;
  border: 1.5px solid var(--color-primary);
}

.chat-cta.chat-cta-outline:hover {
  background-color: var(--color-accent-light);
}

.chat-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Typing indicator */
.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-text-light);
  opacity: 0.5;
  animation: chat-typing-bounce 1s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background-color: var(--color-bg);
}

/* 固定の下部ボタン領域は未使用（ボタンは会話内に表示）。空のときは隠す */
.chatbot-quick-replies:empty {
  display: none;
}

/* 会話の流れの中に表示する選択肢ボタンの行 */
.chat-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-white);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* 見積もり開始チップ（目立たせる） */
.chip-quote {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.chip-quote:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
}

/* チャット内 見積もり内容サマリー */
.chat-summary {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.chat-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.chat-summary-row:last-child {
  border-bottom: none;
}

.chat-summary-row span {
  color: var(--color-text-light);
  flex-shrink: 0;
}

.chat-summary-row strong {
  text-align: right;
  word-break: break-word;
}

.chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-white);
}

.chatbot-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.chatbot-form input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.chatbot-form button {
  border: none;
  border-radius: 999px;
  padding: 0 20px;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.chatbot-form button:hover {
  background-color: var(--color-primary-dark);
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 48px;
}

.mt-md {
  margin-top: 24px;
}

.mt-sm {
  margin-top: 12px;
}

.small-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .form-grid,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 22px;            /* 縦並び時の項目間を均一に */
    margin-bottom: 22px;  /* グリッド間の間隔（下のブロックとの間） */
  }

  /* 縦並び時は form-row の margin と grid gap の二重加算を避け、間隔を一定に保つ */
  .form-grid > .form-row,
  .form-grid-3 > .form-row {
    margin-bottom: 0;
  }
}

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

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 480px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
  }

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

  .site-nav a.nav-cta {
    margin-left: 0;
    text-align: center;
    margin-top: 8px;
  }
}

@media (max-width: 760px) {
  .split,
  .split-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .split img {
    height: 280px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .info-table th {
    width: 120px;
  }

  .section {
    padding: 56px 0;
  }

  .form-section {
    padding: 24px 18px;
  }

  .cta-band.cta-band-small {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .hero-inner {
    padding: 64px 0;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .info-table td {
    padding-top: 0;
  }

  .date-range,
  .time-range {
    flex-direction: column;
    align-items: stretch;
  }

  /* 縦並び時は flex-grow を切り、高さが伸びないようにする（基準値が縦方向に効く問題の対策） */
  .date-range input,
  .time-range input {
    flex: 0 0 auto;
    width: 100%;
  }

  /* Chatbot: fullscreen modal on small screens */
  .chatbot-panel {
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    transform: translateY(100%);
  }

  .chatbot-backdrop {
    display: none;
  }

  .chatbot-panel.is-open {
    transform: translateY(0);
  }

  .chatbot-close {
    display: flex;
  }

  .chatbot-toggle {
    right: 16px;
    bottom: 16px;
  }

  .chat-preview {
    right: 16px;
    bottom: 88px;
    max-width: calc(100vw - 80px);
  }
}
