:root {
  --blue: #0d4aa5;
  --blue-deep: #0a3783;
  --blue-light: #eaf2ff;
  --border: #cfdcf2;
  --text: #22314d;
  --muted: #5b6b87;
  --bg: #ffffff;
  --soft: #f6f8fc;
  --soft-2: #eff3f9;
  --danger: #e12b2b;
  --shadow: 0 14px 36px rgba(18, 55, 121, 0.08);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9fd 0%, #ffffff 20%, #ffffff 100%);
  line-height: 1.8;
}

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

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

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

/* =========================
   Header
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /*background: rgba(13, 74, 165, 0.98);*/
  background: rgba(245, 245, 245, 0.95);
  box-shadow: 0 10px 26px rgba(7, 38, 90, 0.18);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
}

.site-logo img {
  width: 230px;
}

.global-nav ul {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav a {
  color: #2f3948;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 54px;
  padding: 0 24px;
  color: var(--blue);
  background: #fff;
  font-weight: 800;
  border: 1px solid #fff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 44px;
  height: 44px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background: #2f3948;
  transition: transform .3s ease, opacity .3s ease;
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 34px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 16%, rgba(255,255,255,.85), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.65), transparent 28%),
    linear-gradient(180deg, #edf3fc 0%, #eef3fb 55%, #f4f7fb 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 120px;
  width: 700px;
  height: 340px;
  background: radial-gradient(circle at center, rgba(74,141,255,.20), rgba(74,141,255,0) 65%);
  filter: blur(18px);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 20px;
  align-items: center;
}

.hero-copy {
  padding: 36px 0 44px 28px;
}

.hero-kicker,
.hero h1,
.hero-sub {
  font-family: "Cormorant Garamond", serif;
  color: var(--blue);
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 500;
  line-height: .96;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: .98;
  font-weight: 500;
}

.hero h1 span {
  font-size: 1.06em;
}

.hero-sub {
  margin: 14px 0 18px;
  font-size: clamp(20px, 2vw, 32px);
  letter-spacing: .14em;
}

.hero-lead {
  margin: 0;
  color: #334a70;
  font-size: 19px;
  line-height: 2;
}

.hero-visual {
  position: relative;
  z-index: 1;
  padding: 10px 0 0;
}

.hero-visual img {
  width: min(100%, 590px);
  margin-left: auto;
  filter: drop-shadow(0 20px 40px rgba(11, 52, 119, 0.16));
}

/* =========================
   Hero Points
========================= */
.points-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 10px;
  justify-items: center;
}

.point-circle {
  width: 100%;
  display: flex;
  justify-content: center;
}

.point-circle__inner {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border: 2px solid #b8ccef;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 42px 34px;
  position: relative;
  box-shadow: 0 0 22px rgba(184, 204, 239, 0.8);
}

.point-circle__inner::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(112, 149, 214, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.point-num-circle {
  width: 74px;
  height: 74px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1;
  color: var(--blue);
  background: #fff;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.point-circle h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.45;
  color: var(--blue);
}

.point-circle p {
  margin: 0;
  font-size: 15px;
  color: #364967;
  line-height: 1.9;
}

/* =========================
   Common Cards
========================= */
.section-card,
.clinic-card,
.flow-card,
.price-card,
.faq-item {
  background: rgba(255,255,255,0.96);
  /*border: 1px solid rgba(204, 220, 244, 0.95);*/
  box-shadow: var(--shadow);
}

/* =========================
   Sections
========================= */
.section {
  padding: 34px 0;
}

.section-soft {
  background: linear-gradient(180deg, var(--soft) 0%, #f9fbff 100%);
}

.section-alt {
  background: linear-gradient(180deg, var(--soft-2) 0%, #f8fbff 100%);
}

.section-card {
  padding: 28px 28px 30px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-index {
  width: 34px;
  height: 34px;
  border: 2px solid #8aaee8;
  color: var(--blue);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: #fff;
  border-radius: 50%;
}

.section-head h2 {
  margin: 0;
  color: var(--blue);
  font-size: 34px;
  line-height: 1.35;
}

.section-copy p,
.clinic-body p,
.info-list,
.faq-answer {
  font-size: 16px;
  color: #364967;
}

/* =========================
   About
========================= */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr .85fr;
  gap: 32px;
  align-items: center;
}

.about-visual img {
  width: 100%;
}

/* =========================
   Reserve band
========================= */
.reserve-frame-band {
  padding: 28px 0 0;
}

.reserve-header {
  text-align: center;
  margin-bottom: 16px;
}

.reserve-header h3 {
  margin: 0 0 6px;
  font-size: 30px;
  color: var(--blue);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.reserve-header p {
  margin: 0;
  font-size: 15px;
  color: #4f6285;
}

.iframe-wrapper {
  border: 1px solid #d7e3f6;
  background: #fff;
  padding: 14px;
  overflow: hidden;
}

.iframe-wrapper iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
}

/* =========================
   Comparison
========================= */
.comparison-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
}

.yadtable{
  display: block !important;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #c7d7f2;
  padding: 16px 12px;
  text-align: center;
  font-size: 15px;
  background: #fff;
}

.comparison-table thead th {
  background: #edf4ff;
  color: var(--blue);
  font-weight: 800;
}

.comparison-table thead th.accent {
  background: linear-gradient(180deg, var(--blue) 0%, #2562c0 100%);
  color: #fff;
}

.comparison-table tbody th {
  width: 160px;
  background: #f8fbff;
  color: #355081;
}

.comparison-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid #9cb9e9;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  text-align: center;
}

.comparison-message p {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.8;
}

.comparison-message small {
  color: #687a97;
}

/* =========================
   Flow
========================= */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flow-card {
  padding: 24px 20px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-num-circle {
  width: 64px;
  height: 64px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1;
  color: var(--blue);
  background: #fff;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.flow-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f4f8ff;
  border: 1px solid #d7e4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.flow-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-card h3 {
  margin: 16px 0 8px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.45;
}

.flow-card p {
  margin: 0;
  font-size: 15px;
  color: #364967;
  line-height: 1.85;
}

/* =========================
   Price
========================= */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price-card {
  padding: 18px 20px 22px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.price-card h3 {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce7f8;
  color: var(--blue);
  font-size: 28px;
}

.price-main {
  margin-top: 24px;
  font-size: clamp(34px, 4.3vw, 62px);
  font-weight: 500;
}

.price-main span,
.price-sale span {
  font-size: .55em;
}

.price-old {
  margin-top: 18px;
  font-size: 32px;
  color: #333;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}

.price-label {
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.price-sale {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  color: var(--danger);
  font-weight: 500;
}

.price-note {
  text-align: right;
  margin: 12px 4px 0 0;
  color: #637490;
  font-size: 14px;
}

.medical-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* =========================
   Clinics
========================= */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.clinic-card {
  overflow: hidden;
}

.clinic-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.clinic-body {
  padding: 18px 18px 20px;
}

.clinic-body h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--blue);
  line-height: 1.4;
}

.clinic-body p {
  margin: 6px 0;
}

.clinic-btns {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

/* =========================
   Buttons
========================= */
.btn {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  font-weight: 800;
  border: 2px solid var(--blue);
  text-align: center;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-outline {
  color: var(--blue);
  background: #fff;
}

/* =========================
   FAQ
========================= */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
  background: #fff;
}

.faq-item summary {
  position: relative;
  list-style: none;
  padding: 22px 68px 22px 24px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 22px;
  border-top: 1px solid #e3ecfa;
}

/* =========================
   Clinic Info
========================= */
.clinic-info-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.clinic-info-photo img,
.clinic-map img {
  width: 100%;
}

.clinic-info-body h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 30px;
  line-height: 1.4;
}

.info-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.info-list li {
  margin-bottom: 8px;
}

.info-list strong {
  display: inline-block;
  width: 88px;
  color: var(--blue);
}

.clinic-schedule {
  width: 100%;
  border-collapse: collapse;
}

.clinic-schedule th,
.clinic-schedule td {
  border: 1px solid #cad9f0;
  padding: 10px 8px;
  text-align: center;
  background: #fff;
}

.clinic-schedule thead th {
  background: #eff5ff;
  color: #355081;
}

.clinic-schedule tbody th {
  background: #f7fbff;
  white-space: nowrap;
}

/* =========================
   Footer
========================= */
.site-footer {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  padding: 30px 0;
  color: #fff;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 1em;
}

/* =========================
   To top
========================= */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 62, 140, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================
   Reveal
========================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: .08s;
}

.delay-2 {
  transition-delay: .16s;
}

.delay-3 {
  transition-delay: .24s;
}

.delay-4 {
  transition-delay: .32s;
}

/* =========================
   Mobile CTA
========================= */
.mobile-fixed-cta {
  display: none;
}

.mobile-fixed-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;
  box-shadow: 0 8px 18px rgba(9, 43, 103, 0.18);
}

.mobile-fixed-cta__btn--web {
  background: var(--blue);
  color: #fff;
}

.mobile-fixed-cta__btn--line {
  background: #12b74f;
  color: #fff;
}

.mobile-fixed-cta__btn--tel {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}

/* =========================
   Responsive
========================= */
@media (max-width: 1180px) {
  .global-nav ul {
    gap: 18px;
  }

  .global-nav a {
    font-size: 13px;
  }

  .section-head h2,
  .price-card h3 {
    font-size: clamp(20px, 2.2vw, 30px);
  }

  .clinic-info-body h3 {
    font-size: clamp(24px, 3vw, 34px);
  }

  .clinic-body h3 {
    font-size: clamp(18px, 2vw, 24px);
  }

  .point-circle__inner {
    max-width: 310px;
    padding: 36px 26px;
  }

  .point-circle h2 {
    font-size: 22px;
  }

  .point-circle p {
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto auto;
    gap: 12px;
    min-height: 76px;
  }

  .site-logo img {
    width: 196px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .header-cta {
    display: none;
  }

  .global-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    /*background: var(--blue);*/
    background: rgba(245, 245, 245, 0.95);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  .global-nav.is-open {
    max-height: 480px;
  }

  .global-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 0 20px;
  }

  .global-nav a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }

  .hero-inner,
  .about-layout,
  .comparison-layout,
  .clinic-info-layout,
  .price-grid,
  .clinic-grid,
  .flow-grid,
  .points-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 18px 0 0;
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-visual img {
    margin: 0 auto;
  }

  .comparison-message {
    min-height: 180px;
  }

  .clinic-info-photo,
  .clinic-map {
    max-width: 440px;
  }

  .points-grid {
    gap: 18px;
  }

  .point-circle__inner {
    max-width: 360px;
  }
}

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

  .site-header {
    padding: 0;
  }

  .header-inner {
    min-height: 68px;
  }

  .site-logo img {
    width: 168px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-kicker {
    font-size: 28px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .hero-sub {
    font-size: 17px;
    margin: 6px 0 10px;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .section-card,
  .clinic-card,
  .faq-item,
  .flow-card,
  .price-card,
  .point-circle__inner {
    box-shadow: 0 10px 28px rgba(18, 55, 121, 0.07);
  }

  .point-circle__inner {
    max-width: 100%;
    aspect-ratio: 1 / 1;
    padding: 30px 22px;
  }

  .point-num-circle,
  .flow-num-circle {
    width: 58px;
    height: 58px;
    font-size: 26px;
    margin-bottom: 14px;
  }

  .point-circle h2 {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .point-circle p,
  .flow-card p,
  .section-copy p,
  .clinic-body p,
  .faq-answer,
  .info-list {
    font-size: 14px;
  }

  .section {
    padding: 18px 0;
  }

  .section-card {
    padding: 18px 16px 20px;
  }

  .section-index {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .comparison-table-wrap {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 640px;
  }

  .comparison-message p {
    font-size: 18px;
  }

  .flow-card {
    padding: 18px 14px 20px;
  }

  .flow-image-wrap {
    aspect-ratio: 16 / 10;
  }

  .flow-card h3 {
    font-size: 19px;
    margin: 12px 0 4px;
  }

  .price-card {
    padding: 14px 14px 16px;
  }

  .price-card h3 {
    font-size: 22px;
  }

  .price-old {
    font-size: 24px;
  }

  .price-sale {
    font-size: 44px;
  }

  .price-main {
    font-size: 40px;
  }

  .medical-links {
    flex-direction: column;
  }

  .clinic-body {
    padding: 14px;
  }

  .clinic-body h3 {
    font-size: 20px;
    line-height: 1.35;
  }

  .btn {
    min-height: 44px;
    font-size: 14px;
  }

  .clinic-btns {
    gap: 8px;
  }

  .faq-item summary {
    padding: 16px 50px 16px 16px;
    font-size: 17px;
    line-height: 1.6;
  }

  .faq-item summary::after {
    right: 16px;
    font-size: 28px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .clinic-info-body h3 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .info-list strong {
    display: block;
    width: auto;
    margin-bottom: 2px;
  }

  .clinic-schedule-wrap {
    overflow-x: auto;
  }

  .clinic-schedule {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .clinic-schedule th,
  .clinic-schedule td {
    padding: 7px 4px;
    font-size: 11px;
  }

  .clinic-schedule thead th:first-child,
  .clinic-schedule tbody th {
    width: 74px;
  }

  .site-footer p {
    font-size: 1em;
  }

  body {
    padding-bottom: 86px;
  }

  .mobile-fixed-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1200;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(8, 38, 95, 0.20);
    border: 1px solid rgba(201, 219, 245, 0.95);
  }

  .to-top {
    bottom: 96px;
  }
}

/* =========================
   Medical Tax Simulator
========================= */
.deduction-container {
  margin-top: 28px;
  padding: 36px 32px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border: 1px solid #d7e4f8;
  box-shadow: var(--shadow);
}

.deduction-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.4;
  color: var(--blue);
}

.deduction-desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 2;
  color: #4b5f82;
}

.calc-box {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.input-group select,
.input-group input {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border: 1px solid #cbdcf4;
  background: #fff;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}

.input-group select:focus,
.input-group input:focus {
  border-color: var(--blue);
}

.btn-calc {
  min-width: 180px;
  height: 54px;
  padding: 0 24px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s ease;
}

.btn-calc:hover {
  opacity: 0.9;
}

.calc-result {
  padding: 18px 20px;
  border: 1px solid #d7e4f8;
  background: #fff;
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.7;
}

.calc-result span {
  color: var(--danger);
}

.calc-result small {
  font-size: 14px;
  font-weight: 500;
  color: #5a6f91;
}

.deduction-notice {
  margin-top: 14px;
}

.deduction-notice p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.8;
  color: #6a7c97;
}

.btn-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .calc-box {
    grid-template-columns: 1fr;
  }

  .btn-calc {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .deduction-container {
    margin-top: 22px;
    padding: 22px 16px;
  }

  .deduction-title {
    font-size: 24px;
  }

  .deduction-desc {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 16px;
  }

  .input-group label {
    font-size: 12px;
  }

  .input-group select,
  .input-group input,
  .btn-calc {
    height: 48px;
    font-size: 14px;
  }

  .calc-result {
    padding: 14px 14px;
    font-size: 20px;
    line-height: 1.6;
  }

  .calc-result small {
    font-size: 12px;
  }

  .btn-external {
    width: 100%;
    min-height: 44px;
    font-size: 13px;
  }
}


/* デザイン追加 */
@media (max-width: 640px) {
  /* =========================
     Hero 3ポイント（スマホ）
  ========================= */

  .points-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    align-items: stretch;
  }

  .point-circle {
    width: 100%;
    display: flex;
  }

  .point-circle:nth-child(1) {
    justify-content: flex-start;
  }

  .point-circle:nth-child(2) {
    justify-content: flex-end;
    margin-top: -10px;
  }

  .point-circle:nth-child(3) {
    justify-content: flex-start;
    margin-top: -10px;
  }

  .point-circle__inner {
    width: 250px;
    height: 250px;
    max-width: 250px;
    min-width: 250px;
    aspect-ratio: unset;
    border: 2px solid #b8ccef;
    border-radius: 50%;
    padding: 24px 18px;
    box-shadow: 0 10px 28px rgba(18, 55, 121, 0.3);
  }

  .point-circle__inner::before {
    inset: 12px;
    border-radius: 50%;
  }

  .point-num-circle {
    width: 52px;
    height: 52px;
    font-size: 24px;
    margin-bottom: 10px;
    border-width: 2px;
  }

  .point-circle h2 {
    font-size: 17px;
    line-height: 1.45;
    margin: 0 0 8px;
  }

  .point-circle p {
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
  }

  /* =========================
     バーガーメニュー右寄せ
  ========================= */

  .header-inner {
    display: flex;
    align-items: center;
    min-height: 68px;
    gap: 12px;
  }

  .site-logo {
    flex: 1;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
  }
}

p.flow-gridtext{
  text-align: left;
}


/* =========================
   Trouble Visual Section
   フル差し替え版（左テキスト位置調整）
========================= */

.trouble-visual-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #eef7ff 0%, #f7fbff 42%, #ffffff 100%);
}

.trouble-visual-inner {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 640px;
  width: 100%;
}

.trouble-visual-copy {
  position: relative;
  z-index: 2;

  /* ← 左側を少し右へ寄せる */
  padding: 64px 0 56px max(9vw, 120px);

  max-width: 620px;
}

.trouble-visual-copy h2 {
  margin: 0;
  color: #0d4aa5;
  font-family: "Cormorant Garamond", "Noto Sans JP", serif;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .03em;
}

.trouble-visual-copy h2 span {
  display: block;
  color: #2f3948;
  font-size: .62em;
  letter-spacing: .06em;
}

.trouble-line {
  width: 72px;
  height: 3px;
  background: #0d4aa5;
  margin: 24px 0 24px;
}

.trouble-desc {
  margin: 0 0 28px;
  color: #3f4b5d;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .02em;
}

.trouble-list {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.trouble-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d7e6f6;
  box-shadow: 0 8px 20px rgba(18, 55, 121, 0.05);
}

.trouble-check {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 2px solid #9fb4cc;
  background: #fff;
}

.trouble-check::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 1px;
  width: 14px;
  height: 24px;
  border-right: 4px solid #1e67b8;
  border-bottom: 4px solid #1e67b8;
  transform: rotate(45deg);
}

.trouble-item p {
  margin: 0;
  color: #0d4aa5;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
}

.trouble-visual-image {
  position: relative;
  min-height: 640px;
}

.trouble-visual-image::before {
  content: "";
  position: absolute;
  left: -120px;
  top: 0;
  bottom: 0;
  width: 240px;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #f7fbff 0%,
    rgba(247, 251, 255, 0.72) 42%,
    rgba(247, 251, 255, 0) 100%
  );
  pointer-events: none;
}

.trouble-visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/* =========================
   Tablet
========================= */

@media (max-width: 980px) {
  .trouble-visual-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .trouble-visual-copy {
    order: 2;
    padding: 34px 32px 38px;
    max-width: none;
  }

  .trouble-visual-image {
    order: 1;
    min-height: 380px;
  }

  .trouble-visual-image::before {
    display: none;
  }

  .trouble-visual-copy h2 {
    font-size: 42px;
  }

  .trouble-desc {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .trouble-item p {
    font-size: 18px;
  }
}

/* =========================
   SP
========================= */

@media (max-width: 640px) {
  .trouble-visual-section {
    background: linear-gradient(180deg, #eef7ff 0%, #ffffff 100%);
  }

  .trouble-visual-image {
    min-height: 280px;
  }

  .trouble-visual-image img {
    object-position: center top;
  }

  .trouble-visual-copy {
    padding: 24px 16px 28px;
  }

  .trouble-visual-copy h2 {
    font-size: 30px;
    line-height: 1.25;
  }

  .trouble-line {
    width: 56px;
    height: 2px;
    margin: 18px 0;
  }

  .trouble-desc {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  .trouble-list {
    gap: 8px;
  }

  .trouble-item {
    gap: 12px;
    min-height: 56px;
    padding: 10px 12px;
  }

  .trouble-check {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }

  .trouble-check::after {
    left: 7px;
    top: 0;
    width: 10px;
    height: 18px;
    border-right-width: 3px;
    border-bottom-width: 3px;
  }

  .trouble-item p {
    font-size: 15px;
    line-height: 1.45;
  }
}


/* =========================
   Safety / Guideline
========================= */

.safety-box {
  display: grid;
  gap: 18px;
}

.safety-item {
  padding: 22px 24px;
  border: 1px solid #d7e4f8;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 20px rgba(18, 55, 121, 0.05);
}

.safety-item h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.5;
}

.safety-item p {
  margin: 0;
  color: #435775;
  font-size: 15px;
  line-height: 2;
}

.safety-item ul {
  margin: 0;
  padding-left: 1.4em;
}

.safety-item li {
  margin-bottom: 10px;
  color: #435775;
  font-size: 15px;
  line-height: 1.9;
}

.safety-item li:last-child {
  margin-bottom: 0;
}

/* =========================
   Responsive
========================= */

@media (max-width: 640px) {
  .safety-box {
    gap: 12px;
  }

  .safety-item {
    padding: 16px 14px;
  }

  .safety-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .safety-item p,
  .safety-item li {
    font-size: 13px;
    line-height: 1.8;
  }
}