/* ============================================================
   ensō LP v2 — v2.css
   ------------------------------------------------------------
   「LINE画面で語る」構成の、v2固有のレイアウトと動き。
   共有部品(btn-ink / btn-line-green / 円成CTA / 料金の横流れ / フッター)
   は animation.css 側にあり、このファイルはそれに重ねて読む。
   調整ポイント:
   ・.step の min-height … 一周の体験で、1段あたりのスクロール量
   ・.loop-phone の top … 固定されるスマホの高さ位置
   ・bubIn の 0.5s … トークが1つ現れる速さ
   ============================================================ */

:root { --ease-soft: cubic-bezier(0.22, 1, 0.36, 1); }

/* ---------- 見出しの小さなラベル ---------- */

.lbl {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #8B887F;
}

/* ---------- ヘッダー(v2は常時表示) ---------- */

#v2-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid #E3DFD4;
}
/* メニュー: 14px・墨色・字間を詰め、読める文字に。下線が細く伸びるホバー */
.v2-nav { gap: 30px; }
.v2-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #1A1815;
  white-space: nowrap;
  transition: color 0.3s var(--ease-soft);
}
.v2-nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: #1A1815;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-soft);
}
.v2-nav a:hover::after { transform: scaleX(1); }
@media (min-width: 768px) and (max-width: 1023px) { .v2-nav { gap: 22px; } .v2-nav a { font-size: 13px; } }

/* ---------- LINE画面のモック ----------
   実写に差し替えるまでの、HTMLで描いた画面。 */

/* 端末: 黒いベゼル+ステンレスの縁、Dynamic Island、側面ボタン、机に置いた影 */
.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 2.05;
  padding: 11px;
  background: #14120F;
  border-radius: 52px;
  box-shadow:
    inset 0 0 0 1.5px #55504A,
    inset 0 0 0 3px #14120F,
    0 40px 70px -35px rgba(26, 24, 21, 0.55),
    0 12px 24px -16px rgba(26, 24, 21, 0.35);
  display: flex;
}
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: 3px;
  background: #2A2825;
  border-radius: 2px;
}
.phone::before { left: -3px; top: 118px; height: 104px; background: linear-gradient(#2A2825 0 42%, transparent 42% 58%, #2A2825 58% 100%); } /* 音量 */
.phone::after  { right: -3px; top: 148px; height: 78px; } /* 電源 */
.screen {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 42px;
  overflow: hidden;
}
.screen::before { /* Dynamic Island */
  content: '';
  position: absolute;
  left: 50%;
  top: 11px;
  width: 92px;
  height: 28px;
  transform: translateX(-50%);
  background: #14120F;
  border-radius: 14px;
  z-index: 2;
}
.screen::after { /* ホームインジケータ */
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 108px;
  height: 4px;
  transform: translateX(-50%);
  background: #1A1815;
  border-radius: 2px;
  opacity: 0.85;
}
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 14px 26px 0 30px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.phone-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 12px 12px;
  border-bottom: 1px solid #E3DFD4;
  font-size: 13px;
  font-weight: 500;
}
.phone-bar .chev, .phone-bar .pb-ic { flex: none; }
.phone-bar i { display: block; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #E3DFD4; }
.pb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-name small { font-size: 10px; color: #8B887F; margin-left: 4px; }
.chat {
  flex: 1;
  min-height: 0;
  background: #F0EEE8;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
}
.chat-input { display: flex; align-items: center; gap: 10px; padding: 10px 14px 30px; background: #FFFFFF; }
.chat-input svg { flex: none; }
.chat-input i { flex: 1; display: block; height: 36px; border-radius: 18px; background: #F0EEE8; }

.bub {
  max-width: 84%;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.7;
}
.bub-shop {
  background: #FFFFFF;
  border: 1px solid #E3DFD4;
  border-radius: 14px 14px 14px 4px;
  align-self: flex-start;
}
.bub-me {
  background: #06C755;   /* LINEの画面内なので、LINE緑がそのまま登場する */
  color: #FFFFFF;
  border-radius: 14px 14px 4px 14px;
  align-self: flex-end;
}
.bt {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: #8B887F;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bub-me .bt { color: rgba(255, 255, 255, 0.78); }
/* 日付の区切り(LINEの日付チップ) */
.bub-date {
  align-self: center;
  max-width: none;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(26, 24, 21, 0.07);
  color: #55534C;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
/* 入力中… */
.bub-typing { padding: 11px 14px; display: flex; gap: 4px; align-items: center; }
.bub-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9B978E; animation: typing 1s ease-in-out infinite; }
.bub-typing i:nth-child(2) { animation-delay: 0.15s; }
.bub-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.bub-tag {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #FB8446;
}
/* ---------- 店側の画面(カルテ)のミニチュア ----------
   LINEの吹き出しとは別物だと分かるよう、後半「カルテの仕組み」のタブレット画面と
   同じ言語(ラベル+罫線+朱の記録点)で組む。段3で現れる。
   デスクトップ: スマホの右からカード(.store-card)が顔を出す
   モバイル:     トークの中に差し込む(.bub-store) */
.bs-cap {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.2em; color: #8B887F; white-space: nowrap;
}
.bs-cap::before { content: ''; flex: none; width: 14px; height: 1px; background: #8B887F; }
.bs-card {
  margin-top: 7px;
  background: #FFFFFF;
  border: 1px solid #DAD6CC;
  border-radius: 6px;
  padding: 9px 12px 11px;
  color: #1A1815;
  line-height: 1.6;
  box-shadow: 0 14px 28px -22px rgba(26, 24, 21, 0.5);
}
.bs-top {
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 7px; margin-bottom: 2px;
  border-bottom: 1px solid #1A1815;
  font-size: 11px; letter-spacing: 0.15em; font-weight: 500;
}
.bs-top em { margin-left: auto; font-style: normal; font-weight: 300; font-size: 10px; letter-spacing: 0.04em; color: #55534C; }
.bs-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid #E3DFD4;
  font-size: 11.5px; line-height: 1.6;
}
.bs-row > span { flex: none; width: 54px; font-size: 9.5px; letter-spacing: 0.12em; color: #8B887F; }
.bs-row > div { flex: 1; min-width: 0; }
/* 要の行だけ、ラベルを上に置いて値を一行で見せる */
.bs-next { flex-direction: column; align-items: stretch; gap: 3px; border-bottom: 0; padding-top: 8px; padding-bottom: 0; }
.bs-next > div { position: relative; padding-right: 22px; font-size: 11px; color: #55534C; white-space: nowrap; }
.bs-next b { font-size: 17px; font-weight: 500; color: #1A1815; margin-right: 2px; letter-spacing: 0.04em; }
/* 記録の一点(朱)。カードが現れた少し後に押される */
.bs-ink {
  position: absolute; right: 2px; top: 50%;
  width: 10px; height: 10px; margin-top: -5px; border-radius: 2px;
  background: #FB8446; opacity: 0; transform: scale(0.4) rotate(8deg);
  transition: opacity 0.35s var(--ease-soft) 0.55s, transform 0.45s var(--ease-soft) 0.55s;
}
#loop[data-active="3"] .store-card .bs-ink,
#loop .bub-store.on .bs-ink { opacity: 1; transform: scale(1) rotate(8deg); }

.store-card {
  position: absolute;
  left: 58%;
  top: 26%;
  width: 200px;
  z-index: 6;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft);
  pointer-events: none;
}
/* デスクトップの見出しは、トークの吹き出しに重なっても読めるよう墨のチップにする */
.store-card .bs-cap { display: inline-flex; background: #1A1815; color: #F7F4EE; padding: 4px 9px; border-radius: 3px; font-size: 9.5px; }
.store-card .bs-cap::before { display: none; }
.store-card .bs-card { margin-top: 6px; }
#loop[data-active="3"] .store-card { opacity: 1; transform: none; }
/* トーク内の版はモバイル専用。デスクトップでは v2.js が .on を付けても出さない */
@media (min-width: 768px) { #loop .bub-store { display: none !important; } }
.bub-store {
  display: none;
  align-self: stretch;
  max-width: none;
  padding: 6px 0 2px;
  background: transparent;
}
.bub-store .bs-cap { justify-content: center; }
.bub-store .bs-cap::before { display: none; }
.slot-row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.slot { border: 1px solid #1A1815; border-radius: 4px; padding: 4px 8px; font-size: 11px; }

/* ヒーローの端末は正面(傾ける案は検討の上、静けさを優先して不採用) */

/* ---------- モバイルのヒーロー ----------
   見出し → 一文 → ボタン2つ(横並び) → スマホ(丸ごと・少し小さく)の順。
   スマホを容器で切る案は「見切れ」に見えるため不採用 */
/* 案B: 端末の枠なしで、トークだけを和紙の上に浮かべる */
.hero-talk { display: none; }
@media (max-width: 767px) {
  #hero > div { padding-top: 40px; padding-bottom: 44px; gap: 22px; }
  #hero .gap-3 { flex-direction: row; gap: 10px; }
  #hero .gap-3 a { flex: 1; padding-left: 10px; padding-right: 10px; font-size: 12.5px; letter-spacing: 0.1em; }
  #hero .flex.justify-center { display: none; } /* 端末はモバイルでは出さない(次の「一周の体験」で登場) */
  .hero-talk { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 2px; }
  .hero-talk .bub { font-size: 13.5px; line-height: 1.75; }
  .hero-talk .bub-shop { max-width: 88%; box-shadow: 0 10px 24px -18px rgba(26, 24, 21, 0.35); }
  .hero-talk .bub-me { box-shadow: 0 10px 24px -18px rgba(6, 199, 85, 0.5); }
  .hero-talk .slot { background: #FFFFFF; }
}

/* ---------- 一周の体験(スクロールでトークが進む) ---------- */

.loop-phone {
  position: sticky;
  top: 120px;
  align-self: start;
}
#loop .phone { max-width: 290px; }
#loop .bub { display: none; }
#loop .bub.on { display: block; animation: bubIn 0.5s var(--ease-soft) both; }
#loop .bub-typing.on { display: flex; }
@keyframes bubIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  opacity: 0.5;
  transition: opacity 0.5s var(--ease-soft);
}
.step:last-child { min-height: 50vh; }
.step.is-on { opacity: 1; }
.step-num {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #8B887F;
}
.step-num.karte { color: #FB8446; }

/* モバイル: スマホと「いまの段」の説明を両方固定し、スクロールは段の
   切り替えだけを動かす。段(ol > .step)は見えないスクロール量になる */
.loop-cap { display: none; }
@media (max-width: 767px) {
  .loop-phone {
    top: 72px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: #F7F4EE;
    padding-bottom: 20px;
    /* 入場: 下端から少しずつ現れるのではなく、全体が画面に入ってから姿を見せる(v2.js が opacity/transform を更新) */
    transform-origin: 50% 0;
    will-change: opacity, transform;
  }
  .loop-cap { min-height: 150px; }
  /* 高さ: 画面の高さから ヘッダー72px + 説明枠 約230px を引いた分。比率は実機のまま。
     lvh(ツールバーが畳まれた時の高さ)を使うのは、スクロール中に大きさが変わらないようにするため */
  #loop .phone {
    width: auto;
    max-width: none;
    height: clamp(340px, calc(100vh - 300px), 440px);
    height: clamp(340px, calc(100lvh - 300px), 440px);
    aspect-ratio: 1 / 2.05;
    padding: 8px;
    border-radius: 38px;
  }
  .loop-cap { display: block; width: 100%; }
  .loop-cap-in { transition: opacity 0.22s var(--ease-soft), transform 0.22s var(--ease-soft); }
  .loop-cap-in.swap { opacity: 0; transform: translateY(6px); }
  .loop-cap-in .step-num { font-size: 11px; }
  .loop-cap-in h3 { margin-top: 6px; font-size: 19px; line-height: 1.6; }
  .loop-cap-in h3 + p { margin-top: 8px; font-size: 13.5px; line-height: 1.85; }
  .loop-dots { display: flex; gap: 6px; margin-top: 16px; }
  .loop-dots i { display: block; width: 18px; height: 2px; background: #E3DFD4; transition: background 0.3s var(--ease-soft); }
  .loop-dots i.on { background: #1A1815; }
  /* 段は見えないが、スクロール量として残す(v2.js の IO がこれを見ている) */
  #loop ol .step { visibility: hidden; pointer-events: none; }
  #loop .phone::before { top: 80px; height: 72px; }
  #loop .phone::after { top: 100px; height: 54px; }
  #loop .screen { border-radius: 30px; }
  #loop .screen::before { width: 66px; height: 20px; top: 8px; }
  #loop .screen::after { width: 76px; bottom: 6px; }
  #loop .status { height: 36px; padding: 10px 18px 0 22px; font-size: 11px; }
  #loop .status svg { width: 44px; }
  #loop .phone-bar { padding: 4px 10px 8px; font-size: 11px; }
  #loop .phone-bar i { width: 24px; height: 24px; }
  #loop .chat { padding: 12px; gap: 8px; }
  #loop .bub { font-size: 11.5px; padding: 8px 10px; }
  #loop .chat-input { padding: 8px 10px 20px; gap: 8px; }
  #loop .chat-input i { height: 30px; }
  .store-card { display: none; }
  #loop .bub-store.on { display: block; }
  #loop .bub-store { padding: 4px 0 2px; }
  #loop .bub-store .bs-card > .bs-row:nth-child(3) { display: none; } /* モバイルはメモ行を省き、前の吹き出しが見える高さに */
  #loop .bs-card { padding: 8px 10px 9px; }
  #loop .bs-row { font-size: 11px; padding: 5px 0; }
  #loop .bs-row > span { width: 50px; letter-spacing: 0.04em; }
  #loop .bs-next b { font-size: 16px; }
  .step { min-height: 70vh; }
  .step:last-child { min-height: 60vh; }
}

/* ---------- 選ばれる理由: 大きな明朝の一語 ----------
   話題を一語で掴ませる見出し語。朱は「記録」(カルテ系統)だけに許可 */
.why-key { font-size: 56px; line-height: 1; letter-spacing: 0.04em; color: #1A1815; }
.why-key-karte { position: relative; display: inline-block; }
.why-key-karte::after { content: ""; position: absolute; right: -14px; top: 2px; width: 8px; height: 8px; border-radius: 2px; background: #FB8446; }
@media (min-width: 768px) { .why-key { font-size: 72px; } }

/* ---------- 課題: オーナーの独り言(吹き出し+線画のアバター) ----------
   絵も見出しも置かず、本音だけを明朝で。左右にゆるく振って会話の並びに */
.voice-grid { display: grid; gap: 18px 40px; }
.voice-item { display: flex; align-items: flex-end; gap: 12px; max-width: 94%; }
.avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E3DFD4;
  overflow: hidden;
  object-fit: cover;   /* 画像アバターは顔を中心にトリミング */
}
/* 生成画像の地(和紙色)を白に飛ばし、丸の中でページと同化しないようにする。
   墨線は暗いので影響なし。地が白い画像なら外してよい */
img.avatar { filter: brightness(1.07) contrast(1.02); }
.voice {
  position: relative;
  padding: 18px 22px;
  background: #F0EDE5;
  border-radius: 16px 16px 16px 4px;
  font-size: 16px;
  line-height: 1.9;
  color: #1A1815;
}
.voice::after {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  background: #F0EDE5;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.voice-grid > :nth-child(even) { justify-self: end; flex-direction: row-reverse; }
.voice-grid > :nth-child(even) .voice { border-radius: 16px 16px 4px 16px; }
.voice-grid > :nth-child(even) .voice::after { left: auto; right: -6px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
@media (min-width: 768px) {
  .voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; }
  .voice-grid > :nth-child(even) { margin-top: 40px; }
  .voice-item { max-width: 96%; }
  .voice { font-size: 17px; }
  .avatar { width: 64px; height: 64px; }
}

/* ---------- 改行の作法 ----------
   語句の途中(リピ/ーター)で折れないように。auto-phrase 対応ブラウザでは
   自動で文節単位に、非対応でも .nw で語句をひとかたまりに保つ */
.voice, h1, h2, h3 { word-break: auto-phrase; }
.nw { white-space: nowrap; }

/* ---------- できることの線画(墨のモノライン) ---------- */
.feat-ic { flex: none; width: 48px; height: 48px; }
@media (max-width: 767px) { .feat-ic { width: 40px; height: 40px; } }

/* ---------- 自動で続くメッセージの例(タイムライン) ----------
   墨のモノライン。デスクトップは横一列、モバイルは縦一列 */
.scn { }
.scn-row { position: relative; display: flex; gap: 14px; }
.scn-row::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 1px; background: #B8B4A8; }
.scn-node { position: relative; flex: 1; min-width: 0; padding-top: 20px; }
.scn-node::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: #F7F4EE; border: 1.6px solid #1A1815; }
.scn-start::before { background: #1A1815; }
.scn-stop::before { border-style: dashed; }
.scn-when { display: block; font-size: 11px; letter-spacing: 0.15em; color: #6F6C63; }
.scn-node b { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; line-height: 1.6; }
/* 終点: 線がそのまま小さな未完の円(来店の一周)に流れ込む */
.scn-end { flex: 0 0 auto; padding-top: 0; }
.scn-end::before { display: none; }
.scn-end svg { display: block; margin-top: -17px; }
.scn-end b { margin-top: 6px; }
@media (max-width: 767px) {
  .scn-row { flex-direction: column; gap: 16px; padding-left: 24px; }
  .scn-row::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .scn-node { padding-top: 0; }
  .scn-node::before { left: -24px; top: 4px; }
  .scn-end { display: flex; align-items: center; gap: 12px; margin-left: -17px; }
  .scn-end svg { margin-top: 0; }
  .scn-end b { margin-top: 0; }
}

/* ---------- 実写プレースホルダ(差し替え前提) ---------- */

.ph {
  border: 1px dashed #B8B4A8;
  background: repeating-linear-gradient(135deg, rgba(26, 24, 21, 0.035) 0 6px, transparent 6px 14px);
  color: #8B887F;
  font-size: 11px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.8;
}

/* ---------- カルテの仕組み: タブレット(店側) → 線 → iPhone(お客様) ----------
   画面に入ると([data-live].is-live)、次回推奨日から一本の墨の線が描かれ、
   届いた瞬間にLINEのトークが現れる。線の始点だけ朱(記録の一点) */

/* タブレット(横向き) */
.tablet {
  padding: 10px;
  background: #14120F;
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 1.5px #55504A,
    inset 0 0 0 3px #14120F,
    0 30px 60px -30px rgba(26, 24, 21, 0.5),
    0 10px 20px -14px rgba(26, 24, 21, 0.3);
}
.tablet-screen { background: #FFFFFF; border-radius: 12px; overflow: hidden; }
.tab-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 12px; border-bottom: 1px solid #E3DFD4;
}
.tab-title { font-size: 15px; }
.tab-tabs { display: flex; gap: 18px; font-size: 12px; color: #8B887F; letter-spacing: 0.05em; }
.tab-tabs .on { color: #1A1815; border-bottom: 1.5px solid #1A1815; padding-bottom: 2px; }
.karte-form {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.karte-form .row { display: flex; flex-direction: column; gap: 5px; }
.karte-form .row span { font-size: 11px; letter-spacing: 0.15em; color: #8B887F; }
.karte-form .row div { border-bottom: 1px solid #E3DFD4; padding: 6px 2px; font-size: 13px; }
.karte-form .row.next div {
  position: relative;
  border: 1px solid #FB8446;
  padding: 10px 12px;
  font-size: 14px;
}
.karte-form .row.next b { font-size: 18px; font-weight: 500; margin-right: 4px; }
/* 記録の一点(朱)。画面に入ると押される */
.karte-ink {
  position: absolute; right: 10px; top: 50%;
  width: 10px; height: 10px; margin-top: -5px; border-radius: 2px;
  background: #FB8446; opacity: 0; transform: scale(0.4) rotate(8deg);
  transition: opacity 0.35s var(--ease-soft), transform 0.45s var(--ease-soft);
}

/* 線 */
.karte-link { position: relative; text-align: center; }
.karte-link-h { display: none; width: 100%; height: auto; }
.karte-link-v { display: block; width: 80px; height: 96px; margin: 0 auto; }
.karte-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease-soft) 0.35s;
}
.karte-dot { opacity: 0; transition: opacity 0.3s var(--ease-soft) 0.2s; }
.karte-when {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; line-height: 1.3;
  background: #F0EDE5; padding: 6px 10px;
  opacity: 0; transition: opacity 0.5s var(--ease-soft) 0.9s;
}
.karte-when b { font-size: 18px; font-weight: 500; }
.karte-when span { font-size: 10.5px; letter-spacing: 0.15em; color: #6F6C63; margin-top: 2px; }

/* iPhone 側: トークは線が届いてから順に */
.karte-phone { max-width: 250px; }
.karte-phone .bub { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft); }
.karte-phone .bub:nth-child(1) { transition-delay: 1.7s; }
.karte-phone .bub:nth-child(2) { transition-delay: 1.9s; }
.karte-phone .bub:nth-child(3) { transition-delay: 2.6s; }
.karte-phone .bub:nth-child(4) { transition-delay: 3.2s; }

/* 画面に入ったら */
.is-live .karte-ink { opacity: 1; transform: scale(1) rotate(8deg); }
.is-live .karte-line { stroke-dashoffset: 0; }
.is-live .karte-dot { opacity: 1; }
.is-live .karte-when { opacity: 1; }
.is-live .karte-phone .bub { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .karte-link-h { display: block; }
  .karte-link-v { display: none; }
  .karte-when { top: 24%; }
  .karte-phone { max-width: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  .karte-ink, .karte-dot, .karte-when, .karte-phone .bub { opacity: 1; transform: none; transition: none; }
  .karte-line { stroke-dashoffset: 0; transition: none; }
}

/* ---------- 動きの引き算 ----------
   セクションのフェードアップ(animation.css の [data-reveal])と順次出現は
   v2 では使わない。動くのは「ヒーローのトーク」「一周の体験」「円成CTA」だけ。
   静止した95%が、動く5%を主役にする */
[data-reveal] { opacity: 1; transform: none; transition: none; }
[data-reveal] .stagger > * { opacity: 1; transform: none; transition: none; }

/* ---------- ヒーローのトーク: 読み込み時に一度だけ、順に打ち込まれる ----------
   CSSだけで完結(JSに依存しない)。間隔は nth-child の delay で調整 */
#hero .bub { animation: bubIn 0.5s var(--ease-soft) both; }
/* ヒーローのトークは4件すべてが画面に収まる幅・余白にする(最初の予約確認が見切れないように) */
#hero .phone .bub { max-width: 90%; }
#hero .phone .chat { padding: 16px 14px; gap: 10px; }
#hero .phone .slot { padding: 4px 7px; }
#hero .bub:nth-child(1) { animation-delay: 0.4s; }
#hero .bub:nth-child(2) { animation-delay: 0.9s; }
#hero .bub:nth-child(3) { animation-delay: 1.4s; }
#hero .bub:nth-child(4) { animation-delay: 2.0s; }
#hero .bub:nth-child(5) { animation-delay: 2.5s; }
#hero .bub:nth-child(6) { animation-delay: 3.1s; }

/* ---------- 7. カルテの章だけ、和紙を一段濃く(朱の章) ---------- */
#karte { background: #F0EDE5; }

/* ---------- 円相のしるし(署名として、小さく) ---------- */

.enso-mark { flex: none; }

/* ---------- reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
  #hero .bub { animation: none; }
  .store-card { position: static; opacity: 1; transform: none; margin: 0 auto 12px; transition: none; }
  .bs-ink { opacity: 1; transform: scale(1) rotate(8deg); transition: none; }
  #loop .bub { display: block; animation: none; }
  .bub-typing { display: none !important; }
  .step { opacity: 1; transition: none; }
  .loop-phone { position: static; }
  #loop ol .step { visibility: visible; }
  .loop-cap { display: none !important; }
  [data-reveal] .stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- ensō AI: ブランド表記とAIの印 ----------
   AIの視覚表現は「墨が自動で書き進む」動きと、小さな AI の札だけ。
   紫のグラデーションや星は使わない。色は3系統のまま */
.brand { display: inline-flex; align-items: baseline; gap: 7px; color: #1A1815; }
.brand-ai {
  font-family: 'EB Garamond', serif; font-style: normal; font-weight: 500;
  font-size: 0.56em; letter-spacing: 0.1em; line-height: 1.25;
  padding: 1px 5px 0; border: 1px solid #1A1815; border-radius: 3px;
  transform: translateY(-0.18em);
}
.ai-tag {
  display: inline-block; font-style: normal; font-weight: 500;
  font-size: 9.5px; letter-spacing: 0.14em; line-height: 1.5;
  padding: 1px 6px; border: 1px solid #1A1815; border-radius: 3px; color: #1A1815;
  vertical-align: middle; white-space: nowrap;
}
.bs-top .ai-tag { margin-left: 2px; font-size: 8.5px; padding: 0 5px; }
/* 一字ずつ書き進む時のカーソル(墨の縦線) */
.typing::after {
  content: ''; display: inline-block; width: 1px; height: 1em;
  background: #1A1815; margin-left: 2px; vertical-align: -0.15em;
  animation: caret 0.9s steps(1) infinite;
}
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ヒーロー: 店側の画面(AIの下書き)がスマホの左下に重なる */
.hero-visual { position: relative; }
@media (min-width: 768px) { .hero-visual { justify-content: flex-end; } }
.hero-ai { display: none; position: absolute; left: -10px; bottom: 44px; width: 204px; z-index: 6; }
.hero-ai .bs-cap { display: inline-flex; background: #1A1815; color: #F7F4EE; padding: 4px 9px; border-radius: 3px; font-size: 9.5px; }
.hero-ai .bs-cap::before { display: none; }
.hero-ai .bs-card { margin-top: 6px; }
.hero-ai .bs-row > span { width: 58px; }
@media (min-width: 768px) { .hero-ai { display: block; } }
@media (min-width: 768px) and (max-width: 1023px) { .hero-ai { left: -24px; width: 200px; } }

/* お店側の面倒も、AIに */
.ai-jobs { display: flex; flex-direction: column; }
.ai-jobs li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid #E3DFD4; }
.ai-jobs li:last-child { border-bottom: 1px solid #E3DFD4; }
.ai-jobs-n { flex: none; width: 34px; padding-top: 3px; font-size: 14px; letter-spacing: 0.08em; color: #8B887F; }
.ai-jobs p { margin-top: 6px; font-size: 14px; line-height: 1.9; color: #55534C; }
.ai-screen-wrap { align-self: start; }
#ai .tablet { max-width: 440px; }
#ai .karte-form .row div { min-height: 30px; }
@media (max-width: 767px) {
  .ai-jobs li { gap: 14px; padding: 18px 0; }
  #ai .tablet { max-width: none; }
}

/* ---------- 一周の体験: AIの手 ----------
   お店の吹き出しは「AI下書き中」(点線の吹き出しに一字ずつ書かれる)を経て届く。
   段の説明には「AIがしたこと」を一行添える */
.loop-h2-ai { display: block; margin-top: 0.25em; }
.bub .ai-tag { display: table; margin-bottom: 4px; font-size: 8.5px; padding: 0 5px; }
.bub-draft { border-style: dashed; border-color: #B8B4A8; color: #55534C; background: #FBFAF6; }
.bub-draft .draft-text { display: block; min-height: 1.7em; }
.step-ai {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 4px; font-size: 13px; line-height: 1.8; color: #55534C;
}
.step-ai .ai-tag { flex: none; }
@media (max-width: 767px) {
  .loop-cap-in .step-ai { margin-top: 8px; font-size: 12.5px; }
}

/* ---------- 整合性パス: AIの印の置き方 ----------
   札(.ai-tag)は「画面の中」(吹き出し・カード・機能名)に限定し、段の説明行は文だけにする */
.step-ai { color: #55534C; }
.step-ai::before { content: ''; flex: none; width: 12px; height: 1px; background: #B8B4A8; }
.feat-ai { vertical-align: 2px; margin-left: 2px; }
.tab-title .ai-tag { margin-left: 8px; vertical-align: 2px; }
/* 選ばれる理由の「AI」: 記録・コストの漢字と重さをそろえる(ブランドの枠付きAIと同じ形) */
.why-key-ai {
  display: inline-block;
  font-family: 'EB Garamond', serif; font-style: normal; font-weight: 500;
  font-size: 50px; line-height: 1.05; letter-spacing: 0.08em;
  padding: 6px 18px 2px; border: 3px solid #1A1815; border-radius: 9px;
}
@media (min-width: 768px) { .why-key-ai { font-size: 62px; padding: 8px 22px 3px; } }

/* ---------- よくある質問(案D: アコーディオンを整える) ----------
   1問目は開いた状態。質問は一回り大きく、答えは結論(墨・太め)→補足(グレー)。
   開閉の印は「＋」ではなく「開く / 閉じる」の細い文字 */
.faq-list .faq-w { border-bottom: 1px solid #E3DFD4; }
.faq-list .faq-w:first-child { border-top: 1px solid #E3DFD4; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 16px; line-height: 1.7; letter-spacing: 0.04em; color: #1A1815;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
.faq-i { flex: none; width: 22px; height: 22px; position: relative; }
/* 墨の「＋」。開くと45度回って「×」になる(回転は animation.css の .faq-w[open] .faq-i) */
.faq-i::before, .faq-i::after { content: ''; position: absolute; left: 50%; top: 50%; background: #A29E93; transform: translate(-50%, -50%); transition: background 0.3s var(--ease-soft); }
.faq-i::before { width: 16px; height: 1px; }
.faq-i::after { width: 1px; height: 16px; }
.faq-q:hover .faq-i::before, .faq-q:hover .faq-i::after { background: #1A1815; }
.faq-a { padding: 0 60px 26px 0; font-size: 14px; line-height: 2; color: #55534C; max-width: 760px; }
.faq-a b { display: block; margin-bottom: 4px; font-weight: 500; color: #1A1815; font-size: 15px; }
@media (min-width: 768px) {
  .faq-q { font-size: 17px; padding: 26px 0; }
  .faq-a { padding-right: 96px; }
}
@media (max-width: 767px) { .faq-a { padding-right: 24px; } }

/* ---------- ブランド表記の比較(A / C / E) ----------
   html[data-mark] で切り替える。A = 既定(枠)。C = 右肩に小さく。E = 未完の円の中に AI。
   URL に ?mark=c / ?mark=e を付けると v2.js が data-mark を立てる(brand.html から誘導) */
:root { --ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath d='M52 14 A24 24 0 1 0 58 22' fill='none' stroke='%231A1815' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E"); --ring-thick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath d='M52 14 A24 24 0 1 0 58 22' fill='none' stroke='%231A1815' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* C: 右肩 */
[data-mark="c"] .brand { align-items: flex-start; gap: 0.08em; }
[data-mark="c"] .brand-ai { border: 0; padding: 0; font-size: 0.38em; letter-spacing: 0.12em; transform: translateY(0.05em); }
[data-mark="c"] .ai-tag { border: 0; padding: 0; font-size: 9px; letter-spacing: 0.16em; vertical-align: 3px; }
[data-mark="c"] .why-key-ai { border: 0; padding: 0; font-size: 56px; }
@media (min-width: 768px) { [data-mark="c"] .why-key-ai { font-size: 72px; } }
/* E: 未完の円の中に AI。中の文字は目の中心に合わせて 0.09em 上げる(padding-bottom で) */
[data-mark="e"] .brand { align-items: center; gap: 0.2em; }
[data-mark="e"] .brand-ai {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  font-size: 0.34em; letter-spacing: 0.05em; width: 2.55em; height: 2.55em; padding: 0 0 0.18em;
  border: 0; border-radius: 0; transform: none; line-height: 1;
  background: var(--ring) center / 100% 100% no-repeat;
}
[data-mark="e"] .ai-tag { border: 0; padding: 0 0 0 16px; position: relative; letter-spacing: 0.14em; }
[data-mark="e"] .ai-tag::before { content: ''; position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; background: var(--ring-thick) center / 100% 100% no-repeat; }
[data-mark="e"] .bs-top .ai-tag { padding-left: 14px; }
[data-mark="e"] .why-key-ai {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  border: 0; padding: 0 0 0.18em; width: 2.6em; height: 2.6em; font-size: 26px; letter-spacing: 0.06em;
  background: var(--ring) center / 100% 100% no-repeat;
}
@media (min-width: 768px) { [data-mark="e"] .why-key-ai { font-size: 32px; } }
/* 切り替えバー(比較のときだけ v2.js が付ける) */
.mark-bar { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: rgba(26, 24, 21, 0.92); border-radius: 6px; color: #F7F4EE; font-size: 11px; letter-spacing: 0.12em; }
.mark-bar span { padding: 0 6px 0 4px; color: #B8B4A8; }
.mark-bar a { display: inline-block; padding: 5px 10px; border-radius: 4px; color: #F7F4EE; }
.mark-bar a.on { background: #F7F4EE; color: #1A1815; }
/* E: 吹き出し・カード見出しの札は、円の分だけ左に余白(.bub .ai-tag の padding を上書き) */
[data-mark="e"] .bub .ai-tag, [data-mark="e"] .bs-top .ai-tag, [data-mark="e"] .mock-bub .ai-tag { padding: 0 0 0 14px; }
/* E: ヘッダー級でも AI が読めるよう、円を一回り大きく(E-2) */
[data-mark="e"] .brand-ai { font-size: 0.4em; width: 2.45em; height: 2.45em; }
/* 免責は本文から切り離し、小さな注記として別の行に */
.note-sub { margin-top: 6px; font-size: 12px; line-height: 1.8; letter-spacing: 0.02em; color: #8B887F; }

/* ---------- 一周の印(進み具合で円が描かれる) ----------
   固定されるスマホの列の上に置く。段1で1/5、段5で円が閉じる */
.loop-mark { position: absolute; left: 0; top: -42px; display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 0.25em; color: #8B887F; }
.loop-mark svg { width: 32px; height: 32px; overflow: visible; }
.loop-mark-bg { fill: none; stroke: #1A1815; stroke-width: 2.5; stroke-linecap: round; opacity: 0.1; }
.loop-mark-line { fill: none; stroke: #1A1815; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0.8; transition: stroke-dashoffset 0.9s var(--ease-soft); }
@media (max-width: 767px) { .loop-mark { display: none; } }
@media (prefers-reduced-motion: reduce) { .loop-mark-line { transition: none; } }
/* 店側カードの各行は1行で。収まらない時は末尾を省略 */
.store-card .bs-row > div, .bub-store .bs-row > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* カード見出しは折り返さない(「カルテ」が二行に割れないように) */
.bs-top > span { white-space: nowrap; }
.bs-top em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- AIの下書きの三拍子: 考える → 書く → お店が確認 ----------
   文字の先端で点滅する印を、細い縦線ではなく「AIの印」にする(A=小さな枠、C=AIの文字、E=円) */
.typing::after {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 4px; vertical-align: -1px;
  border: 1px solid #1A1815; border-radius: 2px; background: none;
  animation: caret 0.9s steps(1) infinite;
}
[data-mark="c"] .typing::after { content: 'AI'; width: auto; height: auto; border: 0; font-family: 'EB Garamond', serif; font-size: 8px; letter-spacing: 0.1em; vertical-align: 2px; line-height: 1; }
[data-mark="e"] .typing::after { border: 0; border-radius: 0; width: 11px; height: 11px; vertical-align: -2px; background: var(--ring-thick) center / 100% 100% no-repeat; }
/* ① 考える: 印だけが脈打つ */
.thinking::after { animation: think 0.8s ease-in-out infinite; margin-left: 0; }
@keyframes think { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }
/* ③ 確認: 点線が墨の実線になり、「お店が確認 ✓」が付く */
.draft-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bub .draft-head .ai-tag { display: inline-block; margin-bottom: 0; }
.bub-draft .ok { display: none; font-size: 9.5px; letter-spacing: 0.1em; color: #1A1815; white-space: nowrap; }
.bub-draft.confirm { border-style: solid; border-color: #1A1815; color: #1A1815; transition: border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft); }
.bub-draft.confirm .ok { display: inline; }
@media (prefers-reduced-motion: reduce) { .typing::after, .thinking::after { animation: none; } }

/* ---------- 来店の一周の地図(案C) + 大きな段番号(案A) ----------
   置き場所は #loop[data-ring]: top(スマホの上・既定) / right(右側の余白) / bg(背景) */
.loop-mark { display: none; }
.loop-ring { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; }
.loop-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lr-track { fill: none; stroke: #1A1815; stroke-width: 2; stroke-linecap: round; opacity: 0.1; }
.lr-line { fill: none; stroke: #1A1815; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0.8; transition: stroke-dashoffset 0.9s var(--ease-soft); }
.lr-dot { fill: #F7F4EE; stroke: #1A1815; stroke-width: 2; transition: fill 0.4s var(--ease-soft); }
.lr-dot.on { fill: #1A1815; }
.lr-dot.lr-karte.on { fill: #FB8446; stroke: #FB8446; }
.lr-lbl { position: absolute; font-size: 10px; letter-spacing: 0.12em; color: #B8B4A8; white-space: nowrap; transition: color 0.4s var(--ease-soft); }
.lr-lbl.on { color: #55534C; }
.lr-lbl.now { color: #1A1815; }
.lr-1 { right: -8px; top: 2px; transform: translateX(100%); }
.lr-2 { left: -8px; top: 2px; transform: translateX(-100%); }
.lr-3 { left: -10px; top: 50%; transform: translate(-100%, 20%); }
.lr-4 { left: 50%; bottom: -8px; transform: translate(-50%, 100%); }
.lr-5 { right: -10px; top: 50%; transform: translate(100%, 20%); }
.lr-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: 'Shippori Mincho', serif; font-size: 12px; letter-spacing: 0.2em; color: #1A1815; white-space: nowrap; }
/* 置き場所 */
#loop[data-ring="top"] .loop-ring { margin: 0 auto 22px; }
#loop[data-ring="top"] .phone { max-width: 250px; }
#loop[data-ring="right"] .loop-ring { position: absolute; left: calc(100% + 80px + 470px); top: 40px; width: 190px; height: 190px; margin: 0; }
#loop[data-ring="bg"] .loop-ring { position: absolute; left: calc(100% + 40px); top: -20px; width: 560px; height: 560px; margin: 0; opacity: 0.55; pointer-events: none; z-index: 0; }
#loop[data-ring="bg"] .lr-title { font-size: 18px; }
#loop[data-ring="bg"] .lr-lbl { font-size: 12px; }
#loop[data-ring="bg"] .lr-dot { r: 7; }
#loop ol { position: relative; z-index: 1; }
/* 大きな段番号 */
.step-num { font-size: 40px; line-height: 1; letter-spacing: 0.04em; color: #C9C5BA; }
.step-num.karte { color: #FB8446; }
@media (min-width: 768px) { .step-num { font-size: 52px; } }
@media (max-width: 767px) {
  .loop-ring { display: none; }
  .loop-cap-in .step-num { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .lr-line, .lr-dot, .lr-lbl { transition: none; } }
/* 置き場所②: 右の余白の列に固定 */
.loop-ringcol { display: none; }
@media (min-width: 768px) {
  .loop-ringcol { display: block; position: sticky; top: 120px; align-self: start; padding-top: 34px; }
  .loop-ringcol .loop-ring { width: 150px; height: 150px; margin: 0; }
  #loop .phone { max-width: 290px; }
}
@media (min-width: 1024px) { .loop-ringcol .loop-ring { width: 156px; height: 156px; } }
/* 右の地図はやめ、小さな「来店の一周」の印に戻す */
.loop-mark { display: flex; }
@media (max-width: 767px) { .loop-mark { display: none; } }
/* 段番号を濃く。今の段は墨色 */
.step-num { color: #9B978C; transition: color 0.4s var(--ease-soft); }
.step.is-on .step-num { color: #1A1815; }
.step.is-on .step-num.karte, .step-num.karte { color: #FB8446; }

/* ---------- 今の段の合図(1+2) ----------
   待っている段はより薄く、今の段の左に墨の縦線が滑る。スマホの上の印には「03 ・ 段の名前」 */
.step { opacity: 0.35; }
.step.is-on { opacity: 1; }
.loop-steps { position: relative; }
.step-bar { position: absolute; left: -22px; top: 0; width: 3px; height: 0; background: #1A1815; border-radius: 2px; opacity: 0; transition: top 0.55s var(--ease-soft), height 0.55s var(--ease-soft), opacity 0.3s; }
.step-bar.on { opacity: 1; }
@media (min-width: 1024px) { .step-bar { left: -28px; } }
.loop-mark { gap: 8px; }
.loop-mark .lm-n { font-size: 14px; letter-spacing: 0.06em; color: #1A1815; }
.loop-mark .lm-t { font-family: 'Shippori Mincho', serif; font-size: 12px; letter-spacing: 0.06em; color: #1A1815; white-space: nowrap; }
@media (max-width: 767px) { .step-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .step-bar { transition: none; } }
/* 段3の店側カードは、段の左の縦線と重ならない位置まで左へ */
.store-card { left: 44%; }

/* ---------- ヒーロー: お店の画面(タブレット)。AIが聞く→書く→お店が確認→LINEへ届く ---------- */
.hero-ai { width: 262px; left: -30px; bottom: 30px; }
.ai-tab { margin-top: 6px; background: #FFFFFF; border: 1px solid #DAD6CC; border-radius: 8px; box-shadow: 0 16px 32px -24px rgba(26, 24, 21, 0.5); overflow: hidden; }
.ai-tab-bar { display: flex; gap: 12px; padding: 7px 12px; background: #F7F4EE; border-bottom: 1px solid #E3DFD4; font-size: 9px; letter-spacing: 0.14em; color: #8B887F; }
.ai-tab-bar .on { color: #1A1815; border-bottom: 1px solid #1A1815; padding-bottom: 1px; }
/* AIとの短い対話 */
.ai-talk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px 8px; font-size: 10.5px; line-height: 1.5; }
.ai-q { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 6px; border: 1px solid #E3DFD4; border-radius: 10px 10px 10px 3px; background: #FBFAF6; color: #1A1815; }
.ai-q .ai-tag { font-size: 7.5px; padding: 0 4px; }
.ai-a { display: inline-block; padding: 4px 9px; border-radius: 10px 10px 3px 10px; background: #1A1815; color: #F7F4EE; letter-spacing: 0.06em; transition: opacity 0.3s var(--ease-soft); }
.ai-a.swap { opacity: 0; }
.ai-q2 { width: 100%; align-self: flex-start; margin-right: auto; }
.ai-q2 .ai-say { min-height: 1.5em; }
/* 入力欄 */
.ai-rows { padding: 2px 12px 4px; }
.ai-row { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid #E3DFD4; font-size: 11px; line-height: 1.6; position: relative; }
.ai-row > span { flex: none; width: 54px; font-size: 9px; letter-spacing: 0.12em; color: #8B887F; }
.ai-row .v { flex: 1; min-width: 0; min-height: 1.6em; color: #1A1815; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-row .ok { flex: none; width: 10px; height: 10px; opacity: 0; transition: opacity 0.3s var(--ease-soft); }
.ai-row .ok::before { content: ''; position: absolute; right: 1px; top: 50%; width: 6px; height: 3px; border-left: 1.5px solid #1A1815; border-bottom: 1.5px solid #1A1815; transform: translateY(-70%) rotate(-45deg); }
.ai-row.done .ok { opacity: 1; }
/* 書いている行: 薄い墨の下線が伸びる */
.ai-row::after { content: ''; position: absolute; left: 64px; right: 0; bottom: -1px; height: 1px; background: #1A1815; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-soft), opacity 0.3s; opacity: 0; }
.ai-row.writing::after { transform: scaleX(1); opacity: 0.6; }
.ai-foot { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px 9px; font-size: 9px; letter-spacing: 0.14em; color: #8B887F; }
.ai-done { color: #1A1815; opacity: 0; transition: opacity 0.35s var(--ease-soft); }
.hero-ai.confirm .ai-done { opacity: 1; }
/* お知らせの行から LINE の吹き出しへ、墨の線が届く */
.ai-link { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; z-index: 7; }
.ai-link-path { fill: none; stroke: #1A1815; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.8s var(--ease-soft); }
.ai-link-dot { fill: #1A1815; opacity: 0; transition: opacity 0.3s var(--ease-soft) 0.7s; }
.hero-ai.linked .ai-link-path { stroke-dashoffset: 0; }
.hero-ai.linked .ai-link-dot { opacity: 1; }
/* 届いた吹き出しが一瞬、墨の縁になる */
#hero .bub.hl { box-shadow: 0 0 0 1.5px #1A1815; transition: box-shadow 0.3s var(--ease-soft); }
@media (min-width: 768px) and (max-width: 1023px) { .hero-ai { left: -34px; width: 236px; } }
@media (prefers-reduced-motion: reduce) { .ai-row::after, .ai-link-path, .ai-link-dot, .ai-done, .ai-a { transition: none; } .hero-ai .ai-done { opacity: 1; } }
/* タブレットがLINEの吹き出しを隠さないよう、スマホを少し小さく、カードを左へ */
#hero .phone { max-width: 300px; }
.hero-ai { width: 228px; left: -40px; bottom: 26px; }
/* 対話の吹き出しの「AI」は、案Eでも円を入れず小さな枠のまま(円と文字が重なるため) */
[data-mark="e"] .ai-q .ai-tag { padding: 0 4px; border: 1px solid #1A1815; }
[data-mark="e"] .ai-q .ai-tag::before { display: none; }
/* 線が見えるよう、タブレットとスマホの間を空け、線を太く */
#hero .phone { max-width: 290px; }
.hero-ai { width: 214px; left: -44px; }
.ai-link-path { stroke-width: 2; }
.ai-link-dot { r: 3.5; }
/* 案E: 円の下端をベースラインに合わせる(小文字の ensō と高さをそろえる) */
[data-mark="e"] .brand-ai { transform: translateY(0.1em); }
/* 案E 調整c: 円の線を筆記体の太さに(3.6→5.6)、間隔を詰める(0.2→0.12em)。札の円も太く */
:root { --ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath d='M52 14 A24 24 0 1 0 58 22' fill='none' stroke='%231A1815' stroke-width='5.6' stroke-linecap='round'/%3E%3C/svg%3E"); --ring-thick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath d='M52 14 A24 24 0 1 0 58 22' fill='none' stroke='%231A1815' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-mark="e"] .brand { gap: 0.12em; }

/* ---------- 一周の体験: AI表現の強化(案1〜5) ---------- */
/* 案1+2: お店の画面の帯。段3のカードと同じ位置(スマホの右から顔を出す) */
.desk { position: absolute; left: 44%; top: 22%; width: 214px; z-index: 6; opacity: 0; transform: translateX(-10px); transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft); pointer-events: none; }
.desk.on { opacity: 1; transform: none; }
.desk .bs-cap { display: inline-flex; background: #1A1815; color: #F7F4EE; padding: 4px 9px; border-radius: 3px; font-size: 9.5px; }
.desk .bs-cap::before { display: none; }
.desk .bs-card { margin-top: 6px; border-style: dashed; border-color: #B8B4A8; transition: border-color 0.25s var(--ease-soft); }
.desk.confirm .bs-card { border-style: solid; border-color: #1A1815; }
.desk-src { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.desk-src span { font-size: 9px; letter-spacing: 0.06em; color: #55534C; border: 1px solid #E3DFD4; border-radius: 3px; padding: 1px 6px; background: #F7F4EE; white-space: nowrap; }
.desk-src span::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 1px; background: #FB8446; margin-right: 5px; vertical-align: 1px; }
.desk-text { min-height: 2.9em; font-size: 11.5px; line-height: 1.6; color: #1A1815; }
.desk-foot { margin-top: 6px; font-size: 9.5px; letter-spacing: 0.1em; color: #1A1815; min-height: 1.4em; }
.desk-ok { opacity: 0; transition: opacity 0.3s var(--ease-soft); }
.desk.confirm .desk-ok { opacity: 1; }
@media (max-width: 767px) { .desk { display: none; } }
/* 案3: 段3のカルテ、朱の記録点は書き終えてから */
#loop[data-active="3"] .store-card .bs-ink { transition-delay: 2.3s; }
/* 案4: 段の説明の AI とお店のやりとり */
.step-ai { flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.step-ai::before { display: none; }
.say-ai { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border: 1px solid #E3DFD4; border-radius: 12px 12px 12px 3px; background: #FBFAF6; font-size: 12.5px; color: #1A1815; }
.say-ai .ai-tag { font-size: 8px; padding: 0 4px; }
.say-shop { display: inline-block; padding: 5px 10px; border-radius: 12px 12px 3px 12px; background: #1A1815; color: #F7F4EE; font-size: 12px; letter-spacing: 0.06em; }
.step:not(.is-on) .say-shop { background: #6F6C63; }
/* 案5: 印に「AI 下書き中」 */
.lm-busy { display: none; align-items: center; gap: 5px; margin-left: 4px; font-size: 10px; letter-spacing: 0.14em; color: #1A1815; animation: caret 1s steps(1) infinite; }
.lm-busy .ai-tag { font-size: 7.5px; padding: 0 4px; }
.loop-mark.busy .lm-busy { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .lm-busy { animation: none; } .desk { transition: none; } }
/* 下書き中は段の名前と入れ替えて出す(列の幅に収める) */
.lm-busy { white-space: nowrap; }
.loop-mark.busy .lm-t { display: none; }
/* 案E: 「AI」だけの短い札(対話・印)は円を入れず、小さな枠のまま。円は「AI下書き」の札とロゴに限る */
[data-mark="e"] .say-ai .ai-tag, [data-mark="e"] .lm-busy .ai-tag, [data-mark="e"] .ai-q .ai-tag { padding: 0 4px; border: 1px solid #1A1815; }
[data-mark="e"] .say-ai .ai-tag::before, [data-mark="e"] .lm-busy .ai-tag::before, [data-mark="e"] .ai-q .ai-tag::before { display: none; }
/* 課題の受けの一行: 見出し級の大きさ + 下へ導く墨の縦線 */
.pain-bridge { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.pain-bridge .brand { display: inline-flex; margin: 0 0.06em; }
.pain-bridge-line { display: block; width: 1px; height: 56px; background: #1A1815; margin-left: 1px; }
@media (min-width: 768px) { .pain-bridge-line { height: 72px; } }
.pain-bridge-line { display: none; }

/* ---------- 導入の流れ: 画面のかけら(B) + 一本の線(C) ---------- */
.steps-flow { position: relative; padding-top: 30px; }
.steps-track, .steps-ink { position: absolute; left: 0; right: 0; top: 8px; height: 1px; }
.steps-track { background: #E3DFD4; }
.steps-ink { background: #1A1815; transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-soft); }
.is-live .steps-ink { transform: scaleX(1); }
.stp { position: relative; }
.stp-dot { position: absolute; left: 50%; top: -27px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 1.5px solid #1A1815; background: #F7F4EE; transition: background 0.35s var(--ease-soft); }
.is-live .stp:nth-child(1) .stp-dot { background: #1A1815; transition-delay: 0.25s; }
.is-live .stp:nth-child(2) .stp-dot { background: #1A1815; transition-delay: 0.7s; }
.is-live .stp:nth-child(3) .stp-dot { background: #1A1815; transition-delay: 1.15s; }
.stp-n { margin-top: 18px; font-size: 22px; letter-spacing: 0.06em; color: #1A1815; line-height: 1; }
/* 画面のかけら */
.stp-shot { height: 156px; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: #FFFFFF; border: 1px solid #DAD6CC; border-radius: 8px; box-shadow: 0 14px 28px -24px rgba(26, 24, 21, 0.45); font-size: 11.5px; line-height: 1.6; color: #1A1815; overflow: hidden; }
.sh-row { display: flex; align-items: center; gap: 10px; }
.sh-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border: 1px solid #DAD6CC; border-radius: 4px; font-size: 10.5px; letter-spacing: 0.04em; white-space: nowrap; }
.sh-pill .f-en { font-size: 12px; }
.sh-green { border-color: #06C755; color: #06C755; }
.sh-link { flex: 1; height: 0; border-top: 1px dashed #B8B4A8; transition: border-color 0.4s var(--ease-soft); }
.is-live .sh-link { border-top-style: solid; border-color: #1A1815; transition-delay: 0.6s; }
.sh-act { position: relative; height: 30px; }
.sh-btn, .sh-done { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 4px; font-size: 11px; letter-spacing: 0.12em; transition: opacity 0.35s var(--ease-soft); }
.sh-btn { background: #06C755; color: #FFFFFF; }
.sh-done { opacity: 0; border: 1px solid #1A1815; }
.is-live .sh-btn { opacity: 0; transition-delay: 1.1s; }
.is-live .sh-done { opacity: 1; transition-delay: 1.1s; }
.sh-note { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 10px; letter-spacing: 0.04em; color: #8B887F; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sh-chips span { padding: 3px 9px; border: 1px solid #DAD6CC; border-radius: 3px; font-size: 10.5px; letter-spacing: 0.04em; color: #55534C; }
.sh-chips .on { background: #1A1815; border-color: #1A1815; color: #F7F4EE; }
.sh-field { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; border-bottom: 1px solid #E3DFD4; }
.sh-field > span { flex: none; width: 52px; font-size: 9px; letter-spacing: 0.12em; color: #8B887F; }
.sh-field > div { flex: 1; min-height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-copy { margin-left: auto; font-size: 10px; letter-spacing: 0.12em; color: #55534C; border-bottom: 1px solid #B8B4A8; }
.sh-people { display: flex; gap: 8px; }
.sh-people i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #1A1815; font-family: 'Shippori Mincho', serif; font-style: normal; font-size: 12px; opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft); }
.is-live .sh-people i:nth-child(1) { opacity: 1; transform: none; transition-delay: 1.3s; }
.is-live .sh-people i:nth-child(2) { opacity: 1; transform: none; transition-delay: 1.55s; }
.is-live .sh-people i:nth-child(3) { opacity: 1; transform: none; transition-delay: 1.8s; }
.sh-joined { opacity: 0; transition: opacity 0.4s var(--ease-soft) 2.1s; }
.is-live .sh-joined { opacity: 1; }
@media (max-width: 767px) {
  .steps-track, .steps-ink, .stp-dot { display: none; }
  .steps-flow { padding-top: 0; }
  .stp-shot { height: auto; min-height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .steps-ink, .stp-dot, .sh-link, .sh-btn, .sh-done, .sh-people i, .sh-joined { transition: none; }
  .steps-ink { transform: scaleX(1); } .stp-dot { background: #1A1815; } .sh-btn { opacity: 0; } .sh-done, .sh-people i, .sh-joined { opacity: 1; transform: none; }
}

/* ---------- 導入の流れ(余白と数字) ---------- */
.steps-flow { padding-top: 0; }
.steps-cols { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 768px) {
  .steps-cols { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .stp { padding: 0 32px 0 28px; border-left: 1px solid #E3DFD4; }
  .stp:first-child { padding-left: 0; border-left: 0; }
  .stp:last-child { padding-right: 0; }
}
.stp .stp-n { margin: 0 0 16px; font-weight: 500; font-size: 64px; line-height: 0.9; letter-spacing: -0.01em; color: #1A1815; }
@media (min-width: 768px) { .stp .stp-n { font-size: 84px; } }
/* 画面の要素は箱に入れず、上に細い罫。画面に入ると罫が左から引かれる */
.stp-frag { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 22px; padding-top: 18px; font-size: 11.5px; line-height: 1.6; color: #1A1815; }
.stp-frag::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #1A1815; transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-soft); }
.is-live .stp:nth-child(1) .stp-frag::before { transform: scaleX(1); transition-delay: 0.1s; }
.is-live .stp:nth-child(2) .stp-frag::before { transform: scaleX(1); transition-delay: 0.35s; }
.is-live .stp:nth-child(3) .stp-frag::before { transform: scaleX(1); transition-delay: 0.6s; }
.stp-frag .sh-note { margin-top: 2px; }
.stp-frag .sh-field { padding: 6px 0; }
@media (prefers-reduced-motion: reduce) { .stp-frag::before { transform: scaleX(1); transition: none; } }
/* モバイルのヒーロー: お店の画面(AIが書く)を吹き出しの上に小さく */
.hero-ai-m { display: none; }
@media (max-width: 767px) {
  .hero-ai-m { display: block; margin: 0 0 6px; }
  .hero-ai-m .bs-cap { display: inline-flex; background: #1A1815; color: #F7F4EE; padding: 4px 9px; border-radius: 3px; font-size: 9.5px; }
  .hero-ai-m .bs-cap::before { display: none; }
  .hero-ai-m .bs-card { margin-top: 6px; }
  .hero-ai-m .bs-row > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-ai-m .bs-row:last-child { border-bottom: 0; }
}
/* モバイルのヒーロー: カードを足した分、見出しと吹き出しを詰めて最初の画面にCTAが入るように */
@media (max-width: 767px) {
  #hero h1 { font-size: 26px; line-height: 1.6; }
  #hero > div { gap: 18px; }
  .hero-talk { gap: 8px; }
  .hero-talk .bub-me { display: none; }
  .hero-ai-m .bs-card { padding: 8px 12px 6px; }
}
@media (max-width: 767px) { .hero-talk .bub-date { display: none; } }

/* ---------- お店側の面倒も、AIに: タブが順に切り替わる画面 + 確認して反映 ---------- */
.ai-tabs span { cursor: default; transition: color 0.3s var(--ease-soft); }
.ai-panels { position: relative; min-height: 196px; }
.ai-panel { display: none; }
.ai-panel.on { display: flex; animation: panelIn 0.35s var(--ease-soft) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ai-panel .row div { min-height: 30px; }
.ai-panel .row span:empty { visibility: hidden; }
.ai-quote { color: #55534C; border-bottom: 0 !important; font-size: 12.5px !important; }
.ai-apply { display: flex; align-items: center; gap: 12px; padding: 0 20px 18px; min-height: 52px; }
.ai-apply-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 4px; background: #1A1815; color: #F7F4EE; font-size: 11.5px; letter-spacing: 0.14em; opacity: 0.25; transition: opacity 0.3s var(--ease-soft), transform 0.15s var(--ease-soft); }
.ai-apply.ready .ai-apply-btn { opacity: 1; }
.ai-apply.pressed .ai-apply-btn { transform: scale(0.97); }
.ai-apply-done { font-size: 11px; letter-spacing: 0.12em; color: #1A1815; opacity: 0; transition: opacity 0.3s var(--ease-soft); }
.ai-apply.done .ai-apply-done { opacity: 1; }
/* 左の4項目: 今の画面に対応するものが墨、ほかはグレー */
.ai-jobs li { transition: opacity 0.4s var(--ease-soft); }
.ai-jobs.cycling li { opacity: 0.45; }
.ai-jobs.cycling li.on { opacity: 1; }
.ai-jobs li.on .ai-jobs-n { color: #1A1815; }
@media (prefers-reduced-motion: reduce) { .ai-panel.on { animation: none; } .ai-apply-btn { opacity: 1; } .ai-apply-done { opacity: 1; } }
/* 次回推奨日: 朱の枠をやめ、大きな明朝の日数 + 小さな日付。下に朱の線が引かれ、端に記録の印が押される */
.karte-form .row.next span { color: #1A1815; }
.karte-form .row.next div {
  position: relative; display: flex; align-items: baseline; gap: 12px;
  border: 0; border-bottom: 1px solid #E3DFD4; padding: 8px 2px 12px; font-size: 14px;
}
.karte-form .row.next div::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #FB8446; transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-soft) 0.2s; }
.is-live .karte-form .row.next div::after { transform: scaleX(1); }
.karte-form .row.next b { font-size: 30px; line-height: 1; font-weight: 500; letter-spacing: 0.04em; margin: 0; }
.karte-form .row.next small { font-size: 13px; letter-spacing: 0.04em; color: #55534C; }
.karte-form .row.next .karte-ink { right: 2px; top: auto; bottom: 8px; margin-top: 0; width: 12px; height: 12px; transition-delay: 0.9s; }
.karte-when { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .karte-form .row.next div::after { transform: scaleX(1); transition: none; } }

/* ============================================================
   業種ごとの区別(html[data-ind]): 和紙の色味 と ヒーローの構図(印・透かし・差し色は外した。色は墨のまま)
   朱=記録、緑=LINE は全業種で固定
   ============================================================ */
html { --ind: #1A1815; --paper: #F7F4EE; --paper-rgb: 247, 244, 238; }
html[data-ind="clinic"]  { --paper: #EDF2F0; --paper-rgb: 237, 242, 240; }       /* 診療: 青みの白 */
html[data-ind="apparel"] { --paper: #EFEDE3; --paper-rgb: 239, 237, 227; }       /* 装い: 灰みの生成り */
html[data-ind="beauty"]  { --paper: #F8F2EC; --paper-rgb: 248, 242, 236; }       /* 美容: 少し赤みの生成り */
html[data-ind] body { background: var(--paper); }
html[data-ind] #v2-head { background: rgba(var(--paper-rgb), 0.92); }



/* ④ 構図: 診療は「院側の画面(問診の下書き)」が主役。スマホは一回り小さく後ろへ */
@media (min-width: 1024px) {
  html[data-ind="clinic"] .hero-ai { width: 292px; left: -72px; bottom: auto; top: 44px; }
  html[data-ind="clinic"] .hero-ai .ai-tab-bar { font-size: 10px; padding: 9px 14px; gap: 14px; }
  html[data-ind="clinic"] .hero-ai .ai-talk { font-size: 12px; padding: 12px 14px 10px; }
  html[data-ind="clinic"] .hero-ai .ai-rows { padding: 2px 14px 6px; }
  html[data-ind="clinic"] .hero-ai .ai-row { font-size: 12.5px; padding: 8px 0; }
  html[data-ind="clinic"] .hero-ai .ai-row > span { width: 62px; font-size: 10px; }
  html[data-ind="clinic"] .hero-ai .ai-row::after { left: 72px; }
  html[data-ind="clinic"] .hero-ai .ai-foot { font-size: 10px; padding: 9px 14px 11px; }
  html[data-ind="clinic"] #hero .phone { max-width: 252px; }
}
/* ④ 構図: 装いは「商品カード」が主役。スマホの左上に置く */
.hero-prod { display: none; }
@media (min-width: 768px) { html[data-ind="apparel"] .hero-prod { display: block; position: absolute; left: -56px; top: 30px; width: 252px; z-index: 6; } }
.hero-prod .bs-cap { display: inline-flex; background: #1A1815; color: #F7F4EE; padding: 4px 9px; border-radius: 3px; font-size: 9.5px; }
.hero-prod .bs-cap::before { display: none; }

/* 紙の色を業種で変えたので、地に直接のる「和紙色の面」も紙の色に追従させる */
html[data-ind] .loop-phone { background: var(--paper); }                       /* 一周: モバイルで固定されるスマホの台 */
html[data-ind] .scn-node::before, html[data-ind] .stp-dot { background: var(--paper); }
html[data-ind] .lr-dot { fill: var(--paper); }
html[data-ind] #karte { background: color-mix(in srgb, var(--paper) 92%, #1A1815 3%); }   /* カルテの仕組み: 地より一段沈めた面 */
html[data-ind] .scn-end-bg { fill: var(--paper); }          /* シナリオの終点の円の地 */
html[data-ind] .feat-ic [fill="#F7F4EE"] { fill: var(--paper); } /* 機能アイコンの抜きの面 */

/* 課題の声 1人目: 業種ごとの墨の似顔絵(白地に墨の線に下ごしらえ済み)。丸の白地に乗算でなじませる */
.avatar-art { background: #FFFFFF; object-fit: cover; mix-blend-mode: normal; }

/* ============================================================
   課題の声(D1): 語り手が左に立ち、6つの悩みが右に番号つきで並ぶ
   ============================================================ */
.pain-d1 { display: grid; grid-template-columns: 1fr; gap: 28px; }
.pain-who { display: grid; grid-template-columns: 76px 1fr; gap: 4px 16px; align-items: center; }
.pain-face { grid-row: 1 / span 2; width: 76px; height: 76px; border-radius: 50%; background: #FFFFFF; border: 1px solid #E3DFD4; object-fit: cover; }
.pain-name { margin: 0; align-self: end; font-size: 16px; letter-spacing: 0.04em; color: #1A1815; }
.pain-bio { margin: 0; align-self: start; font-size: 12.5px; line-height: 1.85; color: #6F6C63; }
.pain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #1A1815; }
.pain-list li { display: grid; grid-template-columns: 38px 1fr; align-items: baseline; padding: 18px 0; border-bottom: 1px solid #E3DFD4; }
.pain-n { font-size: 13px; letter-spacing: 0.08em; color: #8B887F; }
.voice-line { margin: 0; font-size: 16.5px; line-height: 1.85; letter-spacing: 0.03em; color: #1A1815; }
@media (min-width: 768px) {
  .pain-d1 { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
  .pain-who { display: block; position: sticky; top: 104px; }
  .pain-face { width: 132px; height: 132px; }
  .pain-name { margin-top: 18px; font-size: 17px; }
  .pain-bio { margin-top: 6px; }
  .pain-list li { grid-template-columns: 54px 1fr; padding: 22px 0; }
  .pain-n { font-size: 14px; }
  .voice-line { font-size: 19px; }
}
@media (min-width: 1024px) { .pain-d1 { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; } }
/* モバイル: 折り返しの指定(nw)は長い句で画面をはみ出すので、この区画では外して自然に折る */
@media (max-width: 767px) { .voice-line .nw { white-space: normal; display: inline-block; max-width: 100%; } .pain-bio { overflow-wrap: anywhere; } .pain-who > * { min-width: 0; } .pain-list li > * { min-width: 0; } }

/* ============================================================
   装いのヒーロー: 商品カード(案A ・ 登録画面らしく)。線画の写真 → 品名(明朝) → 色とサイズのチップ → AIの説明文 → 登録しました
   動き: 画面に入ると 品名 → 説明文 を一字ずつ書き(runTyping)、チップが灯り、最後に「登録しました ✓」(v2.js の prodCycle)
   ============================================================ */
.hp-card { position: relative; margin-top: 6px; background: #FFFFFF; border: 1px solid #DAD6CC; border-radius: 8px; box-shadow: 0 16px 32px -24px rgba(26, 24, 21, 0.5); overflow: hidden; }
.hp-card > .ai-tag { position: absolute; right: 10px; top: 10px; z-index: 2; background: #FFFFFF; }
.hp-ph { position: relative; height: 118px; background: var(--paper, #F7F4EE); border-bottom: 1px solid #E3DFD4; overflow: hidden; }
.hp-ph img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; mix-blend-mode: multiply; }
.hp-bd { padding: 11px 13px 12px; }
.hp-nm { display: flex; align-items: baseline; justify-content: space-between; }
.hp-nm b { font-family: 'Shippori Mincho', serif; font-weight: 500; font-size: 15px; letter-spacing: 0.04em; color: #1A1815; min-height: 1.5em; }
.hp-nm span { font-size: 14px; color: #1A1815; }
.hp-ch { display: flex; gap: 5px; margin-top: 8px; }
.hp-ch i { font-style: normal; font-size: 9px; letter-spacing: 0.1em; padding: 2px 7px; border: 1px solid #E3DFD4; border-radius: 3px; color: #55534C; transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft); }
.hp-card.lit .hp-ch i.on { background: #1A1815; border-color: #1A1815; color: #F7F4EE; }
.hp-ds { margin: 8px 0 0; font-size: 10px; line-height: 1.6; color: #55534C; min-height: 3.2em; }
.hp-ft { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px solid #E3DFD4; font-size: 9px; letter-spacing: 0.12em; color: #8B887F; }
.hp-ok { font-weight: 500; color: #1A1815; opacity: 0; transition: opacity 0.35s var(--ease-soft); }
.hp-card.done .hp-ok { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hp-card .hp-ch i.on { background: #1A1815; border-color: #1A1815; color: #F7F4EE; } .hp-ok { opacity: 1; } }
/* 装い: 商品カードが高くなったぶん、カードを上へ、タブレットを下へ。写真枠も少し低く */
@media (min-width: 768px) {
  html[data-ind="apparel"] .hero-prod { top: -16px; }
  html[data-ind="apparel"] .hero-ai { bottom: -8px; }
  html[data-ind="apparel"] .hp-ph { height: 104px; }
}
@media (min-width: 768px) and (max-width: 1023px) { html[data-ind="apparel"] .hero-prod { width: 224px; left: -40px; } html[data-ind="apparel"] .hp-ph { height: 92px; } }
/* 課題の声 語り手のひとこと(案C): 紹介文ではなく本人の言葉。右の6つの悩みへの入口 */
.pain-say { font-size: 14px; line-height: 1.8; letter-spacing: 0.03em; color: #1A1815; }
@media (min-width: 768px) { .pain-say { margin-top: 10px; font-size: 15px; } }

/* ===== カルテの施術写真(美容室ページのみ) ===== */
.karte-photos { display: flex; flex-direction: column; gap: 5px; order: 1; }
.karte-photos > span { font-size: 11px; letter-spacing: 0.15em; color: #8B887F; }
.kp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kp-pair figure { margin: 0; position: relative; }
.kp-pair i { display: block; aspect-ratio: 1 / 1; border-radius: 6px; background-color: #EFEBE2; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(26, 24, 21, 0.08); }
.kp-pair figcaption { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 3px; background: rgba(255, 255, 255, 0.92); font-size: 10px; letter-spacing: 0.1em; color: #1A1815; }
.karte-form:has(.karte-photos) .row:nth-of-type(n+4) { order: 2; }
@media (min-width: 768px) {
  .karte-form:has(.karte-photos) { display: grid; grid-template-columns: minmax(0, 1fr) 288px; column-gap: 20px; align-items: start; }
  .karte-form:has(.karte-photos) .row { grid-column: 1; }
  .karte-photos { grid-column: 2; grid-row: 1 / span 4; }
}
@media (max-width: 767px) { .kp-pair { max-width: 320px; } }
@media (max-width: 767px) { #karte h2 { font-size: 22px; letter-spacing: 0.02em; } }
@media (max-width: 767px) {
  html[data-ind="apparel"] #karte h2 { font-size: 21px; letter-spacing: 0.01em; }
  .tab-tabs { gap: 12px; flex-shrink: 0; }
  .tab-tabs span { white-space: nowrap; }
}

/* 段落の最後に1〜2文字だけ残るのを減らす(対応ブラウザのみ) */
p, li { text-wrap: pretty; }
@media (max-width: 767px) { #why h2 { font-size: 24px; } }
/* モバイル: 入力中の長い一行(nowrap)がヒーローの列幅を押し広げないように */
#hero > div > div, .hero-talk, .hero-ai-m, .hero-ai-m .bs-card { min-width: 0; }
.hero-ai-m { max-width: 100%; }
.faq-q, .faq-q > * { text-wrap: pretty; word-break: auto-phrase; }
@media (max-width: 767px) { #scenario .lbl > span { display: inline-block; margin-left: 0; } }
@media (max-width: 767px) { #ai h2, #loop h2 { font-size: 22px; letter-spacing: 0.02em; } }
