:root {
  --navy: #002b5b;
  --navy2: #003a7a;
  --gold: #b7a56b;
  --bg: #f6f8fb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(0, 43, 91, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  padding-bottom: 120px; /* 固定下部バーのための余白調整 */
}

/* アンカーリンクの到達位置調整 */
#steps,
#services,
#pricing,
#access,
#concerns,
#features,
#notice {
  scroll-margin-top: 150px;
}

@media (max-width: 640px) {
  body {
    padding-bottom: 130px; /* スマホ時の余白調整 */
  }
  #steps,
  #services,
  #pricing,
  #access,
  #concerns,
  #features,
  #notice {
    scroll-margin-top: 90px;
  }
}

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

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

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

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.header-top-bar {
  background: #f4f6f9;
  color: var(--navy);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.header-top-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0;
}

.header-top-bar p {
  margin: 0;
}

.header-main .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 15px 0;
}

.header-logo a {
  display: grid;
  gap: 2px;
}

.logo-main {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: 0.06em;
}

.logo-sub {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
  color: var(--navy);
}

.header-nav a {
  transition: opacity .25s ease;
}

.header-nav a:hover {
  opacity: .72;
}

.nav-btn-web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 43, 91, .18);
}

/* Hero */
.hero-official {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #dbe4ef;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center; /* 鍼灸室のドアが見えやすいように調整 */
  image-rendering: auto;
  animation: heroZoom 9s ease-out forwards;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,43,91,0.14), rgba(0,43,91,0.05) 48%, rgba(0,43,91,0.36));
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-copy-vertical {
  width: min(760px, 100%);
  display: grid;
  gap: 22px;
  padding-top: 40px;
}

.copy-band {
  display: inline-block;
  width: fit-content;
  margin-left: auto;
  padding: 10px 18px;
  background: rgba(0,43,91,.58);
  color: white;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.35;
  text-shadow: 0 3px 12px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade .8s ease forwards;
  white-space: nowrap;
  max-width: 100%;
}

.copy-band:nth-child(2) { animation-delay: .18s; }
.copy-band:nth-child(3) { animation-delay: .36s; }

.hero-cta-bar-static {
  position: relative;
  z-index: 2;
  margin-top: -86px;
  padding-bottom: 38px;
}

.cta-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.btn-cta-tel,
.btn-cta-web {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 16px 28px;
  border-radius: 2px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-cta-tel:hover,
.btn-cta-web:hover,
.btn-fixed-tel:hover,
.btn-fixed-web:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 43, 91, .18);
}

.btn-cta-tel {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(183,165,107,.55);
  color: var(--navy);
}

.btn-cta-web {
  background: var(--navy);
  color: white;
}

.cta-label {
  font-size: 13px;
  opacity: .82;
  font-weight: 700;
}

.cta-main {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(23px, 2.3vw, 34px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.35;
}

.cta-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Sections */
section {
  padding: 86px 0;
}

section:nth-of-type(even) {
  background: var(--bg);
}

.section-title {
  margin: 0 0 34px;
  text-align: center;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: .08em;
  line-height: 1.35;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--gold);
  border-radius: 999px;
}

.section-lead {
  width: min(840px, 100%);
  margin: -6px auto 36px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

/* Concerns */
.concerns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.concern-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  box-shadow: 0 10px 26px rgba(0,0,0,.045);
  font-weight: 700;
}

.check-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,43,91,.08);
  color: var(--navy);
  font-weight: 700;
}

/* Authority */
.authority-card {
  background: linear-gradient(135deg, var(--navy), #004b8d);
  color: white;
  border-radius: 28px;
  padding: clamp(30px, 4vw, 54px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.authority-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: -90px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.authority-kicker {
  color: #e8dba2;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 10px;
}

.authority-card h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.45;
  margin: 0;
}

.authority-card p {
  margin: 0;
  font-size: 16px;
  opacity: .95;
  position: relative;
  z-index: 1;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card,
.service-card,
.step-item,
.price-card,
.price-card-primary,
.notice-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.055);
}

.feature-card {
  padding: 28px 24px;
  min-height: 230px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,43,91,.08);
  margin-bottom: 16px;
  font-size: 24px;
}

.feature-card h3,
.service-card h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.5;
}

.feature-card p,
.service-card p,
.step-item p,
.price-desc {
  margin: 0;
  color: #4b5563;
}

/* Services */
.services-main-desc {
  width: min(900px, 100%);
  margin: 0 auto 34px;
  padding: 26px 30px;
  background: #fff;
  border-left: 5px solid var(--navy);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.045);
  font-size: 17px;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 28px 24px 30px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}

.service-num {
  font-family: "Noto Serif JP", serif;
  color: rgba(0,43,91,.13);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

/* Steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

.step-item {
  padding: 28px 20px;
  text-align: center;
  position: relative;
}

.step-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-family: "Noto Serif JP", serif;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,43,91,.18);
}

.step-item h5 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
}

/* Price */
.price-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  width: min(860px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.price-card,
.price-card-primary {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 42px 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.055);
}

.price-card-primary {
  border: 2px solid var(--gold);
  box-shadow: 0 18px 44px rgba(183,165,107,.18);
}

.price-tag {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-bottom: 18px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--gold);
  color: white;
  font-weight: 700;
  font-size: 13px;
}

.price-card .price-tag-placeholder {
  height: 36px;
  margin-bottom: 18px;
}

.price-card h3,
.price-card-primary h3 {
  min-height: 42px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-value {
  min-height: 86px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 0 0 22px;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.price-value span {
  font-size: .48em;
}

.price-value small {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.price-desc {
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.9;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
  color: #4b5563;
}

@media (max-width: 640px) {
  .price-card,
  .price-card-primary {
    min-height: auto;
    padding: 30px 20px;
  }

  .price-value {
    min-height: auto;
    font-size: 48px;
  }

  .price-desc {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .price-card .price-tag-placeholder {
    display: none;
  }
}

.price-notes {  width: min(860px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.price-notes p {
  margin: 2px 0;
}

/* Notice */
.notice-box {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 34px;
  border-left: 6px solid var(--navy);
}

.notice-box h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 24px;
}

.notice-box p {
  margin: 8px 0;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, #f6f8fb, #ffffff) !important;
}

.final-cta .cta-flex {
  width: min(860px, 100%);
  margin: 26px auto 0;
}

/* Footer */
.main-footer {
  background: var(--navy);
  color: white;
}

.footer-top {
  padding: 42px 0;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-logo h3 {
  margin: 0 0 12px;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
}

.footer-address,
.footer-access-meta p {
  margin: 4px 0;
  opacity: .9;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  padding: 14px 0;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

/* Fixed CTA */
.fixed-bottom-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(120%);
  z-index: 1100;
  width: min(760px, calc(100% - 32px));
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  padding: 10px;
  transition: transform .35s ease;
  backdrop-filter: blur(10px);
}

.fixed-bottom-cta.is-visible {
  transform: translateX(-50%) translateY(0);
}

.cta-fixed-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
}

.btn-fixed-tel,
.btn-fixed-web {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-fixed-tel {
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(0,43,91,.22);
  gap: 8px;
}

.btn-fixed-web {
  background: var(--navy);
  color: white;
}

.fixed-cta-note {
  margin: 6px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.btn-fixed-top {
  position: fixed;
  right: 22px;
  bottom: 112px;
  width: 58px;
  height: 58px;
  z-index: 1090;
  display: grid;
  place-items: center;
  gap: 0;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.btn-fixed-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-fixed-top .arrow {
  font-size: 22px;
  line-height: 1;
}

/* Animation */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
  transition-delay: var(--delay, 0s);
}

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

@keyframes heroFade {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

/* Responsive */
@media (max-width: 980px) {
  .header-top-bar .container {
    flex-direction: column;
    gap: 0;
  }

  .header-nav {
    display: none;
  }

  .hero-official {
    min-height: 590px;
  }

  .hero-content-wrapper {
    min-height: 500px;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 116px;
  }

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

  .copy-band {
    margin-left: 0;
    font-size: clamp(24px, 6vw, 40px);
  }

  .hero-cta-bar-static {
    margin-top: -104px;
  }

  .feature-grid,
  .concerns-grid,
  .service-row {
    grid-template-columns: 1fr 1fr;
  }

  .steps-container {
    grid-template-columns: 1fr 1fr;
  }

  .authority-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 112px;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-top-bar {
    display: none;
  }

  .header-main .header-container {
    padding: 12px 0;
  }

  .logo-main {
    font-size: 22px;
  }

  .logo-sub {
    font-size: 12px;
  }

  .hero-official {
    min-height: 560px;
  }

  .hero-bg img {
    object-position: 35% center;
  }

  .hero-bg::after {
    background: linear-gradient(180deg, rgba(0,43,91,.12), rgba(0,43,91,.48));
  }

  .hero-content-wrapper {
    min-height: 458px;
    padding-bottom: 132px;
  }

  .hero-copy-vertical {
    gap: 12px;
  }

  .copy-band {
    width: 100%;
    font-size: 25px;
    padding: 9px 12px;
    letter-spacing: .03em;
  }

  .hero-cta-bar-static {
    display: none;
  }

  section {
    padding: 62px 0;
  }

  .section-title {
    margin-bottom: 28px;
  }

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

  .concerns-grid,
  .feature-grid,
  .service-row,
  .steps-container,
  .price-cards,
  .cta-flex {
    grid-template-columns: 1fr;
  }

  .concern-card {
    min-height: 64px;
    padding: 15px 16px;
  }

  .feature-card,
  .service-card,
  .step-item,
  .price-card,
  .price-card-primary,
  .notice-box {
    padding: 22px 18px;
  }

  .services-main-desc {
    padding: 20px 18px;
    font-size: 15px;
  }

  .footer-flex {
    flex-direction: column;
  }

  .fixed-bottom-cta {
    bottom: 8px;
    width: calc(100% - 18px);
    border-radius: 14px;
    padding: 8px;
  }

  .cta-fixed-container {
    grid-template-columns: 1fr 1fr;
  }

  .btn-fixed-tel,
  .btn-fixed-web {
    min-height: 50px;
    font-size: 14px;
  }

  .btn-fixed-tel .text {
    display: none;
  }

  .btn-fixed-tel::after {
    content: "電話";
  }

  .btn-fixed-top {
    right: 12px;
    bottom: 110px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .fade-up,
  .copy-band {
    opacity: 1 !important;
    transform: none !important;
  }
}
