:root {
  --color-navy: #0b1220;
  --color-navy-soft: #020617;
  --color-accent: #38bdf8;
  --color-bg: #f8fafc;
  --color-border: #e2e8f0;
  --color-text-main: #0f172a;
  --color-text-sub: #64748b;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.09);
  --shadow-md: 0 26px 60px rgba(15, 23, 42, 0.22);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.7;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #38bdf8, #0f172a);
  color: #e5f3ff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
}

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

.logo-main {
  font-size: 14px;
  font-weight: 700;
  color: #020617;
}

.logo-sub {
  font-size: 11px;
  color: #94a3b8;
}

.nav {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  padding: 0;
  cursor: pointer;
  transition: 0.18s ease-out;
  position: relative;
  z-index: 60;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #020617;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle.is-open {
  background: #020617;
  border-color: #020617;
}

.nav-toggle.is-open .nav-toggle-bar {
  background: #e5f3ff;
}

.header-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.18s ease-out;
  white-space: nowrap;
}

.btn-xs {
  padding: 8px 14px;
  font-size: 11px;
}

.btn-primary {
  background: #020617;
  color: #e5f3ff;
  border-color: #020617;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #020617;
  transform: translateY(-1px);
}

.btn-light {
  background: #ffffff;
  color: #020617;
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #e5f3ff;
  border-color: rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.35);
}

a[href^="tel:"] {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

a[href^="tel:"]:hover {
  text-decoration: underline;
}

.hero {
  background: radial-gradient(
    circle at top left,
    #38bdf8 0,
    #0b1220 40%,
    #020617 100%
  );
  color: #e5f3ff;
  padding: 60px 0 68px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 700;
}

.hero-tagline-en {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: #cbd5f5;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 12px;
  color: #e5e7eb;
}

.hero-panel {
  max-width: 440px;
  justify-self: end;
}

.hero-card {
  border-radius: 26px;
  padding: 20px 18px 18px;
  background: radial-gradient(circle at top, #1f2937, #020617);
  border: 1px solid rgba(148, 163, 184, 0.38);
  box-shadow: var(--shadow-md);
}

.hero-card-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 6px;
}

.hero-card-title {
  font-size: 17px;
  margin: 0 0 12px;
}

.hero-chip-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-chip {
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-card-caption {
  font-size: 12px;
  color: #cbd5f5;
  margin: 0;
}

.section {
  padding: 56px 0;
}

.section-header {
  margin-bottom: 20px;
}

.section-header-center {
  text-align: center;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 6px;
}

.section-title {
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 700;
}

.section-lead {
  font-size: 14px;
  color: var(--color-text-sub);
  max-width: 520px;
}

.section-header-center .section-lead {
  margin: 0 auto;
}

.section-concept {
  background: #ffffff;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--color-border);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}

.card-minimal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin: 0;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.card-text {
  font-size: 13px;
  color: var(--color-text-sub);
  margin: 0;
}

.card-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.card-tag,
.card-title {
  white-space: nowrap;
}

.section-service {
  background: #f8fafc;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.service-card {
  border-radius: 24px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}

.service-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #38bdf8;
  margin: 0 0 4px;
}

.service-title {
  font-size: 15px;
  margin: 0 0 4px;
}

.service-text {
  font-size: 13px;
  color: var(--color-text-sub);
  margin: 0;
}

.service-highlight {
  margin-top: 22px;
  border-radius: 26px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #e5e7eb;
  box-shadow: var(--shadow-md);
}

.service-highlight-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 4px;
}

.service-highlight-title {
  font-size: 15px;
  margin: 0 0 6px;
}

.service-highlight-text {
  font-size: 13px;
  margin: 0;
}

.section-car-mini {
  background: #020617;
  color: #e5e7eb;
}

.car-mini-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: center;
}

.car-mini-lead {
  font-size: 13px;
  color: #cbd5f5;
  max-width: 420px;
}

.car-mini-panel {
  border-radius: 22px;
  padding: 16px 18px 14px;
  background: radial-gradient(circle at top, #1d283a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-align: right;
  box-shadow: var(--shadow-md);
}

.car-mini-caption {
  font-size: 11px;
  color: #94a3b8;
  margin: 0 0 2px;
}

.car-mini-phone {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin: 0 0 4px;
  color: var(--color-accent);
}

.car-mini-note {
  font-size: 11px;
  color: #cbd5f5;
  margin: 0;
}

/* UNDERWRITER */

.section-underwriter {
  background: #ffffff;
}

.underwriter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}

.underwriter-chip {
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #f8fafc;
}

.section-company {
  background: #f8fafc;
}

.company-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.company-block {
  border-radius: 24px;
  padding: 18px 18px 16px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.company-name {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 6px;
}

.company-text {
  font-size: 13px;
  color: var(--color-text-sub);
  margin: 0 0 4px;
}

.company-map .map-dummy {
  border-radius: 24px;
  padding: 18px 18px 18px;
  background: radial-gradient(circle at top, #38bdf8, #0b1220);
  color: #e5f3ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
}

.map-dummy-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.map-dummy-text {
  font-size: 13px;
  margin: 0;
}

.footer {
  background: #020617;
  color: #e5e7eb;
  padding: 32px 0 22px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #111827;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
}

.footer-text {
  font-size: 11px;
  margin: 0;
  color: #cbd5f5;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link {
  font-size: 11px;
  color: #e5e7eb;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
}

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

  .header-inner {
    padding: 10px 0;
  }

  .hero {
    padding: 40px 0 46px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-panel {
    justify-self: stretch;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.4;
  }

  .hero-buttons {
    width: 100%;
  }

  .hero-buttons .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .section-title {
    font-size: 20px;
  }

  .section-lead {
    font-size: 13px;
  }

  .card,
  .service-card,
  .service-highlight,
  .company-block {
    padding: 16px 14px 14px;
  }

  .footer-text,
  .footer-copy {
    font-size: 12px;
  }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 56px;
    background: #020617;
    padding: 14px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
    z-index: 50;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  body {
    overflow-x: hidden;
  }
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .header-cta {
    display: block;
  }

  .nav {
    display: flex;
    gap: 22px;
    font-size: 12px;
    letter-spacing: 0.14em;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .nav-link {
    color: #64748b;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 3px;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    transition: width 0.2s ease-out;
  }

  .nav-link:hover {
    color: #020617;
  }

  .nav-link:hover::after {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .car-mini-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 38px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-lead {
    font-size: 15px;
  }

  .service-card,
  .card {
    padding: 20px 20px 18px;
  }
}

@media (max-width: 480px) {
  p,
  .service-text,
  .car-mini-lead,
  .service-highlight-text {
    white-space: normal !important;
    word-break: keep-all !important;
  }

  .section-label,
  .nav-link,
  .hero-tagline-en {
    white-space: nowrap !important;
  }

  .service-highlight-title,
  .section-title {
    font-size: 17px;
    line-height: 1.35;
  }

  .car-mini-lead {
    font-size: 14px;
    line-height: 1.6;
  }

  .car-mini-panel {
    padding: 20px 18px 20px;
  }
}

.underwriter-hero {
  background: #f8fafc;
}

.underwriter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 900px;
}

.underwriter-chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: #020617;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.25);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .underwriter-list {
    gap: 10px;
  }

  .underwriter-chip {
    font-size: 12px;
    padding: 8px 14px;
  }
}

.underwriter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 960px;
}

.underwriter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.underwriter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.18);
}

.underwriter-card img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.underwriter-card span {
  font-size: 13px;
  color: var(--color-text);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .underwriter-card {
    padding: 18px 14px 16px;
  }

  .underwriter-card img {
    height: 36px;
  }

  .underwriter-card span {
    font-size: 12px;
  }
}

.underwriter-hero .section-title {
  font-size: clamp(28px, 4vw, 40px); /* 画面幅で自動調整 */
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.underwriter-hero .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    #020617,
    #38bdf8
  );
  border-radius: 999px;
}

.underwriter-hero .section-label {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 8px;
}

.underwriter-hero .section-lead {
  max-width: 520px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-text-sub);
}

.nav .nav-link {
  color: #e5e7eb !important;
}

.nav .nav-link:hover {
  color: #ffffff !important;
}

.nav .nav-link:visited,
.nav .nav-link:active,
.nav .nav-link:focus {
  color: #e5e7eb !important;
}


@media (min-width: 880px) {
  header .nav a.nav-link {
    color: #020617;
  }

  header .nav a.nav-link:hover {
    color: #0ea5e9;
  }
}

@media (max-width: 879px) {
  header .nav a.nav-link {
    color: #e5e7eb !important;
  }
}

/* ===== スマホではみ出させない最終対策 ===== */
@media (max-width: 480px) {

  /* 強制改行を許可 */
  h1, h2, h3, h4, p, span, a, div {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* nowrapの無効化（主犯） */
  .card-tag,
  .card-title,
  .card-header-row,
  .hero-tagline-en,
  .section-label,
  .nav-link {
    white-space: normal !important;
  }

  /* GridやFlexで突き破らせない */
  .hero-inner,
  .card,
  .service-card,
  .concept-card,
  .nav-links {
    min-width: 0;
  }

  /* 電話番号・英字対策 */
  .car-mini-phone {
    font-size: 18px;
    letter-spacing: 0.03em;
    word-break: break-all;
  }
}

/* 画面外に絶対出さない保険 */
* {
  max-width: 100%;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .logo img {
    height: 32px;
  }
}

/* =========================
   提携会社ページ
========================= */

.partner-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.partner-card {
  background: linear-gradient(145deg, #111 0%, #0c0c0c 100%);
  padding: 40px 35px;
  border-radius: 18px;
  border: 1px solid #222;
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.partner-card:hover {
  transform: translateY(-8px);
  border-color: #00bfff;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.partner-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
}

.partner-name a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.partner-name a:hover {
  color: #00bfff;
}

.partner-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 20px;
}

.partner-address {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}

/* セクション中央揃え強化 */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #aaa;
  line-height: 1.8;
}

/* =========================
   スマホ最適化
========================= */

@media (max-width: 768px) {

  .section {
    padding: 70px 18px;
  }

  .partner-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .partner-card {
    padding: 28px 22px;
  }

  .partner-name {
    font-size: 18px;
  }

  .partner-desc {
    font-size: 14px;
  }

}

.nav-toggle {
  display: inline-flex !important;
}

/* ナビ初期状態（閉じてる） */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 60px;
  background: #020617;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 50;
}

/* 開いた状態 */
.nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* リンク */
.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.15em;
}

/* =====================
   PC用ナビ無効化
===================== */

@media (min-width: 880px) {

  /* ←これが一番重要 */
  .nav {
    position: fixed !important;
    flex-direction: column !important;
    background: #020617 !important;
  }

  .nav-toggle {
    display: inline-flex !important;
  }

  .header-cta {
    display: none;
  }
}