/* 見本LP4：美容クリニックの看護師採用（架空の医院）
   配色は2案。html[data-theme="a"]＝青緑（清潔・信頼）／html[data-theme="b"]＝グレージュ×モーヴ（温かい・上品）
   どちらも白地＋淡い面の色1つ＋アクセント1色（下調べの共通項1）。数字は research.md */

:root,
html[data-theme="a"] {
  --bg: #ffffff;
  --surface: #eef5f5;
  --text: #1f2b2f;      /* 白地で 14.5:1 */
  --sub: #4b5b60;       /* 白地で 7.1:1／面の色で 6.4:1 */
  --accent: #1d6a73;    /* 白文字で 6.25:1 */
  --accent-dark: #14535a;
  --accent-soft: #dcecee;
  --line: #d5e2e3;
  --field-line: #7f9599; /* 入力欄の枠＝白地で 3.15:1（WCAG 1.4.11 の 3:1 以上） */
  --footer: #1f2b2f;
}
html[data-theme="b"] {
  --bg: #ffffff;
  --surface: #f6f2ed;
  --text: #2b2421;      /* 白地で 15.3:1 */
  --sub: #5d524d;       /* 白地で 7.6:1 */
  --accent: #8a4760;    /* 白文字で 6.66:1 */
  --accent-dark: #6e3449;
  --accent-soft: #f2e4e8;
  --line: #e6ddd5;
  --field-line: #978880; /* 入力欄の枠＝白地で 3.42:1 */
  --footer: #2b2421;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  padding-bottom: 76px; /* スマホの追従バーの分 */
}
@media (min-width: 900px) {
  body { font-size: 17px; padding-bottom: 0; }
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .container { padding: 0 40px; } }

.sp-only { display: inline; }
@media (min-width: 900px) { .sp-only { display: none; } }

/* 日本語の見出しは文節で折り返す（「はじめ／られる」型の泣き別れを防ぐ） */
.section-head p, .h2, .h3, .hero__title, .voice__quote, .data__item dt, .req__table dd, .flow p, .timeline p, .timeline h3, .steps h3, .flow h3, .faq__list summary, .entry__form-title {
  word-break: auto-phrase;
}
.nowrap { white-space: nowrap; }

/* ---------- 見出しの型：英字の小見出し＋明朝（共通項2・4） ---------- */
.label {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.h2 {
  font-family: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
@media (min-width: 900px) { .h2 { font-size: 34px; margin-bottom: 32px; } }
.section-head { margin-bottom: 40px; }
.section-head .h2 { margin-bottom: 16px; }
@media (min-width: 900px) { .section-head { margin-bottom: 56px; } }

.h3 {
  font-family: "Shippori Mincho B1", "Yu Mincho", serif;
  font-size: 22px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.h3__no { font-size: 18px; color: var(--accent); letter-spacing: 0.1em; flex-shrink: 0; white-space: nowrap; }

.section { padding: 88px 0; background: #fff; }
.section.tint { background: var(--surface); }  /* 節の地は白と淡い面の色を交互に（白い空きが続かんように） */
@media (min-width: 900px) { .section { padding: 128px 0; } }

.muted { color: var(--sub); }
.note { color: var(--sub); margin-top: 24px; }

/* ---------- ボタン（丸角・共通項6） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: background-color .2s, color .2s, transform .2s;
  cursor: pointer;
  font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: #fff; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--sm { min-height: 44px; padding: 6px 20px; }
.btn--block { width: 100%; }
.btn__note {
  font-size: 16px; font-weight: 500;
  padding-left: 10px; border-left: 1px solid rgba(255,255,255,.55);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 20px;
}
@media (min-width: 900px) { .site-header__inner { padding: 14px 40px; } }
.logo { display: flex; align-items: baseline; gap: 12px; text-decoration: none; line-height: 1.3; }
.logo__name { font-family: "Shippori Mincho B1", serif; font-size: 18px; font-weight: 600; letter-spacing: 0.1em; }
.logo__sub { font-size: 16px; color: var(--accent); letter-spacing: 0.1em; display: none; }
@media (min-width: 600px) { .logo__sub { display: inline; } }
.header-cta { display: flex; gap: 10px; }
.header-cta__visit { display: none; }
@media (min-width: 900px) { .header-cta__visit { display: inline-flex; } }

/* ---------- FV（共通項3＝スタッフの人物写真を大きく） ---------- */
.hero { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 30%; }
.hero__body { padding: 36px 20px 72px; }
.hero__title {
  font-family: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hero__lead { color: var(--sub); margin-bottom: 20px; }
.hero__tags { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags li {
  padding: 4px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 500; line-height: 1.7;
}
.hero__cta { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    min-height: min(calc(100vh - 73px), 820px);
    background: linear-gradient(90deg, var(--surface) 0 50%, #fff 50%);
  }
  .hero__photo { order: 2; position: relative; }
  .hero__photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 48% 30%; }
  .hero__body {
    order: 1; align-self: center;
    padding: 72px 56px 72px max(40px, calc((100vw - 1120px) / 2 + 40px));
  }
  .hero__title { font-size: 44px; line-height: 1.55; margin-bottom: 28px; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) { .hero { background: var(--surface); } }

/* ---------- 写真と文の交互組み（3列カードを使わん＝過去の病巣の回避） ---------- */
.split { display: grid; gap: 32px; }
.split + .split { margin-top: 72px; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
  .split + .split { margin-top: 112px; }
  .split--flip { grid-template-columns: 5fr 7fr; }
  .split--flip .split__media { order: 2; }
}
.sign { font-family: "Shippori Mincho B1", serif; font-size: 18px; margin-top: 28px; text-align: right; }

/* ---------- FV の断り書き（小さい札） ---------- */
.fict-tag {
  display: inline-block; margin: 0 0 20px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--sub); font-size: 16px; line-height: 1.9; letter-spacing: 0.06em;
  background: rgba(255,255,255,.7);
}

/* ---------- クリニックについて：施術メニュー（箱にせず線で区切る） ---------- */
.menu { margin: 24px 0 0; border-top: 1px solid var(--line); }
.menu > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu dt { font-weight: 700; color: var(--accent-dark); }
.menu dd { margin: 0; word-break: auto-phrase; }
@media (min-width: 900px) {
  .menu > div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; }
}

/* ---------- キャリアの道筋（縦の梯子） ---------- */
.ladder { list-style: none; margin: 24px 0 0; padding: 0; border-left: 2px solid var(--accent-soft); }
.ladder li { position: relative; padding: 0 0 20px 24px; }
.ladder li:last-child { padding-bottom: 0; }
.ladder li::before {
  content: ""; position: absolute; left: -7px; top: 9px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
}
.ladder__when { display: block; color: var(--accent); font-weight: 700; letter-spacing: 0.06em; }
.ladder__what { display: block; word-break: auto-phrase; }

/* ---------- 数字（共通項8・ただし箱にせず帯で並べる） ---------- */
.data__list {
  margin: 0; display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.data__item { padding: 24px 4px 20px; border-bottom: 1px solid var(--line); }
.data__item:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.data__item:nth-child(even) { padding-left: 20px; }
.data__item:last-child { grid-column: 1 / -1; border-right: 0; padding-left: 4px; }
.data__item dt { color: var(--sub); line-height: 1.6; }
.data__item dd { margin: 4px 0 0; color: var(--accent); }
.data .num { font-family: "Shippori Mincho B1", serif; font-size: 44px; line-height: 1.2; letter-spacing: 0.02em; }
.data .unit { font-size: 18px; margin-left: 4px; font-weight: 700; }
@media (min-width: 900px) {
  .data__list { grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
  .data__item, .data__item:nth-child(odd), .data__item:nth-child(even), .data__item:last-child {
    grid-column: auto; border-bottom: 0; border-right: 1px solid var(--line); padding: 32px 20px 28px;
  }
  .data__item:last-child { border-right: 0; }
  .data .num { font-size: 52px; }
}

/* ---------- 1日の流れ ---------- */
.day__grid { display: grid; gap: 40px; }
.day__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 0 0 32px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 12px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
}
.timeline time { font-family: "Shippori Mincho B1", serif; font-size: 20px; color: var(--accent); line-height: 1.6; }
.timeline h3 { font-size: 17px; font-weight: 700; line-height: 1.6; margin-bottom: 4px; }
.timeline p { color: var(--sub); }
@media (min-width: 900px) {
  .day__grid { grid-template-columns: 5fr 6fr; gap: 88px; align-items: start; }
  .day__side { position: sticky; top: 110px; }
  .timeline li { grid-template-columns: 96px 1fr; padding: 0 0 40px 36px; }
  .timeline time { font-size: 22px; }
}

/* ---------- 研修 ---------- */
.steps { list-style: none; margin: 8px 0 0; padding: 0; }
.steps li { padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__when { display: inline-block; color: var(--accent); font-weight: 700; letter-spacing: 0.1em; }
.steps h3 { font-size: 18px; font-weight: 700; line-height: 1.6; margin: 2px 0 4px; }
.steps p { color: var(--sub); }

/* ---------- 先輩の声 ---------- */
.voice__item { display: grid; gap: 28px; }
.voice__item + .voice__item { margin-top: 80px; }
.voice__photo img { width: 100%; max-width: 520px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.voice__meta { color: var(--accent); font-weight: 500; margin-bottom: 4px; }
.voice__name { font-size: 18px; font-weight: 700; margin-bottom: 20px; letter-spacing: 0.08em; }
.voice__quote {
  font-family: "Shippori Mincho B1", serif;
  font-size: 22px; line-height: 1.75; letter-spacing: 0.05em;
  padding-left: 18px; border-left: 2px solid var(--accent);
  margin-bottom: 24px;
}
@media (min-width: 900px) {
  .voice__item { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
  .voice__item--flip { grid-template-columns: 6fr 5fr; }
  .voice__item--flip .voice__photo { order: 2; justify-self: end; }
  .voice__item + .voice__item { margin-top: 120px; }
  .voice__quote { font-size: 26px; }
}

/* ---------- 職場の雰囲気（全幅の写真） ---------- */
.atmos { padding-bottom: 88px; }
.atmos__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.atmos__body { padding-top: 40px; }
@media (min-width: 900px) {
  .atmos { padding-bottom: 128px; }
  .atmos__photo img { aspect-ratio: auto; height: 560px; object-position: 50% 25%; }
  .atmos__body { display: grid; grid-template-columns: 5fr 7fr; column-gap: 72px; padding-top: 56px; }
  .atmos__body .label { grid-column: 1; }
  .atmos__body .h2 { grid-column: 1; margin-bottom: 0; }
  .atmos__body p:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}

/* ---------- 給与・待遇／募集要項 ---------- */
.req__grid { display: grid; gap: 40px; }
.req__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.req__table { margin: 0; background: #fff; border-radius: 4px; padding: 8px 20px; }
.req__table > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.req__table > div:last-child { border-bottom: 0; }
.req__table dt { font-weight: 700; color: var(--accent-dark); margin-bottom: 4px; }
.req__table dd { margin: 0; }
@media (min-width: 900px) {
  .req__grid { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; }
  .req__table { padding: 12px 40px; }
  .req__table > div { display: grid; grid-template-columns: 9em 1fr; gap: 24px; padding: 22px 0; }
  .req__table dt { margin: 0; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 4fr 7fr; gap: 72px; } }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 44px 22px 36px; font-weight: 700; line-height: 1.7;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before {
  content: "Q"; position: absolute; left: 0; top: 20px;
  font-family: "Shippori Mincho B1", serif; font-size: 20px; color: var(--accent);
}
.faq__list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 8px 24px 36px; color: var(--sub); }

/* ---------- 応募 ---------- */
.entry { background: var(--surface); padding-bottom: 88px; }
.entry__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 70% 15%; }
.entry__grid { display: grid; gap: 40px; padding-top: 48px; }
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; }
.flow__no {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent); color: var(--accent);
  font-family: "Shippori Mincho B1", serif; font-size: 18px; line-height: 1;
}
.flow h3 { font-size: 17px; font-weight: 700; line-height: 1.6; }
.flow p { color: var(--sub); }
.entry__form { background: #fff; border-radius: 6px; padding: 28px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.entry__form-title { font-family: "Shippori Mincho B1", serif; font-size: 22px; margin-bottom: 20px; }
.choice { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.choice legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.choice label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); }
.field { display: block; font-weight: 700; margin-bottom: 18px; }
.field__hint { display: block; font-weight: 400; color: var(--sub); word-break: auto-phrase; }
.field input {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-weight: 400; font-size: 16px;
  padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 4px; background: #fff; color: var(--text);
}
.entry__form-note { margin-top: 14px; color: var(--sub); }
.entry__tel { margin-top: 8px; color: var(--sub); }
@media (min-width: 900px) {
  .entry { padding-bottom: 128px; }
  .entry__photo img { aspect-ratio: auto; height: 520px; }
  .entry__grid { grid-template-columns: 6fr 5fr; gap: 80px; padding-top: 72px; align-items: start; }
  .entry__form { padding: 40px; position: relative; }
}

/* ---------- フッター ---------- */
.site-footer { background: var(--footer); color: #fff; padding: 56px 0 40px; }
.site-footer__logo { font-family: "Shippori Mincho B1", serif; font-size: 20px; letter-spacing: 0.1em; margin-bottom: 16px; }
.site-footer__disclaimer { color: #e9eeee; max-width: 760px; }
.site-footer__theme { margin-top: 20px; color: #e9eeee; }
.site-footer__theme a { color: #fff; margin-right: 12px; text-underline-offset: 4px; }

/* ---------- スマホの追従バー（共通項6） ---------- */
.sp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
}
.sp-bar .btn { min-height: 52px; padding: 8px 10px; letter-spacing: 0.04em; }
@media (min-width: 900px) { .sp-bar { display: none; } }

/* ---------- 出現の動き（JSが動く時だけ隠す＝JSが落ちても本文は出る） ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
