/* スマリハPRO 無料オンライン相談（予約ページとサンクスページの 2 ページ）で共有する。
   見た目は LP の C1 Ver2.0（sumarihapro_lp_v5）にそろえる（紺・青・青緑・黄色の帯・橙のボタン・本文と見出しの書体）。
   スマホ（360〜430px）を先に書き、768px と 1024px 以上で広げる。最小 320px で横にはみ出さない。 */

:root {
  --navy-950: #0c2138;
  --navy-900: #0f2f52;
  --navy-800: #123f78;
  --blue: #1857a6;
  --teal: #12938a;
  --teal-dark: #0d5f58;
  --teal-light: #7fd4cb;
  --yellow: #ffe08a;
  --ink: #16232f;
  --ink-2: #33414d;
  --ink-3: #42505c;
  --muted: #5f7488;
  --line: #dbe3ec;
  --soft: #f4f7fa;
  --tint: #eef3f9;
  /* Web フォントは後から読み込む（LP と同じ）。届くまでの間も日本語の書体で出すため、端末の書体を後ろに並べる */
  --font-body: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --font-head: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --gutter: 16px;
  --slant: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  /* 長いメールアドレスや URL でも、320px の幅から横にはみ出さない */
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--navy-800);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* 紺と青緑の地では青の枠が見えない（紺と 1.9:1、青緑と 1.1:1）ので黄色にする。白い予約の枠の中は青のまま */
.fv-intro a:focus-visible,
.section--final a:focus-visible {
  outline-color: var(--yellow);
}

/* 問い合わせのメールアドレスは、打ち写しやすいよう 1 行で出す。360px 未満は入らないので「@」の前でだけ折る。
   <wbr> は white-space: nowrap でも折れてしまう（Chrome）ので使わず、「@」から後ろを 360px 未満でだけ inline-block にする */
.mail {
  white-space: nowrap;
}

@media (max-width: 359px) {
  .mail {
    white-space: normal;
  }

  .mail-at {
    display: inline-block;
    /* inline-block にはリンクの下線が引き継がれない */
    text-decoration: underline;
  }
}

/* 短い語だけが次の行に落ちないよう、<wbr> の所だけで折る（LP と同じ。文字は変えない） */
.bk {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.nw {
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- ヘッダー（ロゴと「無料オンライン相談」だけ。ナビは置かない） ---------- */

.site-header {
  background: #fff;
  border-bottom: 2px solid var(--blue);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.site-logo {
  width: auto;
  height: 25px;
}

.header-badge {
  flex: none;
  padding: 6px 12px;
  border: 1px solid #bfe8e2;
  border-radius: 999px;
  background: #eafbf8;
  /* 青緑（--teal）では地と 3.5:1 で薄い。小さな文字なので濃い青緑にする（7:1） */
  color: var(--teal-dark);
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---------- 区画と、区画の頭の斜めの切り替え（LP と同じ 24px の三角） ---------- */

.section {
  position: relative;
  padding: 36px 0 44px;
}

.section--soft {
  background: var(--soft);
}

.section--navy {
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
}

.section--final {
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--teal-dark) 100%);
  color: #fff;
}

/* 前の区画の地の色の三角を、この区画の頭に重ねる。1px 上に出して、境目に細い線が残らないようにする（LP の margin-top: -1px と同じ） */
.slant {
  padding-top: calc(var(--slant) + 30px);
}

.slant::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: calc(var(--slant) + 1px);
  background: var(--slant-from, #fff);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.slant--r::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.from-white {
  --slant-from: #fff;
}

.from-soft {
  --slant-from: var(--soft);
}

.from-navy {
  --slant-from: var(--navy-900);
}

.from-fv {
  --slant-from: var(--navy-800);
}

/* 紺の区画の右の斜めの帯（LP の飾りと同じ色）。区画が高くても帯が箱の縁で切れないよう、平行四辺形で描く */
.section--navy::after,
.section--final::after,
.fv::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 100%;
  background: rgba(18, 147, 138, 0.2);
  clip-path: polygon(62% 0, 92% 0, 38% 100%, 8% 100%);
  pointer-events: none;
}

.section--final::after {
  background: rgba(255, 224, 138, 0.1);
}

/* 頭の三角（前の区画の色）の上には重ねない */
.slant.section--navy::after,
.slant.section--final::after {
  top: var(--slant);
  height: calc(100% - var(--slant));
}

.section > .container,
.fv > .container {
  position: relative;
  z-index: 1;
}

/* 見出し。LP の「英字の札＋点線」の並びを、文字を足さずに飾りだけで写す */
.sec-title {
  position: relative;
  margin-bottom: 18px;
  padding-top: 20px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: min(24px, 6.4vw);
  font-weight: 900;
  line-height: 1.5;
}

.sec-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 8px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.sec-title::after {
  content: '';
  position: absolute;
  top: 2.5px;
  left: 44px;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--line) 0 12px, transparent 12px 18px);
}

.section--navy .sec-title {
  color: #fff;
}

.section--navy .sec-title::before {
  background: var(--teal-light);
}

.section--navy .sec-title::after {
  background: repeating-linear-gradient(90deg, rgba(127, 212, 203, 0.4) 0 12px, transparent 12px 18px);
}

.sec-title--sm {
  margin-bottom: 12px;
  padding-top: 16px;
  font-size: 19px;
}

.sec-title--sm::before {
  width: 26px;
  height: 6px;
}

.sec-title--sm::after {
  top: 1.5px;
  left: 34px;
}

/* ---------- 黄色の帯（LP と同じ。斜めにして、中の文字だけ戻す） ---------- */

.band {
  display: inline-block;
  padding: 5px 12px;
  background: var(--yellow);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  transform: skewX(-8deg);
}

.band > span,
.band-inline > span {
  display: inline-block;
  transform: skewX(8deg);
}

.band-inline {
  display: inline-block;
  margin: 0 2px;
  padding: 2px 8px;
  background: var(--yellow);
  color: var(--navy-900);
  line-height: 1.35;
  transform: skewX(-8deg);
}

/* ---------- 主ボタン（LP の「無料相談」のボタンと同じ色と形） ---------- */

.btn-cta {
  display: block;
  width: 100%;
  margin: 0;
  padding: 17px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe08a 0%, #f2a71b 45%, #dc8f0a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 4px rgba(150, 90, 0, 0.25),
    0 5px 0 #a5690a,
    0 16px 28px -8px rgba(226, 150, 10, 0.65);
  color: #5a3800;
  font-family: inherit;
  font-size: clamp(16px, 4.8vw, 18px);
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}

.btn-cta:hover {
  color: #5a3800;
}

.btn-cta:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(150, 90, 0, 0.2),
    0 0 0 #a5690a,
    0 5px 12px -5px rgba(226, 150, 10, 0.55);
}

.btn-cta > span {
  display: block;
}

/* ---------- ✓ の並び ---------- */

.checks {
  display: table;
  margin: 12px auto 0;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.75;
}

.checks li {
  display: flex;
  gap: 6px;
}

.check {
  flex: none;
  color: var(--teal);
  font-weight: 900;
}

/* ---------- 予約ページ: 最初の画面 ---------- */

/* 予約の枠は、よくある質問の上の区画に置く。最初の画面は案内のリンクで終わるので、下の余白は上と同じにする
   （次の区画の頭の斜めの分だけ、下が少し広く見える） */
.fv {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 60%);
  color: #fff;
}

.fv-title {
  margin: 12px 0 10px;
  font-family: var(--font-head);
  font-size: min(26px, 7vw);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(10, 25, 45, 0.4);
}

.fv-title-em {
  display: inline-block;
  margin-top: 2px;
  color: var(--yellow);
  font-size: min(32px, 8.6vw);
}

.fv-lead {
  color: #d7e4f3;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

/* 予約の枠はページの下の方（よくある質問の上）にあるので、最初の画面にも枠へ飛ぶボタンを置く。見た目は最後のボタンと同じ */
.fv-cta {
  margin-top: 16px;
}

/* 相談の内容への案内（ページ内のリンク）。日時を選ぶボタンの下の 2 つ目の行き先なので、小さいままボタンの真ん中に置く */
.fv-more {
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
}

.fv-skip {
  display: inline-block;
  padding: 6px 0;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.fv-skip:hover {
  color: #fff;
}

.hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #dbe3ec;
}

.hero figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

/* 1024px 以上で、上の段の右の列に出す */
.hero--pc {
  display: none;
}

.hero--pc figcaption {
  color: #a9bdd6;
}

.hero--sp {
  margin-bottom: 26px;
}

/* ---------- 予約の枠（白い枠に、見出し・日時選択・安心の 3 行・個人情報の扱いの文） ---------- */

.booking-card {
  margin-top: 18px;
  padding: 18px 12px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px -12px rgba(5, 25, 50, 0.55);
  color: var(--ink);
  /* ページの中のボタンで動いたとき、枠の頭が画面の端に付かないよう少し空ける */
  scroll-margin-top: 12px;
}

/* 枠は、よくある質問のすぐ上の紺の区画（.section--booking）に置く。上の余白は区画の padding だけにする */
.section--booking .booking-card {
  margin-top: 0;
}

/* 見出しの飾り（.sec-title）の左端を、枠の中の文の左端にそろえる */
.booking-title {
  margin-bottom: 10px;
}

/* 枠は紺の区画の中にあるが、中は白い地なので、紺の区画の見出しの色（白い字・薄い青緑の飾り）にしない */
.booking-card .sec-title {
  color: var(--ink);
}

.booking-card .sec-title::before {
  background: var(--blue);
}

.booking-card .sec-title::after {
  background: repeating-linear-gradient(90deg, var(--line) 0 12px, transparent 12px 18px);
}

/* 個人情報の扱い（小さく）。安心の 3 行と分けるため、点線で区切る。
   1024px 以上で最後の行が「取り扱います。」だけにならないよう、行の長さをそろえる（2〜4 行なので balance が効く） */
.booking-privacy {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-wrap: balance;
}

/* ---------- 3-2 無料オンライン相談でできること ---------- */

.num {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

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

.can-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px -10px rgba(24, 60, 100, 0.4);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.75;
}

.can-item p {
  padding-top: 3px;
}

.worry {
  margin-top: 28px;
  padding: 18px 16px;
  border-radius: 12px;
  background: var(--soft);
}

.worry-title {
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

.checks--lg {
  margin-top: 10px;
  color: var(--ink);
  font-size: 15.5px;
}

.checks--lg li + li {
  margin-top: 4px;
}

/* ---------- 3-3 相談の概要 ---------- */

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.overview {
  width: 100%;
  border-collapse: collapse;
}

.overview th,
.overview td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
}

.overview tr:last-child th,
.overview tr:last-child td {
  border-bottom: 0;
}

/* 320px でも「いただくもの」が 1 行に入る幅 */
.overview th {
  width: 40%;
  background: var(--tint);
  color: var(--navy-900);
  font-weight: 700;
}

/* 360px 未満は、値の列に「オンライン（Zoom）。」が 1 行に入るよう、文字と余白を少し詰める（見出しの列の幅は変えない） */
@media (max-width: 359px) {
  .overview th,
  .overview td {
    padding: 12px 10px;
    font-size: 14px;
  }
}

/* ---------- 3-4 相談の流れ（スマホは縦、PC は横。番号と矢印） ---------- */

.flow {
  display: grid;
  gap: 34px;
}

.flow-step {
  position: relative;
  padding: 16px 16px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.flow-step::after {
  content: '';
  position: absolute;
  bottom: -27px;
  left: 50%;
  border-top: 13px solid var(--teal);
  border-right: 14px solid transparent;
  border-left: 14px solid transparent;
  transform: translateX(-50%);
}

.flow-step:last-child::after {
  display: none;
}

.flow-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-title {
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 17.5px;
  font-weight: 900;
  line-height: 1.45;
}

.flow-body {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- 3-5 担当者のご紹介 ---------- */

.staff {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

/* 実在のスタッフの写真。切り抜かず、元の縦横比のまま角丸の枠に入れる */
.staff-photo {
  width: 112px;
  border-radius: 12px;
}

.staff-name {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.4;
}

.staff-qual {
  margin-top: 6px;
  color: var(--teal-light);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}

.staff-text {
  grid-column: 1 / -1;
}

.staff-body {
  color: #d7e4f3;
  font-size: 15.5px;
  line-height: 1.95;
}

.staff-quote {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(127, 212, 203, 0.3);
  border-left: 4px solid var(--teal-light);
  background: rgba(255, 255, 255, 0.07);
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: 17.5px;
  font-weight: 900;
  line-height: 1.7;
  /* 行頭の「の左の空きを詰め、行の頭をそろえる */
  font-feature-settings: 'palt';
}

.staff-note {
  margin-top: 12px;
  color: #a9bdd6;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- 3-6 血糖値の高い方が注意したいリスク（紺と灰だけ。赤で強調しない） ---------- */

.risk-lead {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
}

.risk-cards {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.risk-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.risk-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--navy-900);
}

.risk-icon svg {
  width: 46px;
  height: 46px;
}

.risk-icon .ic-sub {
  stroke: #8a9aab;
}

.risk-name {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
}

.risk-part {
  font-size: 14px;
}

.risk-stat {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.5;
}

.risk-num {
  margin: 0 1px;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

/* 数字の出典。カードの列と同じ幅で左寄せにし、小さく本文より薄くする。リンクは付けない。
   色は --muted だと淡い地（--soft）で 4.5:1 ちょうどになるので、少し濃くした（5.5:1） */
.risk-source {
  margin-top: 14px;
  color: #53667a;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}

.risk-source-title {
  font-weight: 700;
}

/* 2 行目からは「・」の後ろにそろえる。英語の雑誌名や巻号は、320px でも語の途中で折れてはみ出さない（.bk の overflow-wrap） */
.risk-source-list li {
  padding-left: 1em;
  text-indent: -1em;
}

.bridge {
  margin-top: 26px;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: min(18px, 4.8vw);
  font-weight: 900;
  line-height: 1.8;
  text-align: center;
}

.section-cta {
  max-width: 520px;
  margin: 16px auto 0;
}

/* ---------- 3-7 よくある質問（details/summary） ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px -10px rgba(24, 60, 100, 0.4);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 46px 14px 15px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

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

/* 開くと「＋」が「×」になる */
.faq-item summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 17px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 14px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 14px no-repeat;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-q {
  flex: none;
  padding: 0 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.7;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.faq-a {
  padding: 0 15px 14px;
}

.faq-a p {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- 3-8 最後の誘い ---------- */

.final {
  text-align: center;
}

.final-text {
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-size: min(20px, 5.2vw);
  font-weight: 900;
  line-height: 1.7;
}

.final .btn-cta {
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- 日時選択（貼る形。予約の枠の中） ---------- */

/* 貼る形の外側の枠。白い背景と余白は、予約の枠（.booking-card）が持つ */
.smile-booking {
  margin-top: 4px;
}

/* 768px 未満では、TimeRex の日時選択の中身が枠より広く、右の端（320・360px）や左の時刻（390px）が切れていた。TimeRex が枠
   （#timerex_calendar）に width: 100% を直に書くので、外側の枠を予約の枠の左右の余白（12px）の分だけ広げて日時選択を 24px 広くし、
   中の文と枠の下のリンクは元の位置に戻す */
@media (max-width: 767px) {
  .smile-booking {
    margin-right: -12px;
    margin-left: -12px;
  }

  .smile-booking-note,
  .smile-booking-link {
    margin-right: 12px;
    margin-left: 12px;
  }
}

/* 貼る形の文には <wbr> が無い（貼る形は一字も変えない）。語の途中や 1 字だけの行で折れないよう、語の切れ目と句読点で折る。
   768px と 320px で最後の行が「（30分程度）。」だけにならないよう、行の長さをそろえる（2〜3 行なので balance が効く。文字は変えない） */
.smile-booking-note {
  position: relative;
  padding-left: 16px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* 1 つ目の文の「タブレット・パソコンから参加できます」は、<wbr> が無いので 1 つの塊になる。幅の狭いスマホで塊が 1 行に
   入らないと、「タブレット・」や「（30分程度）。」だけの行ができるので、字を少し小さくして入れる */
@media (max-width: 389px) {
  .smile-booking-note {
    font-size: 13.5px;
  }
}

@media (max-width: 374px) {
  .smile-booking-note {
    font-size: 13px;
  }
}

.smile-booking-note::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.smile-booking-note + .smile-booking-note {
  margin-top: 6px;
}

#timerex_calendar {
  margin-top: 14px;
}

#timerex_calendar iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

/* TimeRex が読み込まれるまでの場所を取っておく（読み込めないときは、枠の下の予約ページへのリンクで予約できる） */
#timerex_calendar:empty {
  min-height: 260px;
  border-radius: 10px;
  background: #f8fafc;
}

/* 見本の URL のままのときだけ、script が何も描かないことが分かるよう点線の枠を出す（確認用）。
   本番の URL で TimeRex が読めないときに、確認用の文を利用者に見せないため */
#timerex_calendar[data-url*='TEAM_ID']:empty::before {
  content: '（ここに日時の選択が出ます）';
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 16px;
  border: 2px dashed #b9c6d3;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.smile-booking-link {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* 日時選択の部品が出すリンクの文。「こちら｜から」のように語の途中で折れないよう、読点で折る */
.smile-booking-link {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 1 行だけのリンクなので、上下に余白を付けて押しやすくする（高さ 24px 以上） */
.smile-booking-link a {
  display: inline-block;
  padding: 4px 0;
}

/* JavaScript が動かないときの案内（予約の枠の中の noscript）。日時選択の代わりに目に入るよう、日時選択の場所と同じ淡い地に置く */
.booking-noscript {
  margin-top: 14px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
}

/* JavaScript が動かないときは日時選択が出ないので、空の場所（260px）を取らずに案内の文だけを見せる */
@media (scripting: none) {
  #timerex_calendar:empty {
    display: none;
  }
}

/* ---------- サンクスページ ---------- */

.page-top {
  padding: 24px 0 32px;
  background: var(--soft);
}

/* 予約が確定したことが一目で分かる、大きめのチェックの印（濃い青緑の丸に白いチェック、外に薄い輪） */
.done-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #dff3f0;
  color: var(--teal-dark);
}

.done-mark svg {
  width: 58px;
  height: 58px;
}

.page-title {
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: min(24px, 6.4vw);
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.page-lead {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

/* このあとの流れ（白い枠に、番号付きの 3 段） */
.next-card {
  margin-top: 20px;
  padding: 18px 16px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px -14px rgba(5, 25, 50, 0.35);
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.8;
}

.step + .step {
  margin-top: 14px;
}

.step .num {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

/* 番号と番号を細い線でつなぐ */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 34px;
  bottom: -12px;
  left: 14px;
  width: 2px;
  background: var(--line);
}

.info-block + .info-block {
  margin-top: 30px;
}

.info-block p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
}

/* ---------- フッター（今のフォームのページと同じ文言。見た目は LP の紺と 3 色の線） ---------- */

.site-footer {
  position: relative;
  padding: 32px 0 26px;
  background: var(--navy-950);
  color: #fff;
  text-align: center;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, #1857a6 0 32px, #12938a 32px 64px, #f2a71b 64px 80px);
}

.footer-logo {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
}

.footer-logo img {
  width: auto;
  height: 28px;
}

.pmark {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  margin: 16px auto 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.pmark img {
  flex: none;
  width: 56px;
  height: 56px;
}

.pmark p {
  font-size: 12px;
  line-height: 1.6;
}

.copyright {
  margin-top: 18px;
  color: #7f97b3;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ================= 768px 以上 ================= */

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }

  .section {
    padding: 48px 0 56px;
  }

  .slant {
    padding-top: calc(var(--slant) + 40px);
  }

  .sec-title {
    margin-bottom: 22px;
    font-size: 26px;
  }

  .sec-title--sm {
    font-size: 20px;
  }

  .fv {
    padding: 32px 0;
  }

  /* 最初の画面と予約の枠の区画は、1 列のまま 688px に抑える。予約の枠は、TimeRex の日時選択を確かめてきた幅（640px）のままにする */
  .fv > .container,
  .section--booking > .container {
    max-width: 688px;
  }

  .fv-title {
    font-size: 30px;
  }

  .fv-title-em {
    font-size: 38px;
  }

  .fv-lead {
    font-size: 16px;
  }

  /* 前文の幅（640px）いっぱいのボタンは大きすぎるので、1024px 以上の左の列と同じ 440px にする。案内のリンクもこの幅の真ん中に置く */
  .fv-cta,
  .fv-more {
    max-width: 440px;
  }

  .fv-cta {
    margin-top: 20px;
  }

  /* 1 列のまま画面の幅いっぱいにすると大きすぎる（712×534px）ので、幅を抑えて真ん中に置く */
  .hero--sp {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
  }

  .booking-card {
    margin-top: 24px;
    padding: 24px 28px 26px;
  }

  .can-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .can-item {
    flex-direction: column;
    gap: 10px;
  }

  .worry {
    padding: 22px 24px;
  }

  .overview th,
  .overview td {
    padding: 16px 20px;
  }

  .overview th {
    width: 30%;
  }

  .staff {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px 24px;
  }

  .staff-photo {
    width: 160px;
  }

  .risk-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .risk-card {
    flex-direction: column;
    gap: 10px;
    padding: 20px 14px;
    text-align: center;
  }

  .page-top {
    padding: 32px 0 44px;
  }

  .done-mark {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
  }

  .done-mark svg {
    width: 68px;
    height: 68px;
  }

  .page-title {
    font-size: 28px;
  }

  .next-card {
    margin-top: 26px;
    padding: 24px 28px 26px;
  }
}

/* ================= 1024px 以上 ================= */

@media (min-width: 1024px) {
  .container--wide {
    max-width: 1080px;
  }

  /* 最初の画面は 2 列（左に見出し・前文、右に写真）。予約の枠（よくある質問の上の区画）は、ほかの区画（760px）より広い最大 880px。
     TimeRex の日時選択は幅で PC とスマホの見た目が切り替わるので、狭い列に入れない。最初の画面も同じ幅にして左右の端をそろえる */
  .fv > .container,
  .section--booking > .container {
    max-width: calc(880px + 2 * var(--gutter));
  }

  .fv {
    padding: 44px 0;
  }

  .fv-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
    align-items: center;
  }

  .fv-title {
    margin-top: 16px;
    font-size: 32px;
  }

  .fv-title-em {
    font-size: 42px;
  }

  .booking-card {
    margin-top: 32px;
    padding: 28px 32px 30px;
  }

  .hero--pc {
    display: block;
  }

  .hero--sp {
    display: none;
  }

  /* 相談の流れの見出しを、ほかの区画（760px の枠）と同じ左端にそろえる */
  .sec-title--narrow {
    max-width: calc(760px - 2 * var(--gutter));
    margin-right: auto;
    margin-left: auto;
  }

  .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
  }

  .flow-step::after {
    top: 50%;
    right: -25px;
    bottom: auto;
    left: auto;
    border-top: 14px solid transparent;
    border-right: 0;
    border-bottom: 14px solid transparent;
    border-left: 13px solid var(--teal);
    transform: translateY(-50%);
  }

  .flow-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .staff {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
  }

  .staff-photo {
    grid-row: span 2;
    width: 200px;
  }

  .staff-text {
    grid-column: 2;
  }
}
