.contact-page { background: #FFEDE3; }

.contact-form-section .container {
  background: #fff;
  padding: 40px;
  border-radius: 5px;
}

.contact-hero, .contact-support {
  background-color: #fff;
}

.contact-hero__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.contact-hero__copy {
  position: relative;
  padding: 36px 28px 36px 0;
  border-radius: 0 28px 28px 28px;
}

.contact-hero__copy::after {
  content: '';
  position: absolute;
  right: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: #dfdfdf;
}

.contact-title {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  margin: 0 0 20px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  font-weight: 700;
}

.contact-title > div { display: block; }

.contact-page .eyebrow, .contact-thanks-page .eyebrow { text-align: left !important; margin: 0 }

.contact-hero__aside-label {
  display: block;
  font-size: 1.2rem;
  color: #D7250C;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.contact-hero__copy h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.2;
}

.contact-hero__lead {
  margin: 0;
  max-width: 782px;
  color: var(--muted);
  line-height: 1.95;
  font-size: 17px;
}

.contact-hero__aside {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 30px 28px;
}

.contact-hero__phone {
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.1;
  font-weight: 700;
  color: #6a4c2b;
}

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

.contact-hero__points {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.75;
  white-space: nowrap;
}

.contact-section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
}


.contact-section-head h3 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 42px);
}

.contact-section-head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.contact-methods { padding-top: 44px; }

.contact-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: transparent;
}

.contact-method {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px;
  min-height: 250px;
  padding: 28px 24px;
  background: #fff;
  border: none;
  overflow: hidden;
  transition: filter 0.2s ease;
}

.contact-method::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent #D7250C transparent;
  pointer-events: none;
}

.contact-method--estimate::after {
  border-color: transparent transparent #F2A522 transparent;
}

.contact-method--line::after {
  border-color: transparent transparent  var(--line-brand) transparent;
}

.contact-method:hover { filter: brightness(0.98); }

.contact-method__eyebrow { color: #b7b0a5; }

.contact-method h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.contact-method__main {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: #6a4c2b;
}

.contact-method__body {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}


.contact-support__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-info-card {
  padding: 28px;
  border-right: solid 1px #dfdfdf;
}

.contact-info-card:last-child { border-right: none; }

.contact-info-card h4 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.3vw, 34px);
}

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

.contact-topic-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8f4ef;
  color: #5d5650;
  line-height: 1.7;
}

.contact-flow {
  background-color: #FFEDE3;
}

.contact-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-flow-step {
  padding: 24px;
  border-right: solid 1px #dfdfdf;
}

.contact-flow-step:last-child { border-right: none; }

.contact-flow-step__no {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: 0.22em;
  color: #D7250C !important;
  font-weight: 700;
}

.contact-flow-step h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.contact-flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.contact-links__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
}

.contact-links__panel h4 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.2vw, 34px);
}

.contact-links__list {
  display: grid;
  gap: 10px;
  align-content: center;
}

.contact-links__list a {
  display: block;
  padding: 14px 16px;
  border-radius: 5px;
  background: #fff;
  font-weight: 600;
}

.contact-final {
  padding: 24px 0 88px;
}

.contact-final__inner {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #D7250C 0%, #D7250C 100%);
  color: #fff;
  box-shadow: 0 24px 54px rgba(215, 37, 12, 0.24);
}

.contact-final__inner h3 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3vw, 42px);
}

.contact-final__inner p {
  margin: 0 0 24px;
  max-width: 860px;
  line-height: 1.85;
}

.contact-final__inner .btn-ghost {
  background: rgba(255, 255, 255, 0.92);
}


/* ── お問い合わせフォーム ─────────────────────── */
.contact-form-section { padding-top: 0; }

.cform-shell {
  max-width: 760px;
  margin: 0 auto;
}

.cform {
  display: grid;
  gap: 20px;
}

.cform-fieldsets {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #FFEDE3;
  border-radius: 20px;
}

.cform-fieldset {
  margin: 0;
  padding: 22px;
  border: 1px solid #e8e2d9;
  border-radius: 20px;
  display: grid;
  gap: 16px;
}

.cform-fieldset legend {
  padding: 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #5a4330;
}

.cform-grid {
  display: grid;
  gap: 14px;
}

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

.cform-field {
  display: grid;
  gap: 7px;
}

.cform-field--full {
  grid-column: 1 / -1;
}

.cform-field span,
.cform-label {
  font-size: 14px;
  font-weight: 700;
  color: #514338;
}

.cform-field em {
  font-style: normal;
  color: #D7250C;
}

.cform-note {
  font-size: 12px;
  color: #D7250C;
  line-height: 1.6;
}

.cform-field input,
.cform-field select,
.cform-field textarea {
  width: 100%;
  border: 1px solid #d9d3cb;
  border-radius: 12px;
  background: #fff;
  padding: 13px 15px;
  font: inherit;
  color: var(--ink);
  box-sizing: border-box;
}

.cform-field textarea { resize: vertical; }

.cform-field input:focus,
.cform-field select:focus,
.cform-field textarea:focus {
  outline: 2px solid rgba(215, 37, 12, 0.18);
  border-color: #D7250C;
}

.cform-tel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cform-tel input {
  flex: 1;
  min-width: 0;
}

.cform-tel-sep {
  color: var(--muted);
  font-weight: 700;
}

.cform-consent {
  padding: 4px 0;
}

.cform-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.7;
  cursor: pointer;
}

.cform-check input {
  margin-top: 4px;
  flex-shrink: 0;
}

.cform-check em {
  font-style: normal;
  color: #D7250C;
}

.cform-check a {
  color: var(--accent);
  font-weight: 700;
}

.cform-actions {
  display: flex;
  gap: 12px;
}

/* confirm / thanks ページ */
.confirm-table {
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
}

.confirm-table dt,
.confirm-table dd {
  padding: 14px 0;
  border-bottom: 1px solid #eee7df;
}

.confirm-table dt {
  font-weight: 700;
  color: #5a4330;
}

.confirm-table dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-confirm-page h1,
.contact-thanks-page h1 {
  margin: 24px 0 16px;
  font-size: clamp(28px, 3vw, 40px);
}

.thanks-content {
  display: grid;
  gap: 14px;
  padding: 32px 0 80px;
}

.thanks-content h1 { margin: 0; }

.thanks-content p {
  margin: 0;
  line-height: 1.85;
  color: var(--muted);
}

.thanks-content .muted { font-size: 14px; }

@media (max-width: 768px) {
  .contact-hero__panel,
  .contact-method-grid,
  .contact-support__grid,
  .contact-flow-grid,
  .contact-links__panel {
    grid-template-columns: 1fr;
  }

  .contact-hero__copy,
  .contact-hero__aside,
  .contact-info-card,
  .contact-links__panel,
  .contact-final__inner {
    padding: 24px;
  }

  .contact-info-card,
  .contact-flow-step {
    border-right: none;
    border-bottom: solid 1px #dfdfdf;
  }

  .contact-info-card:last-child,
  .contact-flow-step:last-child { border-bottom: none; }

  .contact-method {
    min-height: auto;
    border-right: none;
    border-bottom: none;
  }

  .contact-method-grid {
    gap: 10px;
  }

  .contact-method:last-child { border-bottom: none; }

.cform-grid--2 { grid-template-columns: 1fr; }

  .confirm-table {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
