/* =========================================================
   売却募集専門サイト 共通CSS
   変更しやすいように、色・余白・角丸はここで一括管理
========================================================= */
:root {
  --color-main: #0f4c5c;
  --color-main-dark: #0a3540;
  --color-accent: #e6a23c;
  --color-bg: #f7f4ee;
  --color-soft: #eef6f7;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-white: #ffffff;
  --shadow: 0 16px 40px rgba(15, 76, 92, .12);
  --radius: 18px;
  --container: 1120px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  background: var(--color-white);
}

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

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-main);
  color: #fff;
  padding: 8px;
  z-index: 999;
}

.skip-link:focus {
  left: 8px;
}

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

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--color-main);
  font-weight: 900;
}

.brand-mark--logo {
  background: #fff;
  padding: 4px;
  overflow: hidden;
}

.brand-mark--logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text small {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
}

.global-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #344054;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--color-soft);
  color: var(--color-main);
}

.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--color-main);
  color: #fff;
  line-height: 1.2;
}

.header-tel span {
  font-size: 11px;
  opacity: .85;
}

.header-tel strong {
  font-size: 16px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  margin-left: auto;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-main);
  margin: 5px auto;
}

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(135deg, #f7f4ee 0%, #eef6f7 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  color: var(--color-accent);
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 8px;
  font-size: 13px;
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -.03em;
}

h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -.02em;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 18px;
  color: #475467;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: .2s ease;
}

.btn-primary {
  background: var(--color-main);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--color-main-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--color-main);
  border-color: #cfe2e5;
}

.btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-list li,
.tag-list span {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  color: #344054;
}

.hero-panel {
  position: relative;
}

.hero-panel img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #fff;
}

.assessment-box {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.assessment-box span {
  color: var(--color-accent);
  font-weight: 900;
}

.assessment-box strong {
  font-size: 22px;
}

.assessment-box small {
  color: var(--color-muted);
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--color-bg);
}

.section-heading {
  text-align: center;
  max-width: 760px;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

.card,
.result-card,
.form-card,
.cta-card,
.map-placeholder {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(31, 41, 51, .06);
}

.card p,
.result-card p {
  color: var(--color-muted);
}

.numbered span,
.timeline span,
.steps span {
  color: var(--color-accent);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list p {
  position: relative;
  padding: 14px 16px 14px 44px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  margin: 0;
  font-weight: 700;
}

.check-list p::before {
  content: "✓";
  position: absolute;
  left: 16px;
  color: var(--color-main);
  font-weight: 900;
}

.text-link {
  color: var(--color-main);
  font-weight: 900;
}

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

.steps div {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-border);
}

.page-hero {
  padding: 64px 0;
  background: linear-gradient(135deg, #f7f4ee 0%, #eef6f7 100%);
}

.page-hero .container {
  max-width: 840px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #fff;
}

.tag-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.result-card span {
  display: inline-block;
  color: var(--color-main);
  background: var(--color-soft);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 900;
  margin-bottom: 12px;
}

dl {
  margin: 0 0 16px;
}

dl div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  gap: 16px;
}

dt {
  color: var(--color-muted);
}

dd {
  margin: 0;
  font-weight: 800;
}

.faq-list {
  max-width: 860px;
}

details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 14px;
}

summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
}

details p {
  margin-top: 12px;
  color: var(--color-muted);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

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

.company-table th {
  width: 34%;
  background: var(--color-soft);
  color: var(--color-main);
}

.map-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #eef2f7 10px, #eef2f7 20px);
}

.map-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 360px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.muted {
  color: var(--color-muted);
}

.narrow {
  max-width: 860px;
}

.legal-text h2 {
  font-size: 24px;
  margin-top: 28px;
}

.cta-section {
  padding: 64px 0;
  background: var(--color-main);
  color: #fff;
}

.cta-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}

.cta-card p {
  color: rgba(255, 255, 255, .82);
}

.site-footer {
  background: #101828;
  color: #fff;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 14px;
}

.site-footer .muted,
.site-footer p {
  color: rgba(255, 255, 255, .72);
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 36px;
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, .72);
}

.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 101;
  display: none;
  box-shadow: var(--shadow);
  border-radius: 999px;
  overflow: hidden;
}

.floating-cta a {
  background: var(--color-main);
  color: #fff;
  padding: 12px 14px;
  font-weight: 900;
  border-right: 1px solid rgba(255, 255, 255, .18);
}

[data-config="address"],
[data-config="branchInfo"],
[data-config="businessDescription"],
[data-config="associations"],
[data-config="guaranteeAssociation"],
[data-config="legalAdvisor"] {
  white-space: pre-line;
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .global-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header-height) + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

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

  .header-tel {
    display: none;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-cta {
    display: flex;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero,
  .section,
  .page-hero {
    padding: 48px 0;
  }

  h1 {
    font-size: 34px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .assessment-box {
    position: static;
    margin-top: 12px;
  }

  .brand-text small {
    display: none;
  }
}