:root {
  --bg: #ffffff;
  --bg-soft: #f3f9fd;
  --bg-blue: #e8f5fb;
  --text: #1f2937;
  --muted: #607080;
  --line: #d6e5ee;
  --primary: #2f80c9;
  --primary-deep: #1769a8;
  --accent: #2aa7a0;
  --accent-deep: #177d79;
  --warm: #f7f0e6;
  --shadow: 0 24px 80px rgba(20, 81, 124, 0.16);
  --font-sans: "BIZ UDPGothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-display: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 8% 14%, rgba(42, 167, 160, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 44%, #ffffff 100%);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(47, 128, 201, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 128, 201, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 70%);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 56px);
  color: #ffffff;
  transition: background 240ms ease, color 240ms ease, box-shadow 240ms ease, height 240ms ease;
}

.site-header.is-scrolled {
  height: 66px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 40px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-family: var(--font-display);
  font-size: 22px;
}

.is-scrolled .brand-mark {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-weight: 800;
  font-size: 17px;
}

.brand-sub {
  margin-top: 2px;
  color: currentColor;
  opacity: 0.72;
  font-size: 10px;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-tel {
  font-weight: 800;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 18px 42px rgba(47, 128, 201, 0.28);
}

.button-line {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 18px 42px rgba(42, 167, 160, 0.24);
}

.button-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.button-light {
  color: var(--primary-deep);
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: clip;
  color: #ffffff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 54% center;
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 44, 66, 0.9) 0%, rgba(17, 44, 66, 0.68) 42%, rgba(17, 44, 66, 0.18) 76%),
    linear-gradient(0deg, rgba(17, 44, 66, 0.64) 0%, transparent 48%);
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.hero .eyebrow {
  color: #a8f0eb;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: 1.03;
  font-weight: 800;
  word-break: keep-all;
}

.hero-title span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-title img {
  display: block;
  width: min(100%, 820px);
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(9, 34, 52, 0.32));
}

h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.45;
}

p {
  color: var(--muted);
  line-height: 1.9;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.6;
}

.hero-actions,
.reserve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-info {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 40px));
  margin: -48px auto 0;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quick-info div {
  padding: 24px 28px;
}

.quick-info div + div {
  border-left: 1px solid var(--line);
}

.quick-info span,
.quick-info strong {
  display: block;
}

.quick-info span {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.quick-info strong {
  line-height: 1.6;
}

.section,
.feature-band,
.self-pay,
.clinic-photos,
.line-section,
.director,
.access,
.reserve {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 112px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  font-size: 17px;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process article {
  padding-top: 26px;
  border-top: 2px solid var(--primary);
}

.process span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
}

.symptoms {
  border-top: 1px solid var(--line);
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.symptom-link {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background: rgba(255, 255, 255, 0.86);
  transition: background 180ms ease, transform 180ms ease;
}

.symptom-link:hover {
  z-index: 1;
  transform: translateY(-6px);
  background: #ffffff;
}

.symptom-link span {
  color: var(--primary);
  font-weight: 900;
}

.symptom-link strong {
  font-size: 20px;
  line-height: 1.55;
}

.feature-band {
  width: 100%;
  padding-inline: max(20px, calc((100% - 1120px) / 2));
  background:
    linear-gradient(120deg, rgba(232, 245, 251, 0.96), rgba(247, 240, 230, 0.72)),
    linear-gradient(90deg, transparent, rgba(42, 167, 160, 0.08));
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-list div {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}

.details article {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.details .detail-feature {
  grid-column: 1 / -1;
}

.details h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.detail-image {
  display: block;
  width: min(100%, 960px);
  height: auto;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.treatment-table {
  border-top: 1px solid var(--line);
}

.treatment-table div {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.treatment-table strong {
  color: var(--primary-deep);
  font-size: 19px;
}

.treatment-table span {
  color: var(--muted);
  line-height: 1.8;
}

.self-pay {
  border-top: 1px solid var(--line);
}

.self-pay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.medicell-card,
.self-pay-box {
  background: #ffffff;
  border: 1px solid var(--line);
}

.medicell-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  padding: 34px;
}

.self-pay-box {
  padding: 34px;
}

.treatment-image {
  display: block;
  width: 100%;
  height: auto;
  align-self: start;
  border: 1px solid var(--line);
  background: #ffffff;
}

.price-note {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 18px 0 0;
  padding: 0 16px;
  color: #ffffff;
  background: var(--primary);
  font-weight: 900;
}

.medicell-visual {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(232, 245, 251, 0.98), rgba(255, 255, 255, 0.98)),
    var(--bg-blue);
  border: 1px solid var(--line);
}

.medicell-visual span,
.medicell-visual small {
  position: absolute;
}

.skin-layer,
.fascia-layer,
.muscle-layer {
  left: 34px;
  right: 34px;
  border-radius: 999px;
}

.skin-layer {
  bottom: 108px;
  height: 28px;
  background: #f4c3ae;
}

.fascia-layer {
  bottom: 78px;
  height: 22px;
  background: #f2e3c7;
}

.muscle-layer {
  bottom: 34px;
  height: 34px;
  background: linear-gradient(90deg, #ef8c72, #df6a61);
}

.cup {
  left: 50%;
  top: 50px;
  width: 116px;
  height: 128px;
  transform: translateX(-50%);
  border: 10px solid var(--primary);
  border-bottom-width: 18px;
  border-radius: 32px 32px 48px 48px;
  background: rgba(255, 255, 255, 0.76);
}

.lift-line {
  left: 50%;
  top: 165px;
  width: 2px;
  height: 66px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--accent), var(--accent) 8px, transparent 8px, transparent 15px);
}

.medicell-visual small {
  left: 28px;
  right: 28px;
  bottom: 158px;
  color: var(--primary-deep);
  text-align: center;
  font-weight: 900;
}

.clinic-photos {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.photo-grid img {
  width: 100%;
  min-height: 300px;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.photo-grid img:first-child {
  grid-column: 1 / -1;
  min-height: 360px;
}

.line-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.line-section img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.director {
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
  width: 100%;
  padding-inline: max(20px, calc((100% - 1120px) / 2));
  background: #f9fcfe;
}

.director-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.plain-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.plain-list li {
  padding-left: 22px;
  position: relative;
  line-height: 1.7;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.price-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-box {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.access {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 64px;
  border-top: 1px solid var(--line);
}

.access-info {
  padding: 32px;
  background: var(--bg-soft);
}

dl,
dd {
  margin: 0;
}

.access-info div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.access-info div:first-child {
  padding-top: 0;
}

.access-info div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dt {
  color: var(--primary);
  font-weight: 900;
}

dd {
  line-height: 1.7;
}

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

details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

summary {
  cursor: pointer;
  padding: 22px 0;
  font-weight: 900;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  padding-bottom: 22px;
}

.reserve {
  width: 100%;
  margin-bottom: 0;
  padding-inline: max(20px, calc((100% - 1120px) / 2));
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(23, 105, 168, 0.96), rgba(23, 125, 121, 0.92)),
    var(--primary);
}

.reserve h2,
.reserve p {
  max-width: 760px;
  color: #ffffff;
}

.reserve .eyebrow {
  color: #bcfffb;
}

.reserve-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.reserve-guide div {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.reserve-guide span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #bcfffb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.reserve-guide strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
}

.reserve-guide p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px max(20px, calc((100% - 1120px) / 2));
  color: var(--muted);
  background: #ffffff;
}

.footer p {
  margin: 0;
  font-size: 13px;
}

.mobile-cta {
  display: none;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateX(0);
  }
  to {
    transform: scale(1.08) translateX(-1.2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-tel {
    display: none;
  }

  .quick-info,
  .process,
  .feature-list,
  .price-layout {
    grid-template-columns: 1fr;
  }

  .quick-info div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .symptom-grid,
  .details,
  .clinic-photos,
  .director,
  .access {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 68px;
  }

  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .site-header.is-scrolled {
    height: 60px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-sub,
  .header-actions {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-image {
    object-position: 56% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(17, 44, 66, 0.9), rgba(17, 44, 66, 0.62)),
      linear-gradient(0deg, rgba(17, 44, 66, 0.66), transparent 50%);
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 104px 0 74px;
  }

  h1 {
    font-size: clamp(44px, 16vw, 64px);
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    font-size: 20px;
  }

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

  .reserve-guide {
    grid-template-columns: 1fr;
  }

  .quick-info {
    width: calc(100% - 28px);
    margin-top: -32px;
  }

  .section,
  .feature-band,
  .self-pay,
  .clinic-photos,
  .line-section,
  .director,
  .access,
  .reserve {
    width: calc(100% - 32px);
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .feature-band,
  .director,
  .reserve {
    width: 100%;
    padding-inline: 16px;
  }

  .symptom-grid,
  .details,
  .self-pay-grid,
  .medicell-card,
  .clinic-photos,
  .line-section,
  .director,
  .access {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid img,
  .photo-grid img:first-child {
    min-height: 260px;
  }

  .line-section img {
    height: auto;
  }

  .symptom-link {
    min-height: 160px;
  }

  .treatment-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .access-info div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer {
    display: block;
    padding: 28px 16px;
  }

  .footer p + p {
    margin-top: 10px;
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #ffffff;
    box-shadow: 0 -14px 34px rgba(31, 41, 55, 0.12);
  }

  .mobile-cta a {
    display: grid;
    place-items: center;
    min-height: 62px;
    border-right: 1px solid var(--line);
    color: var(--primary-deep);
    font-weight: 900;
  }

  .mobile-cta a:nth-child(2) {
    color: var(--accent-deep);
  }

  .mobile-cta a:last-child {
    border-right: 0;
  }
}
