/* File: assets/styles.css */

/* ============================================================
   カラー定義
   ============================================================ */
:root {
  /* @color メインカラー */
  --c-primary: #1FBEAC;
  --c-primary-rgb: 31, 190, 172;

  /* @color メインカラー（濃） */
  --c-primary-dark: #0E8C7E;
  --c-primary-dark-rgb: 14, 140, 124;

  /* @color 見出し色 */
  --c-ink: #143A33;
  --c-ink-rgb: 20, 58, 51;

  /* @color 背景色 */
  --c-bg: #FBFEFD;

  /* @color 背景色（ミント） */
  --c-paper: #F1F9F6;
  --c-paper-rgb: 241, 249, 246;

  /* @color 反転背景色（あいさつ等） */
  --c-deep: #143A33;
  --c-deep-rgb: 20, 58, 51;

  /* @color LINEカラー */
  --c-line: #06C755;
  --c-line-rgb: 6, 199, 85;

  /* 派生色（@colorなし） */
  --c-text: rgba(var(--c-ink-rgb), 0.82);
  --c-text-muted: rgba(var(--c-ink-rgb), 0.62);
  --c-border: rgba(var(--c-primary-dark-rgb), 0.14);
  --c-tint: rgba(var(--c-primary-rgb), 0.08);

  --container: 1440px;
  --gutter: 60px;
  --header-h: 80px;
  --font-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Jost", sans-serif;
}

/* ============================================================
   リセット & ベース
   ============================================================ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(var(--c-primary-rgb), 0.24); color: var(--c-primary-dark); }

h1, h2, h3 { margin: 0; line-height: 1.5; color: var(--c-ink); font-weight: 700; }
p { margin: 0; }

/* ============================================================
   レイアウト共通
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 132px 0;
  background: var(--c-bg);
}
.section.alt {
  background: var(--c-paper);
}

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section-head {
  text-align: center;
  margin-bottom: 70px;
}
.section-head--left { text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--c-primary-dark);
  margin-bottom: 16px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 30px;
  height: 1.5px;
  background: var(--c-primary);
}
.section-head--left .eyebrow::after { display: none; }

.section-title {
  font-family: var(--font-mincho);
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: 0.04em;
  color: var(--c-ink);
  margin: 0 0 20px;
}
.section-lead {
  font-size: 17px;
  line-height: 2;
  color: var(--c-text-muted);
  max-width: 680px;
  margin: 0 auto;
}
.section-head--left .section-lead { margin: 0; }

/* ============================================================
   ボタン
   ============================================================ */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-line);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(var(--c-line-rgb), 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(var(--c-line-rgb), 0.42);
}
.btn-line--lg {
  font-size: 17px;
  padding: 18px 40px;
}
.btn-line--xl {
  font-size: 20px;
  font-weight: 800;
  padding: 24px 54px;
}
.btn-line__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  color: var(--c-line);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
}
.btn-line--lg .btn-line__mark { width: 24px; height: 24px; }
.btn-line--xl .btn-line__mark { width: 30px; height: 30px; font-size: 17px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--c-primary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 8px;
  transition: gap 0.25s ease;
}
.btn-ghost:hover { gap: 15px; }
.btn-ghost .arrow { font-family: var(--font-en); }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(var(--c-primary-dark-rgb), 0.06);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 24px rgba(var(--c-primary-dark-rgb), 0.10);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex: none;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(var(--c-primary-dark-rgb), 0.32);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-ja {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 19px;
  color: var(--c-ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.logo-en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--c-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--c-primary-dark); }

.header-cta { flex: none; }
.nav-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   ヒーロー（全面写真・センター）
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--c-paper);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: kenburns 16s ease-in-out infinite alternate;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--c-deep-rgb), 0.10) 0%, rgba(var(--c-deep-rgb), 0.34) 60%, rgba(var(--c-deep-rgb), 0.50) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  padding: calc(var(--header-h) + 60px) var(--gutter) 80px;
}
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before,
.hero .eyebrow::after { background: rgba(255, 255, 255, 0.7); }
.hero__title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 74px);
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(8, 50, 45, 0.30);
  margin: 0 0 26px;
}
.hero__lead {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 2;
  color: #F1FBF8;
  text-shadow: 0 2px 12px rgba(8, 50, 45, 0.4);
  margin: 0 0 44px;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero .btn-ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 16px 26px;
  transition: background 0.25s ease;
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); gap: 9px; }

/* ============================================================
   働き方
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: ws;
}
.work-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  padding: 42px 38px;
  counter-increment: ws;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(var(--c-primary-dark-rgb), 0.12);
}
.work-card__no {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(var(--c-primary-rgb), 0.55);
}
.work-card__no::before { content: counter(ws, decimal-leading-zero); }
.work-card__title {
  font-family: var(--font-mincho);
  font-size: 24px;
  color: var(--c-ink);
  letter-spacing: 0.02em;
  margin: 14px 0;
}
.work-card__body {
  font-size: 15px;
  line-height: 1.95;
  color: var(--c-text-muted);
}

/* ============================================================
   アピールポイント
   ============================================================ */
.appeal-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  counter-reset: ap;
}
.appeal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 62px;
  align-items: center;
  counter-increment: ap;
}
.appeal-row:nth-child(even) .appeal-row__media { order: 2; }
.appeal-row__no {
  font-family: var(--font-en);
  font-size: 54px;
  font-weight: 300;
  color: rgba(var(--c-primary-rgb), 0.34);
  line-height: 1;
}
.appeal-row__no::before { content: counter(ap, decimal-leading-zero); }
.appeal-row__title {
  font-family: var(--font-mincho);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.6;
  color: var(--c-ink);
  letter-spacing: 0.02em;
  margin: 8px 0 20px;
}
.appeal-row__body {
  font-size: 16px;
  line-height: 2.1;
  color: var(--c-text-muted);
}
.appeal-row .ph,
.appeal-row .ph-sample,
.appeal-row .editable-img {
  border-radius: 20px;
  box-shadow: 0 24px 50px rgba(var(--c-primary-dark-rgb), 0.14);
}

/* ============================================================
   院長あいさつ（反転）
   ============================================================ */
.greeting {
  background: var(--c-deep);
  position: relative;
  overflow: hidden;
}
.greeting__decor {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c-primary-rgb), 0.20), rgba(var(--c-primary-rgb), 0) 70%);
  animation: floatA 15s ease-in-out infinite;
  pointer-events: none;
}
.greeting__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.greeting__media .ph,
.greeting__media .editable-img {
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.greeting .eyebrow { color: rgba(var(--c-primary-rgb), 0.95); }
.greeting .eyebrow::before { background: rgba(var(--c-primary-rgb), 0.7); }
.greeting .eyebrow::after { display: none; }
.greeting__title {
  font-family: var(--font-mincho);
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.6;
  color: #fff;
  letter-spacing: 0.03em;
  margin: 0 0 30px;
}
.greeting__body {
  font-size: 16px;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
}
.greeting__sign {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.greeting__sign-label { font-size: 14px; color: rgba(var(--c-primary-rgb), 0.85); }
.greeting__sign-name {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  letter-spacing: 0.06em;
}

/* ============================================================
   募集職種
   ============================================================ */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.job-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
.job-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 56px rgba(var(--c-primary-dark-rgb), 0.14);
}
.job-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
}
.job-card__emp {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 999px;
}
.job-card__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.job-card__en {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(var(--c-primary-rgb), 0.6);
}
.job-card__role {
  font-family: var(--font-mincho);
  font-size: 27px;
  color: var(--c-ink);
  letter-spacing: 0.03em;
  margin: 8px 0 16px;
}
.job-card__desc {
  font-size: 15px;
  line-height: 1.95;
  color: var(--c-text-muted);
  margin: 0 0 22px;
  flex: 1;
}
.job-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-card__tags span {
  background: var(--c-tint);
  color: var(--c-primary-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
}

/* ============================================================
   働くスタッフ
   ============================================================ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.staff-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 6px 24px rgba(var(--c-primary-dark-rgb), 0.07);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.staff-card:hover { transform: translateY(-8px); }
.staff-card__quote-mark {
  font-family: var(--font-mincho);
  font-size: 60px;
  line-height: 0.5;
  color: rgba(var(--c-primary-rgb), 0.4);
  display: block;
  height: 34px;
}
.staff-card__quote {
  font-size: 16px;
  line-height: 2.05;
  color: var(--c-text);
  font-weight: 500;
  margin: 0 0 30px;
}
.staff-card__person {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(var(--c-primary-dark-rgb), 0.1);
  padding-top: 24px;
}
.staff-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex: none;
  overflow: hidden;
}
.staff-card__name {
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0.05em;
  margin: 0;
}
.staff-card__role { font-size: 13px; color: var(--c-text-muted); margin: 4px 0 0; }

/* ============================================================
   募集要項（タブ）
   ============================================================ */
.req { max-width: 1060px; margin: 0 auto; }
.req__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.req__tab {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1.5px solid rgba(var(--c-primary-dark-rgb), 0.2);
  background: #fff;
  color: var(--c-text);
  transition: all 0.3s ease;
}
.req__tab.is-active {
  background: var(--c-primary-dark);
  color: #fff;
  border-color: var(--c-primary-dark);
  box-shadow: 0 10px 24px rgba(var(--c-primary-dark-rgb), 0.28);
}
.req__panels {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(var(--c-primary-dark-rgb), 0.08);
}
.req__panel { display: none; }
.req__panel.is-active { display: block; }
.req__panel-head {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  padding: 32px 44px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.req__panel-role {
  font-family: var(--font-mincho);
  font-size: 28px;
  color: #fff;
  letter-spacing: 0.04em;
}
.req__panel-en {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.8);
}
.req__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-bottom: 1px solid rgba(var(--c-primary-dark-rgb), 0.08);
}
.req__row-label {
  background: var(--c-paper);
  padding: 24px 36px;
  font-weight: 700;
  font-size: 15px;
  color: var(--c-ink);
  letter-spacing: 0.04em;
}
.req__row-value {
  padding: 24px 40px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-text);
}
.req__cta { text-align: center; margin-top: 48px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(var(--c-primary-dark-rgb), 0.06);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 32px;
  background: transparent;
  border: none;
  text-align: left;
}
.faq-q__mark {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-primary);
  flex: none;
}
.faq-q__text {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: 0.02em;
}
.faq-q__icon {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 300;
  color: var(--c-primary);
  flex: none;
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-q__icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}
.faq-item.is-open .faq-a { max-height: 320px; opacity: 1; }
.faq-a__inner {
  display: flex;
  gap: 20px;
  padding: 0 32px 28px;
}
.faq-a__mark {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  color: rgba(var(--c-primary-rgb), 0.6);
  flex: none;
}
.faq-a__text {
  flex: 1;
  font-size: 15px;
  line-height: 2;
  color: var(--c-text-muted);
}

/* ============================================================
   アクセス
   ============================================================ */
.access-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.access-map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(var(--c-primary-dark-rgb), 0.1);
  min-height: 420px;
}
.access-map .ph { height: 100%; min-height: 420px; aspect-ratio: auto; }
.access-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.access-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 22px 0;
  border-bottom: 1px solid rgba(var(--c-primary-dark-rgb), 0.1);
  gap: 16px;
}
.access-row dt {
  font-weight: 700;
  font-size: 14px;
  color: var(--c-ink);
  letter-spacing: 0.06em;
  margin: 0;
}
.access-row dd {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text);
  margin: 0;
}

/* ============================================================
   応募CTA
   ============================================================ */
.entry {
  padding: 124px 0;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.entry__decor-a, .entry__decor-b {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.entry__decor-a {
  top: -140px; left: -60px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%);
  animation: floatA 14s ease-in-out infinite;
}
.entry__decor-b {
  bottom: -180px; right: -80px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 70%);
  animation: floatB 17s ease-in-out infinite;
}
.entry__inner { position: relative; z-index: 2; }
.entry .eyebrow { color: rgba(255, 255, 255, 0.9); }
.entry .eyebrow::before, .entry .eyebrow::after { background: rgba(255, 255, 255, 0.7); }
.entry__title {
  font-family: var(--font-mincho);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.5;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
}
.entry__lead {
  font-size: 17px;
  line-height: 2;
  color: #EAFBF6;
  margin: 0 0 48px;
}
.entry .btn-line--xl {
  background: #fff;
  color: var(--c-line);
  box-shadow: 0 18px 44px rgba(8, 60, 54, 0.28);
}
.entry .btn-line--xl:hover { box-shadow: 0 26px 56px rgba(8, 60, 54, 0.36); }
.entry .btn-line--xl .btn-line__mark { background: var(--c-line); color: #fff; }
.entry__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin: 28px 0 0;
  letter-spacing: 0.04em;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--c-deep);
  padding: 64px 0 40px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 17px;
}
.footer-name {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.04em;
}
.footer-en {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(var(--c-primary-rgb), 0.8);
  margin-top: 4px;
}
.footer-contact { font-size: 14px; line-height: 1.95; }
.footer-contact a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-cta { justify-self: start; }
.footer-cta .btn-line { font-size: 14px; padding: 12px 22px; }
.copyright {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 36px;
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

/* フローティングLINE */
.float-line {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 70;
}

/* ============================================================
   画像プレースホルダ
   ============================================================ */
.ph, .ph-sample {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, rgba(var(--c-primary-dark-rgb), 0.08) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, rgba(var(--c-primary-rgb), 0.14), rgba(var(--c-primary-rgb), 0.08));
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--c-primary-dark);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 16px;
}
.ph__tag {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.26em;
  opacity: 0.8;
}
.ph[data-ratio="16/9"], .ph-sample[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.ph[data-ratio="16/11"], .ph-sample[data-ratio="16/11"] { aspect-ratio: 16 / 11; }
.ph[data-ratio="3/4"], .ph-sample[data-ratio="3/4"] { aspect-ratio: 3 / 4; }
.ph[data-ratio="1/1"], .ph-sample[data-ratio="1/1"] { aspect-ratio: 1 / 1; }
.ph[data-ratio="4/5"], .ph-sample[data-ratio="4/5"] { aspect-ratio: 4 / 5; }

/* 画像設定後（CMSが .ph → .editable-img に置換） */
.editable-img {
  width: 100%;
  display: block;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
.editable-img[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.editable-img[data-ratio="16/11"] { aspect-ratio: 16 / 11; }
.editable-img[data-ratio="3/4"] { aspect-ratio: 3 / 4; }
.editable-img[data-ratio="1/1"] { aspect-ratio: 1 / 1; }
.editable-img[data-ratio="4/5"] { aspect-ratio: 4 / 5; }

/* TEC-1207: 画像設定後（CMS が .ph → .editable-img に差し替えた後）の高さを .ph と対称に定義する。
   これが無いと中身が空になった時点で高さ0となり、背景画像が不可視になる。 */
.editable-img[data-ratio="4/3"] { aspect-ratio: 4 / 3; }


/* hero/access の全面プレースホルダはアスペクト比を解除 */
.hero__bg.ph, .hero__bg.editable-img { aspect-ratio: auto; }
.staff-card__avatar .ph, .staff-card__avatar .ph-sample, .staff-card__avatar .editable-img { aspect-ratio: 1 / 1; height: 100%; }

/* ============================================================
   スクロールアニメーション
   ============================================================ */
.reveal {
  opacity: 1;
}
.reveal.is-in {
  animation: revealIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.reveal.is-in:nth-child(2) { animation-delay: 0.07s; }
.reveal.is-in:nth-child(3) { animation-delay: 0.14s; }
.reveal.is-in:nth-child(4) { animation-delay: 0.21s; }
.reveal.is-in:nth-child(5) { animation-delay: 0.28s; }
.reveal.is-in:nth-child(6) { animation-delay: 0.35s; }

@keyframes revealIn {
  from { transform: translateY(26px); }
  to { transform: none; }
}
@keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.09); } }
@keyframes floatA { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18px, -26px) scale(1.06); } }
@keyframes floatB { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-22px, 20px) scale(1.08); } }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .section { padding: 100px 0; }
  .greeting__grid { gap: 48px; }
  .appeal-list { gap: 56px; }
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --gutter: 22px; --header-h: 66px; }

  /* ヘッダー → ハンバーガー */
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 8px 22px 24px;
    box-shadow: 0 12px 24px rgba(var(--c-primary-dark-rgb), 0.1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  body.nav-open .site-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 16px 4px; border-bottom: 1px solid rgba(var(--c-primary-dark-rgb), 0.08); }
  .site-nav .nav-cta {
    margin-top: 16px;
    justify-content: center;
    border-bottom: none;
    display: inline-flex;
  }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 48px; }

  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .work-card { padding: 32px 28px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }

  .appeal-row { grid-template-columns: 1fr; gap: 28px; }
  .appeal-row:nth-child(even) .appeal-row__media { order: 0; }

  .greeting__grid { grid-template-columns: 1fr; gap: 36px; }

  .req__tabs { gap: 8px; }
  .req__tab { padding: 12px 20px; font-size: 14px; }
  .req__panel-head { padding: 24px 26px; flex-direction: column; gap: 6px; }
  .req__row { grid-template-columns: 1fr; }
  .req__row-label { padding: 16px 24px 6px; }
  .req__row-value { padding: 6px 24px 18px; }

  .faq-q { padding: 22px 24px; gap: 14px; }
  .faq-q__text { font-size: 15px; }
  .faq-a__inner { padding: 0 24px 22px; }

  .access-grid { grid-template-columns: 1fr; gap: 28px; }
  .access-map, .access-map .ph { min-height: 280px; }

  .entry { padding: 88px 0; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn-line, .hero__actions .btn-ghost { width: 100%; justify-content: center; }

  .float-line { right: 16px; bottom: 16px; }
  .float-line .btn-line { padding: 12px 18px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .reveal.is-in { animation: none; }
  .hero__bg, .greeting__decor, .entry__decor-a, .entry__decor-b { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* brand-name-fit:dental-recruit-clear-green (TEC-1208) */
/* .logo-ja が nowrap + 固定 19px のため、20文字級の医院名では 381px まで伸び、
   767px 以下でハンバーガー（right 506px）を画面外へ押し出してメニューが開けない。
   .site-logo は flex:none で縮まないので、モバイルのみ縮小・折り返しを許可する。
   フッターの .footer-name は nowrap を持たず折り返すため、レイアウト幅への影響は無い。
   NOTE: min-width:0 だけでは直らない（nowrap のテキスト自体は縮まないため）。
   NOTE: このテンプレは .site-header{height:var(--header-h)}（767px 以下で 66px）で
   高さ固定、ドロワーも top:var(--header-h) 固定。font-size は clamp(12px,3.2vw,19px)
   なので幅によって1行の文字数と行高が変わり、極端に長い医院名では 3〜4 行でヘッダー枠
   （66px）を超える。ドロワーの上端も追従しない。soyogi-aesthetic-lp と違いヘッダー高が
   可変でないため、その場合は --header-h ごと見直す必要がある（本修正の対象外）。 */
@media (max-width: 767px) {
  .site-header__inner { gap: 12px; }
  .site-logo { flex: 1 1 auto; min-width: 0; }
  .logo-text { min-width: 0; }
  .logo-ja { font-size: clamp(12px, 3.2vw, 19px); white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
  .logo-en { white-space: normal; overflow-wrap: anywhere; }
}
/* /brand-name-fit:dental-recruit-clear-green */
