/* ============================================================
   Joren for LINE — Landing Page
   美容サロン向け LINE 予約/CRM

   設計方針:
   - 和モダン・エディトリアル。上質なサロンのパンフレットの佇まい。
   - 明朝の見出し × ゴシック本文。罫線と余白で構成し、カードの多用を避ける。
   - Joren独自色（墨・生成り・真鍮）が主役。LINE緑は「LINEで動く」文脈にのみ使う。
     全面をLINE緑にすると公式提供と誤認されるため、意図的に抑えている。
   ============================================================ */

:root {
  /* Joren のブランドカラー */
  --ink: #191510;          /* 墨 */
  --ink-soft: #4a4238;
  --ink-faint: #8b8175;
  --paper: #f6f2ea;        /* 生成り */
  --paper-deep: #ede7db;
  --paper-white: #fdfbf7;
  --brass: #9c7c4a;        /* 真鍮＝アクセント */
  --brass-light: #c4a373;
  --rule: #ddd4c4;

  /* LINE 連携の文脈でのみ使用 */
  --line: #06c755;
  --line-deep: #05a948;

  --measure: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  /* 紙の質感。単色ベタ塗りを避ける */
  background-image:
    radial-gradient(circle at 12% 8%, rgba(196, 163, 115, 0.10), transparent 42%),
    radial-gradient(circle at 88% 72%, rgba(25, 21, 16, 0.045), transparent 46%);
  background-attachment: fixed;
  /* 日本語を文節で折る。「店内\nで、」のような不自然な改行を避ける */
  word-break: auto-phrase;
}

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

h1, h2, h3, .mincho {
  font-family: "Shippori Mincho B1", "Yu Mincho", serif;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

.num {
  font-family: "Cormorant Garamond", "Shippori Mincho B1", serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }

/* ---------- 目印（セクションの小見出し） ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--brass);
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--brass);
  opacity: 0.7;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--rule); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}
.brand { display: flex; align-items: baseline; gap: 0.6rem; text-decoration: none; }
.brand__mark {
  /* 欧文なので明朝ではなく Cormorant。和文ロゴより端正に出る */
  font-family: "Cormorant Garamond", "Shippori Mincho B1", serif;
  font-size: 1.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.brand__sub {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.84rem;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.3rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
/* LINE緑はこのボタンにのみ使う＝「LINEで応募する」導線 */
.btn--line {
  background: var(--line);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(6, 199, 87, 0.85);
}
.btn--line:hover { background: var(--line-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(6, 199, 87, 0.9); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--sm { padding: 0.7rem 1.4rem; font-size: 0.82rem; }
/* ボタンのラベルは折り返さない（狭い幅でヘッダーCTAが2行になっていた） */
.btn { white-space: nowrap; }

/* 狭い画面ではヘッダーを整理する。ヒーローに同じCTAがあるので情報は失われない */
@media (max-width: 560px) {
  .brand__sub { display: none; }
  .site-header .btn--sm { padding: 0.55rem 1rem; font-size: 0.76rem; }
  .site-header .wrap { min-height: 62px; }
}

.btn__icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: clip; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: clamp(460px, 76vh, 780px);
  object-fit: cover;
  object-position: 62% center;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(246,242,234,0.97) 0%, rgba(246,242,234,0.9) 32%, rgba(246,242,234,0.35) 56%, rgba(246,242,234,0) 74%);
}
@media (max-width: 780px) {
  .hero__media::after {
    background: linear-gradient(180deg, rgba(246,242,234,0.95) 0%, rgba(246,242,234,0.86) 46%, rgba(246,242,234,0.55) 100%);
  }
}

.hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero__copy { max-width: 33rem; }

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.35rem);
  margin: 0 0 1.6rem;
  letter-spacing: 0.06em;
  line-height: 1.32;
}
.hero h1 .accent { color: var(--brass); }
.hero__lead {
  font-size: clamp(0.96rem, 1.5vw, 1.06rem);
  color: var(--ink-soft);
  margin: 0 0 2.4rem;
  /* コピーが長くなったので、3行が均等に収まる幅に広げた */
  max-width: 30rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero__note {
  margin-top: 1.6rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* 縦書きの装飾。日本語ならではの差別化 */
.hero__vertical {
  position: absolute;
  /* 右端だと鏡と椅子に重なって判読できず、汚れに見えた。
     左の余白（オーバーレイが効いて明るい）に背表紙のように置く */
  left: 1.9rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: "Shippori Mincho B1", serif;
  font-size: 0.76rem;
  /* 字間を詰めないとヒーロー下端で見切れる（実測で調整） */
  letter-spacing: 0.34em;
  max-height: calc(100% - 6rem);
  margin: 0;
  color: var(--ink);
  opacity: 0.45;
}
@media (max-width: 1280px) { .hero__vertical { display: none; } }

/* ---------- セクション共通 ---------- */
section { padding-block: clamp(5rem, 11vw, 9rem); }
.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  margin: 0 0 1.2rem;
}
.section-lead {
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 3.4rem;
}

/* ---------- 課題 ---------- */
.problems { background: var(--paper-deep); }
.problem-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.problem-list li {
  border-bottom: 1px solid var(--rule);
  padding: 1.7rem 0;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.4rem;
  align-items: baseline;
}
.problem-list .num { font-size: 1.5rem; color: var(--brass-light); }
.problem-list p { margin: 0; }
.problem-list strong { font-weight: 600; }
@media (max-width: 640px) {
  .problem-list li { grid-template-columns: 3rem 1fr; gap: 1rem; }
}

/* ---------- 3本柱 ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(2rem, 4vw, 3.4rem);
}
.pillar { position: relative; padding-top: 2.2rem; border-top: 2px solid var(--ink); }
.pillar h3 { font-size: 1.3rem; margin: 0 0 0.9rem; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.pillar__idx {
  position: absolute;
  top: -1.15rem; right: 0;
  background: var(--paper);
  padding-inline: 0.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  color: var(--brass);
}

/* ---------- 機能 ---------- */
.features { background: var(--ink); color: var(--paper); }
.features .section-lead { color: rgba(246, 242, 234, 0.72); }
.features .eyebrow { color: var(--brass-light); }
.features .eyebrow::before { background: var(--brass-light); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
  background: rgba(246, 242, 234, 0.16);
  border: 1px solid rgba(246, 242, 234, 0.16);
}
.feature {
  background: var(--ink);
  padding: 2.4rem 2rem;
  transition: background-color 0.5s var(--ease);
}
.feature:hover { background: #211c15; }
.feature h3 {
  font-size: 1.08rem;
  margin: 0 0 0.8rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.feature h3 svg { width: 1.15rem; height: 1.15rem; color: var(--brass-light); flex: none; }
.feature p { margin: 0; font-size: 0.88rem; color: rgba(246, 242, 234, 0.7); line-height: 1.85; }

/* ---------- 体験（スマホモック） ---------- */
.experience-layout {
  display: grid;
  grid-template-columns: 1fr minmax(15rem, 20rem);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
@media (max-width: 900px) { .experience-layout { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  position: relative;
  padding: 0 0 2.3rem 2.6rem;
  border-left: 1px solid var(--rule);
}
.steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps li::before {
  content: "";
  position: absolute;
  left: -4.5px; top: 0.6rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass);
}
.steps h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.steps p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* LINEのトーク画面を模したモック（実スクショではなく作図） */
.phone {
  border: 1px solid var(--ink);
  border-radius: 2rem;
  padding: 0.65rem;
  background: var(--ink);
  box-shadow: 0 30px 60px -34px rgba(25, 21, 16, 0.7);
}
.phone__screen {
  background: #8fa8bd;
  border-radius: 1.5rem;
  padding: 1.1rem 0.9rem 1.4rem;
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.phone__bar {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.92);
  text-align: center;
  letter-spacing: 0.1em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 0.4rem;
}
.bubble {
  max-width: 82%;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.78rem;
  line-height: 1.7;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
.bubble--me { align-self: flex-end; background: var(--line); color: #fff; }
.bubble__meta { display: block; margin-top: 0.35rem; font-size: 0.64rem; opacity: 0.6; }
.bubble--card { padding: 0; overflow: hidden; max-width: 88%; }
.bubble__head {
  background: var(--paper-deep);
  padding: 0.6rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}
.bubble__body { padding: 0.8rem 0.9rem; font-size: 0.78rem; }
.bubble__cta {
  display: block;
  margin: 0.6rem 0.9rem 0.9rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.6rem;
  background: var(--line);
  color: #fff;
  font-size: 0.74rem;
}

/* ---------- 導入の流れ ---------- */
.flow { background: var(--paper-deep); }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.6rem;
  counter-reset: flow;
}
.flow-item {
  background: var(--paper-white);
  border: 1px solid var(--rule);
  padding: 2rem 1.6rem;
  position: relative;
}
.flow-item::before {
  counter-increment: flow;
  content: "0" counter(flow);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
  color: var(--brass-light);
  display: block;
  line-height: 1;
  margin-bottom: 0.9rem;
}
.flow-item h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.flow-item p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- 料金 ---------- */
.price-card {
  border: 1px solid var(--ink);
  background: var(--paper-white);
  padding: clamp(2rem, 5vw, 3.4rem);
  max-width: 44rem;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.price-row:last-of-type { border-bottom: none; }
/* 広い画面では金額を必ず同じ行の右端に置く（説明文が長い行だけ崩れていた） */
@media (min-width: 640px) {
  .price-row { flex-wrap: nowrap; }
  .price-row__label { flex: 1 1 auto; min-width: 0; }
  .price-row__value { flex: 0 0 auto; }
}
.price-row__label { font-size: 0.94rem; }
.price-row__label small { display: block; font-size: 0.76rem; color: var(--ink-faint); margin-top: 0.2rem; }
.price-row__value {
  text-align: right;
  /* ラベルが長く折り返した場合も金額を右に保つ（2年目保守の行で崩れていた） */
  margin-left: auto;
}
.price-row__value .num { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; }
.price-row__value .yen { font-size: 1rem; margin-left: 0.15rem; }
.price-row__value small { display: block; font-size: 0.76rem; color: var(--ink-faint); margin-top: 0.35rem; }
.price-note {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.price-note ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.price-note li { margin-bottom: 0.4rem; }

.badge-first-year {
  display: inline-block;
  background: var(--brass);
  color: var(--paper-white);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-left: 0.6rem;
  vertical-align: middle;
}

/* ---------- モニター募集 ---------- */
.monitor {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.monitor .eyebrow { color: var(--brass-light); justify-content: center; }
.monitor .eyebrow::before { background: var(--brass-light); }
.monitor h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 0 0 1.4rem; }
.monitor p { color: rgba(246,242,234,0.76); max-width: 34rem; margin: 0 auto 2.6rem; }
.monitor__perks {
  list-style: none;
  margin: 0 auto 3rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  max-width: 42rem;
}
.monitor__perks li {
  border: 1px solid rgba(246,242,234,0.3);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--rule); max-width: 46rem; }
details {
  border-bottom: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 1.5rem 2.5rem 1.5rem 0;
  font-size: 0.98rem;
  position: relative;
  font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 0.4rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p, details table { margin: 0 0 1.6rem; font-size: 0.89rem; color: var(--ink-soft); }
details table { width: 100%; border-collapse: collapse; }
details th, details td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--rule); font-weight: 400; }
details th { color: var(--ink); font-weight: 500; }
details td:last-child { text-align: right; white-space: nowrap; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--paper-deep);
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.84rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--rule);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-faint);
  font-size: 0.76rem;
}
.disclaimer {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
  line-height: 1.8;
}

/* ---------- スクロール演出 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature, .nav a::after { transition: none; }
}

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

/* ---------- モニター条件 ---------- */
.terms { text-align: left; max-width: 54rem; margin: 0 auto 3rem; }
.terms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: rgba(246, 242, 234, 0.18);
  border: 1px solid rgba(246, 242, 234, 0.18);
  margin: 0 0 2.6rem;
}
.terms__grid > div { background: var(--ink); padding: 1.5rem 1.2rem; }
.terms__grid dt {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--brass-light);
  margin-bottom: 0.6rem;
}
.terms__grid dd { margin: 0; font-size: 1rem; }
.terms__grid dd .num { font-size: 1.9rem; margin-right: 0.15rem; }
.terms__grid dd small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: rgba(246, 242, 234, 0.6);
  line-height: 1.7;
}

.terms__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2.4rem;
}
.terms__cols h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(246, 242, 234, 0.22);
}
.terms__cols ul { margin: 0; padding-left: 1.1rem; }
.terms__cols li {
  font-size: 0.88rem;
  color: rgba(246, 242, 234, 0.78);
  margin-bottom: 0.6rem;
  line-height: 1.8;
}
.terms__opt {
  margin: 1rem 0 0 !important;
  font-size: 0.8rem !important;
  color: rgba(246, 242, 234, 0.6) !important;
  max-width: none !important;
}
.terms__opt strong { color: var(--brass-light); }
