/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html {
  -webkit-text-size-adjust: 100%;
  background: #3AC301; /* overscroll時にフッターと同色を見せる */
  overscroll-behavior-y: none;
}
body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  color: #1a1a1a;
  background: #D2ECFC;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

:root {
  --chat-bg: #D2ECFC;
  --chat-bg-deep: #a9d5ed;
  --header-bg: #3AC301;
  --header-bg-deep: #2ea100;
  --user-bubble: #3AC301;
  --user-bubble-deep: #2ea100;
  --bot-bubble: #ffffff;
  --accent: #ef6c00;
  --accent-light: #ff8f33;
  --accent-bg: #fff3e0;
  --yellow-mark: #fff176;
  --red: #e53935;
  --green: #2aa563;
  --text: #1a1a1a;
  --text-soft: #555;
  --text-white: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
}

mark {
  background: linear-gradient(transparent 55%, var(--yellow-mark) 55%);
  padding: 0 2px;
  color: inherit;
  font-weight: 700;
}

/* ===== Chat background ===== */
.chat-bg {
  background: var(--chat-bg);
  min-height: 100vh;
}

/* ===== LINE風ヘッダー ===== */
.site-header {
  background: var(--header-bg);
  color: var(--text-white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.site-header__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.5);
}
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.header-info { flex: 1; min-width: 0; }
.header-info__name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 2px;
}
.header-info__status {
  font-size: 11px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}
.header-info__status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}
.header-icon {
  font-size: 20px;
  opacity: 0.85;
  padding: 4px 6px;
}

/* ===== Chat container ===== */
.chat {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 12px 32px;
  position: relative;
}

/* ===== イントロバナー ===== */
.intro-banner {
  background: var(--text-white);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 14px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid #e0f0fb;
}
.intro-banner__subtitle {
  font-size: 12px;
  color: var(--header-bg);
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #d8e8f5;
}
.intro-banner__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.intro-banner__sub {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.intro-banner__main {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  margin-top: 4px;
  line-height: 1.4;
}
.intro-banner__lead {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
}

/* ===== Progress ===== */
.progress {
  background: rgba(255,255,255,0.97);
  border-radius: 14px;
  padding: 8px 14px 10px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 68px;
  z-index: 40;
}
.progress__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--header-bg);
  margin-bottom: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.progress__dots {
  display: inline-flex;
  gap: 4px;
}
.dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dce6f1;
  color: #8a99aa;
  font-size: 11px;
  font-weight: 900;
  transition: all 0.3s ease;
}
.dot--active {
  background: var(--accent);
  color: var(--text-white);
}
.dot--done {
  background: var(--user-bubble);
  color: var(--text-white);
}
.progress__bar {
  height: 5px;
  background: #dce6f1;
  border-radius: 999px;
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--user-bubble), var(--accent));
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* ===== タイムスタンプ ===== */
.timestamp {
  text-align: center;
  margin: 14px 0 10px;
}
.timestamp span {
  display: inline-block;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 11px;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 500;
}

/* ===== Steps ===== */
.step { display: none; }
.step--active { display: block; animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Message rows ===== */
.msg {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  align-items: flex-end;
  scroll-margin-top: 160px;
}
.msg + .msg.msg--bot { margin-top: 10px; }
.msg--bot { flex-direction: row; }

/* ✅ユーザー吹き出し：LINE風・右端ギリギリ＋既読表示 */
.msg--user {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 6px;
  margin: 10px -12px 4px 0;  /* chat padding 12px を相殺 */
  padding-right: 14px;         /* 尻尾＋右端余白を確保 */
}
.read-mark {
  font-size: 10px;
  color: #4a5560;
  white-space: nowrap;
  padding-bottom: 4px;
  flex-shrink: 0;
  opacity: 0.75;
}

.msg--cont .msg__avatar { visibility: hidden; }
.msg--cont .msg__name { display: none; }

.msg__avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bot-bubble);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.msg__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg__body {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 50px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.msg__name {
  font-size: 11px;
  color: rgba(0,0,0,0.6);
  font-weight: 600;
  margin-bottom: 3px;
  padding: 0 6px;
}

/* ===== Bubble ===== */
.bubble {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.7;
  max-width: 100%;
  word-wrap: break-word;
  animation: bubbleIn 0.3s ease;
}
.bubble p { margin: 0 0 6px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble strong { color: #1a1a1a; font-weight: 700; }

@keyframes bubbleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.bubble--bot {
  background: var(--bot-bubble);
  color: var(--text);
  border-radius: 4px 18px 18px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  width: 100%;
}
.msg--cont .bubble--bot {
  border-radius: 18px 18px 18px 18px;
}

/* ✅ ユーザー吹き出し（LINE緑・尻尾付き） */
.bubble--user {
  position: relative;
  background: var(--user-bubble);
  color: var(--text-white);
  border-radius: 16px 4px 16px 16px;
  font-weight: 700;
  padding: 10px 16px;
  box-shadow: 0 2px 4px rgba(58, 195, 1, 0.2);
  font-size: 15px;
  display: inline-block;
  width: auto;
  max-width: 75vw;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.55;
  text-align: left;
}
/* LINE風の尻尾（右上に三角形） */
.bubble--user::after {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  width: 0;
  height: 0;
  border-left: 10px solid var(--user-bubble);
  border-bottom: 12px solid transparent;
  border-top: 0 solid transparent;
}
.bubble--user strong { color: var(--text-white); }

/* 質問吹き出し強調 */
.bubble--question {
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, #fff8f0 0%, #ffffff 100%);
}
.q-label {
  display: inline-block;
  background: var(--accent);
  color: var(--text-white);
  font-weight: 900;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

/* 吹き出し内画像 */
.bubble__img {
  margin: -10px -14px 10px;
  overflow: hidden;
  background: #f7fbff;
}
.bubble__img:first-child { border-radius: 4px 18px 0 0; }
.msg--cont .bubble__img:first-child { border-radius: 18px 18px 0 0; }
.bubble__img img {
  width: 100%;
  height: auto;
  display: block;
}
.bubble__caption {
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
  margin: -4px 0 0 !important;
  padding: 0 4px;
}

/* ===== 教育コンテンツ内帯 ===== */
.edu-banner {
  display: block;
  background: var(--header-bg);
  color: var(--text-white);
  font-weight: 900;
  font-size: 15px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  line-height: 1.5;
  position: relative;
}
.edu-banner::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--header-bg);
}
.edu-banner--green {
  background: var(--user-bubble);
}
.edu-banner--green::after { border-top-color: var(--user-bubble); }
.edu-banner--orange {
  background: var(--accent);
}
.edu-banner--orange::after { border-top-color: var(--accent); }

/* ===== Choices ===== */
.choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 6px;
  padding-left: 0;
  width: 100%;
  max-width: 100%;
}
.choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: var(--bot-bubble);
  border: 2px solid #cfe5f3;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--header-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
  text-align: left;
}
.choice:hover {
  border-color: var(--accent);
  background: #fff9f0;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(239, 108, 0, 0.2);
}
.choice:active { transform: translateY(0); }
.choice.selected {
  background: var(--accent);
  color: var(--text-white);
  border-color: var(--accent);
}
.choices.disabled .choice { pointer-events: none; }
.choices.disabled .choice:not(.selected) { opacity: 0.4; }

.choice--icon {
  padding: 12px 18px;
}
.choice__icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.choice__text {
  flex: 1;
  text-align: left;
}

/* Multi choice */
.choices--multi { gap: 8px; }
.choice--check {
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
}
.choice__check {
  width: 22px;
  height: 22px;
  border: 2px solid #bccfd9;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
  background: #fff;
}
.choice--check.selected .choice__check {
  background: #fff;
  border-color: #fff;
}
.choice--check.selected .choice__check::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 12px;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(45deg);
}

.confirm-btn {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: var(--text-white);
  font-weight: 900;
  font-size: 16px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(239, 108, 0, 0.35);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.confirm-btn:disabled {
  background: #b0b9c3;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}
.confirm-btn:not(:disabled):hover { transform: translateY(-1px); }

/* ===== Education cards ===== */
.edu-card {
  background: linear-gradient(180deg, #fff9e9 0%, #fff4d4 100%);
  border: 2px solid #ffd98a;
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0;
  position: relative;
}
.edu-card__title {
  font-weight: 900;
  color: #a85c00;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.edu-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.75; }
.edu-card p:last-child { margin-bottom: 0; }
.edu-card__conclusion {
  margin-top: 12px !important;
  padding: 10px 12px;
  background: var(--text-white);
  border-radius: 8px;
  font-weight: 700;
  border-left: 4px solid var(--accent);
}
.edu-card--highlight {
  background: linear-gradient(180deg, #fff3e0 0%, #ffffff 100%);
  border: 2px solid var(--accent);
}
.edu-card__badge {
  position: absolute;
  top: -12px;
  left: 12px;
  background: var(--accent);
  color: var(--text-white);
  font-weight: 900;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.check-list li {
  font-size: 14px;
  font-weight: 700;
  color: #2a3a3a;
  padding: 2px 0;
}

/* POINT box */
.point-box {
  background: linear-gradient(180deg, #fff7e0 0%, #fff0c7 100%);
  border: 2px solid #ffc94d;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
}
.point-box__label {
  display: inline-block;
  background: #ff9800;
  color: var(--text-white);
  font-weight: 900;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.point-box p { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.7; }

/* Pitfall item */
.pitfall {
  background: #fff5f5;
  border: 2px solid #ffd6d6;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pitfall:last-child { margin-bottom: 0; }
.pitfall__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: var(--text-white);
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pitfall__title {
  font-weight: 900;
  color: var(--red);
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.pitfall__body p { font-size: 13px; line-height: 1.65; margin: 0; }

/* highlight text */
.highlight-text {
  margin-top: 10px !important;
  font-weight: 700;
  text-align: center;
  color: var(--header-bg);
  font-size: 14px;
}

/* ===== Compare cards ===== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0 4px;
}
.compare__card {
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  text-align: center;
}
.compare__card--bad {
  background: #ffecec;
  border: 2px solid #f5bcbc;
}
.compare__card--good {
  background: #e6f7ec;
  border: 2px solid #9fd7b3;
}
.compare__label {
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 3px;
}
.compare__card--bad .compare__label { color: var(--red); }
.compare__card--good .compare__label { color: var(--green); }
.compare__title {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 4px;
  color: inherit;
}
.compare__card--good .compare__title { color: var(--green); }
.compare__card--bad .compare__title { color: var(--red); }
.compare__card p { margin: 0; font-size: 12px; line-height: 1.55; }

/* ===== Result section ===== */
.step[data-step="result"] {
  background: rgba(255,255,255,0.5);
  margin: 16px -12px 0;
  padding: 20px 14px;
  border-radius: 16px;
}

/* 施設紹介 */
.facility-intro {
  background: var(--text-white);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  text-align: left;
}
.facility-intro__img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.facility-intro p { margin: 0 0 8px; font-size: 14px; line-height: 1.75; }
.facility-intro p:last-child { margin-bottom: 0; }

/* ===== Offer ===== */
.offer {
  background: linear-gradient(180deg, #fff7ee 0%, #ffffff 100%);
  border: 3px solid var(--accent);
  border-radius: 18px;
  padding: 20px 16px;
  margin: 18px 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
  scroll-margin-top: 70px;
}
.offer__label {
  display: inline-block;
  background: var(--accent);
  color: var(--text-white);
  font-weight: 900;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.offer__title {
  font-weight: 900;
  font-size: 20px;
  color: var(--header-bg);
  margin-bottom: 14px;
  line-height: 1.4;
}
.offer__title-big {
  display: inline-block;
  font-size: 32px;
  color: var(--accent);
}
.offer__machine-img {
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 14px;
  max-width: 280px;
  box-shadow: var(--shadow);
}
.offer__price {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.offer__price-was {
  color: var(--text-soft);
  text-decoration: line-through;
  font-size: 14px;
}
.offer__price-now {
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
}
.offer__price-now strong {
  font-size: 28px;
  color: var(--accent);
}
.offer__list {
  list-style: none;
  padding: 12px 14px;
  margin: 0 0 16px;
  text-align: left;
  background: var(--text-white);
  border-radius: 10px;
  font-size: 14px;
}
.offer__list li {
  padding: 5px 0;
  border-bottom: 1px dashed #eee;
}
.offer__list li:last-child { border-bottom: none; }
.offer__note {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.6;
}
.offer__note-small {
  font-size: 11px;
  color: var(--text-soft);
  margin: 4px 0 0;
}

/* ===== CTA buttons ===== */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  box-shadow: var(--shadow-lg);
  margin-top: 10px;
  transition: transform 0.15s ease;
}
.cta-btn:hover { transform: translateY(-1px); }
.cta-btn--primary {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: var(--text-white);
}
.cta-btn--line {
  background: #06c755;
  color: var(--text-white);
}
.cta-btn--tel {
  background: var(--text-white);
  color: var(--header-bg);
  border: 2px solid var(--header-bg);
}
.cta-btn__icon { font-size: 20px; }

/* ===== Section title ===== */
.section-title {
  text-align: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--header-bg);
  margin: 28px 0 12px;
  position: relative;
}
.section-title::before, .section-title::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 10px;
}

/* ===== Flow ===== */
.flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.flow__step {
  background: var(--text-white);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--header-bg);
}
.flow__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--header-bg);
  color: var(--text-white);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow__body {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
}

/* ===== Pricing (控えめ) ===== */
.pricing {
  background: #f5f7fa;
  border: 1px solid #dde4ec;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #555;
  margin-bottom: 20px;
}
.pricing__title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.pricing__price {
  font-size: 20px;
  color: var(--text);
  margin-left: 8px;
}
.pricing__tax {
  font-size: 11px;
  color: #888;
}
.pricing__list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  font-size: 12px;
}
.pricing__list li { padding: 2px 0; }
.pricing__desc {
  font-size: 12px;
  margin: 8px 0 0;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq { margin-bottom: 20px; }
.faq__item {
  background: var(--text-white);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq__q {
  width: 100%;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--header-bg);
  text-align: left;
  gap: 10px;
}
.faq__icon {
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__a {
  display: none;
  padding: 12px 14px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  border-top: 1px dashed #e0e0e0;
}
.faq__item.open .faq__a { display: block; }

/* ===== Doctor ===== */
.doctor {
  background: var(--text-white);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 20px;
}
.doctor__avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e6ecf2;
}
.doctor__avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor__name {
  font-weight: 900;
  font-size: 17px;
  color: var(--header-bg);
  margin-bottom: 10px;
}
.doctor__role {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  margin-top: 2px;
}
.doctor p {
  margin: 0 0 8px;
  text-align: left;
  font-size: 14px;
  line-height: 1.75;
}

/* ===== CTA area ===== */
.cta-area {
  background: linear-gradient(180deg, var(--header-bg) 0%, var(--header-bg-deep) 100%);
  color: var(--text-white);
  border-radius: 18px;
  padding: 22px 18px;
  margin: 20px 0;
  text-align: center;
}
.cta-area__headline {
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.cta-area mark {
  background: linear-gradient(transparent 55%, rgba(255, 241, 118, 0.9) 55%);
  color: var(--text-white);
}
.cta-area__hours {
  margin: 12px 0 0;
  font-size: 12px;
  opacity: 0.9;
}
.cta-area--final {
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
}

/* ===== Voices ===== */
.voices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.voice {
  background: var(--text-white);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.voice__stars {
  color: #ffb300;
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.voice__title {
  font-weight: 900;
  font-size: 14px;
  color: var(--header-bg);
  margin-bottom: 6px;
  line-height: 1.5;
}
.voice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}
.voice small { color: var(--text-soft); }

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--header-bg);
  color: var(--text-white);
  margin-top: 40px;
}
.site-footer__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 18px;
  text-align: center;
}
.site-footer__name {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px;
}
.site-footer__addr {
  font-size: 12px;
  line-height: 1.85;
  opacity: 0.95;
  margin-bottom: 14px;
}
.site-footer__legal {
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 8px;
}
.site-footer__legal a { text-decoration: underline; }
.site-footer__copy {
  font-size: 11px;
  opacity: 0.7;
}

/* ===== Sticky CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  padding: 10px 14px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  z-index: 100;
  display: none;
}
.sticky-cta.show { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sticky-cta__btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: var(--text-white);
  font-weight: 900;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== Typing ===== */
.typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bot-bubble);
  border-radius: 4px 18px 18px 18px;
  width: fit-content;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.typing__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a0a9b4;
  animation: typingBounce 1.4s infinite ease-in-out;
}
.typing__dot:nth-child(2) { animation-delay: 0.2s; }
.typing__dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  body {
    background: linear-gradient(135deg, #bde2f6 0%, #D2ECFC 50%, #e4f2fa 100%);
  }
  .chat { padding: 16px 16px 40px; }
  .bubble { font-size: 16px; }
}

/* ===== Contact Chat Form ===== */
.contact-chat {
  margin: 20px 0 8px;
}
.contact-chat__step {
  display: none;
}
.contact-chat__step--active {
  display: block;
}
.contact-field {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 6px;
}
.contact-input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 2px solid #cbd6dd;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color .15s;
}
.contact-input:focus {
  border-color: var(--header-bg);
}
.contact-input--area {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.contact-next {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  background: var(--header-bg);
  color: #fff;
  box-shadow: 0 3px 0 var(--header-bg-deep);
  transition: transform .1s, box-shadow .1s, opacity .1s;
}
.contact-next:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--header-bg-deep);
}
.contact-next:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ===== ★L2: 安心ヒーロー（ファーストビュー離脱対策） ===== */
.hero-intro {
  background: var(--bot-bubble);
  border: 1px solid #e3edf3;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px 16px 16px;
  margin: 6px 0 14px;
}
.hero-intro__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.hero-intro__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid var(--header-bg);
}
.hero-intro__lead {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-intro__clinic {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
}
.hero-intro__title {
  font-size: 17px;
  line-height: 1.42;
  color: var(--text);
}
.hero-intro__trust {
  list-style: none;
  margin: 0 0 13px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hero-intro__trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: #f3faef;
  border-radius: 10px;
  padding: 9px 12px;
}
.hero-intro__txt { flex: 1; }
.hero-intro__trust b { color: var(--green); }
.hero-intro__trust small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
}
.hero-intro__check {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-intro__time {
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}
.hero-intro__cta {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(180deg, #45d40a, var(--header-bg));
  border-radius: 12px;
  padding: 15px 12px;
  box-shadow: 0 3px 0 var(--header-bg-deep), var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.hero-intro__cta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--header-bg-deep);
}
.hero-intro__tel {
  display: block;
  text-align: center;
  margin-top: 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  text-decoration: none;
}
.hero-intro__tel b {
  color: var(--accent);
  font-size: 15px;
}
