/* ENODEN FRAMES — 値は WEB-1.ai のモック（2026-12-03）から。スマホが先、1024px 以上がパソコン */
:root {
  --ink: #3E3A39;
  --soft: #6F6B6A;
  --line: #ECEBEB;      /* 文字の色の 10% */
  --empty: #F5F4F4;
  --accent: #7DCACE;
  --accent-ink: #2B7A7F;
  --en: "futura-pt", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --jp: "heisei-kaku-gothic-std", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --m: 30px;            /* 左右の余白 */
  --big: 120px;         /* セクションの間 */
  --mid: 32px;          /* 見出し → 中身 */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--jp); font-size: 12px; line-height: 23.33px; -webkit-font-smoothing: antialiased; padding-bottom: 110px; }
h1, h2, h3, p, ol, figure { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.pc { display: none; }

/* 文字 */
.label { font-family: var(--en); font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .08em; color: var(--soft); }
.accent-ink { color: var(--accent-ink); }
.body { font-size: 12px; line-height: 23.33px; letter-spacing: 0; }
.caption { font-size: 9px; line-height: 14px; color: var(--soft); margin-top: 8px; }
.note { font-size: 13px; line-height: 22px; letter-spacing: .04em; color: var(--soft); }

/* セクションの見出し: 英語（Futura PT）＋ 和文 */
.sec { padding: var(--big) var(--m) 0; }
.head h2 { font-family: var(--en); font-weight: 600; font-size: 42px; line-height: 1; letter-spacing: -.01em; }
.head-jp { font-size: 13px; line-height: 20px; letter-spacing: .04em; margin-top: 8px; }
.head + * { margin-top: var(--mid); }

/* ヘッダー */
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--m); }
.logo { font-family: var(--en); font-weight: 600; font-size: 13px; letter-spacing: .12em; }
.nav, .site-header > .pill { display: none; }
.menu { width: 22px; height: 16px; padding: 0; border: 0; background: none; display: grid; align-content: space-between; cursor: pointer; }
.menu span { display: block; height: 1.5px; background: var(--ink); }
.menu-list { position: absolute; top: 64px; right: var(--m); z-index: 20; background: #fff; border: 1px solid var(--ink); border-radius: 12px; padding: 8px 0; min-width: 180px; }
.menu-list a { display: block; padding: 8px 20px; font-family: var(--en); font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; font-family: var(--en); font-weight: 600; font-size: 13px; letter-spacing: .02em; cursor: pointer; }

/* ヒーロー: 左に縦の Fill the Frame.、右に枠（右端まで） */
.hero { display: grid; grid-template-columns: 94px 1fr; padding-top: 32px; }
.hero-text { padding-left: var(--m); display: flex; flex-direction: column; justify-content: space-between; }
.hero-text .label { display: none; }
.title { font-family: var(--en); font-weight: 600; color: var(--accent); font-size: 39px; line-height: 44px; writing-mode: vertical-rl; letter-spacing: 0; white-space: nowrap; }
.hero-frame { min-width: 0; }
.frame-empty { aspect-ratio: 269 / 352; background: var(--empty); background-size: cover; background-position: center; transition: background-image .4s; }
.hero-frame .caption { padding-right: var(--m); }

/* About */
.count { display: flex; align-items: flex-start; gap: 14px; margin-top: var(--mid); }
.count-num { font-family: var(--en); font-weight: 600; font-size: 52px; line-height: .8; }
.count-of { font-size: 15px; line-height: 22px; letter-spacing: .02em; }

/* How to Join */
.steps { list-style: none; }
.steps li { display: grid; grid-template-columns: 87px 1fr; border-top: 1px solid var(--line); padding: 16px 0 24px; }
.steps li:last-child { padding-bottom: 0; }
.step-num { font-family: var(--en); font-weight: 600; font-size: 28px; line-height: 1; color: var(--accent-ink); }
.steps h3 { font-weight: 700; font-size: 18px; line-height: 26px; letter-spacing: .02em; margin-bottom: 8px; }

/* 13 Frames */
.frames { padding-left: 0; padding-right: 0; }
.frames-top { padding: 0 var(--m); }
.rows { margin-top: var(--mid); }
.row { border-top: 1px solid var(--line); padding: 32px 0; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row-text { padding: 0 var(--m); }
.station { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 22px; line-height: 30px; letter-spacing: .02em; margin-top: 8px; }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); display: grid; place-items: center; }
.dot::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.reading { display: none; }
.row-desc { margin-top: 16px; }
.holes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px; }
.row.big .holes { grid-template-columns: 1fr; }
.hole { position: relative; display: block; width: 100%; aspect-ratio: 59 / 37; border: 0; padding: 0; background: var(--c); color: #fff; text-align: left; cursor: pointer; overflow: hidden; }
.row.big .hole { aspect-ratio: 175 / 100; }
.hole img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.hole.filled img { opacity: 1; }
.hole .theme, .hole .num, .hole .mine { position: absolute; z-index: 1; text-shadow: 0 0 8px rgba(0,0,0,.25); }
.hole .theme { top: 12px; left: 12px; right: 12px; font-size: 12px; line-height: 17px; letter-spacing: .04em; }
.hole .num { left: 12px; bottom: 10px; font-family: var(--en); font-size: 11px; }
.hole .mine { right: 12px; bottom: 10px; font-family: var(--en); font-weight: 600; font-size: 10px; letter-spacing: .08em; display: none; }
.hole.filled .mine { display: block; }
.hole:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hole.just { animation: just 1.2s ease; }
@keyframes just { 0% { filter: brightness(1.6); } 100% { filter: none; } }

/* Your Frames */
.yours { padding-bottom: 0; }
.composite { width: 100%; max-width: 360px; aspect-ratio: 9 / 16; background: var(--empty); border: 1px solid var(--line); }
.yours-note { margin-top: 16px; }

/* 帯のボタン（画面の幅いっぱい、上下に 1px の線） */
.band { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 80px; margin-top: var(--mid); border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; transition: background .15s, color .15s; }
.yours .band { margin-left: calc(var(--m) * -1); width: calc(100% + var(--m) * 2); }
.band-en { font-family: var(--en); font-weight: 600; font-size: 16px; letter-spacing: .02em; }
.band-jp { font-size: 16px; letter-spacing: .04em; }
.arrow { width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; position: relative; transition: transform .15s; }
.arrow::before { content: ""; position: absolute; left: 5px; top: 9px; width: 9px; height: 1px; background: currentColor; }
.arrow::after { content: ""; position: absolute; left: 9px; top: 6.5px; width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.band:hover:not(:disabled) { background: var(--ink); color: #fff; }
.band:hover:not(:disabled) .arrow { transform: scale(1.13); }
.band:disabled { color: var(--soft); cursor: wait; }

/* Send a Photo */
.form { display: grid; gap: 28px; margin-top: var(--mid); }
.field { display: block; }
.field-label { display: flex; align-items: baseline; gap: 16px; font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .02em; }
.hint { font-weight: 400; font-size: 11px; color: var(--soft); letter-spacing: .04em; }
.field select, .field input[type=text], .field input[type=date] { display: block; width: 100%; margin-top: 10px; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; font-size: 14px; line-height: 20px; letter-spacing: .04em; -webkit-appearance: none; appearance: none; }
.field select:focus, .field input:focus { outline: none; border-bottom-color: var(--accent); }
.drop { position: relative; display: grid; place-items: center; margin-top: 10px; aspect-ratio: 59 / 37; background: var(--empty); cursor: pointer; overflow: hidden; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-text { position: relative; font-size: 14px; letter-spacing: .04em; }
.drop.has .drop-text { background: rgba(255,255,255,.85); padding: 4px 12px; font-size: 12px; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 22px; letter-spacing: .04em; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.message { min-height: 22px; font-size: 13px; line-height: 22px; color: var(--accent-ink); }
.message.error { color: #C8553D; }

/* Booklet */
.booklet-image { aspect-ratio: 420 / 297; background: var(--empty); padding: 12px; font-size: 12px; color: var(--soft); }
.booklet-text { margin-top: var(--mid); }
.booklet-title { font-weight: 700; font-size: 22px; line-height: 30px; letter-spacing: .02em; margin: var(--mid) 0 10px; }

/* フッター */
.site-footer { display: flex; justify-content: space-between; margin-top: var(--big); padding: 40px var(--m) 40px; border-top: 1px solid var(--line); }
.brand { font-family: var(--en); font-weight: 600; font-size: 13px; }

/* 画面の下に浮かぶナビ（白いピル 300 × 54） */
.float-nav { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; display: grid; grid-template-columns: 1fr 1fr; width: 300px; height: 54px; background: #fff; border: 1px solid var(--ink); border-radius: 27px; }
.float-nav a { display: grid; place-content: center; text-align: center; line-height: 1.2; }
.float-nav a + a { border-left: 1px solid var(--line); margin: 14px 0; padding: 0; height: 26px; place-content: center; }
.float-nav b { font-family: var(--en); font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.float-nav small { font-size: 10px; color: var(--soft); letter-spacing: .04em; }

/* お知らせと、保存用の画像を見せる画面 */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.96); display: grid; place-items: center; padding: 24px; }
.viewer[hidden], .toast[hidden], .menu-list[hidden] { display: none; }
.viewer-inner { display: grid; gap: 16px; justify-items: center; max-height: 100%; }
.viewer-note { font-size: 13px; }
.viewer img { max-height: 70vh; width: auto; border: 1px solid var(--line); }
.viewer-actions { display: flex; gap: 12px; }

/* ───────── パソコン（1024px 以上）: 12 列、左右の余白 13.33vw（1920 で 256）───────── */
@media (min-width: 1024px) {
  :root { --m: max(32px, calc((100vw - 1408px) / 2)); --big: 200px; --mid: 64px; --col: calc((min(100vw - 64px, 1408px) - 11 * 32px) / 12); }
  body { font-size: 16px; line-height: 28px; padding-bottom: 0; }
  .body { font-size: 16px; line-height: 28px; letter-spacing: .02em; }
  .pc { display: inline; }
  .label { font-size: 13px; line-height: 16px; }
  .caption { font-size: 12px; line-height: 18px; margin-top: 16px; }
  .note { font-size: 15px; line-height: 26px; }
  .head h2 { font-size: 80px; letter-spacing: -.01em; }
  .head-jp { font-size: 14px; margin-top: 16px; }
  .site-header { height: 96px; }
  .logo { font-size: 16px; }
  .nav { display: flex; gap: 48px; margin-left: auto; margin-right: 64px; }
  .nav a { font-family: var(--en); font-size: 13px; letter-spacing: .04em; }
  .site-header > .pill { display: inline-flex; width: calc(var(--col) * 2 + 32px); }
  .menu, .menu-list { display: none !important; }
  .float-nav { display: none; }

  .hero { grid-template-columns: calc(var(--m) + var(--col) * 3 + 96px) 1fr; column-gap: 32px; padding-top: 64px; }
  .hero-text { padding: 0 0 0 var(--m); }
  .hero-text .label { display: block; }
  .title { writing-mode: horizontal-tb; font-size: min(96px, 5.6vw); line-height: 1.04; letter-spacing: -.01em; white-space: normal; }
  .frame-empty { aspect-ratio: auto; height: 856px; max-height: 70vh; }

  .about { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .about .head { grid-column: 1 / 6; }
  .about-body { grid-column: 6 / 11; margin-top: 0; }
  .count { margin-top: var(--mid); gap: 32px; }
  .count-num { font-size: 88px; }
  .count-of { font-size: 20px; line-height: 30px; }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
  .steps li { display: block; padding: 24px 24px 0 0; }
  .step-num { font-size: 44px; display: block; margin-bottom: 16px; }
  .steps h3 { font-size: 24px; line-height: 34px; margin-bottom: 10px; }

  .frames-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .frames-top .head { grid-column: 1 / 6; }
  .frames-lead { grid-column: 6 / 12; margin-top: 0; }
  .row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; padding: 48px var(--m); }
  .row-text { grid-column: 1 / 4; padding: 0; }
  .station { font-size: 28px; line-height: 40px; margin-top: 12px; gap: 12px; }
  .reading { display: block; font-size: 13px; line-height: 20px; color: var(--soft); letter-spacing: .04em; margin: 12px 0 0 24px; }
  .row-desc { margin-top: 18px; }
  .holes { grid-column: 5 / 13; margin-top: 0; gap: 32px; }
  .hole .theme { top: 16px; left: 16px; font-size: 16px; line-height: 24px; }
  .hole .num { left: 16px; bottom: 14px; font-size: 14px; }
  .hole .mine { right: 16px; bottom: 14px; font-size: 12px; }

  .yours { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .yours .head { grid-column: 1 / 6; }
  .yours-body { grid-column: 6 / 12; margin-top: 0; display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: end; }
  .composite { max-width: 300px; }
  .yours .band { grid-column: 1 / -1; height: 120px; }

  .send { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .send-side { grid-column: 1 / 6; }
  .send .head h2 { white-space: nowrap; }
  .send-side .note { margin-top: 20px; }
  .form { grid-column: 6 / 12; margin-top: 0; gap: 40px; }
  .field-label { font-size: 16px; gap: 0; }
  .hint { font-size: 13px; margin-left: auto; width: calc(100% - 120px); }
  .field select, .field input[type=text], .field input[type=date] { font-size: 15px; margin-top: 14px; padding-bottom: 12px; }
  .send-band { height: 120px; margin-top: var(--mid); }

  .booklet { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .booklet-image { grid-column: 1 / 6; padding: 20px; font-size: 14px; }
  .booklet-text { grid-column: 7 / 12; margin-top: 0; }
  .booklet-title { font-size: 28px; line-height: 40px; margin: var(--mid) 0 14px; }

  .site-footer { padding: 64px var(--m); }
  .brand { font-size: 16px; }
}
