@charset "UTF-8";

/* ============================================================
   笑美 — EMI SALON
   emi_DESIGN.md に基づく実装
   振り切る1点(§0)：「窓」＝外から中が見える
     → 写真は画面幅いっぱい／片側だけ画面外へ抜く
     → 見出しの左に細い縦罫（窓の桟）
     → 水色は面でなく光として扱う（塗らない）
   ============================================================ */

:root {
  /* 色 ------------------------------------------------------ */
  --ivory:      #FBF9F4;   /* 地色。純白でも生成りベージュでもない */
  --ivory-deep: #F1F8F7;   /* 帯。アイボリーに水色を薄く溶かした地 */
  --ink:        #3B342D;   /* 焦げ茶。黒は使わない */
  --ink-mid:    #6B6157;   /* 補助テキスト */
  --ink-thin:   #CFC7B9;   /* 罫線 */
  --aqua:       #5D96A4;   /* 実物の水色（彩度を落としたもの）。線・記号 */
  --aqua-deep:  #4A7E8B;   /* hover / 文字色として使う場合 */

  /* 明るい水色。廉の指定色。
     明度が高くコントラストが取れないので、
     **文字・細い罫線には使わない。**「光」＝面・下敷き・強調だけに使う。 */
  --aqua-light: #ABEFEF;
  --aqua-mist:  #E4F7F7;   /* さらに薄めた面用 */

  /* 余白 ---------------------------------------------------- */
  --section:  clamp(44px, 7vw, 88px);
  --gutter:   clamp(20px, 5vw, 48px);
  --measure:  680px;   /* 本文の最大幅 */
  --wide:     1080px;  /* セクションの最大幅 */

  /* 文字 ---------------------------------------------------- */
  --ls-body: .06em;
  --ls-lead: .12em;
  --ls-head: .18em;
  --ls-wide: .28em;
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: var(--ls-body);
  font-feature-settings: "palt" 0;   /* 詰めない。字間はこちらで持つ */
}

@media (min-width: 768px) {
  body { font-size: 18px; line-height: 1.95; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ── 見出し ──────────────────────────────────────────────
   太さでなく大きさで階層を作る。ウェイトは全て400。         */

h1, h2, h3 {
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 400;
  margin: 0;
  line-height: 1.65;
  letter-spacing: var(--ls-head);
}

/* 階層は大きさで作る。本文18pxに対して見出しは約2倍まで開ける。 */
h2 { font-size: clamp(26px, 5.4vw, 36px); }
h3 { font-size: clamp(19px, 3.4vw, 22px); }

/* 見出しの左に細い縦罫＝窓の桟 */
.rule {
  position: relative;
  padding-left: 22px;
}
.rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: .32em;
  bottom: .28em;
  width: 1px;
  background: var(--aqua);
}

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: var(--ls-wide);
  color: var(--ink-mid);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* ── レイアウト ───────────────────────────────────────── */

.wrap {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 本文幅の制限。ただしPCで中央に寄せると、.wrap のセクションと
   左端がずれて段が揃わなくなるので、幅だけ縛って左端は共通に保つ。 */
.narrow { max-width: var(--measure); }

.wrap.narrow { max-width: var(--wide); }
.wrap.narrow > * { max-width: var(--measure); }

section { padding-block: var(--section); }

.band { background: var(--ivory-deep); }

/* ── ヘッダー ─────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--ink-thin);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}
.logo .ja {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 24px;
  letter-spacing: var(--ls-wide);
}
.logo .en {
  font-size: 10px;
  letter-spacing: var(--ls-wide);
  color: var(--ink-mid);
}

.header-tel {
  font-size: 13px;
  letter-spacing: var(--ls-lead);
  text-decoration: none;
  color: var(--aqua-deep);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

/* ── ヒーロー ─────────────────────────────────────────── */

.hero {
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: 0;
}

.hero-copy { max-width: var(--measure); }

.hero h1 {
  font-size: clamp(30px, 6.4vw, 46px);
  letter-spacing: var(--ls-head);
}

.hero-sub {
  margin: 22px 0 0;
  color: var(--ink-mid);
  letter-spacing: var(--ls-lead);
}

.hero-facts {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink-mid);
}
.hero-facts li { margin-bottom: 4px; }

/* ── 写真（片側だけ画面外へ抜く／左右交互） ─────────────── */

.figure {
  margin: var(--section) 0 0;
}

.figure figcaption {
  font-size: 13px;
  letter-spacing: var(--ls-lead);
  color: var(--ink-mid);
  margin-top: 12px;
}

/* キャプションは本文の左端に揃える。
   .bleed-right は figure 自体が gutter ぶん右へ寄っているので padding 不要。 */
.bleed-left > figcaption,
.full > figcaption { padding-left: var(--gutter); }

/* 抜き方向 */
.bleed-right { margin-right: 0; margin-left: var(--gutter); }
.bleed-left  { margin-left: 0; margin-right: var(--gutter); }

.bleed-right .frame { border-radius: 10px 0 0 10px; }
.bleed-left  .frame { border-radius: 0 10px 10px 0; }

.full .frame { border-radius: 0; }
.full { margin-inline: 0; }

/* 空枠（撮影待ち）。仮画像で埋めて完成に見せかけない。 */
.frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, var(--aqua-light), var(--aqua-mist));
  border: 1px dashed var(--ink-thin);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.frame[data-ratio="portrait"] { aspect-ratio: 4 / 5; }
.frame[data-ratio="square"]   { aspect-ratio: 1 / 1; }
.frame[data-ratio="wide"]     { aspect-ratio: 21 / 9; }

.frame .placeholder {
  font-size: 12px;
  letter-spacing: var(--ls-wide);
  color: var(--ink-mid);
  text-align: center;
  padding: 0 24px;
  line-height: 2;
}

/* 写真が入ったら .frame > img が枠を満たす */
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame:has(img) { border: 0; background: none; }
.frame:has(img) .placeholder { display: none; }

/* 2枚並び。全部を全幅写真にすると同じリズムが続くので、
   細部の写真はここで小さく2枚組にして緩急をつける。 */

.photo-pair {
  margin-top: var(--section);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2.4vw, 24px);
}

/* min-width:0 を入れないと、枠の中の説明テキストの最小幅に
   1fr が引っ張られて列がはみ出す（＝横スクロールが出る）。 */
.photo-pair figure { margin: 0; min-width: 0; }

.photo-pair .frame { border-radius: 10px; }

/* 3枚並び。小さいカットをまとめて置く用。
   スマホでは自動的に2列に落ちる。 */
.photo-row {
  margin-top: var(--section);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(10px, 2.4vw, 24px);
}

.photo-row figure { margin: 0; min-width: 0; }
.photo-row .frame { border-radius: 10px; }

.photo-row figcaption,
.photo-pair figcaption {
  font-size: 13px;
  letter-spacing: var(--ls-lead);
  color: var(--ink-mid);
  margin-top: 10px;
}

/* ── 料金 ─────────────────────────────────────────────── */

.price-list {
  margin: 32px 0 0;
  border-top: 1px solid var(--ink-thin);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-thin);
}

.price-row dt {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(20px, 4vw, 22px);
  letter-spacing: var(--ls-lead);
}

.price-row .note {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: var(--ink-mid);
  letter-spacing: var(--ls-body);
  margin-top: 6px;
  max-width: 34em;
}

.price-row dd {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(24px, 5vw, 30px);
  letter-spacing: .04em;
  white-space: nowrap;

  /* 金額の下に光を敷く。文字は焦げ茶のままなので読みやすさは落ちない。
     ここは「不安の1位」なので、色を使う理由がある箇所。 */
  background: linear-gradient(var(--aqua-light), var(--aqua-light))
              left bottom / 100% .34em no-repeat;
  padding-inline: 2px;
}
.price-row dd .yen { font-size: .55em; margin-left: 2px; }

/* オプションは本メニューより一段下げる。
   光（下敷き）はカット2つにだけ残し、優先順位を崩さない。 */
.price-option { margin-top: 0; border-top: 0; }

.price-option .price-row { padding: 18px 0; }

.price-option dt { font-size: 17px; color: var(--ink-mid); }

.price-option dd {
  font-size: clamp(19px, 4vw, 22px);
  background: none;
  color: var(--ink-mid);
}

.price-foot {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--ink-mid);
}

/* ── 流れ（番号バッジは使わない。細い縦線でつなぐ） ──────── */

.steps {
  margin: 32px 0 0;
  padding: 0 0 0 26px;
  list-style: none;
  border-left: 1px solid var(--ink-thin);
}

.steps li {
  position: relative;
  padding-bottom: 26px;
}
.steps li:last-child { padding-bottom: 0; }

.steps li::before {
  content: "";
  position: absolute;
  left: -31px;
  top: .74em;
  width: 11px;
  height: 3px;               /* 明るい水色なので細いと消える。太くして光らせる */
  background: var(--aqua-light);
}

.steps b {
  display: block;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: var(--ls-lead);
  margin-bottom: 2px;
}

.steps span {
  display: block;
  font-size: 15.5px;
  color: var(--ink-mid);
}

/* ── 定義リスト（アクセス・条件） ───────────────────────── */

.facts {
  margin: 32px 0 0;
  display: grid;
  gap: 0;
}

.facts > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 0 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-thin);
}
.facts > div:first-child { border-top: 1px solid var(--ink-thin); }

.facts dt {
  font-size: 14px;
  letter-spacing: var(--ls-lead);
  color: var(--ink-mid);
  line-height: 1.9;
}
.facts dd { margin: 0; }

@media (max-width: 520px) {
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ── CTA（塗らない・細い線の長方形・角丸0） ───────────────
   ※ §1の角丸8〜12px上書きは面／カードに適用。
      CTAだけは参考サイトに合わせて角丸0を維持する。      */

.cta-set {
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  --btn-c: var(--aqua-deep);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 12px 30px;
  border: 1px solid var(--btn-c);
  border-radius: 0;
  color: var(--btn-c);
  background: transparent;
  text-decoration: none;
  letter-spacing: var(--ls-lead);
  line-height: 1.6;
  transition: background-color .2s ease, color .2s ease;
}
.btn small {
  font-size: 12px;
  letter-spacing: var(--ls-body);
  color: var(--ink-mid);
}
/* 押せることを色で示す。明るい水色に焦げ茶なので、
   反転させるより読みやすさが上がる（コントラスト約9:1）。 */
.btn:hover, .btn:focus-visible {
  background: var(--aqua-light);
  border-color: var(--aqua-light);
  color: var(--ink);
}
.btn:hover small, .btn:focus-visible small { color: var(--ink); }

/* 電話は特に大きく（シニア・片手スマホ） */
.btn-tel {
  min-height: 76px;
  padding-inline: 34px;
}
.btn-tel .num {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(24px, 5.6vw, 30px);
  letter-spacing: .08em;
  line-height: 1.3;
}

/* ── 縦組み（写真脇の短い言葉。料金・条件には使わない） ──── */

.tate {
  writing-mode: vertical-rl;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(16px, 3.4vw, 19px);
  letter-spacing: var(--ls-wide);
  line-height: 2.2;
  color: var(--ink);
  margin: 0;
}

.photo-aside {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
}

/* ── 想い ─────────────────────────────────────────────── */

.voice p {
  margin: 0 0 1.4em;
}
.voice p:last-child { margin-bottom: 0; }

.signature {
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-mid);
  letter-spacing: var(--ls-lead);
}

/* ── 注記 ─────────────────────────────────────────────── */

.tbc {
  font-size: 14px;
  color: var(--ink-mid);
}

.todo {
  display: inline-block;
  border-bottom: 1px dotted var(--ink-mid);
  color: var(--ink-mid);
}

/* ── フッター ─────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--ink-thin);
  padding-block: 40px;
  font-size: 14px;
  color: var(--ink-mid);
}

.site-footer .logo .ja { font-size: 20px; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-recruit {
  font-size: 13px;
  letter-spacing: var(--ls-lead);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-thin);
  padding-bottom: 4px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.copyright {
  margin: 28px 0 0;
  font-size: 11px;
  letter-spacing: var(--ls-lead);
}

/* ── 求人ページ ───────────────────────────────────────── */

/* 格子線を明るい水色にする。カード全体に薄く水色の桟が入る＝窓。
   線そのものを読ませる必要はないので、明度が高くても成立する。 */
.terms {
  margin: 32px 0 0;
  display: grid;
  gap: 2px;
  background: var(--aqua-light);
  border: 2px solid var(--aqua-light);
  border-radius: 10px;
  overflow: hidden;
}

.terms > div {
  background: var(--ivory);
  padding: 24px clamp(18px, 4vw, 30px);
}

.terms dt {
  font-size: 13px;
  letter-spacing: var(--ls-wide);
  color: var(--ink-mid);
  margin-bottom: 8px;
}

.terms dd {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(19px, 4.2vw, 23px);
  letter-spacing: var(--ls-lead);
  line-height: 1.7;
}

.terms .sub {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  color: var(--ink-mid);
  letter-spacing: var(--ls-body);
  line-height: 1.9;
  margin-top: 8px;
}

@media (min-width: 720px) {
  .terms { grid-template-columns: 1fr 1fr; }
}

.waiting {
  margin: 26px 0 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(20px, 4.6vw, 26px);
  letter-spacing: var(--ls-head);
  line-height: 1.9;
}

/* このページで一番言いたい一行にだけ光を敷く */
.waiting .lit {
  background: linear-gradient(var(--aqua-light), var(--aqua-light))
              left .82em / 100% .42em no-repeat;
}

/* Q と A は「大きさ・色・書体・字下げ」の4つで分ける。
   同じ大きさで並べると、どこまでが質問か分からなくなる。 */

.qa {
  margin: 36px 0 0;
  border-top: 1px solid var(--ink-thin);
}

.qa > div {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--ink-thin);
}

.qa dt,
.qa dd {
  display: grid;
  /* remで固定する。emにするとQとAで文字サイズが違うぶん左端がずれる。 */
  grid-template-columns: 2.4rem 1fr;
  gap: 0;
}

.qa dt {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(19px, 3.8vw, 22px);
  line-height: 1.75;
  letter-spacing: var(--ls-lead);
  color: var(--ink);
  margin-bottom: 14px;
}

.qa dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-mid);
}

.qa .mark {
  font-size: 13px;
  letter-spacing: .1em;
  line-height: inherit;
  color: var(--aqua);
  align-self: start;
  padding-top: .35em;
}

.qa dd .mark {
  color: var(--ink-thin);
  padding-top: .2em;
}

/* ── 印刷・アクセシビリティ ─────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--aqua-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 10px;
  z-index: 10;
  background: var(--ivory);
  padding: 10px 16px;
  border: 1px solid var(--aqua-deep);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   スクロールに合わせた表示（script.js が .is-in を付ける）

   方針：動きで目を引かない。動くのは「入ってきた瞬間」だけで、
   一度出たものは二度と動かさない。料金・条件・電話番号は
   照合される情報なので、遅れて出したり動かしたりしない。
   prefers-reduced-motion と JS 無効時は、最初から全部見える。
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {

  /* ① 本文ブロック：8px上がりながらフェード
     ※ .js-anim は head のインラインスクリプトが付ける。
        JSが無効／IntersectionObserver非対応の環境では付かないので、
        隠したまま戻らない事故が起きない。 */
  .js-anim .hero-copy > *,
  .js-anim section > .wrap > *:not(.hero-copy):not(.photo-pair):not(.photo-row),
  .js-anim .photo-pair > figure,
  .js-anim .photo-row > figure,
  .js-anim .qa > div {
    /* 条件カード（.terms）はここに入れない。
       格子の地色が水色なので、セルだけ透かすと水色の板が出る。
       カードは .terms ごと1枚で出す。 */
    opacity: 0;
    transform: translateY(9px);
    transition:
      opacity   .75s cubic-bezier(.22,.61,.24,1),
      transform .75s cubic-bezier(.22,.61,.24,1);
  }

  /* ② 写真：抜けている方向へワイプして現れる（＝窓） */
  .js-anim .figure .frame {
    transition: clip-path 1s cubic-bezier(.22,.61,.24,1);
  }
  .js-anim .figure.bleed-right .frame,
  .js-anim .figure.full .frame { clip-path: inset(0 100% 0 0); }
  .js-anim .figure.bleed-left  .frame { clip-path: inset(0 0 0 100%); }

  .js-anim .figure.is-in .frame { clip-path: inset(0 0 0 0); }

  /* ③ 見出しの左の縦罫（窓の桟）が上から下へ伸びる */
  .js-anim .rule::before {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .8s cubic-bezier(.22,.61,.24,1) .06s;
  }
  .js-anim .rule.is-in::before,
  .js-anim .is-in .rule::before { transform: scaleY(1); }

  /* 表示後。
     初期状態の指定（`section > .wrap > *:not()...` など）は詳細度が高く、
     素直に書くとこの一行が負けて要素が出てこない。
     打ち消しが目的の1行なので !important を使う。 */
  .js-anim .is-in {
    opacity: 1 !important;
    transform: none !important;
  }

  /* 並んでいるものは少しずつ遅らせる（最大3段まで）。
     上と同じ理由で !important（初期状態のtransition省略記法に負けるため） */
  .js-anim .stagger-1 { transition-delay: .08s !important; }
  .js-anim .stagger-2 { transition-delay: .16s !important; }
  .js-anim .stagger-3 { transition-delay: .24s !important; }
}
