/*
  inobee.dev の共通の見た目（ルックブック風）。全ページがこの 1 枚を読む。
  白黒だけ。色は :root の変数で決め、暗い画面（prefers-color-scheme）と .invert（反転の帯）で差し替える。
  部品の使い方とページの作り方は README.md と templates/。
*/

/* 白黒だけで作る。色の変数は :root と下の 2 か所（暗い画面・.invert）だけ */
:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --mute: #6e6e6e;
  --line: #dcdcdc;
  --soft: #f0f0f0;   /* 画像を読む前の地・仮の画像 */

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  /* 本文は端末の字（速さのため）。見出しだけ Zen Kaku Gothic New */
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --head: "Zen Kaku Gothic New", var(--sans);

  --gutter: 20px;
  --max: 1080px;
  --text-max: 640px;
  color-scheme: light dark;
}

/* 白黒を反転した帯（About・足など）。明るい画面では黒地 */
.invert {
  --bg: #0b0b0b;
  --ink: #f4f4f4;
  --mute: #9a9a9a;
  --line: #2e2e2e;
  --soft: #1b1b1b;
  background: var(--bg);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --ink: #f4f4f4;
    --mute: #9a9a9a;
    --line: #2e2e2e;
    --soft: #1b1b1b;
  }
  /* 暗い画面では帯が白地になる */
  .invert {
    --bg: #f4f4f4;
    --ink: #0b0b0b;
    --mute: #666666;
    --line: #d0d0d0;
    --soft: #e4e4e4;
  }
}

/* ---------- 土台 ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  /* 中身が短いページでも足を画面の下に置く */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; }

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

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus { left: var(--gutter); top: 8px; background: var(--bg); padding: 4px 8px; z-index: 10; }

/* 欧文の飾り字。見出しの英語・ロゴ・ラベルだけに使う（日本語には使わない） */
.serif { font-family: var(--serif); font-weight: 500; }
.serif-i { font-family: var(--serif); font-weight: 500; font-style: italic; }

/* ---------- 頭と足 ---------- */

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.site-nav a { text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.site-footer {
  margin-top: 88px;
  font-size: 12px;
  color: var(--mute);
}
.site-footer .logo { color: var(--ink); font-size: 34px; flex-basis: 100%; }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  align-items: baseline;
  padding-top: 28px;
  padding-bottom: 40px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- トップの大見出し ---------- */

.hero { padding: 36px 0 0; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(54px, 15vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
}

/* 2 行目を少し右へずらす */
.hero h1 .indent { display: block; padding-left: 0.9em; font-style: italic; }

.hero .lead {
  margin: 24px 0 0 calc(0.9 * clamp(54px, 15vw, 128px));
  color: var(--mute);
  font-size: 13px;
  line-height: 1.85;
  max-width: 24em;
}

/* ---------- 区切りの線（左にラベル・右に添え書き） ---------- */

.rule {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 56px 0 0;
  padding-top: 6px;
  border-top: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
}

/* ---------- 作品の並び（ルックブック） ----------
  <ul class="looks"> に <li class="look look--full|--right|--left"> を並べる。
  大きさと位置を交互に変えて、きっちりそろえない。 */

.looks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.look { margin-top: 32px; }
.look figure { margin: 0; }
.look--right { width: 72%; margin-left: auto; }
.look--left  { width: 62%; }

.look a { display: block; text-decoration: none; }

.look .frame {
  background: var(--soft);
  overflow: hidden;
}

.look img {
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 5);
  object-fit: cover;
  transition: transform 0.6s ease;
}

.look--right img { --ratio: 1 / 1; }
.look--left img  { --ratio: 3 / 4; }

.look a:hover img { transform: scale(1.02); }

.look figcaption,
.look .cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
}

.look .title { font-family: var(--head); font-weight: 700; font-size: 13px; }
.look a:hover .title { text-decoration: underline; text-decoration-thickness: 2px; }
.look .meta { color: var(--mute); font-size: 11px; white-space: nowrap; }

@media (min-width: 760px) {
  .looks {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    align-items: start;
  }
  .look { margin-top: 56px; }
  .look--full  { grid-column: 1 / span 7; }
  .look--right { grid-column: 8 / span 5; width: auto; margin-left: 0; margin-top: 180px; }
  .look--left  { grid-column: 2 / span 4; width: auto; }
  .look--full:nth-child(3n + 4) { grid-column: 6 / span 7; }
}

/* 画像がまだ無い時の仮の枠 */
.ph {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 5);
  background: var(--soft);
  color: var(--mute);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
}
.look--right .ph { --ratio: 1 / 1; }
.look--left .ph  { --ratio: 3 / 4; }

/* ---------- 左に小見出し・右に本文（About など） ---------- */

/* .invert の帯として置く時は <section class="band invert"><div class="wrap split">… */
.band { margin-top: 88px; padding: 40px 0 48px; }
.band .split { margin-top: 0; border-top: 0; padding-top: 0; }

.split {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  margin-top: 72px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.split > h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.split > div > :first-child { margin-top: 0; }
.split p { margin: 0 0 12px; font-size: 14px; }

@media (min-width: 760px) {
  .split { grid-template-columns: 5fr 7fr; gap: 24px; }
  .split > h2 { font-size: 30px; }
}

/* 項目と中身の表（作品の情報・経歴など） */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 18px;
  margin: 0;
  font-size: 13px;
}
.facts dt { color: var(--mute); font-size: 11px; letter-spacing: 0.08em; padding-top: 3px; }
.facts dd { margin: 0; }

/* ---------- 文章のページ（サポート・プライバシー・作品の説明） ---------- */

.page-head { padding: 36px 0 0; }

.page-head .eyebrow {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--mute);
}

.page-head h1 {
  font-family: var(--head);
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 4px 0 0;
}

.page-head .lead { color: var(--mute); margin: 14px 0 0; max-width: var(--text-max); }

.prose { max-width: var(--text-max); }

.prose h2 {
  font-family: var(--head);
  font-size: 17px;
  line-height: 1.5;
  margin: 48px 0 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.prose h3 { font-family: var(--head); font-size: 15px; margin: 28px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 14px; }
.prose li { margin: 3px 0; }
.prose li::marker { color: var(--mute); }

/* メールアドレスを大きく見せる */
.mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(22px, 6.4vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  word-break: break-all;
  text-decoration-thickness: 2px;
  text-decoration-thickness: 2px;
}

/* 枠で囲む短いお知らせ */
.notice {
  border-left: 2px solid var(--ink);
  padding: 2px 0 2px 14px;
  margin: 14px 0;
}

.note { color: var(--mute); font-size: 13px; }

/* 一覧（アプリごとのポリシーなど）。行全体が押せる */
.index-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.index-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.index-list a:hover .name { text-decoration: underline; text-decoration-thickness: 2px; }
.index-list .sub { color: var(--mute); font-size: 12px; }

/* ボタン（遊ぶ・ストアへ）。四角で細い線 */
.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 8px 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--bg); }

/* ---------- 作品のページ ---------- */

.work-visual { margin-top: 28px; background: var(--soft); }
.work-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.work-body {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}
.work-body .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

@media (min-width: 760px) {
  .work-body { grid-template-columns: 7fr 4fr; gap: 48px; }
}

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); }

/* ---------- 英語の欄（日本語のページの最後に置く） ---------- */

.en {
  margin-top: 72px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  max-width: var(--text-max);
  font-size: 14px;
  line-height: 1.75;
}

.en > h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
}

.en p { margin: 0 0 12px; }

/* ---------- 動きを減らす設定の人 ---------- */

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