/* ==========================================================================
   京都国際内科クリニック LP - Style based on existing LP design
   ========================================================================== */

:root {
  /* Color - 既存LPに合わせた医療系シアンブルー基調 */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F9FC;
  --color-bg-soft: #EAF4FA;
  --color-text: #1A2737;
  --color-text-sub: #5A6573;
  --color-text-light: #8A93A0;

  --color-primary: #1FA5C9;        /* 既存LPメインのシアンブルー */
  --color-primary-dark: #1985A3;
  --color-primary-light: #5CC3DE;
  --color-primary-soft: #D8EEF6;

  --color-accent: #F5A623;          /* オレンジバッジ */
  --color-accent-dark: #E59000;

  --color-green: #3FB37F;           /* ロゴ＆チェックマーク用 */
  --color-line: #06C755;            /* LINE公式色 */

  --color-border: #E0E7ED;
  --color-border-soft: #ECF1F5;
  --color-tel: #1A2737;

  --color-white: #FFFFFF;
  --color-black: #0A1118;

  /* Typography - 既存LPに近い日本語サンセリフ統一 */
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --section-pad: clamp(48px, 8vw, 96px);
  --container-max: 1180px;

  /* Radius */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(31, 165, 201, 0.08);
  --shadow-md: 0 6px 24px rgba(31, 165, 201, 0.12);
  --shadow-lg: 0 16px 48px rgba(31, 165, 201, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.is-sp {
  display: none;
}
.is-pc {
  display: block;
}
.ta-c {
  text-align: center;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-soft);
  display: flex;
  align-items: stretch;
}
.header-inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 10px 10px;
  gap: 12px;
  min-width: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-sub {
  font-family: var(--font-en);
  font-size: 9px;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}
.header-lang {
  font-size: 8px;
  font-weight: 500;
  color: var(--color-primary);
  padding: 4px 6px;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.header-lang:hover { 
 opacity: 0.5;
 }
 .header-lang img {
  margin: 0 auto;
 }

.header-menu {
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  height: 28px;
  justify-content: center;
  align-items: center;
}
.header-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

.header-reserve {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s;
}
.header-reserve:hover { background: var(--color-accent-dark); }

.nav-drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 200;
}
.nav-drawer.is-open {
  display: block;
}
.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 24, 0.55);
}
.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--color-white);
  box-shadow: -12px 0 24px rgba(10, 17, 24, 0.12);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.nav-drawer.is-open .mobile-menu {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.mobile-menu-logo .logo-img {
  width: 210px;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1;
  padding: 6px;
}
.mobile-menu-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.btn-mobile-reserve {
  display: block;
  width: 100%;
  padding: 14px 16px;
  text-align: center;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 10px;
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
}
.btn-mobile-reserve:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.mobile-menu-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-mobile-secondary {
  display: block;
  width: 100%;
  padding: 14px 16px;
  text-align: center;
  border-radius: 10px;
  font-weight: 700;
  color: var(--color-white);
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
}

.btn-mobile-secondary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-mobile-tel {
  background: var(--color-primary);
}

.btn-mobile-line {
  background: #00c300;
}

.mobile-menu-nav {
  display: grid;
  gap: 12px;
}
.mobile-menu-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-weight: 600;
}
.mobile-menu-nav a:hover {
  background: var(--color-primary-soft);
}
body.mobile-menu-open {
  overflow: hidden;
}

.logo-img {
  width: 170px;
}
@media (min-width: 768px) {
  .header-inner { padding: 14px 24px; gap: 20px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-name { font-size: 15px; }
  .logo-sub { font-size: 10px; }
  .header-reserve { padding: 0 32px; font-size: 15px; }
  .logo-img {
  width: 220px;
}
.header-right {
  gap: 12px;
}
.header-lang {
  font-size: 12px;
}
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 32px 0 56px;
  background:
    linear-gradient(180deg, var(--color-primary-soft) 0%, var(--color-bg-soft) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(31, 165, 201, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  /* gap: 32px; */
  align-items: center;
}

.hero-content { order: 1; }
.hero-visual { order: 2;}
.hero-station {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
  position: relative;
}
.hero-badge::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -6px;
  width: 12px; height: 12px;
  background: var(--color-accent);
  transform: rotate(45deg);
  z-index: -1;
}

.hero-title {
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero-points {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}
.hero-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6L5 8L9 4' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.hero-points strong {
  color: var(--color-primary);
  font-weight: 700;
}

.hero-doctor-placeholder {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.hero-doctor-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-doctor-placeholder small {
  display: none;
}

@media (min-width: 900px) {
  .hero { padding: 56px 0 80px; }
  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
  }
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
}

/* ==========================================================================
   COMMON SECTIONS
   ========================================================================== */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 32px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-transform: capitalize;
}
.section-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--color-text);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  transform: translateX(-50%);
  border-radius: 2px;
}
.section-title-light { color: var(--color-white); }
.section-title-light::after { background: var(--color-white); }

.section-label-light { color: rgba(255,255,255,0.85); }

.section-lead {
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-text-sub);
  margin-top: 16px;
}
.section-lead strong {
  color: var(--color-primary);
  font-weight: 700;
}
.section-lead-light { color: rgba(255,255,255,0.85); }
.section-lead-light strong { color: var(--color-white); }

/* ==========================================================================
   ACCESS (先出し)
   ========================================================================== */
.section-access-top {
  background: var(--color-white);
}
.access-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--color-border-soft);
}
.access-map {
  position: relative;
  background: var(--color-bg-soft);
}
.access-map iframe { display: block; }

.access-desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--color-text-sub);
  text-align: center;
  margin: 20px 0 24px;
}

.access-route { display: flex; justify-content: center; }
.btn-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-route:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}
.route-arrow {
  display: inline-block;
  font-family: var(--font-en);
}

.access-02-img {
      width: 75%;
    margin: 0 auto;
}
.access-01-img img,
.access-02-img img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
@media (min-width: 768px) {
.access-content {
  display: flex;
  justify-content: center;
  gap: 5%;
  align-items: center;
  flex-wrap: wrap;
}
.access-01-img {
  width: 45%;
  overflow: hidden;
}
.access-02-img {
  width: 35%;
  overflow: hidden;
}
.access-02-txt,
.access-01-txt {
  width: 45%;
}
}
/* ==========================================================================
   SYMPTOMS (対応症状)
   ========================================================================== */
.section-symptoms { background: var(--color-bg-alt); }

.symptoms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.symptom-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 48px;
}
.symptom-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.symptom-chip-featured {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(31, 165, 201, 0.3);
}

@media (min-width: 768px) {
  .symptoms-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   FEE (診察料金)
   ========================================================================== */
.section-fee { background: var(--color-white); }

.fee-group { margin-bottom: 28px; }
.fee-group:last-child { margin-bottom: 0; }
.fee-group-title {
  font-size: 16px;
  font-weight: 700;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 0;
}
.fee-item {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.fee-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px 18px 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s;
}
.fee-summary::-webkit-details-marker { display: none; }
.fee-summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.3s, background 0.2s;
}
.fee-item[open] .fee-summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.fee-content {
  padding: 0 4px 20px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--color-text-sub);
}

/* ==========================================================================
   FEATURE (特徴01-04)
   ========================================================================== */
.section-feature { background: var(--color-bg-alt); }

.feature-list {
  display: grid;
  gap: 16px;
}
.feature-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 70px 1fr;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-tag {
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  position: relative;
}
.feature-tag-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  opacity: 0.9;
}
.feature-tag-num {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.feature-body {
  padding: 18px 18px 20px;
}
.feature-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--color-text);
}
.feature-points {
  display: grid;
  gap: 6px;
}
.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-sub);
}
.feature-check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
  .feature-card { grid-template-columns: 80px 1fr; }
  .feature-tag-num { font-size: 30px; }
  .feature-body { padding: 24px; }
  .feature-title { font-size: 17px; }
  .feature-points li { font-size: 14px; }
}

/* ==========================================================================
   HbA1c SECTION
   ========================================================================== */
.section-hba1c {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.section-hba1c::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.section-head-light { color: var(--color-white); }

.hba1c-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.compare-card {
  padding: 24px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.compare-traditional { background: rgba(0,0,0,0.15); }
.compare-new {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.3);
}

.compare-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.compare-tag-highlight {
  background: var(--color-accent);
  color: var(--color-white);
}
.compare-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.compare-list { display: grid; gap: 10px; }
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.compare-list strong { color: var(--color-white); font-weight: 700; }
.compare-list-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-en);
  margin-top: 1px;
}
.compare-icon-minus {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}
.compare-icon-plus {
  background: var(--color-accent);
  color: var(--color-white);
}

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  padding: 4px 0;
}

/* Machine showcase */
.hba1c-machine {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.machine-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-bottom: 12px;
}
.machine-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.machine-name em {
  font-style: italic;
  font-weight: 700;
  color: #FFD9B5;
}
.machine-desc {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.machine-spec {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
}
.machine-spec li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}
.machine-spec li:last-child { border-bottom: none; }
.machine-spec span { color: rgba(255,255,255,0.7); }
.machine-spec strong { color: var(--color-white); font-weight: 700; }

.hba1c-machine-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.machine-illustration {
  position: relative;
  width: 220px;
  max-width: 100%;
}
.machine-body {
  background: linear-gradient(135deg, #2B3D4C, #1A2737);
  border-radius: 14px;
  padding: 18px 16px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}
.machine-display {
  background: #0A1118;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}
.machine-display-label {
  font-family: var(--font-en);
  font-size: 10px;
  color: #FFD9B5;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.machine-display-value {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 700;
  color: #5DD5C5;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.machine-display-value span {
  font-size: 20px;
  margin-left: 2px;
}
.machine-display-dots {
  display: flex;
  gap: 6px;
}
.machine-display-dots span {
  width: 5px; height: 5px;
  background: #5DD5C5;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}
.machine-display-dots span:nth-child(2) { animation-delay: 0.2s; }
.machine-display-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}
.machine-slot {
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-bottom: 12px;
}
.machine-base {
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  border-radius: 2px;
}
.machine-drop {
  position: absolute;
  top: 32px;
  right: -50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.drop-circle {
  width: 24px;
  height: 32px;
  background: var(--color-accent);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  animation: drop 2.5s ease-in-out infinite;
}
.drop-circle::before {
  content: "";
  position: absolute;
  top: 5px; left: 6px;
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}
@keyframes drop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.drop-label {
  font-size: 10px;
  color: #FFD9B5;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
}

.hba1c-note {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hba1c-compare { grid-template-columns: 1fr auto 1fr; gap: 20px; }
  .compare-card { padding: 32px 24px; }
  .compare-title { font-size: 24px; }
  .compare-list li { font-size: 14px; }
  .hba1c-machine {
    grid-template-columns: 1fr 1fr;
    padding: 40px;
    gap: 40px;
  }
  .machine-illustration { width: 260px; }
  .machine-drop { right: -70px; top: 40px; }
  .drop-circle { width: 28px; height: 36px; }
  .machine-name { font-size: 28px; }
  .machine-display-value { font-size: 48px; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.section-faq {
  background: var(--color-primary);
  color: var(--color-white);
}
.section-faq .section-label {
  color: rgba(255,255,255,0.85);
}
.section-faq .section-title {
  color: var(--color-white);
}
.section-faq .section-title::after {
  background: var(--color-white);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  background: var(--color-primary-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.2s;
}
.faq-item[open] { background: var(--color-primary-dark); }

.faq-q {
  padding: 16px 56px 16px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  position: relative;
  line-height: 1.5;
  color: var(--color-white);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.3s;
}
.faq-item[open] .faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-mark {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 50%;
  margin-top: 1px;
}
.faq-q-text { flex: 1; padding-top: 2px; }

.faq-a {
  padding: 0 20px 18px 52px;
  display: flex;
  gap: 16px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.92);
}

.faq-end-text {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--color-white);
  font-weight: 500;
}
.faq-end-cta {
  display: flex;
  justify-content: center;
}
.btn-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 48px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
  transition: transform 0.2s, background 0.2s;
}
.btn-reserve:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .faq-q { padding: 18px 56px 18px 20px; font-size: 15px; }
  .faq-a { padding: 0 20px 20px 56px; font-size: 14px; }
}

/* ==========================================================================
   HOURS (診察時間)
   ========================================================================== */
.section-hours { background: var(--color-white); }

.hours-wrap {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
    background: var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
      padding: 10px;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hours-table th, .hours-table td {
  padding: 12px 4px;
  text-align: center;
}
.hours-table th {
  border-bottom: 1px solid var(--color-border-soft);
}
.hours-table th:last-child,
.hours-table td:last-child {
  border-right: none;
}
.hours-table tr:last-child td {
  border-bottom: none;
}
.hours-table thead th {
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 13px;
}
.hours-table thead th:first-child {
  text-align: left;
  padding-left: 12px;
}
.hours-table tbody td:first-child {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding-left: 12px;
  color: var(--color-text);
}
.hours-table tbody td {
  color: #4dc2c1;
  font-weight: 700;
}
.hours-note {
  font-size: 11px;
  color: var(--color-text-sub);
  margin-top: 10px;
  text-align: center;
}

@media (min-width: 768px) {
  .hours-table { font-size: 14px; }
  .hours-table th, .hours-table td { padding: 14px 8px; }
  .hours-table tbody td:first-child { font-size: 13px; }
}

/* ==========================================================================
   CLINIC INFO
   ========================================================================== */
.section-info {
  background: var(--color-bg-alt);
  padding-bottom: 64px;
}

.info-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-sm);
}

.info-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border-soft);
}
.info-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}
.info-name-en {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.info-list {
  margin: 0 0 24px;
  display: grid;
  gap: 0;
}
.info-list dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  padding: 12px 0 4px;
  border-top: 1px solid var(--color-border-soft);
}
.info-list dt:first-child { border-top: none; padding-top: 0; }
.info-list dd {
  margin: 0;
  padding: 0 0 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-text);
}
.info-list dd a {
  color: var(--color-primary);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
}

.info-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.info-map iframe { display: block; }

@media (min-width: 768px) {
  .info-card { padding: 36px; }
  .info-list { grid-template-columns: 100px 1fr; gap: 0 24px; }
  .info-list dt {
    padding: 16px 0;
    border-top: 1px solid var(--color-border-soft);
  }
  .info-list dd {
    padding: 16px 0;
    border-top: 1px solid var(--color-border-soft);
  }
  .info-list dt:first-of-type,
  .info-list dd:first-of-type {
    border-top: none;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border-soft);
  padding: 28px 0 24px;
  padding-bottom: calc(28px + 90px + env(safe-area-inset-bottom));
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-logo .logo-mark {
  width: 36px; height: 36px;
}
.footer-logo-name {
  font-size: 14px;
  font-weight: 700;
}
.footer-logo-sub {
  font-family: var(--font-en);
  font-size: 10px;
  color: var(--color-text-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 12px;
  color: var(--color-text-sub);
  text-decoration: underline;
}
.footer-links a:hover { color: var(--color-primary); }

.footer-copy {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .footer-links { flex-direction: row; gap: 20px; }
  .site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   STICKY CTA (2ボタン：電話＋LINE)
   ========================================================================== */
.sticky-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--color-white);
  border-top: 1px solid var(--color-border-soft);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  color: var(--color-white);
  text-align: center;
  transition: opacity 0.2s;
}
.sticky-btn:active { opacity: 0.8; }
.sticky-btn-tel {
  background: var(--color-primary);
}
.sticky-btn-line {
  background: var(--color-line);
}
.sticky-icon {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.sticky-icon svg {
  width: 26px;
  height: 26px;
}
.sticky-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.sticky-sub {
  font-size: 10px;
  opacity: 0.9;
  letter-spacing: 0.05em;
}
.sticky-main {
  font-size: 15px;
  font-weight: 700;
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}

/* ==========================================================================
   Animations on scroll
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .symptom-chip,
  .faq-item,
  .fee-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  .feature-card.is-visible,
  .symptom-chip.is-visible,
  .faq-item.is-visible,
  .fee-item.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SWIPER & SLIDER STYLES
   ========================================================================== */
.swiper {
  width: 100%;
  height: auto;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pagination */
.swiper-pagination {
  position: relative;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #D0D8E0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  background: var(--color-primary);
  opacity: 1;
}

/* Navigation buttons */
.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 24px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
}

.swiper-button-prev {
  left: 0;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.swiper-button-prev::before {
  content: '‹';
  font-size: 28px;
  font-weight: bold;
  position: relative;
  left: -2px;
}

.swiper-button-next::before {
  content: '›';
  font-size: 28px;
  font-weight: bold;
  position: relative;
  right: -2px;
}

@media (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .swiper-button-prev {
    left: -15px;
  }
  
  .swiper-button-next {
    right: -15px;
  }
}

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */
.modal-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 17, 24, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.modal-content.modal-open {
  display: flex;
  opacity: 1;
}

.modal-inner {
  position: relative;
  width: auto;
  max-width: min(900px, 90vw);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  cursor: default;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.95);
  color: var(--color-text);
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 2;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--color-white);
}

.modal-inner img,
.module-mounter img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(90vh - 40px);
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.modal-text-inner {
  background: transparent;
  padding: 16px;
}

.modal-card {
  width: min(900px, 90vw);
  max-width: 100%;
  max-height: calc(90vh - 32px);
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}

.modal-card h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--color-text);
}

.modal-card-body p,
.modal-card-body ul {
  margin-bottom: 12px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

.modal-card-table {
  width: 100%;
  border-collapse: collapse;
}

.modal-card-table th,
.modal-card-table td {
  text-align: left;
  padding: 16px 0;
  vertical-align: top;
}

.modal-card-table th {
  width: 35%;
  font-weight: 700;
  color: var(--color-text);
}

.modal-card-table td {
  color: var(--color-text-sub);
}

.modal-card-table tr {
  border-bottom: 1px solid var(--color-border-soft);
}

.modal-card-table tr:last-child {
  border-bottom: none;
}

.module-mounter,
.module-mounter .container,
.module-mounter .container > div {
  padding: 0;
  width: auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-legal-card h2,
.modal-privacy-card h2 {
  color: var(--color-primary);
  margin-bottom: 2rem;
}


/* Swiper access slider wrapper */
.access-slider-wrap {
  position: relative;
  margin: 0 auto;
  padding: 0 4rem 2rem;
}
.access-slider-wrap .swiper-wrapper {
  align-items: center;
}

.access-01-img,
.access-02-img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.access-01-img:hover,
.access-02-img:hover {
  transform: scale(1.02);
}

/* ヒーロービジュアル上書き用 */
.hero-visual .section-head {
    margin-bottom: 18px;
}
.hero-visual .section-head .section-title {
    font-size: clamp(16px, 4vw, 20px);
}

@media (max-width: 768px) {
  .modal-card h2 {
    margin-bottom: 1rem;
    font-size: 18px;
  }
  .access-slider-wrap {
    padding: 0 20px 10px;
  }
  .modal-card-body p, .modal-card-body ul {
    font-size: 13px;
  }
  .modal-card-body h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .modal-card {
    padding: 30px 20px;
  }
  .modal-card-table {
        font-size: 13px;
  }
  .swiper-pagination {
    margin-top: 16px;
  }
  .is-sp {
  display: block;
}
.is-pc {
  display: none;
}
}
