/* テーマ見本帳の見た目。値は見本帳の見た目の決め書き（getdesign.md の mobbin＋Numero の形・動き・質感）から選んだもの */

:root {
  --ink: #141414;
  --ink-soft: #262626;
  --muted: #707070;
  --faint: #adadad;
  --canvas: #ffffff;
  --canvas-soft: #f3f3f3;
  --field: #f0f0f0;
  --hairline-soft: #f0f0f0;
  --hairline: #e0e0e0;
  --accent: #0066ff;

  --r-sm: 16px;
  --r-md: 24px;
  --r-full: 9999px;

  --s-xxs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 24px;
  --s-xl: 32px; --s-xxl: 48px; --s-section: 80px; --s-section-lg: 120px;

  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow-frame: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0; word-break: auto-phrase; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-md); }
@media (min-width: 720px) { .wrap { padding: 0 var(--s-xl); } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s-md); top: var(--s-md); background: var(--ink); color: #fff; padding: var(--s-xs) var(--s-md); border-radius: var(--r-full); z-index: 10; }

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

/* ---------- 上の帯（浮いた丸い帯） ---------- */
.nav {
  position: sticky; top: var(--s-sm); z-index: 5;
  margin: var(--s-sm) auto 0; max-width: calc(var(--max) - 2 * var(--s-md));
  width: calc(100% - 2 * var(--s-md));
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-md);
  background: rgba(243, 243, 243, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-radius: var(--r-full);
  padding: var(--s-xs) var(--s-xs) var(--s-xs) var(--s-lg);
}
.nav__brand { font-weight: 700; text-decoration: none; font-size: 16px; white-space: nowrap; }
.nav__brand span { color: var(--ink-soft); font-weight: 400; margin-left: var(--s-xs); }
@media (max-width: 520px) { .nav__brand span { display: none; } }
.nav__links { display: flex; gap: var(--s-xs); align-items: center; }

/* ---------- ボタン（丸ボタン） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-xs);
  min-height: 44px; padding: 0 var(--s-lg);
  border-radius: var(--r-full); border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform 140ms var(--ease), background-color 160ms var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: #fff; min-height: 52px; padding: 0 var(--s-xl); }
.btn--primary:hover { background: var(--ink-soft); }
.btn--outline { background: var(--canvas); color: var(--ink); border-color: var(--hairline); min-height: 52px; padding: 0 var(--s-xl); }
.btn--outline:hover { background: var(--canvas-soft); }
.btn--soft { background: var(--canvas); color: var(--ink); }
.nav .btn--soft { background: transparent; }
.nav .btn--soft:hover { background: var(--canvas); }
.btn[aria-disabled="true"] { background: var(--canvas-soft); color: var(--ink-soft); border-color: transparent; cursor: default; pointer-events: none; }
.btn small { font-weight: 400; font-size: 13px; }

/* ---------- 始めの大見出し ---------- */
.hero { padding: clamp(48px, 6vw, 64px) 0 var(--s-lg); overflow: hidden; }
.hero__eyebrow { color: var(--muted); font-size: 14px; font-weight: 700; margin-bottom: var(--s-md); }
.hero h1 { font-size: clamp(32px, 6.4vw, 72px); line-height: 1.15; }
.hero h1 .line { display: block; }
.hero__lead { margin-top: var(--s-lg); font-size: clamp(17px, 2.2vw, 20px); font-weight: 300; line-height: 1.7; max-width: 36em; color: var(--ink-soft); }
.hero__actions { margin-top: var(--s-xl); display: flex; flex-wrap: wrap; gap: var(--s-sm); }

/* ---------- 一覧 ---------- */
.section { padding-top: var(--s-xxl); padding-bottom: var(--s-xxl); } /* 左右は .wrap の余白を残す */
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-sm); margin-bottom: var(--s-xl); }
.section__head h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.3; }
.section__head p { color: var(--muted); }

.grid { display: grid; grid-template-columns: 1fr; gap: var(--s-xl) var(--s-lg); list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { position: relative; display: flex; flex-direction: column; gap: var(--s-md); }
.card__link { text-decoration: none; display: flex; flex-direction: column; gap: var(--s-md); border-radius: var(--r-md); }
.card__link:active .frame { transform: scale(.985); }
.card__body { display: flex; flex-direction: column; gap: var(--s-xs); padding: 0 var(--s-xxs); }
.card__title { display: flex; align-items: center; justify-content: space-between; gap: var(--s-sm); }
.card__title h3 { font-size: 20px; line-height: 1.3; }
.card__catch { color: var(--ink-soft); font-size: 15px; }

/* ---------- 画面の画像の枠 ---------- */
.frame {
  position: relative; overflow: hidden; border-radius: var(--r-sm);
  background: var(--canvas-soft); aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-frame);
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.frame--phone { aspect-ratio: 390 / 844; border-radius: var(--r-md); max-width: 300px; }

/* 準備中の面：テーマの色があれば色の帯、無ければ墨の薄い面 */
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-lg); gap: var(--s-sm); }
.placeholder__swatches { display: flex; gap: var(--s-xs); }
.placeholder__swatches i { width: 28px; height: 28px; border-radius: 30%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.placeholder__label { color: var(--ink-soft); font-size: 14px; font-weight: 700; }

/* ---------- 小さな札 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-xs); list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--canvas-soft); color: var(--ink-soft); border-radius: var(--r-full); padding: 2px var(--s-sm); font-size: 13px; line-height: 1.6; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hairline); }
.status--ready::before { background: var(--accent); }

/* ---------- 使い方の3段 ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--s-md); list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--canvas-soft); border-radius: var(--r-md); padding: var(--s-lg); counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: var(--s-sm); }
.steps h3 { font-size: 18px; line-height: 1.4; margin-bottom: var(--s-xs); }
.steps p { color: var(--ink-soft); font-size: 15px; }

/* ---------- テーマごとのページ ---------- */
.crumbs { padding-top: var(--s-xl); font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink-soft); }
.theme-hero { padding-top: var(--s-xl); padding-bottom: var(--s-xxl); display: grid; gap: var(--s-xl); }
@media (min-width: 960px) { .theme-hero { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.theme-hero h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.15; }
.theme-hero__catch { margin-top: var(--s-md); font-size: clamp(17px, 2.2vw, 20px); font-weight: 300; color: var(--ink-soft); }
.theme-hero__meta { margin-top: var(--s-lg); display: flex; flex-direction: column; gap: var(--s-sm); }
.theme-hero__actions { margin-top: var(--s-xl); display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.note { margin-top: var(--s-sm); font-size: 13px; color: var(--muted); max-width: 34em; }

.swatches { display: flex; flex-wrap: wrap; gap: var(--s-sm); list-style: none; margin: 0; padding: 0; }
.swatches li { display: flex; align-items: center; gap: var(--s-xs); font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.swatches i { width: 28px; height: 28px; border-radius: 30%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

.shots { display: grid; gap: var(--s-xl); align-items: start; }
@media (min-width: 840px) { .shots { grid-template-columns: 1fr 260px; } }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: var(--s-sm); }
.shots figcaption { font-size: 13px; color: var(--muted); }

.facts { display: grid; gap: var(--s-lg); }
@media (min-width: 840px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.panel { background: var(--canvas-soft); border-radius: var(--r-md); padding: var(--s-lg); }
@media (min-width: 720px) { .panel { padding: var(--s-xl); } }
.panel h2 { font-size: 22px; line-height: 1.4; margin-bottom: var(--s-md); }
.panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-xs); }
.panel li { padding-left: 1.2em; position: relative; color: var(--ink-soft); }
.panel li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.panel a { color: var(--ink); }

.notice { background: var(--canvas-soft); border-radius: var(--r-md); padding: var(--s-lg); color: var(--ink-soft); }

/* ---------- 終わりの墨の帯 ---------- */
.footer { margin-top: var(--s-section); background: var(--ink); color: #fff; border-radius: var(--r-md) var(--r-md) 0 0; padding: var(--s-xxl) 0 var(--s-xl); }
.footer__brand { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.2; }
.footer p { color: var(--faint); font-size: 14px; margin-top: var(--s-sm); max-width: 44em; }
.footer a { color: #fff; }
.footer__links { margin-top: var(--s-lg); display: flex; flex-wrap: wrap; gap: var(--s-sm) var(--s-lg); list-style: none; padding: 0; font-size: 14px; }

/* ---------- 動き ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms var(--ease) both fade-out; }
::view-transition-new(root) { animation: 460ms var(--ease-out) both rise-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(6px); } }

/* ================= 動き（3回目：採寸した型を数値どおりに。参考にした動きの採寸の記録） =================
   見本帳の型：最初の画面 A1（うねる線の束）・見出し B1（色の帯）・スクロール C2（大きく寄って出る）・触る D1・D3。
   動かすのは transform と opacity だけ。現れる前も場所は取っておく（ずれを増やさない）。
   「現れる前は隠す」は、JS が html に付ける .motion-ready の印の下だけ（JS が無い・動きを減らす設定なら最初から見える）。
   スマホ（767px 以下）は距離を半分に（採寸 §5-7） */

:root {
  --m-ease: cubic-bezier(0.25, 0.1, 0.25, 1);      /* ease */
  --m-ease-out: cubic-bezier(0, 0, 0.58, 1);       /* ease-out */
  --m-ease-strong: cubic-bezier(0, 0, 0.2, 1);     /* B1 の強めの減速 */
  --m-near: 20px;                                  /* C1 の小さい出方 */
  --m-far: 40px;                                   /* C2 の大きい出方（見本帳は 40px） */
}
@media (max-width: 767px) { :root { --m-near: 10px; --m-far: 20px; } }

/* A1 うねる線の束：最初の画面の背景（高さの 92%）。描くのは motion.js */
.hero { position: relative; isolation: isolate; }
.lines { position: absolute; left: 0; top: 0; width: 100%; height: 92%; z-index: -2; pointer-events: none; display: block; }
.hero__bar { display: flex; justify-content: flex-end; margin-top: var(--s-lg); }
/* 線の上でも文字が読めるように：文字の周りに白いぼかしの縁、PC は文字の列の後ろを白へ溶かす（線の色・太さは変えない） */
.hero__eyebrow, .hero h1, .hero__lead { text-shadow: 0 0 2px #fff, 0 0 6px #fff, 0 0 14px #fff, 0 0 24px #fff; }
@media (min-width: 768px) {
  .hero::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 92%; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .78) 38%, rgba(255, 255, 255, 0) 58%); }
}
.motion-toggle { font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-soft); background: var(--canvas-soft); border: 0; border-radius: var(--r-full); min-height: 44px; min-width: 44px; padding: 0 var(--s-md); cursor: pointer; transition: transform 140ms var(--ease); }
.motion-toggle:active { transform: scale(.97); }

/* 出る前の形（C1・C2・見出しの塊）。値は採寸 §3 のまま */
.motion-ready [data-motion] { opacity: 0; transition-property: opacity, transform; transition-delay: var(--motion-delay, 0ms); }
.motion-ready [data-motion="rise"] { transform: translateY(var(--m-near)); transition-duration: 1000ms; transition-timing-function: var(--m-ease); }       /* C1 */
.motion-ready [data-motion="lift"] { transform: translateY(var(--m-far)); transition-duration: 600ms; transition-timing-function: var(--m-ease-out); }      /* C2 列 */
.motion-ready [data-motion="from-left"] { transform: translateX(calc(-1 * var(--m-far))); transition-duration: 1600ms; transition-timing-function: var(--m-ease-out); } /* C2 見出しの塊 */
.motion-ready [data-motion].is-in { opacity: 1; transform: none; }

/* B1 色の帯が走って見出しが出る（1.5 秒の1本の流れ）。文字は出る前も読み上げで読める（隠すのは見た目だけ） */
.band { position: relative; display: inline-block; }
.band::after { content: ""; position: absolute; inset: 0.04em -0.06em; background: linear-gradient(135deg, var(--hairline), var(--ink-soft)); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
.motion-ready [data-motion="band"] { opacity: 1; transform: none; transition: none; }
.motion-ready [data-motion="band"] .band__text { opacity: 0; }
.motion-ready [data-motion="band"].is-in .band__text { animation: band-text 1500ms linear both; animation-delay: var(--motion-delay, 0ms); }
.motion-ready [data-motion="band"].is-in::after { animation: band-bar 1500ms var(--m-ease-strong) both; animation-delay: var(--motion-delay, 0ms); }
@keyframes band-bar {
  0% { transform: scaleX(0); transform-origin: left center; }
  44% { transform: scaleX(1); transform-origin: left center; }
  53% { transform: scaleX(1); transform-origin: left center; }
  54% { transform: scaleX(1); transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}
@keyframes band-text { 0%, 53.9% { opacity: 0; } 54%, 100% { opacity: 1; } }

/* 流れるデモの帯（2回目から残す。止めるボタンは線と共通） */
.reel { position: relative; margin-top: var(--s-xs); }
.reel__track { display: flex; width: max-content; animation: reel 90s linear infinite; }
.reel__set { display: flex; align-items: flex-end; gap: var(--s-lg); padding: var(--s-md) var(--s-lg) var(--s-md) 0; margin: 0; list-style: none; }
.reel__item a { display: block; border-radius: var(--r-sm); transition: transform 300ms var(--m-ease); }
.reel__item img { height: 260px; width: auto; border-radius: var(--r-sm); box-shadow: var(--shadow-frame); background: var(--canvas-soft); object-fit: cover; object-position: top; }
.reel__sp { border-radius: var(--r-md) !important; }
@media (max-width: 719px) { .reel__item img { height: 190px; } .reel__set { gap: var(--s-md); padding-right: var(--s-md); } }
.reel:hover .reel__track, .reel:focus-within .reel__track, .is-paused .reel__track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }

/* 上の帯：スクロールすると白い面になり、少し細くなる（2回目から残す） */
/* 白い面と影は最初から下敷きの層に描いておき、その層の透明さだけを変える（影や余白の値は動かさない。採寸 §5-4） */
.nav::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06); opacity: 0; transition: opacity 300ms var(--m-ease); z-index: -1; pointer-events: none; }
.nav { isolation: isolate; }
.nav.is-scrolled::before { opacity: 1; }

.btn { transition: transform 300ms var(--m-ease), background-color 160ms var(--ease); }
.btn:active { transform: scale(.97); }
.arrow { display: inline-block; transition: transform 300ms var(--m-ease); }
.card__more { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 var(--s-xxs); font-size: 14px; font-weight: 700; }

/* D1 触ると浮くカード・ゆっくり寄る写真（採寸 §6-14）。指で触る端末では付けない */
.frame-wrap { position: relative; border-radius: var(--r-sm); }
.frame-wrap::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 8px 30px -16px rgba(20, 20, 20, .58); opacity: 0; transition: opacity 300ms var(--m-ease); pointer-events: none; }
.frame img { transition: transform 1200ms var(--m-ease); }
.card__link { transition: transform 300ms var(--m-ease); }
@media (hover: hover) {
  .card__link:hover, .card__link:focus-visible { transform: translateY(-5px); }
  .card__link:hover .frame-wrap::before, .card__link:focus-visible .frame-wrap::before, .theme-hero__frame:hover .frame-wrap::before { opacity: 1; }
  .card__link:hover .frame img, .card__link:focus-visible .frame img, .theme-hero__frame:hover .frame img { transform: scale(1.05); }
  .btn--primary:hover, .btn--outline:hover { transform: translateY(-2px); }
  .btn:hover .arrow, .card__link:hover .card__more .arrow { transform: translateX(3px); }
  .hero__actions .btn:hover .arrow { transform: translateY(3px); }
}

/* D3 下線が左から伸びる（0.45 秒、離すと右へ縮む）：上の帯のリンク・フッターのリンク・「詳しく見る」 */
.nav__links .btn--soft, .footer__links a { position: relative; text-decoration: none; }
.nav__links .btn--soft::after, .footer__links a::after, .card__more::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform 450ms cubic-bezier(0.33, 0.72, 0.36, 1);
}
.nav__links .btn--soft::after { left: var(--s-lg); right: var(--s-lg); bottom: 10px; }
.nav__links .btn--soft:hover::after, .nav__links .btn--soft:focus-visible::after, .footer__links a:hover::after, .footer__links a:focus-visible::after, .card__link:hover .card__more::after, .card__link:focus-visible .card__more::after { transform: scaleX(1); transform-origin: left center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; transition: none !important; }
  /* 流れる帯は止め、指で横に送れる並びにする（2つ目の並びは隠す） */
  .reel { overflow-x: auto; }
  .reel__set[aria-hidden="true"], .motion-toggle { display: none !important; }
  .reel__set { padding-left: var(--s-md); }
  .card__link:hover, .card__link:hover .frame img, .btn:hover { transform: none; }
}

/* 灰色の面の上では、灰色の字は色の差が足りない（4.46:1）ので濃い墨にする */
.panel .note, .steps .note { color: var(--ink-soft); }

/* 制作のご相談（売り場のプロフィールへのリンク。メール・電話・自前のフォームは置かない） */
.contact { background: var(--canvas-soft); border-radius: var(--r-md); padding: var(--s-xl) var(--s-lg); display: flex; flex-direction: column; gap: var(--s-md); }
@media (min-width: 720px) { .contact { padding: var(--s-xxl); } }
.contact h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.3; }
.contact p { color: var(--ink-soft); }
.contact__links { list-style: none; margin: var(--s-xs) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.contact .btn--outline { background: var(--canvas); }
.contact .btn[aria-disabled="true"] { background: var(--canvas); border-color: var(--hairline); }
@media (max-width: 420px) { .nav__contact { display: none; } }
