/* からくり時計工房の LP の見た目。
   色：生成りの壁（地）・木の焦げ茶（字）・真鍮（主の色）・青緑と赤は差し色だけ。罫は細く、影はぼかす。
   形：時計の目盛り（段の境目）・文字盤の丸（番号）。書体は Noto Sans JP 1つ（太さで使い分け）。
   やらないこと：ダークモード・太い黒縁・ずらしたベタの影・ネオン・お金を思わせる見た目。 */

@font-face { font-family: "CW Sans"; src: url("fonts/NotoSansJP-sub.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --wall: #fbf3e4; --wall2: #f3e6cf; --sheet: #fffaf0; --rule: #e6d5b8;
  --ink: #3d2410; --muted: #6e5640;
  --brass: #c8862f; --brass-t: #8a5a1c; --brass-s: #f3e2bf;
  --teal: #2f7f7a; --red: #b5432f;
  --sans: "CW Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --r: 18px;
  --sh: 0 1px 2px rgba(61,36,16,.06), 0 12px 30px rgba(61,36,16,.10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  background: var(--wall);
  background-image: radial-gradient(ellipse at 80% -10%, rgba(255,236,190,.65), rgba(255,236,190,0) 55%);
  overflow-x: clip;
}
:lang(en) body, body:lang(en) { letter-spacing: 0; line-height: 1.7; }
p { text-wrap: pretty; margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-t); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 800; line-height: 1.4; letter-spacing: .03em; margin: 0; }
:lang(en) h1, :lang(en) h2, :lang(en) h3 { letter-spacing: 0; }
h1:lang(ja), h2:lang(ja), h3:lang(ja), .tagline:lang(ja) { word-break: keep-all; overflow-wrap: anywhere; }
.nb { display: inline-block; }
.sp { display: none; }
@media (max-width: 520px) { .sp { display: inline; } }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 860px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--wall); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* 頭の帯（sticky。fixed にしない） */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(251,243,228,.92); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(6px)) { .site-head { background: rgba(251,243,228,.8); backdrop-filter: blur(8px); } }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; min-height: 48px; }
.brand img { width: 36px; height: 36px; }
.brand b { font-weight: 800; font-size: 18px; letter-spacing: .08em; line-height: 1.1; white-space: nowrap; }
:lang(en) .brand b { letter-spacing: .01em; }
.brand small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; color: var(--brass-t); line-height: 1.4; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover { color: var(--brass-t); }
.site-nav a.lang { min-width: 48px; justify-content: center; border: 1px solid var(--rule); border-radius: 99px; padding: 0 14px; margin-left: 6px; background: var(--sheet); font-size: 13px; }
@media (max-width: 860px) { .site-nav a:not(.lang) { display: none; } }
.brand > span { min-width: 0; }
@media (max-width: 380px) {
  .site-head .wrap { gap: 8px; }
  .brand { gap: 8px; }
  .brand small { display: none; }
  :lang(en) .brand b { font-size: 16px; }
  .site-nav a.lang { padding: 0 10px; margin-left: 0; }
}
@media (max-width: 340px) { :lang(en) .brand b { font-size: 14px; } }

/* 段の番号（文字盤の丸）と見出し */
.folio { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--brass-t); font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.folio .no { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sheet); color: var(--brass-t); font-size: 13px; letter-spacing: 0; box-shadow: inset 0 0 0 2px var(--brass), 0 2px 8px rgba(138,90,28,.18); }
.folio::after { content: ""; flex: 1; max-width: 220px; height: 8px; background: repeating-linear-gradient(90deg, var(--brass) 0 2px, transparent 2px 12px); opacity: .55; }
.sec { padding: 72px 0; }
@media (min-width: 960px) { .sec { padding: 100px 0; } }
.sec + .sec { padding-top: 0; }
.sec h2 { font-size: clamp(26px, 5.4vw, 40px); margin-bottom: 18px; }
.sec .lead { font-size: 16.5px; max-width: 40em; }
.shot-cap { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* 目盛りの罫 */
.rule-dial { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.rule-dial span { display: block; height: 14px; opacity: .5; background:
  repeating-linear-gradient(90deg, var(--brass) 0 3px, transparent 3px 60px) 0 0 / 100% 14px no-repeat,
  repeating-linear-gradient(90deg, var(--brass) 0 1.5px, transparent 1.5px 12px) 0 4px / 100% 6px no-repeat; }

/* ボタン・札 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 14px; font: 700 15px/1.2 var(--sans); text-decoration: none; background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule), 0 2px 8px rgba(61,36,16,.06); }
.btn:hover { box-shadow: inset 0 0 0 1.5px var(--brass); color: var(--ink); }
/* 「配信準備中」の札：押せるボタンに見えないよう、枠と塗りの無い字と小さな印だけ（手引き：ボタンの形にしない） */
.soon { display: inline-flex; align-items: center; gap: 8px; color: var(--brass-t); font-weight: 800; font-size: 16px; letter-spacing: .12em; cursor: default; user-select: none; }
.soon::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; flex: none;
  background: linear-gradient(currentColor, currentColor) 50% 2px / 2px 5px no-repeat, linear-gradient(currentColor, currentColor) 6px 50% / 4px 2px no-repeat; }
.soon-big { font-size: 20px; color: #fff; text-shadow: 0 1px 6px rgba(80,45,10,.35); }
.hero-meta .soon { margin-right: 10px; }

/* 最初の画面 */
.hero { padding: 36px 0 56px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 56px 0 84px; } .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }
.kick { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .12em; margin: 0 0 12px; display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.kick .latin { letter-spacing: .24em; font-size: 11.5px; color: var(--brass-t); }
.logo { font-size: clamp(50px, 13vw, 92px); font-weight: 900; line-height: 1.08; letter-spacing: .04em; color: var(--ink); margin-bottom: 18px; }
.logo::after { content: ""; display: block; width: min(320px, 70%); height: 12px; margin-top: 16px; background:
  repeating-linear-gradient(90deg, var(--brass) 0 3px, transparent 3px 40px) 0 0 / 100% 12px no-repeat,
  repeating-linear-gradient(90deg, var(--brass) 0 1.5px, transparent 1.5px 8px) 0 3px / 100% 6px no-repeat; }
:lang(en) .logo { font-size: clamp(44px, 10vw, 80px); line-height: 1.02; letter-spacing: -.01em; }
.tagline { font-size: clamp(21px, 4.4vw, 28px); font-weight: 800; color: var(--brass-t); line-height: 1.5; margin: 0 0 16px; }
.hero .lead { font-size: 16.5px; max-width: 34em; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 24px 0 0; }
.hero-art { margin: 0 auto; width: 100%; max-width: 440px; }
.hero-art .frame { border-radius: 24px; overflow: hidden; box-shadow: var(--sh); background: var(--wall2); aspect-ratio: 720 / 1080; }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

/* 工房 */
.wide-art { margin: 32px 0 0; }
.wide-art img { border-radius: var(--r); box-shadow: var(--sh); width: 100%; }
.crafters { display: grid; gap: 18px; margin-top: 36px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crafter { background: var(--sheet); border-radius: var(--r); padding: 18px 18px 8px; box-shadow: var(--sh); text-align: center; }
.crafter .pic { height: 210px; display: grid; place-items: end center; background: radial-gradient(ellipse at 50% 85%, var(--brass-s), rgba(243,226,191,0) 70%); }
.crafter .pic img { max-height: 210px; width: auto; }
.crafter h3 { font-size: 19px; margin-top: 12px; }
.crafter .role { display: inline-block; margin: 6px 0 10px; padding: 0 12px; border-radius: 99px; background: var(--brass-s); color: var(--brass-t); font-size: 13px; font-weight: 700; }
.crafter p:last-child { text-align: left; font-size: 15px; }
@media (max-width: 720px) {
  .crafters { grid-template-columns: 1fr; }
  .crafter { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 16px; text-align: left; align-items: center; padding: 14px; }
  .crafter .pic { grid-row: span 3; height: 150px; }
  .crafter .pic img { max-height: 150px; }
  .crafter h3 { margin-top: 0; }
  .crafter .role { justify-self: start; margin: 0; }
  .crafter p:last-child { margin: 6px 0 0; }
}

/* 遊び方 */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 32px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.step { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; } .step .phone { max-width: 260px; margin: 0 auto; } }
.phone { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--sh), 0 0 0 6px var(--sheet), 0 0 0 7px var(--rule); background: var(--wall2); }
.phone img { width: 100%; }
.step .no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brass); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 99px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); font-size: 13.5px; font-weight: 700; }
.tag img { width: auto; height: 22px; }
.more-shots { margin-top: 48px; }
.more-shots h3 { font-size: 18px; margin-bottom: 16px; }
.shot-row { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 22px; }
.shot-row figure { margin: 0; }

/* 見どころ */
.moments { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.moment .media { border-radius: 22px; overflow: hidden; box-shadow: var(--sh); }
.moment h3 { font-size: 19px; margin: 16px 0 6px; }
.moment p { font-size: 15px; }
@media (max-width: 760px) {
  .moments { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: -16px; padding-right: 16px; }
  .moment { scroll-snap-align: start; }
}

/* 特長 */
.features { display: grid; gap: 18px; margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.feature { position: relative; background: var(--sheet); border-radius: var(--r); padding: 24px 24px 12px 152px; min-height: 160px; box-shadow: var(--sh); }
.feature .f-art { position: absolute; left: 20px; top: 24px; width: 112px; height: 112px; object-fit: contain; }
.feature .f-art.round { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--sheet), 0 0 0 5px var(--rule); }
.feature .f-art.trio { display: flex; align-items: flex-end; gap: 2px; }
.feature .f-art.trio img { height: auto; width: 34%; }
.feature .f-art.trio img:last-child { width: 22%; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--brass); margin-bottom: 10px; }
.feature p { font-size: 15px; }
@media (max-width: 420px) { .feature { padding: 128px 20px 10px; } .feature .f-art { top: 18px; width: 96px; height: 96px; } }

/* 質問 */
.faq { margin: 24px 0 0; display: grid; gap: 12px; }
.faq div { background: var(--sheet); border-radius: 14px; padding: 18px 22px; box-shadow: inset 0 0 0 1px var(--rule); }
.faq dt { font-weight: 800; font-size: 16.5px; }
.faq dt::before { content: "Q"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--brass); color: #fff; font-size: 13px; vertical-align: 2px; }
.faq dd { margin: 6px 0 0 36px; font-size: 15px; }

/* 締め */
.release { padding: 0 0 72px; }
.release-in { position: relative; border-radius: 28px; padding: 44px 24px 52px; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #e7ad55 0%, var(--brass) 45%, #9c6224 100%); box-shadow: 0 18px 48px rgba(138,90,28,.32); }
.release-in::before { content: ""; position: absolute; inset: 14px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.35); pointer-events: none; }
.release-crew { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 0 auto 18px; max-width: 520px; }
.release-crew img { width: 32%; filter: drop-shadow(0 8px 10px rgba(61,36,16,.3)); }
.release h2 { font-size: clamp(26px, 5.6vw, 42px); line-height: 1.4; text-shadow: 0 2px 10px rgba(80,45,10,.35); }
.release p { margin: 12px 0 24px; font-weight: 600; }

.site-foot { padding: 28px 0 40px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; }
.site-foot .links a { display: inline-flex; align-items: center; min-height: 44px; }

/* 写真の注釈（開発中の画面）：小さな札 */
.shot-cap.note { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); font-size: 12.5px; line-height: 1.5; }
.shot-cap.note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); flex: none; }

/* 11/29 見直しの直し */
/* 日本語の本文は語の途中で折らない。折ってよい所は tools/lp_wbr.py が入れた <wbr>（文節の切れ目・句読点の後）。
   Safari でも効く形（auto-phrase は iPhone の Safari では効かない）。入りきらない時だけ anywhere で折る */
p:lang(ja), dd:lang(ja), dt:lang(ja), figcaption:lang(ja) { word-break: keep-all; overflow-wrap: anywhere; }
.more-shots { text-align: center; }
.more-shots h3 { text-align: center; }
.shot-row { justify-content: center; }
.more-shots .shot-cap { text-align: left; }
@media (max-width: 420px) { .feature .f-art.trio { width: 140px; height: 100px; } }
.nb { max-width: 100%; }
