/* MONORCA 自社サイト（2026-10-14）
 * 見た目は z.ai の初稿（生成り色の地・炭色・銅色）を写し、素の CSS に置き換えたもの。
 * 決まり: JavaScript が無くても全部見える（隠すのは html.js のときだけ）／「動きを減らす」設定では動かさない。
 * 文字に使う銅色は --copper-ink（白地でコントラスト 4.5 以上）。--copper は飾りと大きな文字だけ。 */

:root {
  --bg: #fbf9f6;
  --bg-muted: #f3efe9;
  --card: #fffefc;
  --ink: #26201b;
  --ink-soft: #5f564e;
  --line: #e4ded6;
  --primary: #2d2621;
  --primary-ink: #fbf9f6;
  --copper: #c27a3f;
  --copper-ink: #9a5520;
  --copper-soft: #f6ece2;
  --copper-line: #e8cdb3;
  --grad: linear-gradient(135deg, #ad5f2a 0%, #873d1f 100%);
  --grad-text: linear-gradient(135deg, #b5652c 0%, #8d4421 55%, #7a3a1f 100%);
  --shadow: 0 10px 40px -12px rgba(94, 58, 28, .25);
  --shadow-lg: 0 20px 60px -15px rgba(94, 58, 28, .32);
  --radius: 14px;
  --radius-lg: 24px;
  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --mono: "SF Mono", SFMono-Regular, Consolas, "Roboto Mono", monospace;
  /* 製品の画面（本物の MONORCA の色） */
  --app-ink: #20303b;
  --app-ink2: #5c6e7a;
  --app-line: #dce3e2;
  --app-paper: #f4f6f5;
  --app-blue: #12608f;
  --app-blue-bg: #eaf2f8;
  --app-blue-line: #bcd4e4;
  --app-verm: #c2452f;
  --app-edit: #fff7de;
  --app-edit-line: #ead9a0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-feature-settings: "palt";
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--copper-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--copper-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: #f0d9c4; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 28px; height: 28px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- 背景の飾り ---------- */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(210, 198, 184, .4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(210, 198, 184, .4) 1px, transparent 1px);
  background-size: 40px 40px;
}
.blob { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; z-index: -1; }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--copper-ink); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none; letter-spacing: .02em;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background-color .2s, opacity .2s;
}
.btn .i { transition: transform .2s; }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(38, 32, 27, .22); }
.btn-outline:hover { background: var(--card); border-color: rgba(38, 32, 27, .4); }
.btn-ghost { color: var(--copper-ink); padding: 0 12px; margin-left: -12px; min-height: 44px; }
.btn-ghost:hover { background: var(--copper-soft); }
.btn-light { background: #fff; color: var(--primary); }
.btn-line-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-line-light:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- 小さな札・見出しまわり ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--copper-soft); border: 1px solid var(--copper-line);
  color: var(--copper-ink); font-size: 13px; font-weight: 600; line-height: 1.4;
}
.badge-outline { background: transparent; border-color: var(--line); color: var(--ink-soft); font-weight: 500; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--copper-ink); margin-bottom: 14px; letter-spacing: .04em; }
.eyebrow::before, .eyebrow.both::after { content: ""; width: 32px; height: 1px; background: var(--copper); }
.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; text-wrap: balance; }
.sec-head p { margin-top: 16px; color: var(--ink-soft); }

section { position: relative; }
.sec { padding: 80px 0; }
@media (min-width: 640px) { .sec { padding: 112px 0; } }
.sec-muted { background: rgba(243, 239, 233, .55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-muted > .bg-grid { position: absolute; inset: 0; opacity: .3; z-index: -1; }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled, html:not(.js) .site-header, .page .site-header { background: rgba(251, 249, 246, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: rgba(228, 222, 214, .8); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; transition: transform .25s; }
.brand:hover img { transform: scale(1.03); }
.nav { display: none; }
.nav a { position: relative; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: rgba(38, 32, 27, .72); text-decoration: none; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: rgba(246, 236, 226, .8); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
.hdr-actions { display: flex; align-items: center; gap: 6px; }
.hdr-cta { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn:hover { background: var(--copper-soft); }
@media (min-width: 640px) { .hdr-cta { display: inline-flex; } }
@media (min-width: 1024px) { .nav { display: flex; gap: 2px; } }
@media (max-width: 1023.98px) { .js .menu-btn { display: inline-flex; } }

/* JavaScript が無いとき: スマホでもナビを横並びで出す */
html:not(.js) .site-header { position: sticky; top: 0; }
@media (max-width: 1023.98px) {
  html:not(.js) .hdr { height: auto; flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .nav { display: flex; flex-wrap: wrap; gap: 2px; width: 100%; order: 3; }
  html:not(.js) .nav a { padding: 6px 10px; font-size: 13px; }
}

/* スマホのメニュー（引き出し） */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: 84%; max-width: 360px; background: var(--bg); box-shadow: -20px 0 60px rgba(0, 0, 0, .2); transform: translateX(100%); transition: transform .45s cubic-bezier(.22, 1, .36, 1); display: flex; flex-direction: column; overflow-y: auto; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }
.drawer-top img { height: 28px; width: auto; }
.drawer nav { display: flex; flex-direction: column; gap: 2px; padding: 16px; }
.drawer nav a { padding: 12px 14px; border-radius: 10px; font-size: 16px; font-weight: 600; color: rgba(38, 32, 27, .85); text-decoration: none; }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { background: var(--copper-soft); color: var(--ink); }
.drawer .btn { margin: 4px 16px 0; }
.drawer-note { margin: 20px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(243, 239, 233, .6); font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.drawer-note b { color: var(--ink); }
body.lock { overflow: hidden; }

/* ---------- 最初の画面（トップ） ---------- */
.hero { padding: calc(var(--header-h) + 56px) 0 64px; overflow: hidden; isolation: isolate; }
html:not(.js) .hero { padding-top: 48px; }
.hero > .bg-grid { position: absolute; inset: 0; opacity: .6; z-index: -2; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .hero { padding: calc(var(--header-h) + 88px) 0 96px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 40px; }
}
.hero h1 { margin-top: 22px; font-size: clamp(32px, 6.4vw, 56px); font-weight: 800; line-height: 1.22; letter-spacing: -.005em; text-wrap: balance; }
.hero .lead { margin-top: 24px; max-width: 34em; color: var(--ink-soft); font-size: 16px; }
@media (min-width: 640px) { .hero .lead { font-size: 17.5px; } }
.hero-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-soft); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { color: var(--copper-ink); width: 17px; height: 17px; }

/* 数字の帯 */
.stats { margin-top: 64px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); margin-top: 80px; } }
.stat { background: var(--card); padding: 20px; }
@media (min-width: 640px) { .stat { padding: 24px; } }
.stat-num { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.stat-num b { font-size: clamp(26px, 4vw, 32px); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-num span { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.stat p { margin-top: 4px; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

/* 流れる帯 */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--primary); color: #efe7de; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li { display: flex; align-items: center; gap: 14px; padding: 15px 0 15px 28px; font-size: 14px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.marquee li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 製品画面の絵（本物の MONORCA の見た目に寄せる） ---------- */
.mock-wrap { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
@media (min-width: 1024px) { .mock-wrap { max-width: none; } }
.mock-wrap::before { content: ""; position: absolute; inset: -18px; z-index: -1; border-radius: 36px; background: linear-gradient(135deg, rgba(194, 122, 63, .22), rgba(252, 211, 77, .1) 50%, transparent); filter: blur(28px); }
.mock { border-radius: 16px; border: 1px solid var(--line); background: var(--app-paper); box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--sans); color: var(--app-ink); line-height: 1.5; }
.mock-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: var(--app-ink); color: #fff; }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #4b5d69; }
.mock-bar b { font-size: 12px; letter-spacing: .32em; font-weight: 800; }
.mock-tabs { display: flex; height: 100%; margin-left: 4px; overflow: hidden; }
.mock-tabs span { display: flex; align-items: center; padding: 0 10px; font-size: 11px; font-weight: 600; color: #b9c7d0; border-bottom: 2px solid transparent; white-space: nowrap; }
.mock-tabs span.on { color: #fff; border-bottom-color: var(--app-blue); }
.mock-body { display: grid; gap: 10px; padding: 12px; }
@media (min-width: 560px) { .mock-body { grid-template-columns: .9fr 1.1fr; } }
.mcard { background: #fff; border: 1px solid var(--app-line); border-radius: 9px; box-shadow: 0 1px 3px rgba(32, 48, 59, .07); }
.mcard h4 { font-size: 10px; letter-spacing: .14em; color: var(--app-ink2); font-weight: 700; padding: 9px 12px 0; }
.mcard .mb { padding: 8px 12px 12px; }
.drawing { display: none; }
@media (min-width: 560px) { .drawing { display: block; } }
.drawing .sheet { background: var(--app-blue-bg); border: 1px solid var(--app-blue-line); border-radius: 6px; padding: 8px; }
.drawing svg { width: 100%; height: auto; }
.drawing svg * { stroke: var(--app-blue); fill: none; vector-effect: non-scaling-stroke; }
.drawing svg text { fill: var(--app-blue); stroke: none; font-family: var(--mono); font-size: 9px; }
.drawing .dash { stroke-dasharray: 6 3 1 3; opacity: .7; }
.drawing .meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 9.5px; color: var(--app-ink2); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.fields .f { font-size: 9px; color: var(--app-ink2); font-weight: 600; }
.fields .f span { display: block; margin-top: 2px; padding: 4px 7px; border-radius: 5px; background: var(--app-edit); border: 1px solid var(--app-edit-line); color: var(--app-ink); font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fields .f.wide { grid-column: 1 / -1; }
.fields .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.procs { margin-top: 10px; border: 1px solid var(--app-line); border-radius: 7px; overflow: hidden; font-size: 11px; }
.procs .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 5px 9px; border-top: 1px solid var(--app-line); }
.procs .row:first-child { border-top: 0; background: #f7f9f9; font-size: 9.5px; font-weight: 700; color: var(--app-ink2); letter-spacing: .06em; }
.procs .row em { font-style: normal; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.total { position: relative; margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 8px; background: var(--app-blue); color: #fff; }
.total small { font-size: 10px; opacity: .85; }
.total b { font-family: var(--mono); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stamp { position: absolute; right: 12px; bottom: 44px; width: 54px; height: 54px; border: 2.5px solid var(--app-verm); border-radius: 50%; color: var(--app-verm); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; letter-spacing: .1em; transform: rotate(-9deg); background: rgba(255, 255, 255, .8); }
.mock-cap { margin-top: 14px; font-size: 12px; color: var(--ink-soft); text-align: center; }
.float-badge { position: absolute; left: -18px; bottom: -22px; display: none; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .float-badge { display: flex; } }
.float-badge .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--copper-soft); color: var(--copper-ink); }
.float-badge p { font-size: 12px; font-weight: 700; line-height: 1.45; }
.float-badge p span { color: var(--copper-ink); display: block; }

/* 受け箱の絵 */
.inbox-list .it { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--app-line); font-size: 11.5px; }
.inbox-list .it:first-child { border-top: 0; }
.inbox-list .ic { width: 28px; height: 28px; border-radius: 6px; background: var(--app-blue-bg); border: 1px solid var(--app-blue-line); color: var(--app-blue); display: flex; align-items: center; justify-content: center; }
.inbox-list .ic .i { width: 15px; height: 15px; }
.inbox-list b { display: block; font-weight: 700; font-size: 12px; }
.inbox-list small { color: var(--app-ink2); font-size: 10.5px; }
.tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag.wait { background: var(--app-edit); color: #7a5b00; border: 1px solid var(--app-edit-line); }
.tag.done { background: #e9f4ee; color: #1e7a4c; border: 1px solid #b9dcc8; }
.tag.new { background: var(--app-blue-bg); color: var(--app-blue); border: 1px solid var(--app-blue-line); }

/* ---------- カード ---------- */
.grid-2 { display: grid; gap: 24px; }
.grid-3 { display: grid; gap: 20px; }
.grid-4 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-3px); border-color: var(--copper-line); box-shadow: var(--shadow); }
.card h3 { margin-top: 16px; font-size: 17px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }
.ic-box { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--copper-soft); color: var(--copper-ink); transition: background .3s, color .3s; }
.card:hover .ic-box { background: var(--grad); color: #fff; }
.card .num-bg { position: absolute; right: 18px; top: 12px; font-size: 48px; font-weight: 800; color: rgba(194, 122, 63, .08); line-height: 1; transition: color .3s; }
.card:hover .num-bg { color: rgba(194, 122, 63, .16); }

/* 2つの仕事 */
.svc { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
@media (min-width: 640px) { .svc { padding: 36px; } }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc::before { content: ""; position: absolute; right: -48px; top: -48px; width: 160px; height: 160px; border-radius: 50%; background: rgba(194, 122, 63, .12); filter: blur(28px); }
.svc-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc-ic { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: var(--shadow); }
.svc-ic.dark { background: var(--primary); }
.svc h3 { margin-top: 24px; font-size: 24px; font-weight: 800; }
.svc .tagline { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--copper-ink); }
.svc .desc { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
.checks { margin-top: 22px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: rgba(38, 32, 27, .85); line-height: 1.7; }
.checks .ck { margin-top: 2px; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--copper-soft); color: var(--copper-ink); display: flex; align-items: center; justify-content: center; }
.checks .ck .i { width: 13px; height: 13px; stroke-width: 2.6; }
.svc .more { margin-top: auto; padding-top: 24px; }

/* 暗い帯（使いながら育てる・仕組み） */
.dark-panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 32px 24px; background: linear-gradient(135deg, var(--primary), #3a3029); color: var(--primary-ink); box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .dark-panel { padding: 48px; } }
.dark-panel::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(194, 122, 63, .28); filter: blur(70px); pointer-events: none; }
.dark-panel .kicker { font-size: 14px; font-weight: 600; color: #e9c9a8; }
.dark-panel h2, .dark-panel h3 { margin-top: 8px; font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; line-height: 1.4; }
.dark-panel p.note { margin-top: 14px; font-size: 15px; color: rgba(251, 249, 246, .78); }
.dp-grid { position: relative; z-index: 1; display: grid; gap: 32px; }
@media (min-width: 1024px) { .dp-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.tiles { display: grid; gap: 12px; }
@media (min-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { border-radius: 14px; padding: 16px; background: rgba(251, 249, 246, .08); border: 1px solid rgba(251, 249, 246, .1); }
.tile small { display: block; font-size: 12px; color: rgba(251, 249, 246, .7); letter-spacing: .06em; }
.tile b { display: block; margin-top: 4px; font-size: 17px; }
.tile .i { color: #e9c9a8; margin-bottom: 8px; }

/* 段階（見積の流れ・開発の流れ） */
.steps { margin-top: 48px; display: grid; gap: 16px; counter-reset: st; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps.s3 { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-top b { font-size: 32px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, #b5652c, #c27a3f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--copper); }
.step-top .i { color: var(--copper-ink); width: 24px; height: 24px; }
.step h3 { margin-top: 12px; font-size: 16.5px; font-weight: 700; }
.step p { margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }

/* 制作の流れ（左右に振る年表） */
.timeline { position: relative; margin-top: 56px; display: grid; gap: 20px; }
.tl-item { position: relative; }
.tl-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); transition: border-color .3s, box-shadow .3s; }
.tl-card:hover { border-color: var(--copper-line); box-shadow: var(--shadow-lg); }
.tl-card .ic-box { flex-shrink: 0; width: 48px; height: 48px; }
.tl-card:hover .ic-box { background: var(--grad); color: #fff; }
.tl-n { font-size: 12px; font-weight: 800; color: var(--copper-ink); letter-spacing: .1em; }
.tl-card h3 { margin-top: 2px; font-size: 18px; font-weight: 700; }
.tl-card p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 3px 9px; border-radius: 6px; background: var(--bg-muted); font-size: 12px; font-weight: 600; color: rgba(38, 32, 27, .72); }
.node { display: none; }
@media (min-width: 1024px) {
  .timeline { gap: 0; }
  .timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, rgba(194, 122, 63, .35), transparent); }
  .tl-item { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 20px 0; }
  .tl-item:nth-child(odd) .tl-card { grid-column: 1; }
  .tl-item:nth-child(even) .tl-card { grid-column: 2; }
  .node { display: block; position: absolute; left: 50%; top: 52px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 4px solid var(--bg); background: var(--grad); box-shadow: var(--shadow); z-index: 1; }
  .node::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; background: rgba(194, 122, 63, .22); animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite; z-index: -1; }
}
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 80%, 100% { transform: scale(1.4); opacity: 0; } }

/* 料金 */
.price-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 24px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .price-card { padding: 40px; } }
.price-card.alt { background: linear-gradient(135deg, var(--card), rgba(243, 239, 233, .7)); }
.price-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(194, 122, 63, .12); filter: blur(40px); }
.price { position: relative; margin-top: 20px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: clamp(40px, 8vw, 52px); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price span { font-size: 17px; font-weight: 700; color: var(--ink-soft); }
.price-card .sub { position: relative; margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }
.price-card hr { border: 0; height: 1px; background: var(--line); margin: 28px 0 24px; }
.price-note { margin-top: 24px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }

/* 帯（問い合わせへ） */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--primary-ink); background: var(--primary) url("/assets/img/band-bg.jpg") center / cover no-repeat; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(45, 38, 33, .96), rgba(45, 38, 33, .88) 55%, rgba(45, 38, 33, .62)); }
.cta-in { position: relative; padding: 48px 24px; max-width: 720px; }
@media (min-width: 640px) { .cta-in { padding: 64px 48px; } }
@media (min-width: 1024px) { .cta-in { padding: 72px 64px; } }
.cta-band .kicker { font-size: 14px; font-weight: 700; color: #f2cf9e; }
.cta-band h2 { margin-top: 12px; font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; text-wrap: balance; }
.cta-band p { margin-top: 16px; font-size: 15.5px; color: rgba(251, 249, 246, .82); }
.cta-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }

/* 下のページの最初 */
.page-hero { padding: calc(var(--header-h) + 56px) 0 56px; overflow: hidden; isolation: isolate; }
html:not(.js) .page-hero { padding-top: 48px; }
.page-hero > .bg-grid { position: absolute; inset: 0; opacity: .55; z-index: -2; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.page-hero h1 { margin-top: 20px; font-size: clamp(30px, 5.6vw, 48px); font-weight: 800; line-height: 1.25; text-wrap: balance; }
.page-hero .lead { margin-top: 20px; max-width: 38em; color: var(--ink-soft); font-size: 16.5px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 1024px) { .page-hero { padding: calc(var(--header-h) + 80px) 0 72px; } }

.live { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.live .dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #1e7a4c; }
.live .dot::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: rgba(30, 122, 76, .3); animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.live small { color: var(--ink-soft); font-weight: 500; font-size: 12.5px; }

/* 事業者情報の表 */
.info { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.info th, .info td { text-align: left; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.info tr:first-child th, .info tr:first-child td { border-top: 0; }
.info th { width: 32%; background: rgba(243, 239, 233, .6); font-weight: 700; white-space: nowrap; font-size: 14px; }
@media (max-width: 559.98px) {
  .info th, .info td { display: block; width: 100%; }
  .info th { padding-bottom: 6px; border-top: 1px solid var(--line); }
  .info td { padding-top: 0; border-top: 0; background: rgba(243, 239, 233, .6); padding-bottom: 14px; }
  .info td { background: transparent; padding-top: 8px; }
}

/* お問い合わせ */
.mail-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 24px; box-shadow: var(--shadow-lg); text-align: center; }
@media (min-width: 640px) { .mail-card { padding: 48px; } }
.mail-card .big-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.mail-addr { display: inline-block; margin-top: 20px; font-size: clamp(20px, 5.4vw, 30px); font-weight: 800; letter-spacing: .01em; color: var(--ink); text-decoration: none; word-break: break-all; }
.mail-addr:hover { color: var(--copper-ink); }
.mail-card .btn { margin-top: 24px; }
.mail-card p.small { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); }
.list-num { counter-reset: n; display: grid; gap: 12px; }
.list-num li { counter-increment: n; display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 15px; }
.list-num li::before { content: counter(n); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--copper-soft); color: var(--copper-ink); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.list-num li small { display: block; color: var(--ink-soft); font-size: 13.5px; }

.callout { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 24px; border-radius: 18px; border: 1px solid var(--copper-line); background: rgba(246, 236, 226, .5); }
@media (min-width: 768px) { .callout { flex-direction: row; align-items: center; } }
.callout h3 { font-size: 17px; font-weight: 700; }
.callout p { margin-top: 4px; font-size: 14.5px; color: var(--ink-soft); }

.two-col { display: grid; gap: 40px; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.prose p + p { margin-top: 16px; }
.prose { font-size: 16px; color: rgba(38, 32, 27, .86); }

/* ---------- フッター ---------- */
.site-footer { margin-top: 0; border-top: 1px solid var(--line); background: rgba(243, 239, 233, .6); }
.ft { display: grid; gap: 40px; padding: 56px 0 40px; }
@media (min-width: 1024px) { .ft { grid-template-columns: 5fr 7fr; } }
.ft .brand img { height: 36px; }
.ft-desc { margin-top: 16px; max-width: 26em; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.ft-meta { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.ft-meta li { display: flex; align-items: center; gap: 10px; }
.ft-meta .i { color: var(--copper-ink); width: 17px; height: 17px; }
.ft-meta a { color: var(--ink-soft); }
.ft-meta a:hover { color: var(--ink); }
.ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (min-width: 640px) { .ft-cols { grid-template-columns: 1fr 1fr 1.2fr; } }
.ft-cols h2 { font-size: 14px; font-weight: 700; }
.ft-cols ul { margin-top: 14px; display: grid; gap: 8px; }
.ft-cols a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.ft-cols a:hover { color: var(--ink); text-decoration: underline; }
.ft-cta { grid-column: 1 / -1; padding: 18px; border-radius: 16px; border: 1px solid var(--copper-line); background: rgba(246, 236, 226, .55); }
@media (min-width: 640px) { .ft-cta { grid-column: auto; } }
.ft-cta b { font-size: 14px; }
.ft-cta p { margin-top: 4px; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.ft-cta .btn { margin-top: 12px; width: 100%; }
.ft-bottom { display: flex; flex-direction: column; gap: 8px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
@media (min-width: 640px) { .ft-bottom { flex-direction: row; justify-content: space-between; } }

.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top .i { transform: rotate(-90deg); }
.to-top:hover { color: var(--copper-ink); border-color: var(--copper-line); }

/* ---------- 動き ----------
 * 隠すのは JavaScript が動いているとき（html.js）だけ。
 * site.js が読めなかったときは、head の小さな命令が 2.5 秒後に html.no-anim を付けて全部出す。 */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-16px); }
.js [data-reveal="zoom"] { transform: translateY(30px) perspective(1000px) rotateX(8deg); }
.js [data-reveal].in, .no-anim [data-reveal] { opacity: 1; transform: none; }

/* 最初の画面は読み込みと同時に順に出す（CSS だけで動く。終わりの状態は「見えている」） */
.rise { animation: rise .7s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.mock-in { animation: mockin 1s cubic-bezier(.22, 1, .36, 1) .2s both; }
@keyframes mockin { from { opacity: 0; transform: translateY(32px) perspective(1200px) rotateX(10deg); } to { opacity: 1; transform: none; } }
.row-in { animation: rowin .45s ease-out both; animation-delay: var(--d, 0s); }
@keyframes rowin { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.stamp-in { animation: stampin .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: var(--d, 1.9s); }
@keyframes stampin { 0% { opacity: 0; transform: rotate(-30deg) scale(1.8); } 100% { opacity: 1; transform: rotate(-9deg) scale(1); } }
.pop-in { animation: popin .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: var(--d, 1.1s); }
@keyframes popin { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-badge.pop-in { animation: popin .5s cubic-bezier(.34, 1.56, .64, 1) 1.1s both, float 6s ease-in-out 1.6s infinite; }
.spark { animation: spark 3s ease-in-out infinite; }
@keyframes spark { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
.caret::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--app-ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden] { display: none; }
  .node::before, .live .dot::before { display: none; }
}

@media print {
  .site-header, .drawer, .to-top, .marquee { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 足りない所 ---------- */
@media (min-width: 640px) { .nav-contact { display: none; } }
@media (max-width: 639.98px) { html:not(.js) .nav-contact { display: inline-block; } }
.drawer-close { display: inline-flex; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.drawer-close:hover { background: var(--copper-soft); }
/* site.js が読めなかったとき（no-anim）は、JavaScript 無しと同じナビにする */
.no-anim .menu-btn { display: none !important; }
@media (max-width: 1023.98px) {
  .no-anim .hdr { height: auto; flex-wrap: wrap; padding: 10px 0; }
  .no-anim .nav { display: flex; flex-wrap: wrap; gap: 2px; width: 100%; order: 3; }
  .no-anim .nav a { padding: 6px 10px; font-size: 13px; }
}
/* 横並びの枠の中身が、はみ出す長さ（nowrap など）で枠を押し広げないように */
.hero-grid > *, .two-col > *, .dp-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
h1, h2, h3 { word-break: auto-phrase; }
.nb { display: inline-block; }
.stamp { right: 30px; top: 58px; bottom: auto; }
.req { margin-top: 10px; display: grid; gap: 6px; font-size: 10.5px; }
.req li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--app-line); border-radius: 6px; background: #fafbfb; }
.req span { color: var(--app-ink2); font-weight: 600; }
.req b { font-weight: 600; }
@media (min-width: 640px) { .mock-cap { margin-top: 44px; padding-left: 200px; text-align: right; } }

/* ---------- 下のページの部品 ---------- */
.chips-dark { margin-top: 14px; }
.chips-dark li { padding: 6px 12px; border-radius: 999px; background: rgba(251, 249, 246, .08); border: 1px solid rgba(251, 249, 246, .14); font-size: 13px; font-weight: 600; color: rgba(251, 249, 246, .88); }
.logo-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 28px; box-shadow: var(--shadow); text-align: center; }
.logo-card img { width: min(100%, 320px); height: auto; margin: 0 auto; }
.logo-card p { margin-top: 24px; font-size: 14px; color: var(--ink-soft); }
.row-card { display: flex; gap: 16px; align-items: flex-start; }
.row-card .ic-box { flex-shrink: 0; }
.row-card h3 { margin-top: 0; }

/* ホームページの絵（骨組みだけ） */
.site-mock { border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden; }
.sm-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-muted); border-bottom: 1px solid var(--line); }
.sm-bar .dots { display: flex; gap: 6px; }
.sm-bar .dots i { width: 10px; height: 10px; border-radius: 50%; }
.sm-bar .dots i:nth-child(1) { background: #f08a7e; }
.sm-bar .dots i:nth-child(2) { background: #f4c45d; }
.sm-bar .dots i:nth-child(3) { background: #6fca83; }
.sm-url { flex: 1; padding: 3px 10px; border-radius: 6px; background: var(--card); font-size: 11px; color: var(--ink-soft); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-url em { font-style: normal; color: var(--copper-ink); }
.sm-body { padding: 14px; display: grid; gap: 12px; }
.sm-body i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.sm-nav { display: flex; align-items: center; gap: 10px; }
.sm-nav i { width: 36px; }
.sm-nav .sm-logo { width: 64px; height: 14px; background: var(--primary); margin-right: auto; }
.sm-nav .sm-btn { width: 54px; height: 18px; border-radius: 6px; background: var(--grad); }
.sm-hero { position: relative; overflow: hidden; border-radius: 12px; padding: 28px 20px; display: grid; gap: 10px; background: var(--primary) url("/assets/img/band-bg.jpg") center / cover; }
.sm-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(45, 38, 33, .92), rgba(45, 38, 33, .5)); }
.sm-hero i { position: relative; background: rgba(251, 249, 246, .85); }
.sm-hero .l1 { width: 70%; height: 14px; }
.sm-hero .l2 { width: 52%; height: 14px; }
.sm-hero .l3 { width: 60%; background: rgba(251, 249, 246, .45); }
.sm-hero .sm-cta { width: 90px; height: 22px; border-radius: 6px; background: var(--grad); margin-top: 6px; }
.sm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sm-cards > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.sm-cards .pic { height: 46px; border-radius: 6px; background: linear-gradient(135deg, var(--copper-soft), #ead9c6); }
.sm-cards .s { width: 60%; }

/* ロゴを大きく（2026-10-15 運営者の指示: 場所に対してロゴが小さい） */
:root { --header-h: 72px; }
.brand img { height: 42px; }
.drawer-top img { height: 34px; }
.ft .brand img { height: 44px; }
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .brand img { height: 52px; }
}
.next-card { margin: 40px auto 0; max-width: 860px; display: flex; flex-direction: column; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .next-card { flex-direction: row; padding: 36px; } }
.next-card .svc-ic { flex-shrink: 0; }
.next-card h3 { margin-top: 10px; font-size: 22px; font-weight: 800; }
.next-card p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.next-card p.small { font-size: 13px; }
