/* =========================================================
   Find a Sensei  デザイン v3（空と青 × 黄 × パステル）
   - スマホ優先（モバイルファースト）。768px 以上で PC 用に広げる
   - JavaScript なしで動く前提（言語メニューは <details>）
   - 色・角丸・影はすべて :root の変数から使う（直書きしない）
   - v2 のクラス名はなるべく残してある。変わった点は DESIGN-v3.md の「旧クラスとの対応表」
   - 1本に、v2 の findasensei-app.css（アプリ固有の補足）の分も入れてある（最後の 26〜）
   - その 26〜（アプリ固有の補足）は、public/css/findasensei-app.css に切り出した。この CSS は、デザインの部分だけ。デザインを置き換えるときは、この CSS だけを置き換える
   ========================================================= */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* 青（見出し・リンク・ロゴ） */
  --c-navy: #14305F;         /* 濃い青：見出し・ロゴ・黄色い面の上の文字 */
  --c-blue: #0B63CE;         /* 青：リンク・ヒーローの見出し・「2番目のボタン」の背景（ロゴの青に合わせた。白地で 5.7:1） */
  --c-blue-hover: #084DA3;
  --c-sky: #EAF4FC;          /* 空色：セクションの背景・検索の入力欄・相手の吹き出し */
  --c-sky-2: #D8EBFA;        /* もう少し濃い空色：タグ・チップ・ホバー */

  /* 黄（主要ボタン・マーカー・無料の印） */
  --c-yellow: #FFD21F;           /* ロゴの黄に合わせた */
  --c-yellow-hover: #F5C400;
  --c-yellow-soft: #FFF4CC;  /* 薄い黄：「初回無料」・自分の吹き出し・お知らせ */
  --c-on-yellow: #14305F;    /* 黄の面の上の文字は、濃い青（白は使わない） */

  /* 文字・線・背景 */
  --c-text: #1F2D44;
  --c-text-sub: #4A5A72;
  --c-text-muted: #5B6B82;   /* 白地・空色地のどちらでも 4.5:1 を満たす */
  --c-line: #E3ECF5;
  --c-line-strong: #C9D6E5;  /* 入力欄の枠 */
  --c-bg: #FFFFFF;
  --c-bg-soft: #F6F9FC;
  --c-on-blue: #FFFFFF;

  /* エラー・未読（青と黄だけでは足りない分） */
  --c-red: #D32F2F;
  --c-red-text: #B71C1C;
  --c-red-bg: #FDE7E7;
  --c-green-bg: #E3F5EA;
  --c-green-text: #1B5E3A;

  /* カテゴリ・アバターのパステル色（背景／線・文字）。文字色は背景に対して 4.5:1 以上 */
  --p-pink: #FDE0EA;    --p-pink-ink: #A31D55;
  --p-mint: #DDF3E7;    --p-mint-ink: #1B6E46;
  --p-peach: #FDE3DA;   --p-peach-ink: #B3401B;
  --p-sky: #D8EEFB;     --p-sky-ink: #1D5FB8;
  --p-lavender: #E6E1F7; --p-lavender-ink: #5B3FB3;
  --p-cream: #FFF3C9;   --p-cream-ink: #8A5A00;

  /* アバター（頭文字の丸）：先生 ID を 4 で割った余りなどで 1〜4 を選ぶ */
  --c-avatar-1: var(--p-pink);     --c-avatar-1-ink: var(--p-pink-ink);
  --c-avatar-2: var(--p-sky);      --c-avatar-2-ink: var(--p-sky-ink);
  --c-avatar-3: var(--p-lavender); --c-avatar-3-ink: var(--p-lavender-ink);
  --c-avatar-4: var(--p-mint);     --c-avatar-4-ink: var(--p-mint-ink);

  /* フォント：本文は丸ゴシック。ヒーローの見出し・下部の帯のコピー・「Better Together」だけ、筆記体（Caveat）。
     Caveat は英数字だけなので、日本語ページの見出しは丸ゴシックに切り替わる（:lang(ja)）。別の筆記体に変えるときは、この1行と <link> のフォント名だけ */
  --font-base: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  /* 写真。パスはこの CSS ファイルからの相対（public/css/ なので ../img/）。
     写真が読み込めないときは、後ろの仮の背景（hero-placeholder.svg）が見える */
  --img-hero-pc: url("../img/hero-pc.jpg"), url("../img/hero-placeholder.svg");
  --img-hero-sp: url("../img/hero-sp.jpg"), url("../img/hero-placeholder.svg");
  --img-cta: url("../img/band.jpg"), url("../img/hero-placeholder.svg");

  /* 角丸・影・余白 */
  --radius-pill: 999px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 4px 20px rgba(20, 48, 95, 0.07);
  --shadow-float: 0 8px 30px rgba(20, 48, 95, 0.14);
  --wrap: 1160px;
  --gutter: 16px;
  --bottom-nav-h: 68px;
}

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

/* ---------- 2. 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  /* スマホの固定ナビの分だけ下を空ける */
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.4; color: var(--c-navy); }
p { margin: 0; }
img { max-width: 100%; height: auto; }

a { color: var(--c-blue); font-weight: 700; text-decoration: none; }
a:hover { color: var(--c-blue-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--c-navy);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.only-pc { display: none !important; }
@media (min-width: 768px) { .only-pc { display: inline-flex !important; } }

/* 小さな装飾：見出しの前のきらきら（黄色の3本線）。データ URI の SVG なので、外部の通信はない */
.sparkle::before {
  content: "";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD21F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M4 20 12 12M3 10l5 2M11 3l2 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- 3. お知らせ帯（無料キャンペーンなど） ---------- */
.notice {
  background: var(--c-yellow);
  color: var(--c-on-yellow);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  padding: 8px var(--gutter);
}
@media (min-width: 768px) { .notice { font-size: 14px; padding: 10px var(--gutter); } }

/* ---------- 4. ヘッダー ---------- */
.site-header { background: var(--c-bg); position: relative; z-index: 40; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
@media (min-width: 768px) { .site-header__inner { gap: 28px; padding-top: 14px; padding-bottom: 14px; } }

/* ロゴ：画像（img/logo.png。透明背景・余白は切り詰め済み。5.3:1 の横長） */
.logo { display: block; flex: 0 0 auto; line-height: 0; }
.logo:hover { text-decoration: none; }
.logo__img { display: block; height: 34px; width: auto; }
@media (min-width: 768px) { .logo__img { height: 46px; } }

/* PC のヘッダーメニュー（スマホでは隠し、画面下の固定ナビを使う） */
.gnav { display: none; }
@media (min-width: 768px) {
  .gnav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin: 0 auto;
    font-size: 15px;
  }
  .gnav a { color: var(--c-navy); padding: 10px 0; }
  .gnav a:hover { color: var(--c-blue); text-decoration: none; }
  .gnav a[aria-current="page"] { color: var(--c-blue); box-shadow: inset 0 -3px 0 var(--c-yellow); }
}

/* 右側：言語・ログイン・先生として登録 */
.site-header__actions { display: flex; align-items: center; gap: 8px; }

/* 言語メニュー（<details>。JavaScript なし） */
.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--c-sky);
  color: var(--c-navy);
  font-size: 14px; font-weight: 800;
  list-style: none; cursor: pointer;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 14px; height: 14px; }
.lang[open] summary { background: var(--c-sky-2); }
.lang__menu {
  position: absolute; right: 0; top: 100%;
  margin-top: 6px; padding: 6px; min-width: 150px;
  background: var(--c-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  z-index: 60;
}
.lang__menu a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--c-navy); }
.lang__menu a:hover { background: var(--c-sky); text-decoration: none; }
.lang__menu [aria-current="true"] { background: var(--c-yellow-soft); }

/* ---------- 5. ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

/* 主要ボタン（黄）：探す・メッセージを送る・送信・先生として登録。文字は濃い青 */
.btn--primary { background: var(--c-yellow); color: var(--c-on-yellow); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--c-yellow-hover); color: var(--c-on-yellow); }

/* 2番目のボタン（青）：ログイン画面の補助など。文字は白のまま（hover・focus でも白） */
.btn--secondary { background: var(--c-blue); color: var(--c-on-blue); }
.btn--secondary:hover, .btn--secondary:focus-visible { background: var(--c-blue-hover); color: var(--c-on-blue); }

/* 控えめなボタン：キャンセル・戻る・ログイン */
.btn--ghost { background: var(--c-bg); color: var(--c-blue); box-shadow: inset 0 0 0 2px var(--c-sky-2); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--c-sky); color: var(--c-blue-hover); }

.btn--lg { min-height: 56px; padding: 0 36px; font-size: 18px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.btn__icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- 6. トップ：ヒーロー（全幅の写真。PC は左に見出しと検索・右に人物、スマホは縦長の写真） ---------- */
.hero {
  position: relative;
  background-color: #BFE0F8;
  background-image: var(--img-hero-sp);
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}
/* 文字を読みやすくするため、白をかぶせる。スマホは上から、PC は左から */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.5) 32%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}
.hero__inner { position: relative; padding-top: 24px; padding-bottom: 20px; }
/* スマホ：見出し・説明は上、検索は下（間に人物の顔が見える） */
.hero__text { display: flex; flex-direction: column; min-height: 640px; }
.hero .search { margin-top: auto; }
@media (min-width: 768px) {
  .hero { background-image: var(--img-hero-pc); background-position: 85% 30%; }
  .hero::before { background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.45) 40%, rgba(255, 255, 255, 0) 62%); }
  .hero__inner { padding-top: 72px; padding-bottom: 64px; }
  .hero__text { display: block; min-height: 0; max-width: 560px; }
}

.hero__title {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--c-blue);
  margin: 14px 0 26px 4px;
  transform: rotate(-7deg);
  transform-origin: left bottom;
}
@media (min-width: 768px) { .hero__title { font-size: clamp(68px, 7.6vw, 104px); margin: 10px 0 40px 6px; } }
/* 日本語など、筆記体の字が無い言語は、丸ゴシック（傾けない）。太さを 800 から 500 に変えた */
.hero__title:lang(ja) { font-family: var(--font-base); font-weight: 500; font-size: 30px; line-height: 1.4; transform: rotate(-3deg); transform-origin: left bottom; margin: 4px 0 14px; }
@media (min-width: 768px) { .hero__title:lang(ja) { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 22px; } }

/* 見出しの一語の下に、黄色からオレンジの筆跡（手書き風。左が太く、右へ向かって細くなり、中央がやや盛り上がる。データ URI の SVG なので、外部の通信はない） */
.mark { position: relative; display: inline-block; }
.mark::after {
  content: "";
  position: absolute; left: -2%; right: -2%; bottom: -0.2em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23FFD21F'/%3E%3Cstop offset='1' stop-color='%23F5A623'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 17C10 9 80 4 160 4S270 4 298 5C270 6 200 8 120 11S20 20 2 17Z' fill='url(%23g)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* 日本語：強調の語（「先生」）だけでなく、見出しの最後の行の全体に引く。見出しを、いちばん長い行の幅にして（inline-block）、見出しの下端に線を置く */
.hero__title:lang(ja) { position: relative; display: inline-block; }
.hero__title:lang(ja) .mark { position: static; }
.hero__title:lang(ja) .mark::after { bottom: 0.05em; left: -1%; right: -1%; height: 0.16em; }

/* 日本語の見出しも、少し（-3度）傾ける。韓国語（ko）：ハングルの丸ゴシック（Jua）で、日本語と同じく、-3度。Jua は太さが1つ（400）だけなので、見出し・ボタンは、太字にしない（太字にすると、字体が崩れる） */
:root { --font-ko: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
.hero__title:lang(ko) { font-family: var(--font-ko); font-weight: 400; font-size: 30px; line-height: 1.4; transform: rotate(-3deg); transform-origin: left bottom; margin: 4px 0 14px; position: relative; display: inline-block; }
@media (min-width: 768px) { .hero__title:lang(ko) { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 22px; } }
.hero__title:lang(ko) .mark { position: static; }
.hero__title:lang(ko) .mark::after { bottom: 0.05em; left: -1%; right: -1%; height: 0.16em; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) h4, :lang(ko) .btn { font-family: var(--font-ko); font-weight: 400; }

/* 「Better Together」（飾り。PC だけ。筆記体で、小さな黄色のきらきら付き） */
.hero__note { display: none; }
@media (min-width: 900px) {
  .hero__note {
    display: block;
    position: absolute; top: 34%; left: 54%;
    font-family: var(--font-hand); font-weight: 500; font-size: 30px; line-height: 1;
    color: var(--c-blue);
    transform: rotate(-12deg);
  }
  .hero__note::after {
    content: ""; position: absolute; right: -26px; top: -14px; width: 22px; height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD21F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M4 20 12 12M3 10l5 2M11 3l2 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: scaleX(-1);
  }
}

.hero__lead {
  max-width: 330px;
  margin: 0 0 22px;
  color: var(--c-navy);
  font-size: 15px;
  line-height: 1.7;
}
@media (min-width: 768px) { .hero__lead { margin-bottom: 30px; font-size: 19px; max-width: 520px; } }

/* ---------- 7. 検索フォーム ---------- */
/* スマホ：入力欄2つを横に並べ、下にボタン（高さを抑えて、写真の人物を隠さない） */
.search {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 640px;
  padding: 12px;
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}
.search__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 8px 12px;
  background: var(--c-bg-soft);
  border-radius: var(--radius-md);
}
.search__field > svg { display: none; position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--c-blue); }
.search__field label { font-size: 12px; font-weight: 800; color: var(--c-text-muted); line-height: 1.5; }
.search__field select {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--c-navy);
  font-family: inherit;
  font-size: 16px;            /* 16px 未満だと iPhone で拡大されるため */
  font-weight: 800;
  padding: 2px 0;
  min-height: 28px;
}
.search__divider { display: none; }
.search .btn { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .search__field > svg { display: block; }
  .search {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    border-radius: var(--radius-pill);
  }
  .search__field { flex: 1 1 200px; background: transparent; padding: 6px 20px 6px 54px; }
  .search__field > svg { left: 22px; }
  .search__divider { display: block; width: 1px; margin: 12px 0; background: var(--c-line); }
  .search .btn { min-height: 56px; padding: 0 30px; font-size: 17px; }
}

/* ---------- 8. チップ（人気の駅・言語など） ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 8px;
  margin-top: 16px;
  font-size: 13px;
}
.chips__label { color: var(--c-text-sub); font-weight: 800; }
.chip {
  display: inline-flex; align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--c-bg);
  box-shadow: 0 1px 4px rgba(20, 48, 95, 0.12);
  color: var(--c-blue);
  font-weight: 800;
}
.chip:hover { background: var(--c-sky-2); color: var(--c-navy); text-decoration: none; }
@media (min-width: 768px) { .chips { font-size: 14px; margin-top: 20px; } .chip { min-height: 34px; padding: 0 16px; } }
/* 写真の上では、ラベルが読めるように白い下地 */
.hero .chips { align-self: flex-start; padding: 6px 12px; background: rgba(255, 255, 255, 0.85); border-radius: var(--radius-lg); margin-top: 12px; }
@media (min-width: 768px) { .hero .chips { background: transparent; padding: 0; margin-top: 20px; } }

/* ---------- 9. セクション共通 ---------- */
.section { padding-top: 36px; padding-bottom: 36px; }
@media (min-width: 768px) { .section { padding-top: 64px; padding-bottom: 64px; } }

.section--sky { background: var(--c-sky); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 18px;
}
.section__title { display: flex; align-items: center; gap: 8px; font-size: 21px; }
.section__title::before {
  content: "";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD21F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M4 20 12 12M3 10l5 2M11 3l2 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section__sub { flex: 1 0 100%; order: 4; font-size: 14px; color: var(--c-text-sub); line-height: 1.6; }
.section__title--center { justify-content: center; text-align: center; margin-bottom: 24px; }
@media (min-width: 768px) {
  .section__head { margin-bottom: 28px; }
  .section__title { font-size: 28px; gap: 10px; }
  .section__title::before { width: 28px; height: 28px; }
  .section__sub { flex: 1 1 auto; order: 2; font-size: 15px; }
  .section__head .more-link { order: 3; margin-left: auto; }
  .section__title--center { margin-bottom: 40px; }
}
.more-link { font-size: 14px; font-weight: 800; }
@media (min-width: 768px) { .more-link { font-size: 15px; } }

/* ---------- 9b. カテゴリ（丸いパステルのアイコン） ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 8px;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; } }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  color: var(--c-navy);
  font-size: 13px; font-weight: 800; line-height: 1.4;
}
a.cat:hover { color: var(--c-blue); text-decoration: none; }
a.cat:hover .cat__icon { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.cat__icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cat__icon svg { width: 32px; height: 32px; }
.cat__soon { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--c-text-muted); }
@media (min-width: 768px) {
  .cat { font-size: 15px; }
  .cat__icon { width: 96px; height: 96px; }
  .cat__icon svg { width: 42px; height: 42px; }
}
.cat--pink .cat__icon { background: var(--p-pink); color: var(--p-pink-ink); }
.cat--mint .cat__icon { background: var(--p-mint); color: var(--p-mint-ink); }
.cat--peach .cat__icon { background: var(--p-peach); color: var(--p-peach-ink); }
.cat--sky .cat__icon { background: var(--p-sky); color: var(--p-sky-ink); }
.cat--lavender .cat__icon { background: var(--p-lavender); color: var(--p-lavender-ink); }
.cat--cream .cat__icon { background: var(--p-cream); color: var(--p-cream-ink); }

/* ---------- 10. 安心ポイント（3つ） ---------- */
.features {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature { display: flex; gap: 14px; align-items: center; }
.feature__icon {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--p-cream);
  color: var(--c-navy);
  display: flex; align-items: center; justify-content: center;
}
.feature:nth-child(2) .feature__icon { background: var(--p-sky); }
.feature:nth-child(3) .feature__icon { background: var(--p-mint); }
.feature__icon svg { width: 26px; height: 26px; }
.feature__title { font-size: 16px; }
.feature__text { font-size: 13px; color: var(--c-text-sub); line-height: 1.7; }

@media (min-width: 768px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .feature { flex-direction: column; text-align: center; gap: 0; }
  .feature__icon { width: 76px; height: 76px; margin-bottom: 14px; }
  .feature__icon svg { width: 34px; height: 34px; }
  .feature__title { font-size: 19px; margin-bottom: 8px; }
  .feature__text { font-size: 15px; line-height: 1.8; }
}

/* ---------- 11. アバター（頭文字＋パステルの丸） ---------- */
.avatar {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-avatar-1);
  color: var(--c-avatar-1-ink);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--2 { background: var(--c-avatar-2); color: var(--c-avatar-2-ink); }
.avatar--3 { background: var(--c-avatar-3); color: var(--c-avatar-3-ink); }
.avatar--4 { background: var(--c-avatar-4); color: var(--c-avatar-4-ink); }
.avatar--lg { width: 88px; height: 88px; font-size: 38px; }
@media (min-width: 768px) { .avatar--lg { width: 104px; height: 104px; font-size: 44px; } }

/* ---------- 12. 先生の一覧 ---------- */
/* 既定：カード（トップの新着）。スマホは1列、PC は3列。
   .t-list--rows：1列の横長（先生一覧・駅別一覧。たくさんを見比べるとき） */
.t-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) { .t-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .t-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.t-list--rows { grid-template-columns: 1fr !important; gap: 12px; }

.t-item { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.t-item:hover { border-color: var(--c-sky-2); box-shadow: var(--shadow-float); }

.t-item__link {
  display: flex;
  height: 100%;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  color: var(--c-text);
  font-weight: 500;
}
.t-item__link:hover { color: var(--c-text); text-decoration: none; }

.t-item__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.t-item__headline { font-size: 16px; font-weight: 800; line-height: 1.5; color: var(--c-navy); overflow-wrap: anywhere; }
.t-item__meta { font-size: 13px; color: var(--c-text-muted); line-height: 1.6; }
.t-item__meta strong { color: var(--c-text); font-weight: 800; }
.t-item__excerpt {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.t-item__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 6px; }
.t-item__price { margin-left: auto; font-size: 16px; font-weight: 800; color: var(--c-navy); white-space: nowrap; }
.t-item__price small { font-size: 12px; font-weight: 500; color: var(--c-text-muted); }

@media (min-width: 768px) {
  .t-item__link { gap: 16px; padding: 20px; }
  .t-list--rows .t-item__link { gap: 20px; padding: 22px 26px; }
  .avatar.t-item__avatar { width: 56px; height: 56px; font-size: 24px; }
  .t-item__headline { font-size: 17px; }
  .t-list--rows .t-item__headline { font-size: 19px; }
  .t-item__meta { font-size: 14px; }
  .t-item__excerpt { font-size: 14px; }
  .t-list--rows .t-item__excerpt { font-size: 15px; }
  .t-item__price { font-size: 18px; }
}

/* 件数（例：Teachers near Shinjuku (128)） */
.result-count { font-size: 14px; color: var(--c-text-sub); margin-bottom: 12px; }
.result-count strong { color: var(--c-navy); font-size: 18px; }

/* ---------- 13. タグ ---------- */
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--c-sky-2);
  color: var(--c-navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}
.tag--gray { background: var(--c-bg-soft); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.tag--free { background: var(--c-yellow); color: var(--c-on-yellow); }
@media (min-width: 768px) { .tag { font-size: 13px; padding: 4px 13px; } }

/* ---------- 14. 使い方のステップ（白いカード4枚＋小さな絵） ---------- */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.step {
  display: flex; flex-direction: column;
  padding: 16px;
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.step__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.step__num {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.step:nth-child(1) .step__num { background: #1B7A4E; }
.step:nth-child(2) .step__num { background: var(--c-blue); }
.step:nth-child(3) .step__num { background: #B3401B; }
.step:nth-child(4) .step__num { background: #5B3FB3; }
.step__title { font-size: 16px; }
.step__text { font-size: 13px; color: var(--c-text-sub); line-height: 1.7; }
.step__art { display: block; width: 100%; max-width: 150px; height: 56px; margin: auto auto 0; padding-top: 10px; box-sizing: content-box; }
@media (min-width: 768px) {
  .step { padding: 22px; }
  .step__num { width: 38px; height: 38px; font-size: 19px; }
  .step__title { font-size: 18px; }
  .step__text { font-size: 14px; line-height: 1.8; margin-bottom: 14px; }
  .step__art { height: 70px; max-width: 170px; }
}
.section__foot { margin-top: 28px; text-align: center; }

/* ---------- 15. 下部の帯（細長い空の写真。左寄りに、小さめの筆記体のコピー2行。ボタンは無し） ---------- */
.cta-band {
  position: relative;
  background-color: #BFE0F8;
  background-image: var(--img-cta);
  background-position: center 80%;
  background-size: cover;
  background-repeat: no-repeat;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.08); }
.cta-band__inner {
  position: relative;
  display: flex; align-items: center;
  padding-top: 14px; padding-bottom: 14px;
  min-height: 84px;
}
.cta-band__title {
  font-family: var(--font-hand); font-weight: 500;
  color: var(--c-blue);
  line-height: 1;
  transform: rotate(-4deg);
  margin: 4px 0 4px 4px;
}
.cta-band__title span { display: block; }
.cta-band__l1 { font-size: 20px; }
.cta-band__l2 { font-size: 28px; margin-left: 0.9em; }
.cta-band__title:lang(ja) { font-family: var(--font-base); font-weight: 800; transform: none; line-height: 1.4; }
.cta-band__title:lang(ja) .cta-band__l1 { font-size: 15px; }
.cta-band__title:lang(ja) .cta-band__l2 { font-size: 20px; margin-left: 0; }
@media (min-width: 768px) {
  .cta-band__inner { min-height: 100px; padding-top: 12px; padding-bottom: 12px; }
  .cta-band__title { margin-left: clamp(0px, 9vw, 120px); }
  .cta-band__l1 { font-size: 26px; }
  .cta-band__l2 { font-size: 36px; }
  .cta-band__title:lang(ja) .cta-band__l1 { font-size: 16px; }
  .cta-band__title:lang(ja) .cta-band__l2 { font-size: 24px; }
}

/* ---------- 16. フッター ---------- */
.site-footer { background: var(--c-bg); border-top: 1px solid var(--c-line); padding-top: 28px; padding-bottom: 28px; font-size: 13px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; }
.site-footer__logo { display: block; line-height: 0; }
.site-footer__logo img { display: block; height: 34px; width: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__nav a { color: var(--c-text-sub); display: inline-flex; align-items: center; min-height: 36px; }
.site-footer__nav a:hover { color: var(--c-blue); }
.site-footer__copy { color: var(--c-text-muted); }
@media (min-width: 768px) { .site-footer { padding-top: 32px; padding-bottom: 32px; font-size: 14px; } }

/* ---------- 17. 画面下の固定ナビ（スマホのみ） ---------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--c-bg);
  box-shadow: 0 -2px 16px rgba(20, 48, 95, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.bottom-nav a {
  position: relative;
  min-width: 72px;
  min-height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--c-text-sub);
  font-size: 11px;
  font-weight: 700;
}
.bottom-nav a:hover { text-decoration: none; color: var(--c-navy); }
.bottom-nav a[aria-current="page"] { color: var(--c-blue); font-weight: 800; }
.bottom-nav a[aria-current="page"] svg { color: var(--c-blue); }
.bottom-nav svg { width: 24px; height: 24px; }
@media (min-width: 768px) { .bottom-nav { display: none; } }

/* 未読の数 */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--c-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.bottom-nav .badge { position: absolute; top: 2px; left: calc(50% + 6px); }

/* ---------- 18. 先生詳細 ---------- */
.breadcrumb { font-size: 13px; color: var(--c-text-muted); padding-top: 4px; }
.breadcrumb a { font-weight: 700; }

.detail { display: flex; flex-direction: column; gap: 28px; padding-top: 20px; padding-bottom: 40px; }
@media (min-width: 900px) {
  .detail { flex-direction: row; align-items: flex-start; gap: 40px; padding-top: 32px; padding-bottom: 80px; }
  .detail__main { flex: 1 1 auto; min-width: 0; }
  .detail__side { flex: 0 0 340px; position: sticky; top: 24px; }
}
.detail__main { display: flex; flex-direction: column; gap: 32px; }

.profile-head { display: flex; gap: 18px; align-items: center; }
.profile-head__name { font-size: 26px; overflow-wrap: anywhere; }
.profile-head__meta { font-size: 14px; color: var(--c-text-muted); margin-top: 2px; }
.profile-head__headline { font-size: 17px; color: var(--c-text); margin: 6px 0 10px; line-height: 1.5; font-weight: 800; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 8px; }
@media (min-width: 768px) {
  .profile-head { gap: 28px; }
  .profile-head__name { font-size: 34px; }
  .profile-head__headline { font-size: 20px; }
}

/* 見出しの前に黄色のきらきら */
.dot-title { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-bottom: 10px; }
.dot-title::before {
  content: "";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD21F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M4 20 12 12M3 10l5 2M11 3l2 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 768px) { .dot-title { font-size: 22px; } }

.text-body { font-size: 16px; color: var(--c-text); line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
@media (min-width: 768px) { .text-body { font-size: 17px; } }

/* 条件の一覧（職種・エリアなど） */
.info-box { background: var(--c-sky); border-radius: var(--radius-lg); padding: 22px; }
.info-list { margin: 0; display: grid; gap: 16px; }
.info-list dt { font-size: 12px; font-weight: 800; color: var(--c-text-muted); }
.info-list dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; color: var(--c-navy); overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .info-box { padding: 30px; }
  .info-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .info-list dd { font-size: 18px; }
}

/* 料金と「メッセージを送る」の箱 */
.side-box {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-box__label { font-size: 13px; font-weight: 800; color: var(--c-text-muted); }
.side-box__price { font-size: 34px; font-weight: 800; line-height: 1; color: var(--c-navy); }
.side-box__price small { font-size: 15px; font-weight: 500; color: var(--c-text-muted); }
.side-box__free {
  display: flex; gap: 10px; align-items: center;
  background: var(--c-yellow-soft);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-weight: 800;
  color: var(--c-navy);
}
.side-box__free svg { width: 24px; height: 24px; flex: 0 0 auto; }
.side-box__note { font-size: 13px; color: var(--c-text-sub); line-height: 1.8; }
.side-box__note + .side-box__note { border-top: 1px solid var(--c-line); padding-top: 14px; }
.report-link { font-size: 13px; color: var(--c-text-muted); font-weight: 500; text-align: center; }
@media (min-width: 768px) { .side-box { padding: 30px; } .side-box__price { font-size: 40px; } }

/* ---------- 19. フォーム共通 ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field__label { font-size: 14px; font-weight: 800; color: var(--c-navy); }
.field__hint { font-size: 13px; color: var(--c-text-muted); }
.field__error { font-size: 13px; color: var(--c-red-text); font-weight: 700; }

.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--c-line-strong);
  border-radius: var(--radius-md);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
}
.textarea { min-height: 160px; line-height: 1.8; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--c-blue); outline: none; box-shadow: 0 0 0 3px var(--c-sky-2); }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--c-red); }

/* 1つの用事に集中する画面（ログイン・問い合わせ・パス購入など）の幅 */
.narrow { max-width: 560px; margin: 0 auto; }
.panel { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); padding: 22px; }
@media (min-width: 768px) { .panel { padding: 32px; } }

/* ---------- 20. お知らせ・エラー（フラッシュ） ---------- */
.alert { border-radius: var(--radius-md); padding: 14px 18px; font-size: 14px; font-weight: 700; line-height: 1.7; }
.alert--info { background: var(--c-sky); color: var(--c-navy); }
.alert--error { background: var(--c-red-bg); color: var(--c-red-text); }
.alert--ok { background: var(--c-green-bg); color: var(--c-green-text); }

/* ---------- 21. メッセージ（受信箱・やり取り） ---------- */
.inbox { margin: 0; padding: 0; list-style: none; }
.inbox__item + .inbox__item { border-top: 1px solid var(--c-line); }
.inbox__link { display: flex; gap: 14px; align-items: center; padding: 16px 8px; color: var(--c-text); font-weight: 500; border-radius: var(--radius-md); }
.inbox__link:hover { color: var(--c-text); text-decoration: none; background: var(--c-sky); }
.inbox__body { flex: 1 1 auto; min-width: 0; }
.inbox__name { font-weight: 800; color: var(--c-navy); }
.inbox__time { font-size: 12px; color: var(--c-text-muted); }
.inbox__item--unread .inbox__name::after {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px;
  border-radius: 50%; background: var(--c-red); vertical-align: middle;
}

.thread { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.msg--theirs { align-self: flex-start; background: var(--c-sky); border-bottom-left-radius: 6px; }
.msg--mine { align-self: flex-end; background: var(--c-yellow-soft); border-bottom-right-radius: 6px; }
.msg--system { align-self: center; max-width: 100%; background: transparent; font-size: 13px; color: var(--c-text-muted); text-align: center; }
.msg__time { display: block; margin-top: 4px; font-size: 11px; color: var(--c-text-muted); }

/* ---------- 22. 説明ページ（使い方・料金・規約など） ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.9; }
.prose h1 { font-size: 26px; margin-bottom: 20px; }
.prose h2 { font-size: 20px; margin: 36px 0 12px; display: flex; align-items: center; gap: 8px; }
.prose h2::before {
  content: "";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD21F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M4 20 12 12M3 10l5 2M11 3l2 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li + li { margin-top: 6px; }
@media (min-width: 768px) { .prose h1 { font-size: 34px; } .prose h2 { font-size: 24px; } }

/* 動きを減らす設定の人には、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
