:root {
  --content-max: 1100px;
  --page-gutter: clamp(16px, 4vw, 32px);
  --brand: #f07f3b;
  --brand-deep: #d6682f;
  --accent: #6aaed6;
  --accent-deep: #2f7fb8;
  --soft: #fff7ef;
  --soft-blue: #f2f7ff;
  --cream: #ffe7d2;
  --mint: #e6f5ed;
  --ink: #2b2b2b;
  --muted: #555;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 12px 30px rgba(38, 60, 96, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --phone-red: #e53935;
  --danger: #c53030;
  --success: #2e8b3e;
  --line-green: #06c755;
  --nav-hover: #e6f3ff;
  --footer-bg: #f15a24;
  --product-blue: #549fd8;
  --brand-accent: #c45500;
  --focus-ring: 3px solid rgba(47, 127, 184, 0.6);
  --fs-nav: clamp(1.7rem, 1.4rem + 0.6vw, 2.2rem);
  --fs-drawer-nav: clamp(1.6rem, 1.4rem + 0.4vw, 1.9rem);
  --fs-fab: clamp(1.3rem, 1.1rem + 0.4vw, 1.6rem);
  --cta-size: 56px;
  --cta-gap: 1.5rem;
  --cta-halo: 6px;
  --fab-right: max(1rem, env(safe-area-inset-right));
  --fab-bottom: max(1rem, env(safe-area-inset-bottom));
}

html {
  font-size: 62.5%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", "Hiragino Maru Gothic ProN",
    "Meiryo", sans-serif;
  font-size: clamp(1.6rem, 1.2rem + 0.6vw, 1.9rem);
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #fff6e9 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, #e9f5ff 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #fff8ef 45%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.image-link img {
  transition: opacity 0.2s ease;
}

.image-link:hover img,
.image-link:focus img {
  opacity: 0.85;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.header-inner {
  position: relative;
  display: grid;
  gap: 1.4rem;
  padding: 0 0 1.4rem;
}

.site-logo {
  margin: 0;
}

.site-logo img {
  width: 100%;
}

.main-nav ul,
.drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.4rem;
  row-gap: 0.6rem;
  padding: 0 0 0.6rem;
}

.main-nav li {
  position: relative;
}

.main-nav li + li::before,
.main-nav li:first-child::before,
.main-nav li:last-child::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 2rem;
  background: #c4c4c4;
  transform: translateY(-50%);
}

.main-nav li + li::before,
.main-nav li:first-child::before {
  left: -1.4rem;
}

.main-nav li:last-child::after {
  right: -1.4rem;
}

.main-nav a {
  display: block;
  font-size: var(--fs-nav);
  color: #333;
  padding: 0.4rem 1rem;
  position: relative;
  transition: 0.25s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 3px;
  background: var(--accent-deep);
  transition: width 0.25s;
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--nav-hover);
  color: var(--accent-deep);
  text-decoration: none;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

.menu-toggle {
  position: absolute;
  right: 0.2rem;
  top: 1.6rem;
  z-index: 2;
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
  display: none;
}

.menu-toggle img,
.drawer-close img {
  width: 50px;
  height: auto;
}

.menu-toggle,
.drawer-close {
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus-visible,
.drawer-close:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .site-header .container {
    padding-left: 0;
    padding-right: 0;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  html.has-js .menu-toggle {
    display: block;
  }
  html.has-js .main-nav {
    display: none;
  }
  .site-logo {
    padding-right: 0;
  }
  .site-logo .image-link {
    display: block;
    width: 100%;
  }
  .site-logo img {
    width: 100%;
  }
}

html.no-js .menu-toggle {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s step-end;
  z-index: 1095;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

.drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  padding: 5.2rem 2rem max(2rem, env(safe-area-inset-right)) 2rem;
  background: #fff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  transition: right 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer.open {
  right: 0;
}

.drawer ul {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.drawer a {
  display: block;
  font-size: var(--fs-drawer-nav);
  font-weight: 500;
  color: #000;
  padding: 0.6rem 2.2rem 0.6rem 0.2rem;
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease, padding-left 0.25s ease;
  text-decoration: none;
  outline: none;
}

.drawer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 3px;
  background: var(--accent-deep);
  transition: width 0.25s;
}

.drawer a:hover,
.drawer a:focus {
  color: var(--accent-deep);
  background: var(--nav-hover);
  padding-left: 0.8rem;
}

.drawer a:hover::after,
.drawer a:focus::after {
  width: 100%;
}

.drawer a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.drawer a::before {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid currentColor;
  opacity: 0.75;
  pointer-events: none;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.drawer a:hover::before,
.drawer a:focus::before {
  opacity: 1;
  transform: translateY(-50%) translateX(1px);
}

.drawer-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1.6rem, env(safe-area-inset-right));
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 0;
}

.floating-cta {
  display: none;
  font-size: var(--fs-fab);
  line-height: 2rem;
}

@media (max-width: 600px) {
  .floating-cta {
    position: fixed;
    right: var(--fab-right);
    bottom: var(--fab-bottom);
    display: flex;
    flex-direction: column;
    gap: var(--cta-gap);
    z-index: 3000;
    pointer-events: none;
  }

  .floating-cta .cta-btn {
    pointer-events: auto;
    width: var(--cta-size);
    height: var(--cta-size);
    border-radius: 50%;
    background: var(--accent-deep);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 0 0 var(--cta-halo) #fff, 0 8px 22px rgba(0, 0, 0, 0.25),
      0 2px 6px rgba(0, 0, 0, 0.16);
    transition: opacity 0.2s ease;
  }

  .floating-cta .cta-btn:hover,
  .floating-cta .cta-btn:focus {
    opacity: 0.88;
  }

  .floating-cta .cta-btn--form {
    background: var(--accent-deep);
  }

  .floating-cta .cta-btn--line {
    background: var(--line-green);
  }

  .drawer.open ~ .floating-cta {
    display: none;
  }
}

.main {
  flex: 1 0 auto;
  padding-bottom: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background: url("../images/toplogoenjibk.jpg") left center / cover no-repeat;
  border-radius: var(--radius-lg);
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
  margin: 2.4rem auto 3.2rem;
  box-shadow: 0 8px 32px rgba(0, 40, 80, 0.10);
  border: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 40%, rgba(255, 248, 235, 0.35) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: clamp(3.2rem, 6vw, 6rem) clamp(2.4rem, 5vw, 5.6rem);
}

.hero-copy {
  display: grid;
  gap: 2.8rem;
}

.hero-lead {
  font-size: clamp(1.7rem, 0.6rem + 2vw, 2.4rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.7;
  color: #1a2a3a;
  letter-spacing: 0.02em;
  text-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 20px #fff;
}

.hero-lead em {
  font-style: normal;
  color: var(--brand-accent);
  background: linear-gradient(transparent 65%, rgba(255, 200, 80, 0.35) 65%);
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

@media (max-width: 600px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
}


.section {
  padding: 2.6rem 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(255, 240, 225, 0.7), rgba(255, 255, 255, 0));
}

.section--cta {
  padding-top: 1.2rem;
}

.section-title {
  font-size: clamp(2.2rem, 1.8rem + 1vw, 3rem);
  margin: 0 0 1.8rem;
  padding-left: 1.4rem;
  position: relative;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 0.6rem;
  height: 1.2em;
  border-radius: 999px;
  background: var(--brand);
}

.content-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 3vw, 3rem);
  display: grid;
  gap: 3rem;
  border: 1px solid var(--border);
}

.block {
  display: grid;
  gap: 1.4rem;
}

.block p,
.block ul,
.block ol {
  margin: 0;
}

.block-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: center;
}

@media (max-width: 600px) {
  .block-cols {
    grid-template-columns: 1fr;
  }
}

.block-title {
  font-size: clamp(2rem, 1.5rem + 0.9vw, 2.6rem);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.block-bullet {
  color: var(--brand-deep);
}

.block-subtitle {
  margin: 0;
  font-weight: 600;
  color: var(--accent-deep);
}

.example-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.example-card {
  background: var(--soft);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.example-card img {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

@media (max-width: 595px) {
  .example-grid {
    grid-template-columns: 1fr;
  }

  .example-card {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .example-card img {
    max-width: 80px;
    margin: 0;
  }
}

.example-card p {
  margin: 0;
}

.qa-list {
  display: grid;
  gap: 2.4rem;
}

.qa-item {
  background: #fff8f1;
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid rgba(240, 168, 96, 0.35);
  display: grid;
  gap: 1.6rem;
}

.qa-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 1.2rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  width: fit-content;
}

.qa-row {
  overflow: hidden;
  padding-left: 4rem;
}

.qa-row--answer {
  background: var(--soft-blue);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.2rem 1.2rem 4rem;
}

.qa-mark {
  float: left;
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 2rem;
  background: #ffecec;
  color: #c53434;
  margin: 0 .8rem .5rem -4rem;
}

.qa-mark--answer {
  background: #e8f0ff;
  color: #2355c4;
}

.qa-row img {
  float: left;
  margin: 0 1rem .8rem 0;
}

.qa-row--question img + img,
.qa-row--answer img {
  float: right;
  margin: 0 0 .8rem 1rem;
}

.qa-row p {
  margin: 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  align-items: center;
}

.banner-link img {
  width: 100%;
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  padding: 1.2rem 2.4rem;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 0.8vw, 2.2rem);
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  filter: brightness(1.08);
  text-decoration: none;
  color: #fff;
}

.btn:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 1.6rem 3rem;
  font-size: clamp(2.2rem, 1.8rem + 1vw, 3.2rem);
  border-radius: 14px;
  width: 100%;
  white-space: nowrap;
}

.btn__highlight {
  color: #ffe03a;
}

.btn--hoikuen {
  background: linear-gradient(135deg, #0062b5, #004a8c);
}

.btn--youchien {
  background: linear-gradient(135deg, #007a42, #005c30);
}

.btn--contact {
  background: linear-gradient(135deg, #ff1a1a, #d40000);
}

.notice-card {
  background: #fff;
}

.notice-image img {
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
  height: auto;
}

.notice-section {
  background: #fff;
}

.notice-grid {
  display: grid;
  grid-template-columns: minmax(200px, 420px) minmax(280px, 1fr);
  gap: 2rem;
  align-items: center;
}

.notice-text p {
  margin: 0 0 1.2rem;
}

.notice-text p:last-child {
  margin-bottom: 0;
}

.notice-wrap {
  display: block;
  overflow: hidden;
}

.notice-wrap__img {
  float: left;
  margin: 0 2rem 1rem 0;
  max-width: 420px;
  width: 100%;
  height: auto;
}

.notice-wrap p {
  margin: 0 0 1.2rem;
}

.notice-wrap p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .notice-wrap__img {
    float: none;
    display: block;
    margin: 0 auto 1.2rem;
  }
}

.contact-section {
  background: #fff;
}

.contact-heading {
  text-align: center;
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 1.6rem + 0.9vw, 2.8rem);
}

.contact-org {
  text-align: center;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1.4rem, 1.2rem + 0.3vw, 1.7rem);
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

[data-page="thanks"] .contact-methods,
[data-page="failed"] .contact-methods {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
}

[data-page="thanks"] .content-card,
[data-page="failed"] .content-card {
  gap: 1rem;
}

[data-page="thanks"] .product-banners,
[data-page="failed"] .product-banners {
  flex-direction: column;
}

.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: clamp(2rem, 3vw, 3rem) 1.6rem;
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-method:hover,
.contact-method:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.contact-method__icon {
  display: grid;
  place-items: center;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}

.contact-method--phone { background: linear-gradient(135deg, #fff5f5, #ffe8e8); border: 1px solid #f5c6c6; }
.contact-method--phone .contact-method__icon { background: var(--phone-red); }
.contact-method--phone .contact-method__value { color: var(--phone-red); }

.contact-method--email { background: linear-gradient(135deg, #f0f7ff, #e3f0ff); border: 1px solid #c8dffc; }
.contact-method--email .contact-method__icon { background: var(--accent-deep); }
.contact-method--email .contact-method__value { color: var(--accent-deep); }

.contact-method--line { background: linear-gradient(135deg, #edfff0, #e0fce5); border: 1px solid #b8ecc2; }
.contact-method--line .contact-method__icon { background: var(--line-green); }
.contact-method--line .contact-method__value { color: var(--line-green); }

.contact-method__label {
  font-size: clamp(1.3rem, 1.1rem + 0.3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-method__value {
  font-size: clamp(1.8rem, 1.4rem + 0.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.contact-method__sub {
  font-size: inherit;
  color: var(--muted);
}

@media (max-width: 720px) {
  .contact-methods,
  [data-page="thanks"] .contact-methods,
  [data-page="failed"] .contact-methods {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .contact-method {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    padding: 1.6rem;
    gap: 0.4rem 1.4rem;
  }

  .contact-method__sub {
    flex-basis: 100%;
    text-align: center;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  .contact-method__icon {
    width: 5rem;
    height: 5rem;
  }

  .contact-method__icon svg {
    width: 24px;
    height: 24px;
  }

  .contact-method__value {
    font-size: clamp(1.5rem, 1.2rem + 0.6vw, 1.8rem);
  }

  .contact-method--phone .contact-method__value,
  .contact-method--email .contact-method__value,
  .contact-method--line .contact-method__value {
    white-space: nowrap;
    font-size: clamp(1.8rem, 1.4rem + 0.8vw, 2.2rem);
  }
}

@media (max-width: 528px) {
  .contact-method--email .contact-method__value,
  .contact-method--line .contact-method__value {
    white-space: normal;
    text-align: center;
    flex-basis: 100%;
  }
}

.contact-tel a {
  color: #ff0000;
  font-weight: 700;
  text-decoration: none;
}

.line-card {
  background: #edffeb;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 1.2rem;
  text-align: center;
}

.line-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}

@media (max-width: 720px) {
  .contact-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "org"
      "tel"
      "hours";
    row-gap: 1rem;
  }

  .contact-tel {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .contact-card {
    padding: 2.1rem 1.8rem;
  }
}

.agency-insurer {
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  padding: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.3rem, 1.1rem + 0.3vw, 1.6rem);
  line-height: 1.5;
}

.agency-insurer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
}

.info-block {
  flex: 1 1 0;
  max-width: 500px;
}

.info-name {
  font-size: inherit;
  margin: 0;
  font-weight: 400;
}

.info-name::before {
  content: "\3010";
  margin-right: 0.25em;
}

.info-name::after {
  content: "\3011";
  margin-left: 0.25em;
}

.info-block p,
.info-block address {
  margin: 0;
  font-style: normal;
}

.info-block p:last-of-type {
  margin-bottom: 0.6rem;
}

@media (max-width: 768px) {
  .agency-insurer .container {
    gap: 0.5rem 1.2rem;
  }

  .info-block {
    flex: 1 1 0;
    max-width: none;
  }
}

.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 1.2rem 0 1.5rem;
  font-size: clamp(1.3rem, 1.1rem + 0.3vw, 1.6rem);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  list-style: none;
  margin: 0 auto 0.8rem;
  padding: 0;
}

.footer-links a {
  color: #fff;
}

.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
}

.footer-mark {
  display: flex;
  justify-content: center;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.copyright {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  text-wrap: pretty;
}
.copyright .serial {
  display: inline;
  margin-left: 0.5em;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .copyright .serial {
    display: block;
    margin: 0.4rem 0 0;
  }
}
.hero,
.content-card,
.cta-grid,
.contact-grid {
  animation: fade-rise 0.7s ease both;
}

@media (max-width: 600px) {
  .qa-row img {
    max-width: 40%;
    height: auto;
  }
}

@media (max-width: 760px) {
  .notice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-tel {
    font-size: 1.9rem;
  }
}

/* ============================
   Policy / Info Pages
   ============================ */

.page-policy .main {
  padding: clamp(2rem, 3vw, 4rem) 0;
  background: #f9fafb;
}

.page-policy .page-title-bar {
  background: linear-gradient(135deg, var(--soft) 0%, #fff 100%);
  border-left: 5px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.6rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-policy .page-title-bar h1 {
  font-size: clamp(2rem, 1.6rem + 0.8vw, 2.8rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  color: var(--ink);
}

.page-policy .breadcrumb {
  padding: 0 0 1.2rem;
  font-size: clamp(1.2rem, 1rem + 0.3vw, 1.4rem);
  color: #888;
}

.page-policy .breadcrumb a {
  color: var(--accent-deep);
  text-decoration: none;
}

.page-policy .breadcrumb a:hover {
  text-decoration: underline;
}

.policy-meta {
  text-align: right;
  font-size: clamp(1.2rem, 1rem + 0.3vw, 1.4rem);
  color: #777;
  margin-bottom: 1.5rem;
  margin-left: auto;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  width: fit-content;
}

.policy-body {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: clamp(2rem, 3vw, 3.5rem);
  font-size: clamp(1.4rem, 1.2rem + 0.3vw, 1.6rem);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.policy-body h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.3vw, 1.8rem);
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 4px solid var(--brand);
  background: linear-gradient(90deg, var(--soft) 0%, transparent 100%);
  border-radius: 0 6px 6px 0;
}

.policy-body h2:first-child {
  margin-top: 0;
}

.policy-body p {
  margin: 0 0 0.8rem;
}

.policy-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.policy-body ul li {
  padding-left: 1.4em;
  text-indent: -1.4em;
  margin-bottom: 0.6rem;
}

.policy-body ul li::before {
  content: "\30FB";
  color: var(--brand);
  font-weight: 700;
  margin-right: 0.3em;
}

.policy-body ol {
  padding-left: 1.6em;
  margin: 0 0 1.2rem;
}

.policy-body .contact-info {
  margin: 1.5rem 0;
  padding: 1.4rem 1.8rem;
  background: var(--soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: inherit;
  line-height: 1.8;
}

/* Data table for policy pages */
.policy-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: inherit;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.policy-table th,
.policy-table td {
  padding: 1rem 1.4rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e8e8e8;
}

.policy-table tr:last-child th,
.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table th {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe8cc 100%);
  font-weight: 600;
  white-space: nowrap;
  color: #5d4e37;
  border-right: 1px solid #e8e8e8;
}

.policy-table td {
  background: #fff;
}

.policy-table tr:nth-child(even) td {
  background: #fafafa;
}

@media (max-width: 600px) {
  .policy-table {
    border-radius: var(--radius-sm);
  }

  .policy-table th,
  .policy-table td {
    display: block;
    width: 100%;
  }

  .policy-table th {
    border-bottom: none;
    border-right: none;
    padding-bottom: 0.4rem;
  }

  .policy-table td {
    border-bottom: 1px solid #e8e8e8;
    padding-top: 0.4rem;
  }

  .policy-table tr:last-child td {
    border-bottom: none;
  }

  .policy-body {
    padding: clamp(1.4rem, 2.5vw, 2rem);
  }
}

/* Numbered list for hikakusuishou */
.policy-body .numbered-item {
  padding-left: 2em;
  text-indent: -2em;
  margin-bottom: 0.4rem;
}

.policy-body .sub-list {
  margin: 0.8rem 0 0.8rem 1.6em;
  padding: 1rem 1.4rem;
  background: #f8fafb;
  border-radius: 8px;
  border: 1px solid #eef1f3;
}

.policy-body .sub-list p {
  margin-bottom: 0.4rem;
}

.policy-body .sub-list p:last-child {
  margin-bottom: 0;
}

.policy-body .sub-list li {
  padding-left: 0;
  text-indent: 0;
  margin-bottom: 0.3rem;
}

.policy-body .sub-list li::before {
  content: none;
}

/* ============================
   Product Pages
   (hoikuen-hoken, youchien-hoken)
   ============================ */

/* Breadcrumb */
.page-product .breadcrumb {
  padding: 0 0 1rem;
  font-size: clamp(1.2rem, 1rem + 0.3vw, 1.4rem);
  color: #888;
}

.page-product .breadcrumb a {
  color: var(--accent-deep);
  text-decoration: none;
}

.page-product .breadcrumb a:hover {
  text-decoration: underline;
}

/* Highlight text */
.highlight-red {
  color: #e00;
  font-weight: 700;
}

/* Product card (insurance product hero) */
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--product-blue);
  margin-bottom: 2rem;
}

.product-card__header {
  display: flex;
  background: var(--product-blue);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.3rem + 0.4vw, 1.8rem);
  line-height: 1.4;
}

.product-card__header > div {
  flex: 1;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__header > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.product-card__header .product-card__col-pamphlet {
  flex: 0 0 22%;
}

.product-card__body {
  display: flex;
  background: #FFF4EA;
}

.product-card__body > div {
  padding: clamp(1.2rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-card__body > div + div {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.product-card__col-info { flex: 1; }
.product-card__col-apply { flex: 1; }
.product-card__col-pamphlet { flex: 0 0 22%; }

.product-card__badge {
  display: inline-block;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 0.6vw, 1.9rem);
  padding: 0.3rem 1.2rem;
  border-radius: 999px;
  margin: 0 0 0.6rem;
}

.product-card__name {
  font-size: clamp(2.2rem, 1.8rem + 0.8vw, 3rem);
  font-weight: 700;
  margin: 0 0 0.8rem;
  line-height: 1.3;
}

.product-card__name a {
  color: var(--ink);
  text-decoration: none;
}

.product-card__name a:hover {
  color: var(--brand-deep);
}

.product-card__sub {
  font-size: clamp(1.3rem, 1.1rem + 0.3vw, 1.5rem);
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.product-card__cta {
  display: inline-block;
  margin: 0.5rem 0;
}

.product-card__cta img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* CTA buttons (replacing image buttons) */
.btn-cta {
  display: inline-block;
  max-width: 300px;
  width: 100%;
  padding: 0.9rem 2rem;
  background: #d40000;
  color: #ffe500;
  font-size: clamp(1.8rem, 1.5rem + 0.5vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  line-height: 1.4;
  transition: opacity 0.2s;
}

.btn-cta:hover {
  opacity: 0.85;
}

.btn-cta--large {
  max-width: 350px;
  padding: 1.2rem 2rem;
  font-size: clamp(2rem, 1.6rem + 0.6vw, 2.6rem);
}

.product-card__period {
  font-size: clamp(1.6rem, 1.2rem + 0.6vw, 1.9rem);
  color: var(--muted);
  margin: 0.3rem 0 0;
}

.product-card__note {
  font-size: clamp(1.4rem, 1.2rem + 0.3vw, 1.6rem);
  margin: 0.5rem 0;
  line-height: 1.6;
}

.product-card__note a {
  color: var(--accent-deep);
}

.product-card__prev-year {
  font-size: clamp(1.4rem, 1.2rem + 0.3vw, 1.6rem);
  margin: 0.3rem 0 0;
}

.product-card__pamphlet-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border: 2px solid var(--product-blue);
  padding: 4px;
  background: #fff;
  border-radius: 6px;
  transition: box-shadow 0.2s;
}

.product-card__pamphlet-img:hover {
  box-shadow: 0 4px 16px rgba(84, 159, 216, 0.3);
}

.product-card__dl-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.8rem;
  font-size: clamp(1.2rem, 1rem + 0.3vw, 1.4rem);
  font-weight: 600;
  color: var(--product-blue);
}

.product-card__dl-label svg {
  flex-shrink: 0;
}

.product-card__col-pamphlet a:hover .product-card__dl-label {
  text-decoration: underline;
}

.product-card__desc {
  font-size: inherit;
  line-height: 1.7;
  margin: 0.5rem 0 0;
}

/* "Other coverage" text */
.other-coverage {
  text-align: center;
  margin: 1.5rem 0 0;
}

.other-coverage a {
  color: var(--accent-deep);
  font-weight: 600;
}

/* Disclaimer text */
.product-disclaimer {
  font-size: clamp(1.2rem, 1rem + 0.3vw, 1.4rem);
  line-height: 1.8;
  color: #666;
  margin: 0;
}

.product-disclaimer a {
  color: var(--accent-deep);
}

/* Comparison cards (jpnsport) */
.comparison-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
}

.comparison-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.comparison-card__header {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 0.8rem 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.comparison-card__body {
  padding: clamp(1.2rem, 2vw, 2rem);
  background: #fff;
  display: grid;
  gap: 1.2rem;
}

.comparison-card__body img {
  margin: 0 auto;
}

/* Data table (jpnsport) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: inherit;
  line-height: 1.6;
}

.data-table th,
.data-table td {
  border: 1px solid #ccc;
  padding: 0.8rem 1rem;
  vertical-align: top;
}

.data-table th {
  background: var(--soft);
  font-weight: 600;
  text-align: center;
}

.data-table .row-header {
  background: #b6ccc9;
  text-align: center;
  font-weight: 600;
  vertical-align: middle;
}

.comparison-card__body p {
  margin: 0;
}

/* Flow steps (nagare) */
.flow-steps {
  max-width: min(80%, 880px);
  margin: 0 auto;
}

.flow-arrow {
  display: block;
  width: 0;
  height: 0;
  margin: 0.8rem auto;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-top: 22px solid #f39800;
}

/* Product banners (thankyou / failed pages) */
.product-banners {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.product-banners__link {
  flex: 1 1 45%;
  display: block;
  padding: 1rem 1.5rem;
  font-size: clamp(1.6rem, 1.3rem + 0.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  transition: opacity 0.2s;
}

.product-banners__link:hover {
  opacity: 0.85;
}

.product-banners__link--hoikuen {
  background: #004b97;
}

.product-banners__link--hoikuen strong {
  color: #ffe500;
}

.product-banners__link--youchien {
  background: #006838;
}

.product-banners__link--youchien strong {
  color: #ffe500;
}

/* Product page responsive */
@media (max-width: 768px) {
  .product-card__header {
    display: none;
  }

  .product-card__body {
    flex-direction: column;
  }

  .product-card__body > div + div {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .product-card__pamphlet-img {
    max-width: 160px;
  }

  .flow-steps {
    max-width: 100%;
  }
}

/* ============================
   Contact Form Page Styles
   Modern / Minimal Design
   ============================ */

/* Page background */
.page-contact .main {
  background: #f5f6fa;
  padding-bottom: 3rem;
}

.page-contact .container {
  max-width: var(--content-max);
}

/* Breadcrumb */
.page-contact .breadcrumb {
  padding: 1.2rem 0;
  font-size: clamp(1.2rem, 1rem + 0.3vw, 1.4rem);
  color: #888;
}

.page-contact .breadcrumb a {
  color: var(--accent-deep);
  text-decoration: none;
}

.page-contact .breadcrumb a:hover {
  text-decoration: underline;
}

/* Page title */
.page-title-bar {
  background: linear-gradient(135deg, var(--soft) 0%, #fff 100%);
  border-left: 5px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.6rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-title-bar h1 {
  font-size: clamp(2.2rem, 1.8rem + 0.8vw, 2.8rem);
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Intro text */
.form-intro {
  margin: 0 0 2.5rem;
  color: var(--muted);
  background: #fff;
  padding: 1rem 1.6rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ---- Card-based form step ---- */
.form-step {
  margin-bottom: 1.5rem;
}

.form-step-grid {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

.form-step-grid + .form-step-grid {
  border-top: none;
  border-radius: var(--radius);
  margin-top: 0.75rem;
}

/* Step label becomes a card header */
.form-step-label {
  background: #fff;
  padding: 1.8rem 2.4rem 0.6rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #eef0f4;
}

.form-step-label p {
  margin: 0;
  font-weight: 600;
  font-size: inherit;
  color: var(--ink);
}

.form-step-label img {
  max-width: 160px;
  height: auto;
  border-radius: 8px;
}

/* Step content is the card body */
.form-step-content {
  background: #fff;
  padding: 2rem 2.4rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- Form table (label | input rows) ---- */
.form-table {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(120px, 28%) 1fr;
  border-bottom: 1px solid #eef0f4;
}

.form-row:last-child {
  border-bottom: none;
}

.form-row-label {
  background: #fafbfd;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: inherit;
  color: #444;
  border-right: 1px solid #eef0f4;
}

.form-row-content {
  background: #fff;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- Name fields ---- */
.name-fields {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.name-fields > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.name-fields input {
  width: 200px;
  max-width: 100%;
}

.name-fields .example {
  font-size: 0.85em;
  color: #999;
  margin-top: 0.3em;
}

/* ---- Confirmed facility fields ---- */
.confirmed-fields {
  display: grid;
  gap: 0.8rem;
}

.confirmed-field {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.6rem;
  align-items: center;
}

.confirmed-field-label {
  font-size: 0.95em;
  font-weight: 500;
  color: #666;
}

/* ---- Radio group ---- */
.radio-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.radio-group label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: #f5f6fa;
  border: 1.5px solid #dde0e8;
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.radio-group label:hover {
  border-color: var(--accent);
  background: #f0f5ff;
}

.radio-group input[type="radio"]:checked + span,
.radio-group label:has(input:checked) {
  border-color: var(--accent-deep);
  background: #e8f1fb;
}

/* ---- Checkbox groups ---- */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.checkbox-item:hover {
  background: #f0f5ff;
}

.checkbox-item strong {
  font-weight: 500;
}

.checkbox-sub {
  margin: -0.2rem 0 0 3.4rem;
  font-size: 0.9em;
  color: #777;
}

/* ---- Insurance description box ---- */
.insurance-description {
  background: #f8f9fc;
  border: none;
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.4rem;
  border-radius: 0 10px 10px 0;
  margin: 0.3rem 0 1rem 3.4rem;
  line-height: 1.7;
  font-size: 0.92em;
  color: #555;
}

/* ---- Alert / error box ---- */
.alert--error {
  background-color: #fef2f2;
  color: var(--danger);
  padding: 1.4rem 1.6rem;
  text-align: center;
  border-radius: 12px;
  margin-top: 1rem;
  border: 1px solid #fecaca;
  font-weight: 500;
}

/* ---- Notice box ---- */
.notice-box {
  background-color: #fefce8;
  border: 1px solid #fde68a;
  padding: 1.2rem 1.4rem;
  border-radius: 10px;
  line-height: 1.7;
  font-size: 0.95em;
}

/* ---- Form arrow ---- */
.form-arrow {
  text-align: center;
  padding: 1rem 0;
  color: var(--brand);
  animation: bounce-down 1.8s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---- Contact box (existing customer) ---- */
.contact-box {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 2.4rem 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-box p {
  margin: 0.3em 0;
}

.contact-box .phone-number {
  font-size: 1.8em;
  margin: 0.6em 0;
}

.contact-box .phone-number a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.contact-box .phone-number a:hover {
  text-decoration: underline;
}

.contact-box .tel-label {
  color: var(--brand-deep);
  font-size: 0.45em;
}

.existing-customer-notice {
  text-align: center;
  font-size: 1.2em;
  padding: 2rem 0 1rem;
  margin: 0;
}

/* ---- Form inputs ---- */
.page-contact input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="image"]),
.page-contact select,
.page-contact textarea {
  font-family: inherit;
  font-size: clamp(1.6rem, 1.2rem + 0.6vw, 1.9rem);
  color: var(--ink);
  padding: 0.75rem 1rem;
  line-height: 1.5;
  box-sizing: border-box;
  background-color: #fff;
  border: 2px solid #b0b5c3;
  border-radius: 10px;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.page-contact input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="image"]):hover,
.page-contact select:hover,
.page-contact textarea:hover {
  border-color: #8a90a0;
}

.page-contact input:focus:not([type="image"]):not([type="submit"]),
.page-contact select:focus,
.page-contact textarea:focus {
  background-color: #f0f7ff;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 4px rgba(47, 127, 184, 0.2);
  outline: none;
}

/* ---- Custom checkbox ---- */
.page-contact [type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #c5c8d4;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}

.page-contact [type="checkbox"]:hover {
  border-color: var(--accent);
}

.page-contact [type="checkbox"]:checked {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.page-contact [type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---- Select disabled option (group headers) ---- */
.page-contact select option[disabled] {
  color: var(--brand-deep);
  font-weight: 700;
}

/* ---- Select styling ---- */
.page-contact select {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239098a8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
  max-width: 100%;
}

/* ---- Action buttons ---- */
.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95em;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.action-button--add {
  background: var(--accent-deep);
  color: #fff;
}

.action-button--add:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.action-button--remove {
  background: #e8eaef;
  color: #666;
}

.action-button--remove:hover {
  background: #dcdfe6;
}

.hoikuen-confirmed-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0;
}

.hoikuen-confirmed-title {
  font-weight: 600;
  color: var(--ink);
}

/* ---- Step badge ---- */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.1rem, 0.9rem + 0.3vw, 1.3rem);
  padding: 0.35em 0.9em;
  border-radius: 8px;
  letter-spacing: 0.04em;
  box-shadow: none;
}

/* ---- Submit area ---- */
.form-submit-area {
  text-align: center;
  background: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 3rem 2rem;
  margin-top: 1.5rem;
}

.form-submit-area p {
  margin: 0.1em 0;
  color: #777;
  font-size: 0.95em;
}

/* ---- Submit button ---- */
button.submit-button {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.8rem, 1.4rem + 0.8vw, 2.4rem);
  padding: 1rem 4rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(47, 127, 184, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  margin: 1.2rem 0;
  letter-spacing: 0.04em;
}

button.submit-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 127, 184, 0.3);
}

button.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(47, 127, 184, 0.25);
}

/* ---- Field indicator (validation popup) ---- */
#fieldIndicator {
  position: absolute;
  top: -9999px;
  left: -9999px;
  background: var(--ink);
  padding: 8px 18px;
  font-size: 1.4rem;
  font-weight: 500;
  z-index: 9999;
  display: block;
  visibility: hidden;
  color: #fff;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ---- Form sections animate in / fade out ---- */
.form-section {
  animation: fade-rise 0.4s ease backwards;
  transition: opacity 0.3s ease;
}

.form-step-grid,
.form-table,
.form-row {
  transition: opacity 0.3s ease;
}

/* ---- Test email send ---- */
.testmail-actions {
  margin-top: 0.8rem;
}

.btn-testmail {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.6rem 1.6rem;
  font-size: clamp(1.3rem, 1.1rem + 0.3vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-testmail:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.btn-testmail:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-testmail--success {
  background: var(--success);
}

.testmail-note {
  margin: 0.8rem 0 0;
  padding: 1rem 1.2rem;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 0.92em;
  line-height: 1.6;
}

.testmail-result {
  margin: 0.8rem 0 0;
  padding: 1rem 1.2rem;
  background: #f0f5ff;
  border: 1px solid #bbd4f0;
  border-radius: 10px;
  font-size: 0.95em;
  line-height: 1.6;
}

.testmail-error {
  color: var(--danger);
  font-weight: 600;
}

.testmail-sending {
  color: var(--accent-deep);
  font-weight: 500;
}

.testmail-success {
  color: var(--success);
  font-weight: 600;
}

.testmail-next {
  color: var(--success);
  font-weight: 600;
}

.text-red {
  color: var(--danger);
}

/* Submit button alert state (testmail lock) */
button.submit-button.btn-submit--alert {
  background: #999;
  box-shadow: none;
  cursor: not-allowed;
}

button.submit-button.btn-submit--alert:hover {
  transform: none;
  box-shadow: none;
}

/* ============================
   Contact Form Responsive
   ============================ */
@media (max-width: 760px) {
  .form-step-label {
    padding: 1.4rem 1.6rem 0.5rem;
  }

  .form-step-content {
    padding: 1.4rem 1.6rem 1.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row-label {
    padding: 1rem 1.4rem 0.3rem;
    background: #fff;
    border-right: none;
    border-bottom: none;
    color: var(--accent-deep);
  }

  .form-row-content {
    padding: 0.5rem 1.4rem 1.2rem;
  }

  .confirmed-field {
    grid-template-columns: 1fr;
  }

  .insurance-description {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .form-step-label {
    padding: 1.2rem 1.2rem 0.4rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .form-step-content {
    padding: 1rem 1.2rem 1.6rem;
  }

  .name-fields {
    flex-direction: column;
    width: 100%;
  }

  .name-fields input {
    width: 100%;
  }

  .contact-box .phone-number {
    font-size: 1.4em;
  }

  button.submit-button {
    padding: 1rem 2.5rem;
    width: 100%;
  }
}

/* ---- Skip-to-content ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 2000;
  padding: 0.8rem 1.6rem;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* ---- Contact form: full-width fields ---- */
.page-contact .form-row-content > input[type="text"],
.page-contact .form-row-content > input[type="email"],
.page-contact .form-row-content > input[type="tel"],
.page-contact .confirmed-field input,
.page-contact .form-step-content textarea,
.page-contact .form-row-content textarea {
  width: 100%;
}

.page-contact textarea.textarea-sm {
  height: 100px;
}

.page-contact textarea.textarea-lg {
  height: 166px;
}

/* ---- Contact form utility classes ---- */
.member-question-text {
  margin: 1em 0 0.5em;
}

.step-guide-text {
  color: #666;
  font-size: 0.9em;
}

.confirmed-divider {
  border-top: 1px solid #ccc;
  margin: 8px 0;
}

.add-actions {
  text-align: left;
  margin-top: 6px;
}

.pamphlet-thumb {
  border: 2px solid var(--product-blue);
  padding: 5px;
  background-color: #fff;
  display: inline-block;
}

.text-green {
  color: green;
}

.text-lg {
  font-size: 120%;
}

.text-sm {
  font-size: 80%;
}

.link-blue {
  color: blue;
}

.qr-img {
  margin: 0.5em auto;
}

/* Inline images inside table cells (override global display:block) */
.policy-table .inline-img {
  display: inline;
  vertical-align: middle;
}

.policy-table .inline-img + .inline-img {
  margin-left: 0.5em;
}

/* ---- 自治体案内パネル ---- */
.jichitai-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 3vw, 3rem);
  margin-top: 1.5rem;
}

.jichitai-panel-title {
  font-size: clamp(1.8rem, 1.4rem + 0.6vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.6rem;
  text-align: center;
}

.jichitai-lead {
  text-align: center;
  margin: 0 0 1.8rem;
  color: var(--muted);
}

.jichitai-option {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: #f8f9fc;
  border-radius: var(--radius-sm);
  border: 1px solid #e8eaf0;
}

.jichitai-option-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
  border-radius: 50%;
}

.jichitai-option-body {
  flex: 1;
  min-width: 0;
}

.jichitai-option-title {
  font-size: clamp(1.5rem, 1.2rem + 0.4vw, 1.8rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.8rem;
}

.jichitai-sub {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--muted);
}

.jichitai-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
  font-size: 0.95em;
  line-height: 1.65;
}

.jichitai-dl dt {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.jichitai-dl dt::after {
  content: "：";
}

.jichitai-dl dd {
  margin: 0;
  color: var(--muted);
}

.jichitai-note {
  font-size: 1em;
  color: var(--danger);
}

.jichitai-notice {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  text-align: center;
  line-height: 1.8;
  color: var(--danger);
  font-weight: 500;
}

.jichitai-notice p {
  margin: 0;
}

.jichitai-notice-agent {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e8a0a0;
  text-align: center;
}

.jichitai-notice-agent-label {
  font-size: 0.85em;
  color: #b45555;
  margin: 0 0 0.1rem;
}

.jichitai-notice-agent-name {
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 0.4vw, 1.8rem);
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.jichitai-notice-agent-tel {
  margin: 0;
  font-size: clamp(1.6rem, 1.3rem + 0.5vw, 2rem);
  color: var(--ink);
}

.jichitai-notice-agent-tel a {
  color: var(--phone-red);
  text-decoration: none;
}

.jichitai-notice-agent-tel a:hover {
  text-decoration: underline;
}

.jichitai-cta {
  text-align: center;
  margin-top: 1rem;
}

.jichitai-online-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 0.5vw, 1.9rem);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(240, 127, 59, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.03em;
}

.jichitai-online-button:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240, 127, 59, 0.35);
}

@media (max-width: 600px) {
  .jichitai-option {
    flex-direction: column;
    gap: 0.6rem;
  }

  .jichitai-dl {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .jichitai-dl dt {
    margin-top: 0.4rem;
  }

  .jichitai-dl dt::after {
    content: "";
  }

  .jichitai-dl dd {
    padding-left: 1rem;
  }

  .jichitai-online-button {
    width: 100%;
    padding: 1rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* reCAPTCHA v3 badge — テキスト帰属表示に置き換えるため非表示 */
.grecaptcha-badge { visibility: hidden !important; }
