/*
Theme Name: Classic Car Insurance
Theme URI: https://example.com/classic-car-insurance
Author: Classic Car Insurance
Author URI: https://example.com
Description: クラシックカー保険サイト用のカスタムテーマ。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: classic-car-insurance
*/

:root {
  --bg-dark: #151210;
  --bg-deep: #1c1815;
  --bg-green: #1b3126;
  --paper: #f5f0e8;
  --paper-line: #d9ccb7;
  --gold: #bea16f;
  --gold-soft: #dcc39a;
  --text-light: #f4eee3;
  --text-muted: rgba(244, 238, 227, 0.74);
  --text-dark: #43372d;
  --text-brown: #73614e;
  --border: rgba(190, 161, 111, 0.28);
  --shell: min(1180px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-light);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
  background: var(--bg-dark);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.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;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  gap: 24px;
  padding-top: 12px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--gold-soft);
}

.brand-title {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.brand-sub {
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding-left: 3px;
  margin-top: -5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.86rem;
  color: rgba(255, 250, 241, 0.88);
}

.nav-button,
.primary-button,
.gold-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nav-button {
  background: #274332;
  padding: 0 28px;
  min-height: 50px;
}

.nav-button:hover,
.primary-button:hover,
.gold-button:hover,
.outline-button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 620px;
  padding: 98px 0 24px;
  background: url("./mv.png") 72% center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 13, 11, 0.84) 0%, rgba(16, 13, 11, 0.66) 42%, rgba(16, 13, 11, 0.18) 72%, rgba(16, 13, 11, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.12) 0%, rgba(8, 7, 6, 0.72) 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(226, 191, 123, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(8, 7, 6, 0) 78%, #0f0d0b 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 500px;
  padding-bottom: 220px;
}

.hero-copy {
  padding-top: 78px;
  max-width: 440px;
}

.hero h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-text {
  margin: 22px 0 24px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(244, 238, 227, 0.92);
}

.primary-button,
.gold-button {
  background: #21412f;
  color: var(--text-light);
}

.primary-button {
  min-width: 270px;
  justify-content: space-between;
  padding: 0 18px 0 24px;
  border-color: rgba(220, 195, 154, 0.18);
  min-height: 50px;
}

.primary-button::after,
.gold-button::after,
.outline-button::after {
  content: "›";
  margin-left: 12px;
  font-size: 1.15rem;
}

.hero-features {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(900px, 94%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 18px;
}

.feature-item {
  text-align: center;
  max-width: none;
  padding: 6px 4px 10px;
}

.feature-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(190, 161, 111, 0.52);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.25rem;
}

.feature-icon svg,
.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item p {
  margin: 0;
  line-height: 1.5;
  color: rgba(244, 238, 227, 0.9);
  font-size: 0.86rem;
}

.split-story {
  background: #171310;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 390px;
}

.story-copy {
  padding: 64px 48px 64px 36px;
  background:
    linear-gradient(180deg, #1d1713 0%, #171310 100%);
}

.story-copy h2 {
  margin: 0 0 30px;
  color: var(--gold-soft);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.62;
  font-weight: 500;
}

.story-copy h2 span {
  display: block;
}

.story-copy h2 span:last-child {
  white-space: nowrap;
}

.story-copy p {
  margin: 12px 0 0;
  line-height: 1.9;
  font-size: 0.95rem;
  color: rgba(244, 238, 227, 0.78);
}

.story-photo {
  min-height: 390px;
  background:
    linear-gradient(90deg, rgba(23, 19, 16, 0.88) 0%, rgba(23, 19, 16, 0.32) 18%, rgba(0, 0, 0, 0) 36%),
    url("./handle.png") center center / cover no-repeat;
}

.owners {
  padding: 50px 0 56px;
  background:
    linear-gradient(180deg, #f2ece2 0%, #ede5d9 100%);
  color: var(--text-dark);
}

.problems {
  padding: 62px 0 72px;
  background: #f7f2ea;
  color: var(--text-dark);
}

.eligibility {
  padding: 54px 0 60px;
  background: #f7f2ea;
  color: var(--text-dark);
}

.eligibility .section-head {
  margin-bottom: 24px;
}

.eligibility-box {
  background: #fffdf9;
  border: 1px solid #e6d8c2;
  padding: 28px 30px;
}

.eligibility-box ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 10px;
}

.eligibility-box li {
  color: #584838;
  line-height: 1.9;
}

.case-examples {
  padding: 54px 0 62px;
  background: #f3ede3;
  color: var(--text-dark);
}

.case-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.case-column {
  border: 1px solid #e2d2bb;
  background: #fffdf9;
  padding: 24px 24px 20px;
}

.case-column h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  color: #5b4732;
}

.case-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.case-list li {
  padding: 10px 0;
  border-top: 1px solid #efe3d3;
  display: grid;
  gap: 4px;
}

.case-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.case-list strong {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
  color: #443528;
}

.case-list span {
  font-size: 0.9rem;
  color: #6f5b46;
}

.case-note {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: #6a5947;
  line-height: 1.8;
}

.coverage {
  padding: 56px 0 68px;
  background: #161311;
}

.flow {
  padding: 56px 0 68px;
  background: #f3ede3;
  color: var(--text-dark);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
  color: var(--gold-soft);
}

.section-head h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.8rem, 2.6vw, 2.45rem);
  text-align: center;
}

.section-head-light {
  color: var(--text-dark);
}

.head-line {
  width: 82px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.problem-grid,
.owners-grid,
.flow-grid {
  display: grid;
  gap: 18px;
}

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

.problem-card {
  padding: 28px 22px 24px;
  background: #fffdf9;
  border: 1px solid #ebe0d0;
  min-height: 220px;
  text-align: center;
  box-shadow: 0 14px 26px rgba(68, 46, 22, 0.06);
}

.card-icon {
  color: var(--gold);
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}

.problem-card h3,
.coverage-copy h3,
.owner-card h3,
.flow-item h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 500;
}

.problem-card p,
.owner-card p,
.flow-item p,
.coverage-copy p,
.footer-branding p,
.footer-contact p {
  line-height: 1.95;
}

.problem-card p {
  margin: 18px 0 0;
  color: var(--text-brown);
}

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

.coverage-card {
  min-height: 320px;
  border: 1px solid rgba(190, 161, 111, 0.28);
  background: #1b1714;
}

.coverage-card::before {
  content: "";
  display: block;
  height: 160px;
  border-bottom: 1px solid rgba(190, 161, 111, 0.22);
}

.coverage-copy {
  padding: 20px 20px 18px;
}

.coverage-copy h3 {
  color: var(--gold-soft);
}

.coverage-copy p {
  margin: 10px 0 0;
  color: rgba(244, 238, 227, 0.8);
}

.coverage-more {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--gold-soft);
  font-size: 0.86rem;
}

.coverage-more::after {
  content: "›";
  margin-left: 8px;
  font-size: 1.1rem;
}

.coverage-car {
  background: #1b1714;
}

.coverage-support {
  background: #1b1714;
}

.coverage-road {
  background: #1b1714;
}

.coverage-car::before {
  background: url("./1.png") center center / cover no-repeat;
}

.coverage-support::before {
  background: url("./2.png") center center / cover no-repeat;
}

.coverage-road::before {
  background: url("./3.png") center center / cover no-repeat;
}

.owners-grid {
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(158, 129, 92, 0.2);
  border-bottom: 1px solid rgba(158, 129, 92, 0.2);
}

.owner-card {
  padding: 22px 16px 20px;
  border-left: 1px solid rgba(158, 129, 92, 0.2);
  text-align: center;
  background: transparent;
}

.owner-card:last-child {
  border-right: 1px solid rgba(158, 129, 92, 0.2);
}

.owner-card p {
  margin: 14px 0 0;
  color: var(--text-brown);
}

.owners .section-head {
  margin-bottom: 26px;
}

.owners .head-line {
  opacity: 0.45;
}

.owner-card .card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
}

.owner-card .card-icon svg {
  width: 24px;
  height: 24px;
}

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

.flow-item {
  position: relative;
  text-align: center;
  padding: 6px 14px 0;
}

.flow-item:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -8px;
  top: 34px;
  color: var(--gold);
  font-size: 1.6rem;
}

.flow-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 1px solid rgba(158, 129, 92, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7b6242;
  font-size: 1.5rem;
}

.flow-item h3 {
  color: #5c4833;
}

.flow-item p {
  margin: 14px 0 0;
  color: #6d5943;
}

.flow .section-head {
  color: #4f3e2d;
}

.contact-band {
  background: linear-gradient(90deg, #172c21 0%, #173325 100%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
}

.contact-photo {
  min-height: 286px;
  background:
    linear-gradient(90deg, rgba(14, 12, 10, 0.08), rgba(14, 12, 10, 0.26)),
    url("./contact.png") center center / cover no-repeat;
}

.contact-copy {
  padding: 54px 52px;
}

.contact-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 500;
}

.contact-copy p {
  margin: 0;
  color: rgba(244, 238, 227, 0.82);
  line-height: 2;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.gold-button {
  background: #a67b45;
}

.outline-button {
  border-color: rgba(220, 195, 154, 0.48);
  color: var(--text-light);
}

.site-footer {
  padding: 56px 0 16px;
  background: #151210;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-branding p {
  margin-top: 18px;
}

.footer-links-col {
  display: grid;
  gap: 12px;
  color: rgba(244, 238, 227, 0.82);
}

.footer-links-col a {
  text-decoration: none;
}

.footer-label {
  margin: 0 0 14px;
  color: var(--gold);
}

.footer-contact a {
  display: inline-block;
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  color: var(--gold-soft);
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(190, 161, 111, 0.16);
  color: rgba(244, 238, 227, 0.55);
}

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(220, 195, 154, 0.3);
  background: rgba(15, 12, 10, 0.55);
  color: var(--text-light);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

body.menu-open {
  overflow: hidden;
}

.inquiry-main {
  padding-top: 100px;
  background: #f2eee6;
  color: #3f3429;
}

.page-template-page-quotation-request .site-header {
  position: absolute !important;
  inset: 0 0 auto !important;
  background: transparent !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
}

.inquiry-hero {
  padding: 64px 0 34px;
  background:
    linear-gradient(105deg, rgba(20, 17, 14, 0.9) 0%, rgba(20, 17, 14, 0.72) 43%, rgba(20, 17, 14, 0.84) 100%),
    url("./mv.png") center center / cover no-repeat;
}

.inquiry-hero h1 {
  margin: 0 0 14px;
  color: var(--text-light);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 500;
}

.inquiry-hero p {
  margin: 0;
  color: rgba(244, 238, 227, 0.86);
}

.inquiry-section {
  padding: 44px 0 72px;
}

.inquiry-form {
  background: #fffdfa;
  border: 1px solid #e0d3be;
  padding: 34px;
}

.form-group {
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid #ece2d4;
}

.form-group h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: #3f3429;
}

.field-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

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

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

.inquiry-form label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: #4f4338;
}

.inquiry-form label span {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  background: #a67b45;
  color: #fff;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d7c9b4;
  background: #fff;
  color: #2f2923;
  padding: 10px 12px;
  font: inherit;
}

.inquiry-form textarea {
  min-height: 160px;
  resize: vertical;
}

.radio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.radio-grid p {
  margin: 0;
  font-size: 0.92rem;
}

.radio-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-consent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 22px;
  padding: 14px 16px;
  background: #f8f3e9;
  border: 1px solid #e4d5be;
}

.form-consent label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.form-consent a {
  color: #715833;
  text-decoration: underline;
}

.inquiry-submit {
  width: min(440px, 100%);
}

.form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.form-alert-success {
  border-color: #73a37a;
  background: #edf9ef;
  color: #214c2d;
}

.form-alert-error {
  border-color: #c58a8a;
  background: #fff0f0;
  color: #7a2d2d;
}

.hidden-honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 980px) {
  .problem-grid,
  .coverage-grid,
  .owners-grid,
  .flow-grid,
  .footer-inner,
  .contact-inner,
  .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owners-grid {
    gap: 0;
  }

  .owner-card:nth-child(even) {
    border-right: 1px solid #e8dece;
  }

  .field-grid.two,
  .field-grid.three {
    grid-template-columns: 1fr;
  }

  .form-consent {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 12px auto;
    display: grid;
    gap: 16px;
    padding: 22px;
    background: rgba(19, 15, 12, 0.97);
    border: 1px solid rgba(220, 195, 154, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero {
    min-height: auto;
    padding-top: 88px;
    background: url("./mv.png") 76% center / cover no-repeat;
  }

  .hero::before {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(19, 15, 12, 0.58) 0%, rgba(19, 15, 12, 0.78) 100%),
      linear-gradient(90deg, rgba(16, 13, 11, 0.8) 0%, rgba(16, 13, 11, 0.48) 62%, rgba(16, 13, 11, 0.34) 100%);
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 68px;
  }

  .hero-inner {
    padding-bottom: 0;
  }

  .primary-button {
    min-width: 0;
    width: 100%;
  }

  .hero-inner,
  .problem-grid,
  .coverage-grid,
  .owners-grid,
  .flow-grid,
  .case-columns,
  .footer-inner,
  .contact-inner,
  .split-grid,
  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-features,
  .footer-inner {
    display: flex;
  }

  .footer-links-col {
    gap: 10px;
  }

  .hero-features {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    margin-top: 24px;
  }

  .story-copy,
  .contact-copy {
    padding: 48px 24px;
  }

  .eligibility-box {
    padding: 22px 18px;
  }

  .case-column {
    padding: 20px 16px 16px;
  }

  .section-head h2 {
    font-size: clamp(1.35rem, 5vw, 1.9rem);
  }

  .story-copy h2 {
    font-size: clamp(1.22rem, 5vw, 1.6rem);
    line-height: 1.7;
  }

  .story-photo,
  .contact-photo {
    min-height: 260px;
  }

  .problem-card,
  .owner-card {
    min-height: auto;
    border-right: 1px solid #e8dece;
  }

  .owner-card {
    border-top: 1px solid #e8dece;
  }

  .flow-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 78px;
    gap: 12px;
  }

  .hero-inner{
    min-height:400px;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
    line-height: 1.42;
  }

  .hero-text {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .brand-sub {
    font-size: 0.82rem;
  }

  .primary-button,
  .gold-button,
  .outline-button,
  .nav-button {
    width: 100%;
  }

  .contact-actions {
    flex-direction: column;
  }

  .section-head {
    gap: 14px;
  }

  .head-line {
    width: 34px;
  }

  .story-copy {
    padding: 42px 18px;
  }

  .story-copy h2 {
    font-size: 1.12rem;
    line-height: 1.75;
    margin-bottom: 18px;
  }

  .story-copy h2 span:last-child {
    font-size: 1.08rem;
  }

  .inquiry-main {
    padding-top: 84px;
  }

  .inquiry-hero {
    padding: 48px 0 28px;
  }

  .inquiry-form {
    padding: 20px 16px;
  }

  .eligibility {
    padding: 44px 0 50px;
  }

  .case-examples {
    padding: 44px 0 52px;
  }

  .feature-item p{
    font-size: 0.8rem;
  }

  .footer-inner{
    display: grid;
  }
}
