/* ==========================================================
   STILLIFES LP  style.css
   ----------------------------------------------------------
   ・色・文字・幅は、すぐ下の :root の変数でまとめて変更できます
   ・スマホ表示を基準に作っています。PCでは中央にスマホ幅の列を表示します
   ・各セクションは index.html のコメント番号（①〜⑧）と対応しています
   ========================================================== */

/* ---------- 共通の設定値（ここを変えると全体に反映） ---------- */
:root {
  /* 色 */
  --color-ink: #141414;        /* 黒（背景・文字） */
  --color-paper: #F7F5F0;      /* 生成り（背景） */
  --color-paper-2: #EFEAE1;    /* 生成り・少し濃い（④の背景） */
  --color-white: #FFFFFF;
  --color-accent: #E58A3A;     /* アクセント（ボタン・強調） */
  --color-accent-text: #B4621F;/* 白背景の上で使うアクセント文字色 */
  --color-tag-bg: #F3E3D2;     /* タグの背景 */
  --color-tag-text: #8F4A12;   /* タグの文字 */
  --color-beige: #EFE3CF;      /* 入会金ボックス */
  --color-text-sub: #3E3C38;   /* 本文（明るい背景） */
  --color-text-muted: #5C5A55; /* 補足文字 */
  --color-text-on-dark: #D9D4CA;/* 本文（暗い背景） */
  --color-line: #E2DDD3;       /* 枠線 */
  --color-ph: #D9D5CC;         /* 写真ダミーの色 */

  /* 文字 */
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Jost", "Noto Sans JP", sans-serif;

  /* レイアウト */
  --page-width: 480px;         /* PC表示時のページ幅（スマホではこれより狭い画面幅に合わせます） */
  --side: 24px;                /* 左右の余白 */
  --radius: 12px;
  --cta-height: 78px;          /* 追従ボタン帯の高さ（ページ下の余白に使用） */
}

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-ink);
  background: #E4DED3; /* PCで見たとき、ページの外側に見える色 */
  line-height: 1.7;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }

.page {
  max-width: var(--page-width);
  margin: 0 auto;
  background: var(--color-paper);
  overflow-x: hidden;
  padding-bottom: var(--cta-height); /* 追従ボタンに隠れないための余白 */
}

/* 写真ダミー（本番の写真に差し替えたら不要になります） */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  background: var(--color-ph);
  color: #6A665F;
  font-size: 12px;
  text-align: center;
}
.ph--dark { background: #2B2A28; color: #A8A399; }

/* 小見出しラベル（英字） */
.label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--color-accent-text);
}
.label--light { color: var(--color-accent); }

.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { font-size: 24px; font-weight: 700; line-height: 1.6; }
.section-head__lead { font-size: 15px; font-weight: 500; color: var(--color-text-muted); }

/* ボタン */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn--primary { background: var(--color-accent); color: var(--color-ink); font-size: 15px; }
.btn--ghost { border: 1px solid var(--color-paper); color: var(--color-paper); font-size: 13px; }
.btn--block { width: 100%; min-height: 60px; font-size: 17px; border-radius: 10px; }

/* ==========================================================
   ① MV
   ========================================================== */
.mv {
  position: relative;
  min-height: 100svh;      /* 画面いっぱいの高さ */
  max-height: 900px;
  color: var(--color-paper);
  background: #2B2A28;
  overflow: hidden;
}
.mv__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mv__bg.ph { align-items: flex-end; justify-content: flex-start; padding: 16px; }
/* 写真の上の文字を読みやすくする暗いかぶせ。写真が明るい場合は濃さ(0.45)を調整してください */
.mv__shade { position: absolute; inset: 0; background: rgba(20, 20, 20, .45); }

.mv__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 88px var(--side) calc(var(--cta-height) + 32px);
  text-align: center;
}
.mv__area { font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: 4px; color: #D9D4CA; }
.mv__copy { font-size: 30px; font-weight: 700; line-height: 1.45; color: var(--color-accent); }
.mv__logo { font-family: var(--font-en); font-size: 50px; font-weight: 600; letter-spacing: 5px; line-height: 1.1; }
.mv__sub { font-size: 14px; line-height: 1.8; color: #E8E4DC; }

.mv__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 260px;   /* 丸3つ＋すき間2つ分。丸の大きさを変えたらここも合わせる */
  margin-top: 8px;
}
/* ---------- MVのモーション（文字が下から浮き上がる） ----------
   ・表示される順番は animation-delay（秒）で調整できます
   ・動きの速さは --mv-duration、動く距離は @keyframes mvRise の translateY で調整
   ・端末で「視差効果を減らす」設定の人には動きを出しません */
.mv { --mv-duration: 1s; --mv-ease: cubic-bezier(.2, .7, .2, 1); }
.mv__area,
.mv__line,
.mv__logo,
.mv__sub,
.mv__points li {
  opacity: 0;
  animation: mvRise var(--mv-duration) var(--mv-ease) forwards;
}
.mv__line { display: block; }
.mv__area                     { animation-delay: .15s; }
.mv__line:nth-child(1)        { animation-delay: .35s; }
.mv__line:nth-child(2)        { animation-delay: .55s; }
.mv__logo                     { animation-delay: .85s; }
.mv__sub                      { animation-delay: 1.05s; }
.mv__points li:nth-child(1)   { animation-delay: 1.3s; }
.mv__points li:nth-child(2)   { animation-delay: 1.4s; }
.mv__points li:nth-child(3)   { animation-delay: 1.5s; }
.mv__points li:nth-child(4)   { animation-delay: 1.6s; }
.mv__points li:nth-child(5)   { animation-delay: 1.7s; }

@keyframes mvRise {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .mv__area, .mv__line, .mv__logo, .mv__sub, .mv__points li { opacity: 1; animation: none; }
}

.mv__points li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;        /* 丸の大きさ */
  height: 78px;
  border-radius: 50%;
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.02em;
}

/* ==========================================================
   ② ステートメント
   ========================================================== */
.statement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 80px 28px 88px;
  background: var(--color-ink);
  color: var(--color-paper);
  text-align: center;
  font-size: 15px;
  line-height: 2.2;
}
.statement__sign { font-size: 13px; letter-spacing: 1px; color: #B8B3AA; line-height: 1.6; }

/* ==========================================================
   ③ 5つのサポート（横スライド）
   ========================================================== */
.support { display: flex; flex-direction: column; gap: 28px; padding: 72px 0 56px; }
.support .section-head { padding: 0 var(--side); }

.carousel {
  display: flex;
  gap: 14px;
  padding: 0 var(--side) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--side);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.card {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 300px;            /* カード幅。変える場合は main.js の調整は不要です */
  min-height: 460px;
  scroll-snap-align: start;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__photo { width: 100%; height: 180px; flex: none; object-fit: cover; }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.5; }
.card__title .num { margin-right: .7em; font-family: var(--font-en); color: var(--color-accent-text); }
.card__text { font-size: 13px; line-height: 1.9; color: var(--color-text-sub); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags li {
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  font-size: 12px;
}

.carousel-dots { display: flex; align-items: center; justify-content: center; gap: 16px; }
.carousel-dots__list { display: flex; gap: 8px; }
.carousel-dots__list span {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #CFC9BD;
  transition: width .25s, background .25s;
}
.carousel-dots__list span.is-active { width: 20px; background: var(--color-accent-text); }
.carousel-dots__hint { font-size: 12px; color: var(--color-text-muted); }

/* ==========================================================
   ④ その他のサポート
   ========================================================== */
.extras { display: flex; flex-direction: column; gap: 24px; padding: 56px var(--side) 72px; background: var(--color-paper-2); }
.extras h2 { font-size: 20px; font-weight: 700; line-height: 1.6; }
.extras__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.extras__grid li { display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: var(--color-white); }
.extras__photo { width: 100%; height: 96px; object-fit: cover; }
.extras__grid p { padding: 12px; font-size: 12px; font-weight: 500; line-height: 1.7; }
.extras__note { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--color-text-muted); }

/* ==========================================================
   ⑤ 運営フォトグラファー
   ========================================================== */
.staff { display: flex; flex-direction: column; gap: 40px; padding: 72px var(--side) 80px; background: var(--color-ink); color: var(--color-paper); }
.staff__item { display: flex; flex-direction: column; gap: 16px; }
.staff__item + .staff__item { padding-top: 40px; border-top: 1px solid #3A3936; }
/* 写真は元の画像の縦横比のまま表示（切り抜きなし）。ダミー表示のときだけ高さ260px */
.staff__photo { display: block; width: 100%; height: auto; border-radius: 10px; }
.staff__photo.ph { height: 260px; }
.staff__name { font-family: var(--font-en); font-size: 22px; font-weight: 600; letter-spacing: 2px; }
.staff__text { font-size: 14px; line-height: 1.9; color: var(--color-text-on-dark); }
.staff__link { font-size: 14px; font-weight: 500; color: var(--color-accent); }

/* ==========================================================
   ⑥ 結論・料金
   ========================================================== */
.conclusion { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 80px var(--side) 48px; text-align: center; }
.conclusion h2 { font-size: 24px; font-weight: 700; line-height: 1.7; }

.price { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 var(--side) 72px; }
.price__title { font-size: 16px; font-weight: 700; }
.price__box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
}
.price__box--entry { border-color: transparent; background: var(--color-beige); }
.price__box span { font-size: 15px; font-weight: 500; }
.price__box strong { font-family: var(--font-en); font-size: 32px; font-weight: 600; }
.price__plus { font-size: 22px; font-weight: 500; color: #8A867D; line-height: 1; }
.price__note { margin-top: 4px; font-size: 12px; line-height: 1.8; color: var(--color-text-muted); }

/* ==========================================================
   ⑦ オファー（無料体験）
   ========================================================== */
.offer { padding: 0 16px 72px; }
.offer__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 20px 32px;
  border: 2px solid var(--color-accent);
  border-radius: 16px;
  background: var(--color-white);
  text-align: center;
}
.offer__badge { padding: 6px 16px; border-radius: 99px; background: var(--color-accent); font-size: 13px; font-weight: 700; }
.offer__box h2 { font-size: 26px; font-weight: 700; line-height: 1.5; }
.offer__lead { font-size: 14px; line-height: 1.9; color: var(--color-text-sub); }

.offer__movie { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.offer__movie-title { font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.offer__video { width: 220px; aspect-ratio: 9 / 16; border-radius: var(--radius); object-fit: cover; background: #2B2A28; }

.schedule { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.schedule__title { font-size: 14px; font-weight: 700; text-align: center; }
.schedule__list { display: flex; flex-direction: column; gap: 10px; }
.schedule__list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--color-paper); }
.schedule__date { flex: none; min-width: 92px; white-space: nowrap; font-family: var(--font-en); font-size: 18px; font-weight: 600; }
.schedule__area { flex: none; white-space: nowrap; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.schedule__area--osaka { background: var(--color-ink); color: var(--color-paper); }
.schedule__area--tokyo { background: var(--color-accent); color: var(--color-ink); }
.schedule__place { min-width: 0; font-size: 13px; color: var(--color-text-sub); }
.schedule__date small { font-family: var(--font-jp); font-size: 12px; font-weight: 500; }
.schedule__time { display: block; font-family: var(--font-en); font-size: 14px; font-weight: 500; color: var(--color-ink); }
.schedule__list li.is-closed { opacity: .5; }
.schedule__empty { justify-content: center; font-size: 13px; color: var(--color-text-muted); }

.offer__join { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.offer__join p { font-size: 12px; line-height: 1.7; color: var(--color-text-muted); }
.offer__join a { font-size: 14px; font-weight: 700; }

/* ==========================================================
   ⑧ よくある質問
   ========================================================== */
.faq { display: flex; flex-direction: column; gap: 20px; padding: 0 var(--side) 80px; text-align: center; }
.faq h2 { font-size: 22px; font-weight: 700; }
.faq__list { text-align: left; border-bottom: 1px solid #D9D3C7; }
.faq__item { border-top: 1px solid #D9D3C7; }
.faq__item summary {
  position: relative;
  display: block;
  padding: 18px 28px 18px 26px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before { /* Q マーク */
  content: "Q";
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-accent-text);
}
.faq__item summary::after { /* ＋ / − */
  content: "＋";
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 18px;
  color: var(--color-text-muted);
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 0 18px 26px; font-size: 13px; line-height: 1.9; color: var(--color-text-sub); }
.faq__more { align-self: flex-end; font-size: 14px; font-weight: 700; }

/* ==========================================================
   フッター
   ========================================================== */
.footer { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px var(--side) 48px; background: var(--color-ink); color: var(--color-paper); text-align: center; }
.footer__logo { font-family: var(--font-en); font-size: 30px; font-weight: 600; letter-spacing: 4px; }
.footer__area { font-family: var(--font-en); font-size: 12px; letter-spacing: 3px; color: #B8B3AA; }
.footer__link { font-size: 13px; color: var(--color-accent); }
.footer__link--sub { font-size: 12px; color: #D9D4CA; }
.footer__copy { margin-top: 8px; font-size: 12px; color: #8A867D; }

/* ==========================================================
   追従ボタン
   ========================================================== */
.cta-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: var(--page-width);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(20, 20, 20, .96);
  transform: translateX(-50%);
  transition: transform .3s, opacity .3s;
}
.cta-bar .btn--ghost { flex: 1; }
.cta-bar .btn--primary { flex: 1.5; }
.cta-bar.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 100%); }

/* ==========================================================
   勉強会の作品モーダル（③の「作品はこちら」から開く）
   ========================================================== */
.card__more {
  align-self: flex-start;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent-text);
  cursor: pointer;
}
.card__more--center { align-self: center; }

.works {
  width: 100%;
  max-width: var(--page-width);
  max-height: 100%;
  margin: auto;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--color-paper);
}
.works::backdrop { background: rgba(20, 20, 20, .96); }
.works[open] { animation: worksIn .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes worksIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.works__panel { display: flex; flex-direction: column; gap: 16px; }
.works__head { display: flex; align-items: center; justify-content: space-between; }
.works__title { font-size: 15px; font-weight: 700; }
.works__close {
  width: 40px; height: 40px;
  border: 1px solid rgba(247, 245, 240, .4);
  border-radius: 50%;
  background: none;
  color: var(--color-paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* 横スワイプ（1枚ずつピタッと止まる） */
.works__list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.works__list::-webkit-scrollbar { display: none; }
.works__item { flex: none; width: 100%; scroll-snap-align: center; display: flex; flex-direction: column; gap: 6px; }
.works__photo { width: 100%; aspect-ratio: 4 / 5; max-height: 56svh; border-radius: var(--radius); object-fit: cover; }
.works__name { margin-top: 6px; font-size: 15px; font-weight: 700; }
.works__meta { font-size: 12px; color: #B8B3AA; }

.works__nav { display: flex; align-items: center; justify-content: center; gap: 24px; }
.works__arrow {
  width: 44px; height: 44px;
  border: 1px solid rgba(247, 245, 240, .4);
  border-radius: 50%;
  background: none;
  color: var(--color-paper);
  font-size: 18px;
  cursor: pointer;
}
.works__arrow:disabled { opacity: .3; cursor: default; }
.works__count { min-width: 56px; font-family: var(--font-en); font-size: 14px; letter-spacing: 2px; text-align: center; }

/* モーダルが開いている間、後ろのページをスクロールさせない */
html.is-modal-open { overflow: hidden; }
html.is-modal-open .cta-bar { opacity: 0; pointer-events: none; }

/* レビュー会の動画（縦9:16）。画面の高さに合わせて中央に表示 */
.works__item:has(.works__video) { align-items: center; }
.works__video { height: 56svh; aspect-ratio: 9 / 16; max-width: 100%; border-radius: var(--radius); background: #000; object-fit: contain; }
.works__item:has(.works__video) .works__name,
.works__item:has(.works__video) .works__meta { align-self: stretch; text-align: center; }
/* 横長（16:9）の動画。幅いっぱいに表示 */
.works__video--wide { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.works__nav[hidden] { display: none; }
/* ライティング解説書（A4横 297:210）。幅いっぱいに表示 */
.works__photo--a4 { aspect-ratio: 297 / 210; max-height: none; }
/* 商品撮影講座の資料（Googleスライド 16:9）。幅いっぱいに表示 */
.works__photo--slide { aspect-ratio: 16 / 9; max-height: none; }
