/* ==========================================================
   Rere_Film - style.css
   Base color: White / Black / Dark Gray
   ========================================================== */

/* ---------- Variables ---------- */
:root {
  /* 色の役割（ここを変えればサイト全体の配色が変わる） */
  --bg: #ffffff;          /* メイン背景 */
  --bg-alt: #f4f3f0;      /* 交互の背景（薄いグレー） */
  --bg-alt2: #ebeae6;     /* 一段濃い背景 */
  --text: #111111;        /* 本文・見出し */
  --text-sub: #5c5c5c;    /* 補足テキスト（ダークグレー） */
  --text-mute: #6b6b6b;   /* 番号・英字ラベル（白地でコントラスト比 5.3:1） */
  --line: #d9d8d4;        /* 罫線 */
  --dark: #111111;        /* 黒いセクション（お問い合わせ・フッター） */
  --dark-text: #f4f3f0;
  --placeholder: linear-gradient(135deg, #d6d5d1, #bdbcb8); /* 仮画像 */

  --f-en: "Cormorant Garamond", "Times New Roman", serif;
  --f-serif: "Noto Serif JP", serif;
  --f-sans: "Noto Sans JP", sans-serif;

  --container: 1120px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .05em;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* キーボード操作時のフォーカス枠をモノトーンに統一 */
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 140px 0; }

.section__head { margin-bottom: 72px; }
.section__num {
  font-family: var(--f-en);
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--text-mute);
}
.section__num::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: currentColor;
}
.section__title {
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.1;
  letter-spacing: .04em;
}
/* 見出し（h2）内の日本語ラベル。英語見出しの下に小さく表示 */
.section__ja {
  display: block;
  margin-top: 8px;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .3em;
  color: var(--text-sub);
}

/* 画面には表示せず、検索エンジン・読み上げソフトにだけ伝えるテキスト */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
/* ヒーロー上部の白い帯の上に乗る。スクロール後は半透明の白背景 */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--text);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
/* backdrop-filter があると全画面メニュー(position: fixed)がヘッダー内に閉じ込められるため、メニュー展開中は解除 */
.header.is-open {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
}
.header__logo {
  font-family: var(--f-en);
  font-size: 24px;
  letter-spacing: .12em;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__list a {
  font-family: var(--f-en);
  font-size: 15px;
  letter-spacing: .2em;
  transition: opacity .3s;
}
.nav__list a:hover { opacity: .6; }
.nav__cta {
  padding: 6px 22px;
  border: 1px solid currentColor;
}
.header__toggle { display: none; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0a0a; /* 画像読み込み前の下地 */
  filter: grayscale(100%); /* モノクロで映画的に。カラーにしたい場合はこの行を削除 */
}
/* スライド：重ねて配置し、is-active のものだけフェードイン＋ゆっくりズーム */
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.8s ease, transform 8s linear;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42); /* 文字を読みやすくする暗幕 */
}
/* シネマスコープ風のレターボックス（背景と同じ白で縁取り） */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 6vh;
  background: var(--bg);
}
.hero::before { top: 0; height: var(--header-h); } /* 上の帯＝ヘッダーの高さ */
.hero::after { bottom: 0; }

.hero__content { position: relative; z-index: 3; padding: 0 var(--gutter); }
.hero__sub {
  font-family: var(--f-en);
  font-size: 14px;
  letter-spacing: .5em;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
}
.hero__title {
  margin: 16px 0 24px;
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(56px, 12vw, 148px);
  line-height: 1;
  letter-spacing: .06em;
}
.hero__copy {
  font-family: var(--f-serif);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: .4em;
}
.hero__scroll {
  position: absolute;
  bottom: calc(6vh + 24px);
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .7);
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  margin: 8px auto 0;
  background: currentColor;
  animation: scrollLine 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- 2. Concept ---------- */
.concept { background: var(--bg); }
.concept__body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.concept__lead {
  font-family: var(--f-serif);
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.7;
  letter-spacing: .12em;
}
.concept__text {
  color: var(--text-sub);
  line-height: 2.4;
}

/* ---------- 3. Service ---------- */
.service { background: var(--bg-alt); }
.service__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
}
.service__item {
  background: var(--bg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.service__thumb {
  aspect-ratio: 2.39 / 1; /* シネスコ比率 */
  background: var(--placeholder);
  overflow: hidden;
}
.service__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85);
  transition: transform 1.2s var(--ease);
}
.service__info { padding: 28px 28px 32px; }
.service__en {
  font-family: var(--f-en);
  font-size: 14px;
  letter-spacing: .25em;
  color: var(--text-mute);
}
.service__name {
  margin: 4px 0 12px;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 20px;
}
.service__desc { color: var(--text-sub); font-size: 14px; }

/* マウスを乗せるとふわっと浮き上がる（タッチ端末では無効） */
@media (hover: hover) {
  .service__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .18);
  }
  .service__item:hover .service__img { transform: scale(1.05); } /* 画像もわずかにズーム */
}

/* ---------- 4. Staff ---------- */
.staff { background: var(--bg); }
.staff__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px)); /* 2名 */
  gap: 64px;
}
.staff__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--placeholder);
  margin-bottom: 24px;
  filter: grayscale(100%);
}
.staff__role {
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--text-mute);
}
.staff__name {
  margin: 6px 0 12px;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 20px;
}
.staff__name span {
  display: block;
  font-family: var(--f-en);
  font-size: 14px;
  letter-spacing: .15em;
  color: var(--text-sub);
}
.staff__bio { color: var(--text-sub); font-size: 14px; }

/* ---------- 5. Flow ---------- */
.flow { background: var(--bg-alt); }
.flow__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.flow__item {
  position: relative;
  padding: 40px 24px 0 0;
}
.flow__item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
}
.flow__step {
  font-family: var(--f-en);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--text-mute);
}
.flow__name {
  margin: 6px 0 10px;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 18px;
}
.flow__desc { color: var(--text-sub); font-size: 13px; }

/* ---------- 6. News ---------- */
.news { background: var(--bg); }
.news__list { border-top: 1px solid var(--line); }
.news__item { border-bottom: 1px solid var(--line); }
.news__link {
  display: grid;
  grid-template-columns: 120px 120px 1fr 24px;
  align-items: center;
  gap: 24px;
  padding: 28px 8px;
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.news__date {
  font-family: var(--f-en);
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--text-sub);
}
.news__cat {
  justify-self: start;
  padding: 2px 12px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--text-sub);
}
.news__title { font-weight: 400; font-size: 15px; line-height: 1.9; }
.news__arrow {
  font-family: var(--f-en);
  font-size: 18px;
  color: var(--text-mute);
  transition: transform .4s var(--ease);
}
@media (hover: hover) {
  .news__link:hover { background: var(--bg-alt); padding-left: 20px; }
  .news__link:hover .news__arrow { transform: translateX(6px); color: var(--text); }
}
.news__more {
  display: inline-block;
  margin-top: 40px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-family: var(--f-en);
  font-size: 15px;
  letter-spacing: .25em;
  transition: opacity .3s;
}
.news__more:hover { opacity: .6; }
.news__foot { text-align: right; }

/* ---------- 7. Contact ---------- */
.contact {
  background: var(--dark);
  color: var(--dark-text);
  text-align: center;
}
.contact .section__num { color: #8a8a8a; }
.contact__title {
  margin: 24px 0 20px;
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.15;
}
.contact__text { margin-bottom: 48px; color: #b5b5b5; }

.btn {
  position: relative;
  display: inline-block;
  min-width: 260px;
  padding: 20px 48px;
  border: 1px solid var(--dark-text);
  font-family: var(--f-en);
  font-size: 16px;
  letter-spacing: .3em;
  overflow: hidden;
  transition: color .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.btn span { position: relative; }
.btn:hover { color: var(--dark); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.contact__btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
/* 塗りつぶしボタン（黒背景用）：白地 → ホバーで黒地 */
.btn--fill { background: var(--dark-text); color: var(--dark); }
.btn--fill::before { background: var(--dark); }
.btn--fill:hover { color: var(--dark-text); }
/* 白背景用ボタン（ポップアップ内） */
.btn--dark { border-color: var(--text); color: var(--text); }
.btn--dark::before { background: var(--text); }
.btn--dark:hover { color: var(--bg); }

/* ---------- Modal（予約完了ポップアップ） ---------- */
.modal {
  width: min(480px, calc(100% - 40px));
  max-width: none;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}
.modal:focus { outline: none; }
.modal::backdrop {
  background: rgba(10, 10, 10, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal[open] { animation: modalIn .6s var(--ease); }
.modal[open]::backdrop { animation: fadeIn .4s ease; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__inner { padding: 72px 40px 56px; }
/* 上部の細いライン（セクション番号と同じモチーフ） */
.modal__inner::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 0 auto 28px;
  background: var(--text-mute);
}
.modal__en {
  font-family: var(--f-en);
  font-size: 15px;
  letter-spacing: .4em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.modal__title {
  margin: 14px 0 44px;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(20px, 4vw, 26px);
  letter-spacing: .12em;
}
.modal .btn { min-width: 200px; padding: 16px 40px; }
.modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  transition: opacity .3s;
}
.modal__x::before,
.modal__x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  width: 20px;
  height: 1px;
  background: var(--text);
}
.modal__x::before { transform: rotate(45deg); }
.modal__x::after { transform: rotate(-45deg); }
.modal__x:hover { opacity: .5; }

/* 送信完了ポップアップの補足文 */
.modal__title--tight { margin-bottom: 20px; }
.modal__text {
  margin-bottom: 40px;
  font-size: 14px;
  line-height: 2;
  color: var(--text-sub);
}

/* ---------- Contact Form（お問い合わせフォーム） ---------- */
.modal--form {
  width: min(640px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal--form .modal__inner { padding: 64px 56px 56px; }
.modal--form .modal__title { margin-bottom: 40px; }

.form { text-align: left; }
.form__row { margin-bottom: 28px; }
.form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .12em;
}
.form__req,
.form__opt {
  padding: 1px 8px;
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.6;
}
.form__req { background: var(--text); color: var(--bg); }
.form__opt { border: 1px solid var(--line); color: var(--text-mute); }

/* 下線だけのシンプルな入力欄 */
.form__input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  letter-spacing: .05em;
  transition: border-color .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form__input::placeholder { color: #8f8f8f; }
.form__input:focus { outline: none; border-bottom-color: var(--text); }
.form__textarea {
  min-height: 150px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  line-height: 1.8;
  resize: vertical;
}
.form__textarea:focus { border-color: var(--text); }
.form__input.is-error { border-color: #a8433b; }

.form__error {
  min-height: 0;
  margin-top: 6px;
  font-size: 12px;
  color: #a8433b;
}
.form__error:empty { display: none; }

.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-mute);
}
.form__status {
  margin-top: 16px;
  font-size: 13px;
  color: #a8433b;
}
.form__status:empty { display: none; }
.form__submit { margin-top: 36px; text-align: center; }
.form__submit .btn { min-width: 240px; }
.form__submit .btn:disabled { opacity: .5; cursor: wait; }
.form__submit .btn:disabled::before { transform: scaleX(0); }
.form__submit .btn:disabled:hover { color: var(--text); }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0;
  background: var(--dark);
  color: var(--dark-text);
  border-top: 1px solid #2a2a2a;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer__logo { font-family: var(--f-en); font-size: 20px; letter-spacing: .12em; }
.footer__copy { font-size: 11px; color: #8a8a8a; }

/* 動きを減らす設定の端末ではアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Responsive
   ========================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .header__inner { padding: 0 var(--gutter); }
  .nav__list { gap: 24px; }

  .flow__list {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--line);
    gap: 40px;
  }
  .flow__item { padding: 0 0 0 32px; }
  .flow__item::before { top: 8px; left: -4px; }
}

/* Smartphone */
@media (max-width: 768px) {
  :root { --header-h: 60px; --gutter: 20px; }
  body { font-size: 14px; }
  .section { padding: 96px 0; }
  .section__head { margin-bottom: 48px; }

  /* Header / Hamburger menu */
  .header__inner { padding: 0 var(--gutter); }
  .header__logo { font-size: 20px; position: relative; z-index: 2; }
  .header__toggle {
    display: block;
    position: relative;
    z-index: 2;
    width: 44px; /* タップしやすい44px四方 */
    height: 44px;
    margin-right: -10px;
  }
  .header__toggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 1px;
    background: currentColor;
    transition: transform .4s var(--ease), top .4s var(--ease);
  }
  .header__toggle span:nth-child(1) { top: 18px; }
  .header__toggle span:nth-child(2) { top: 26px; }
  .header.is-open .header__toggle span:nth-child(1) { top: 22px; transform: rotate(25deg); }
  .header.is-open .header__toggle span:nth-child(2) { top: 22px; transform: rotate(-25deg); }

  .nav {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .header.is-open .nav { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 28px; }
  .nav__list a { font-size: 24px; }

  /* Hero */
  .hero__sub { font-size: 12px; letter-spacing: .3em; }
  .hero__copy { letter-spacing: .25em; }
  .hero::after { height: 4vh; }

  /* Concept */
  .concept__body { grid-template-columns: 1fr; gap: 32px; }

  /* Service：2列のコンパクト表示 */
  .service__list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service__thumb { aspect-ratio: 4 / 3; }
  .service__info { padding: 14px 14px 18px; }
  .service__en { font-size: 11px; letter-spacing: .2em; }
  .service__name { margin: 2px 0 8px; font-size: 15px; line-height: 1.6; }
  .service__desc { font-size: 12px; line-height: 1.8; }

  /* Staff：2名を横並び */
  .staff__list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .staff__photo { margin-bottom: 14px; }
  .staff__role { font-size: 11px; letter-spacing: .12em; line-height: 1.6; }
  .staff__name { margin: 6px 0 8px; font-size: 17px; }
  .staff__name span { font-size: 12px; }
  .staff__bio { font-size: 12px; line-height: 1.8; }

  /* News：日付＋カテゴリの下にタイトル */
  .news__link {
    grid-template-columns: auto 1fr 20px;
    gap: 6px 14px;
    padding: 20px 0;
  }
  .news__date { font-size: 14px; }
  .news__title { grid-column: 1 / 3; font-size: 14px; line-height: 1.7; }
  .news__arrow { grid-column: 3; grid-row: 1 / 3; }
  .news__more { margin-top: 32px; font-size: 14px; }

  /* Contact */
  .btn { min-width: 0; width: 100%; max-width: 320px; }
  .contact__btns { flex-direction: column; align-items: center; }
  .modal__inner { padding: 64px 24px 44px; }
  .modal--form { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .modal--form .modal__inner { padding: 56px 22px 40px; }
  .modal--form .modal__title { margin-bottom: 32px; }
  .form__row { margin-bottom: 24px; }
  .form__input { font-size: 16px; } /* 16px未満だとiPhoneで入力時に画面が拡大されるため */
  .form__submit .btn { width: 100%; min-width: 0; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ==========================================================
   固定ページ用パーツ（service / staff / flow / news / information）
   ========================================================== */

/* ヒーローの無いページはヘッダー分の余白をとる */
.page { padding-top: var(--header-h); }

.page-head { padding: 72px 0 24px; background: var(--bg); }
.page-head__title {
  margin-top: 4px;
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.1;
  letter-spacing: .04em;
}
.page-head__lead { margin-top: 28px; max-width: 640px; color: var(--text-sub); }

/* トップに戻る */
.back-to-top {
  display: inline-block;
  margin-bottom: 40px;
  font-family: var(--f-en);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--text-sub);
  transition: color .3s, transform .4s var(--ease);
}
.back-to-top:hover { color: var(--text); transform: translateX(-4px); }

/* パンくず */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 32px; font-size: 12px; color: var(--text-mute); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--text); }

/* 「View More」リンク（トップの各セクション末尾） */
.more-link {
  display: inline-block;
  margin-top: 48px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-family: var(--f-en);
  font-size: 15px;
  letter-spacing: .25em;
  transition: opacity .3s;
}
.more-link:hover { opacity: .6; }
.more-wrap { text-align: right; }

/* カード全体をリンクにしたサービス（service.html） */
a.service__item { display: block; color: inherit; }
.service__go {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--text-mute);
  transition: color .3s, transform .4s var(--ease);
}
@media (hover: hover) {
  a.service__item:hover .service__go { color: var(--text); transform: translateX(6px); }
}

/* 事業詳細：紹介 */
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.detail__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.85); background: var(--placeholder); }
.detail__lead { font-family: var(--f-serif); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.8; letter-spacing: .08em; margin-bottom: 24px; }
.detail__text { color: var(--text-sub); line-height: 2.2; }
.check-list { margin-top: 28px; border-top: 1px solid var(--line); }
.check-list li { padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line); position: relative; font-size: 14px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 8px; height: 1px; background: var(--text); }

/* 実績（Works） */
.works__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.works__item { background: var(--bg); }
.works__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--placeholder); }
.works__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.works__body { padding: 18px 20px 22px; }
.works__meta { font-family: var(--f-en); font-size: 13px; letter-spacing: .15em; color: var(--text-mute); }
.works__title { margin: 4px 0 8px; font-family: var(--f-serif); font-weight: 400; font-size: 17px; }
.works__desc { font-size: 13px; color: var(--text-sub); }
@media (hover: hover) { .works__item:hover .works__media img { transform: scale(1.05); } }

/* 動画埋め込み（16:9） */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 他の事業へ */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); font-family: var(--f-en); letter-spacing: .15em; }
.pager a { transition: opacity .3s; }
.pager a:hover { opacity: .6; }

/* スタッフ詳細 */
.profile { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line); }
.profile:first-child { border-top: 0; padding-top: 0; }
.profile__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(100%); background: var(--placeholder); }
.profile__text { color: var(--text-sub); line-height: 2.2; }
.profile__meta { margin-top: 24px; display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 13px; }
.profile__meta dt { color: var(--text-mute); font-family: var(--f-en); letter-spacing: .15em; }

/* よくある質問 */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 32px 22px 0; position: relative; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-en); font-size: 22px; color: var(--text-mute); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--text-sub); font-size: 14px; }

/* お問い合わせ詳細（information.html：フォームをページ内に表示） */
.inquiry { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.info-list { display: grid; grid-template-columns: 110px 1fr; gap: 14px 16px; font-size: 14px; }
.info-list dt { color: var(--text-mute); font-family: var(--f-en); letter-spacing: .15em; }
.form--page { padding: 48px; background: var(--bg-alt); }

@media (max-width: 1024px) {
  .works__list { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 280px 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .page-head { padding: 48px 0 8px; }
  .back-to-top { margin-bottom: 28px; }
  .detail, .inquiry { grid-template-columns: 1fr; gap: 32px; }
  .works__list { grid-template-columns: 1fr; gap: 36px; }
  .profile { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .profile__photo { max-width: 320px; }
  .profile__meta, .info-list { grid-template-columns: 96px 1fr; }
  .form--page { padding: 28px 20px; }
  .pager { flex-direction: column; }
}

/* リンクにしたサービスカードを同じ行で同じ高さにそろえる */
.service__list > li { display: flex; }
.service__list > li > a.service__item { flex: 1; }

/* 撮影までの流れ（flow.html） */
.flow-detail { counter-reset: none; border-top: 1px solid var(--line); }
.flow-detail__item { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.flow-detail__step { font-family: var(--f-en); font-size: 15px; letter-spacing: .2em; color: var(--text-mute); }
.flow-detail__name { margin-bottom: 12px; font-family: var(--f-serif); font-weight: 400; font-size: 22px; }
.flow-detail__text { color: var(--text-sub); }
.flow-detail__meta { margin-top: 18px; display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; font-size: 13px; }
.flow-detail__meta dt { color: var(--text-mute); }

/* お知らせ記事（news.html） */
.news-article { padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.news-article:first-child { border-top: 1px solid var(--line); }
.news-article__head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.news-article__title { margin-bottom: 14px; font-family: var(--f-serif); font-weight: 400; font-size: 20px; line-height: 1.7; }
.news-article__body { color: var(--text-sub); }
.news-article:target { background: var(--bg-alt); padding-left: 24px; padding-right: 24px; transition: background .6s; }

/* 小見出し（固定ページ内のh2） */
.sub-title { margin-bottom: 32px; font-family: var(--f-en); font-weight: 300; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.2; }
.section--tight { padding: 96px 0; }

@media (max-width: 768px) {
  .flow-detail__item { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; }
  .flow-detail__meta { grid-template-columns: 96px 1fr; }
  .news-article__title { font-size: 17px; }
  .section--tight { padding: 72px 0; }
}

/* 2列グリッドの中身が長い単語・メールアドレスで画面幅を押し広げないようにする */
.detail > *, .inquiry > *, .profile > *, .flow-detail__item > * { min-width: 0; }
.sub-title, .info-list dd, .profile__meta dd { overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .sub-title { font-size: 30px; }
}

/* 人物写真は顔が切れないよう、少し上寄りでトリミング */
.staff__photo, .profile__photo { height: auto; object-position: 50% 30%; } /* height:auto … img の height 属性より aspect-ratio を優先 */

/* ==========================================================
   Cinematic layer（UI UX Pro Max：Motion-Driven + Retro Film + Editorial）
   配色はそのまま。動き・質感・光だけを足す。
   reduce-motion の端末ではすべて最終状態で表示する（ファイル末尾）。
   ========================================================== */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* 到着はゆっくり減速 */
  --ease-curtain: cubic-bezier(.77, 0, .18, 1); /* 幕が開くような動き */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- ページ遷移：カットではなく静かなフェード（対応ブラウザのみ） ---- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s ease-in both; }
::view-transition-new(root) { animation: vt-in .8s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; } }

/* ---- キーボード操作時のフォーカスを見えるように ---- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* ---- ナビ：下線がすっと伸びるホバー ---- */
.nav__list a:not(.nav__cta) { position: relative; }
.nav__list a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__list a:hover { opacity: 1; }
.nav__list a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { transition: background .4s, color .4s; }
.nav__cta:hover { background: var(--text); color: var(--bg); }

/* ---- ヒーロー：フィルムグレイン＋ビネット ---- */
.hero__overlay {
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, transparent 35%, rgba(0, 0, 0, .55) 100%),
    rgba(0, 0, 0, .3);
}
.hero__overlay::after,
.contact::after {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: var(--grain);
  opacity: .14;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
}

/* ---- ヒーロー：オープニング（白い幕が開き、タイトルのピントが合う） ---- */
.hero::before { animation: curtain 1.6s var(--ease-curtain) .15s backwards; }
.hero::after  { animation: curtain 1.6s var(--ease-curtain) .15s backwards; }
@keyframes curtain { from { height: 50.5%; } }

.hero__sub   { animation: rise 1.4s var(--ease-out) 1.35s backwards; }
.hero__title { animation: focus-in 2.2s var(--ease-out) .95s backwards; }
.hero__copy  { animation: rise 1.4s var(--ease-out) 1.75s backwards; }
.hero__scroll, .hero__ctrl { animation: fade 1.2s ease 2.2s backwards; }
@keyframes focus-in {
  from { opacity: 0; filter: blur(14px); letter-spacing: .28em; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade { from { opacity: 0; } }

/* スクロールでヒーローの文字がゆっくり奥へ（main.js が --hero-p に 0〜1 を入れる） */
.hero__content {
  transform: translateY(calc(var(--hero-p, 0) * 80px));
  opacity: calc(1 - var(--hero-p, 0) * 1.2);
}

/* ---- ヒーロー：スライド番号・進行バー・一時停止（main.js が生成） ---- */
.hero__ctrl {
  position: absolute;
  left: 32px;
  bottom: calc(6vh + 18px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, .85);
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: .2em;
}
.hero__count { font-variant-numeric: tabular-nums; }
.hero__bar { position: relative; width: 72px; height: 1px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__bar span { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__bar.is-run span { animation: progress var(--slide-ms, 6000ms) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__pause {
  position: relative;
  width: 44px; height: 44px;
  margin-left: -8px;
  color: inherit;
}
.hero__pause::before, .hero__pause::after {   /* 一時停止アイコン（2本線） */
  content: "";
  position: absolute;
  top: 16px;
  width: 1px; height: 12px;
  background: currentColor;
}
.hero__pause::before { left: 19px; }
.hero__pause::after  { left: 24px; }
.hero__pause[aria-pressed="true"]::before {   /* 再生アイコン（三角） */
  left: 18px; top: 15px;
  width: 0; height: 0;
  background: none;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}
.hero__pause[aria-pressed="true"]::after { display: none; }

/* ---- スクロールで現れる（main.js が .reveal / .is-in を付ける） ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease-out) var(--d, 0s),
    transform 1.2s var(--ease-out) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* 画像は幕が上がるように現れ、少し引きながら落ち着く */
.reveal .service__img,
.reveal .works__media img,
.reveal .staff__photo,
.profile.reveal .profile__photo,
.detail__img.reveal {
  clip-path: inset(100% 0 0 0);
  transition:
    clip-path 1.4s var(--ease-curtain) calc(var(--d, 0s) + .1s),
    transform 1.2s var(--ease-out),
    filter .6s ease;
}
.reveal.is-in .service__img,
.reveal.is-in .works__media img,
.reveal.is-in .staff__photo,
.profile.reveal.is-in .profile__photo,
.detail__img.reveal.is-in { clip-path: inset(0 0 0 0); }

/* セクション番号の横線が伸びる */
.section__head.reveal .section__num::after { width: 0; transition: width 1.2s var(--ease-out) .35s; }
.section__head.reveal.is-in .section__num::after { width: 40px; }

/* ---- ホバー：写真に光が入る ---- */
@media (hover: hover) {
  .service__item:hover .service__img,
  .works__item:hover .works__media img { filter: saturate(1) brightness(1.05); }
  .staff__item:hover .staff__photo { filter: grayscale(100%) contrast(1.08); }
}

/* ---- 固定ページの見出しもオープニング風に ---- */
.page-head__title { animation: focus-in 1.8s var(--ease-out) .1s backwards; }
.page-head .back-to-top,
.page-head .breadcrumb { animation: fade 1s ease .1s backwards; }
.page-head__lead { animation: rise 1.2s var(--ease-out) .5s backwards; }
.page-head .container { position: relative; }
.page-head .container::after {   /* 見出しの下に細い線が引かれる */
  content: "";
  display: block;
  height: 1px;
  margin-top: 48px;
  background: var(--line);
  transform-origin: left;
  animation: draw 1.6s var(--ease-curtain) .4s backwards;
}
@keyframes draw { from { transform: scaleX(0); } }

/* ---- お問い合わせ（黒いセクション）：スポットライト＋グレイン ---- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255, 255, 255, .09), transparent 70%);
  pointer-events: none;
}
.contact::after { opacity: .1; }
.contact__inner { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .hero__ctrl { left: var(--gutter); bottom: calc(4vh + 12px); gap: 10px; font-size: 12px; }
  .hero__bar { width: 48px; }
  .hero__scroll { display: none; } /* スマホは操作パネルと重なるため非表示 */
}

/* ---- 動きを減らす設定：すべて最終状態で表示 ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .service__img, .reveal .works__media img, .reveal .staff__photo,
  .profile.reveal .profile__photo, .detail__img.reveal {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .section__head.reveal .section__num::after { width: 40px; }
  .hero__content { transform: none; opacity: 1; }
  .hero__overlay::after, .contact::after { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ==========================================================
   動画の実績（クリックで再生する YouTube）
   サムネイルだけ先に表示し、押されたら main.js がプレーヤーに差し替える
   ========================================================== */
.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
  background: #000;
}
.video__play img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.88); }
.video__play::after {   /* 下から暗くして再生ボタンを目立たせる */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 55%);
  transition: opacity .5s;
}
.video__icon {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 1;
  width: 68px; height: 68px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(2px);
  transition: transform .6s var(--ease-out, ease), background .4s;
}
.video__icon::before {   /* 再生の三角 */
  content: "";
  position: absolute;
  left: 27px; top: 23px;
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent #fff;
}
@media (hover: hover) {
  .video__play:hover .video__icon { transform: translate(-50%, -50%) scale(1.08); background: rgba(255, 255, 255, .12); }
  .video__play:hover img { filter: saturate(1) brightness(1); }
  .video__play:hover::after { opacity: .6; }
}
.video__play:focus-visible { outline: 1px solid #fff; outline-offset: -6px; }

.works__link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: .15em;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.works__link:hover { color: var(--text); border-color: var(--text); }

/* 動画の並び：1本目を大きく（2列分）、残りを並べる */
.works__list--video { align-items: start; }
.works__list--video .works__item:first-child { grid-column: span 2; }
.works__list--video .works__item:first-child .works__title { font-size: 22px; }
.works__list--video .works__item:first-child .video__icon { width: 84px; height: 84px; }
.works__list--video .works__item:first-child .video__icon::before { left: 33px; top: 28px; border-width: 13px 0 13px 21px; }
@media (max-width: 768px) {
  .works__list--video .works__item:first-child { grid-column: auto; }
  .works__list--video .works__item:first-child .works__title { font-size: 18px; }
}

/* ==========================================================
   制作事業のグループ見出し（Movie / Photo）と写真ギャラリー
   ========================================================== */
.service__group,
.gallery__group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: .06em;
}
.service__group .section__ja,
.gallery__group .section__ja { display: inline; margin: 0; }
.service__list + .service__group { margin-top: 88px; }
.gallery + .gallery__group { margin-top: 72px; }

/* 写真の事業は3列、サムネイルは 3:2 */
.service__list--photo { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.service__list--photo .service__thumb { aspect-ratio: 3 / 2; }

/* 写真ギャラリー：元の縦横比のまま石垣状に並べる */
.gallery { columns: 3; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin-bottom: 16px; }
.gallery__link { display: block; overflow: hidden; cursor: zoom-in; background: var(--placeholder); }
.gallery__link img {
  width: 100%;
  height: auto;
  filter: saturate(.92);
  transition: transform 1.2s var(--ease-out, ease), filter .6s;
}
@media (hover: hover) {
  .gallery__link:hover img { transform: scale(1.03); filter: saturate(1); }
}

/* 拡大表示（ライトボックス）：main.js が生成 */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 8, 8, .96);
  color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fade .4s ease; }
.lightbox:focus { outline: none; }
.lightbox__img {
  max-width: calc(100vw - 180px);
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  animation: fade .5s ease;
}
.lightbox__count {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  font-family: var(--f-en);
  font-size: 14px;
  letter-spacing: .25em;
  color: rgba(255, 255, 255, .75);
}
.lightbox__btn {
  position: absolute;
  top: 50%;
  width: 56px; height: 56px;
  transform: translateY(-50%);
  color: #fff;
  font-family: var(--f-en);
  font-size: 24px;
  opacity: .7;
  transition: opacity .3s;
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__prev { left: 32px; }
.lightbox__next { right: 32px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; }
.lightbox__close::before, .lightbox__close::after {
  content: ""; position: absolute; top: 50%; left: 11px; width: 22px; height: 1px; background: #fff;
}
.lightbox__close::before { transform: rotate(45deg); }
.lightbox__close::after { transform: rotate(-45deg); }

@media (max-width: 768px) {
  .service__list--photo { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service__list--photo > li:first-child { grid-column: 1 / -1; }  /* 3件を「1＋2」に */
  .service__list + .service__group { margin-top: 64px; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; }
  .lightbox__img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 160px); }
  .lightbox__btn { top: auto; bottom: 12px; transform: none; }
  .lightbox__prev { left: 12px; }
  .lightbox__next { right: 12px; }
}

/* ==========================================================
   Instagram の実績（正方形サムネイル → 押すとポップアップで再生）
   ========================================================== */
.works__list--social { grid-template-columns: repeat(4, 1fr); align-items: start; gap: 40px 20px; }
.works__list--social .works__media { aspect-ratio: 1 / 1; }
.works__list--social .works__body { padding: 16px 16px 20px; }
.works__list--social .works__title { font-size: 15px; line-height: 1.7; }
.works__list--social .works__desc { font-size: 12px; line-height: 1.8; }

/* カードの写真で顔が切れないよう上寄りにトリミング */
.service__img--top { object-position: 50% 22%; }

.igview {
  width: min(460px, calc(100vw - 24px));
  height: min(820px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: visible;
  background: #000;
}
.igview::backdrop { background: rgba(8, 8, 8, .9); }
.igview[open] { animation: fade .4s ease; }
.igview:focus { outline: none; }
.igview iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.igview__close { position: absolute; top: -52px; right: -8px; width: 44px; height: 44px; }
.igview__close::before, .igview__close::after {
  content: ""; position: absolute; top: 50%; left: 11px; width: 22px; height: 1px; background: #fff;
}
.igview__close::before { transform: rotate(45deg); }
.igview__close::after { transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .works__list--social { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .works__list--social { gap: 24px 12px; }
  .works__list--social .works__body { padding: 12px 12px 16px; }
  .works__list--social .works__title { font-size: 14px; }
  .works__list--social .video__icon { width: 52px; height: 52px; }
  .works__list--social .video__icon::before { left: 20px; top: 17px; border-width: 9px 0 9px 14px; }
  .igview { height: calc(100dvh - 96px); margin-top: 72px; }
}

/* ==========================================================
   ロゴ画像（images/logo-black.png ＝ヘッダー用、logo-white.png ＝トップ用）
   元のテキストロゴと同じ大きさになるよう幅で指定（画像の比率 750:160）
   ========================================================== */
.header__logo { display: block; line-height: 0; }
.header__logo img { display: block; width: 122px; height: auto; }

.hero__title { line-height: 0; }
.hero__logo {
  display: block;
  width: clamp(240px, 52vw, 640px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 2px 24px rgba(0, 0, 0, .35)); /* 明るい写真の上でも沈まないように */
}

@media (max-width: 768px) {
  .header__logo img { width: 102px; }
}

/* 実績が1本だけのときは横幅いっぱいに大きく見せる */
.works__list--single { grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto; }
.works__list--single .works__item:first-child { grid-column: auto; }
.works__list--single .works__body { padding: 22px 28px 28px; }

/* ウェディングのカード：横長に切り出してもおふたり（写真の下寄り）が入るように */
.service__img--wedding { object-position: 50% 66%; }

/* ==========================================================
   Selected Works（トップの代表作）
   ========================================================== */
.selected { background: var(--bg); }
.selected__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
.selected__item { display: block; color: inherit; }
.selected__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--placeholder); }
.selected__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.4s var(--ease-out, ease), filter .6s; }
.selected__media--top img { object-position: 50% 28%; }
.selected__media::after {   /* 下からうっすら暗く＋「View」 */
  content: "View \2192";
  position: absolute; right: 18px; bottom: 14px;
  font-family: var(--f-en); font-size: 13px; letter-spacing: .25em; color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s, transform .5s var(--ease-out, ease);
}
.selected__cat { margin-top: 18px; font-family: var(--f-en); font-size: 13px; letter-spacing: .2em; color: var(--text-mute); }
.selected__title { margin-top: 4px; font-family: var(--f-serif); font-weight: 400; font-size: 18px; line-height: 1.7; }
@media (hover: hover) {
  .selected__item:hover .selected__media img { transform: scale(1.04); filter: saturate(1) brightness(.85); }
  .selected__item:hover .selected__media::after { opacity: 1; transform: none; }
}

/* Movie の一覧が奇数のとき、最後のカード（メイキング）を横幅いっぱいに */
.service__list:not(.service__list--photo) > li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ==========================================================
   お問い合わせフォーム：選択式の項目
   ========================================================== */
.form__select {
  padding-right: 28px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.form__select:invalid, .form__select option[value=""] { color: #8f8f8f; }
.form__select option { color: var(--text); }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

/* ==========================================================
   フッターの Instagram アイコン
   ========================================================== */
.footer__sns {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--dark-text);
  opacity: .8;
  transition: opacity .3s, transform .4s var(--ease-out, ease);
}
.footer__sns:hover { opacity: 1; transform: translateY(-2px); }

@media (max-width: 768px) {
  .selected__list { grid-template-columns: 1fr; gap: 40px; }
  .selected__title { font-size: 16px; }
  .form__pair { grid-template-columns: 1fr; }
}

/* 実績の担当（Role） */
.works__role {
  margin: -2px 0 10px;
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--text);
}
.works__role-label {
  display: inline-block;
  margin-right: 10px;
  padding: 0 7px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--text-mute);
  vertical-align: 1px;
}
.works__role-ja { display: block; margin-top: 3px; font-family: var(--f-sans); font-size: 11px; letter-spacing: .05em; color: var(--text-sub); }
.works__role--gallery { margin: -16px 0 40px; }
.works__role--gallery .works__role-ja { display: inline; margin-left: 4px; }
.selected__role { margin-top: 2px; font-family: var(--f-en); font-size: 12px; letter-spacing: .15em; color: var(--text-mute); }
