/* Wavy コーポレートサイト v3
   方向：Nothing（nothing.tech）の文法を借りる＝明るいグレーの地・点の文字（Doto）・等幅のラベル（Geist Mono）・赤は1色だけ。
   点は飾りではなく「ChatGPTに聞いた1回」を表す。色は仮。決まったら wavy/design/tokens に寄せる */
:root {
  --bg: #F2F2F0;
  --card: #FFFFFF;
  --ink: #0B0B0C;
  --gray: #6B6B6E;
  --mute: #A3A3A6;
  --line: #D9D9D6;
  --red: #E0251B;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Zen Kaku Gothic New", sans-serif;
  --dot: "Doto", "Geist Mono", monospace;
  --mono: "Geist Mono", ui-monospace, monospace;
  --en: "Geist", "Hiragino Sans", sans-serif;
  --wrap: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--jp); font-size: 16px; line-height: 1.9; letter-spacing: .03em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, summary { text-wrap: balance; word-break: auto-phrase; }
p, li, td { text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.red { color: var(--red); }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(242,242,240,.9); backdrop-filter: blur(10px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-head img { height: 24px; width: auto; }
.site-head nav { display: flex; gap: 28px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.site-head nav a { text-decoration: none; }
.site-head nav a:not(.pill):hover { color: var(--red); }
.pill { background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; font-family: var(--jp); font-size: 13px; letter-spacing: .04em; transition: background .25s; }
.pill:hover { background: var(--red); }

/* buttons（Nothingの丸いボタン） */
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 16px 26px; border-radius: 999px; border: 1px solid var(--ink); transition: background .25s, color .25s, border-color .25s; cursor: pointer; font-family: var(--jp); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--red); border-color: var(--red); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn .arr { font-family: var(--mono); transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* hero */
.hero { padding: 64px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; padding: 8px 0; }
.hero h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.38; font-weight: 600; letter-spacing: .01em; margin: 24px 0 0; }
.hero .lead { margin: 32px 0 36px; max-width: 520px; color: #2C2C2E; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* 計測パネル */
.panel { background: var(--card); border-radius: 28px; padding: 28px 28px 24px; display: flex; flex-direction: column; min-height: 560px; }
.panel-top { display: flex; justify-content: space-between; align-items: center; }
.panel-top .live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tabs { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.tabs button { font-family: var(--jp); font-size: 13px; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--gray); transition: all .2s; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.q { margin-top: 22px; font-size: 18px; font-weight: 600; min-height: 3.6em; line-height: 1.7; }
.q .caret { display: inline-block; width: 9px; height: 1.1em; background: var(--red); vertical-align: -3px; margin-left: 3px; animation: blink 1s steps(2) infinite; }
.count { font-family: var(--dot); font-weight: 800; font-size: clamp(88px, 10vw, 148px); line-height: .9; letter-spacing: -.02em; margin-top: auto; }
.count .of { font-size: .32em; color: var(--mute); letter-spacing: 0; }
.count.zero .n { color: var(--red); }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin: 22px 0 14px; max-width: 420px; }
.dots i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--line); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.dots i.ask { border-color: var(--ink); transform: scale(1.08); }
.dots i.hit { background: var(--ink); border-color: var(--ink); }
.dots i.miss { border-color: var(--red); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.legend .h::before { background: var(--ink); }
.legend .m::before { border: 1.5px solid var(--red); }

/* 質問が流れる帯 */
.ticker { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.ticker .track { display: inline-block; animation: tick 70s linear infinite; }
.ticker span { font-size: 15px; margin-right: 48px; color: #2C2C2E; }
.ticker span b { font-family: var(--mono); font-weight: 400; color: var(--red); margin-right: 10px; font-size: 12px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* sections */
section.block { padding: 128px 0; }
.sec-label { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.sec-label .no { font-family: var(--dot); font-weight: 800; font-size: 28px; line-height: 1; color: var(--red); }
.sec-title { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 56px; }
.sec-title h2 { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.42; margin: 0; font-weight: 600; }
.sec-title p { margin: 0; color: #2C2C2E; }

/* pains */
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pain { background: var(--card); border-radius: 22px; padding: 30px 30px 28px; }
.pain .say { font-size: 20px; font-weight: 600; line-height: 1.6; margin: 10px 0 12px; }
.pain p { margin: 0; color: #4A4A4D; font-size: 15px; }
.pain.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* sample rows */
.sample { background: var(--card); border-radius: 28px; padding: 12px 32px 8px; }
.srow { display: grid; grid-template-columns: 220px 1fr 140px; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; }
.srow h3 { margin: 0; font-size: 16px; }
.srow .note { grid-column: 2 / -1; margin: -6px 0 0; font-size: 14px; color: var(--gray); }
.srow .row-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.srow .row-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--red); }
.srow .row-dots i.hit { background: var(--ink); border-color: var(--ink); }
.srow .num { font-family: var(--dot); font-weight: 800; font-size: 54px; line-height: 1; text-align: right; }
.srow .num small { font-size: 20px; color: var(--mute); }
.srow .num.zero { color: var(--red); }
.sample-meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 16px; }

/* deliverables */
.deliver { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.deliver div { background: var(--card); border-radius: 22px; padding: 24px; }
.deliver b { display: block; font-size: 16px; margin: 8px 0 6px; }
.deliver p { margin: 0; font-size: 14px; color: #4A4A4D; }

/* CTA band */
.band { margin-top: 56px; background: var(--ink); color: #fff; border-radius: 28px; padding: 32px 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band p { margin: 0; font-size: 18px; font-weight: 600; }
.band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.band .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* service */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc > div { background: var(--card); border-radius: 22px; padding: 32px; }
.svc h3 { font-size: 24px; margin: 10px 0 12px; line-height: 1.5; }
.svc p { margin: 0; color: #4A4A4D; }
.svc ul { list-style: none; padding: 0; margin: 14px 0 0; }
.svc li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.svc li::before { content: "●"; color: var(--red); font-size: 8px; margin-right: 12px; vertical-align: 3px; }
.other { margin-top: 18px; color: var(--gray); font-size: 15px; }

/* flow：時間軸 */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 40px; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; border-top: 1.5px dotted var(--ink); }
.flow > div { position: relative; }
.flow > div::before { content: ""; position: absolute; top: -34px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); }
.flow > div:last-child::before { background: var(--red); }
.flow .mono { display: block; margin-bottom: 6px; }
.flow h3 { margin: 0 0 8px; font-size: 20px; }
.flow p { margin: 0; font-size: 15px; color: #4A4A4D; }

/* team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team > div { background: var(--card); border-radius: 22px; padding: 32px; }
.team h3 { font-size: 26px; margin: 8px 0 14px; }
.team p { margin: 0; color: #4A4A4D; }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 56px 24px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); position: absolute; right: 4px; top: 20px; font-size: 22px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--red); }
.faq details p { margin: 0 0 24px; color: #4A4A4D; max-width: 760px; }

/* contact */
.contact { padding: 40px 0 128px; }
.contact-box { background: var(--ink); color: #fff; border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-box h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.42; margin: 14px 0 18px; }
.contact-box p { color: #C8C8CB; margin: 0; }
.contact-box .mono { color: #8E8E92; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form label { display: block; font-size: 13px; margin-bottom: 6px; color: #C8C8CB; }
.form .req { color: #FF6A60; margin-left: 6px; font-size: 11px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input:not([type]), .form textarea { width: 100%; background: #1A1A1C; border: 1px solid #2E2E31; border-radius: 14px; color: #fff; padding: 13px 16px; font: inherit; font-size: 16px; transition: border-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: #fff; }
.form .full { grid-column: 1 / -1; }
.form textarea { min-height: 110px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #C8C8CB; }
.check input { appearance: none; width: 20px; height: 20px; border: 1px solid #5A5A5E; border-radius: 6px; margin: 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check a { color: #fff; }
.form .btn { background: #fff; color: var(--ink); border-color: #fff; }
.form .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.form-msg { grid-column: 1 / -1; min-height: 1.5em; margin: 0; }

/* footer */
.site-foot { padding: 0 0 48px; }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.site-foot img { height: 28px; width: auto; }
.site-foot nav { display: flex; gap: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.site-foot a { text-decoration: none; }
.site-foot .copy { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }
.bigmark { font-family: var(--dot); font-weight: 800; font-size: clamp(80px, 19vw, 300px); line-height: .8; letter-spacing: -.03em; color: var(--ink); margin: 0 0 32px; user-select: none; }

/* 下層ページ */
.page-hero { padding: 72px 0 32px; }
.page-hero h1 { font-family: var(--dot); font-weight: 800; font-size: clamp(56px, 9vw, 128px); line-height: .9; margin: 0; letter-spacing: -.02em; }
.page-hero .jp { font-size: 20px; font-weight: 600; margin-top: 18px; }
.doc { padding: 24px 0 128px; }
.doc .card { background: var(--card); border-radius: 28px; padding: 16px 40px; max-width: 900px; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { text-align: left; padding: 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 0; }
.doc th { width: 200px; padding-right: 20px; font-weight: 600; }
.doc td ul { margin: 0; padding-left: 1.1em; }
.doc td small { display: block; color: var(--gray); font-size: 14px; }
.doc h2 { font-size: 20px; margin: 44px 0 10px; }
.doc h2:first-child { margin-top: 20px; }

/* スマホの固定ボタン */
.sticky-cta { display: none; }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker .track, .live::before, .q .caret { animation: none !important; }
}

@media (max-width: 960px) {
  .wrap { padding: 0 16px; }
  .site-head .wrap { height: 60px; }
  .site-head img { height: 20px; }
  .site-head nav a:not(.pill) { display: none; }
  .hero { padding: 28px 0 64px; }
  .hero-grid, .sec-title, .pains, .pain.wide, .svc, .team, .contact-box, .form { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: clamp(28px, 8.2vw, 36px); }
  .panel { min-height: 0; border-radius: 22px; padding: 22px 20px; }
  .count { font-size: 96px; margin-top: 8px; }
  .btn { width: 100%; justify-content: center; }
  section.block { padding: 80px 0; }
  .sec-title { gap: 16px; margin-bottom: 32px; }
  .srow { grid-template-columns: 1fr auto; gap: 10px 16px; padding: 20px 0; }
  .srow .row-dots { grid-column: 1 / -1; order: 3; }
  .srow .note { grid-column: 1 / -1; order: 4; margin: 0; }
  .srow .num { font-size: 40px; }
  .sample { padding: 4px 20px; border-radius: 22px; }
  .deliver { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; gap: 28px; padding-top: 0; padding-left: 32px; }
  .flow::before { top: 6px; bottom: 6px; left: 6px; right: auto; border-top: 0; border-left: 1.5px dotted var(--ink); }
  .flow > div::before { top: 6px; left: -32px; }
  .band { padding: 24px; border-radius: 22px; }
  .contact-box { padding: 32px 20px; border-radius: 24px; gap: 28px; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .doc .card { padding: 8px 20px; }
  .doc th, .doc td { display: block; width: auto; padding: 14px 0 0; border: 0; }
  .doc td { padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; transform: translateY(140%); transition: transform .4s var(--ease); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
}
.count .kai { font-family: var(--jp); font-weight: 600; font-size: .7em; margin-left: 4px; }

/* v3.1：同じ形のカードを並べず、1枚の中を罫線で区切る */
.deliver { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--card); border-radius: 28px; padding: 8px 0; }
.deliver > div { background: none; border-radius: 0; padding: 24px 28px; }
.deliver > div + div { border-left: 1px solid var(--line); }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--card); border-radius: 28px; }
.team > div { background: none; border-radius: 0; padding: 36px; }
.team > div + div { border-left: 1px solid var(--line); }
.form label.check { display: flex; margin: 0; }
.hero-grid > *, .sec-title > *, .srow > * { min-width: 0; }
@media (max-width: 960px) {
  .deliver, .team { grid-template-columns: 1fr; border-radius: 22px; }
  .deliver > div + div, .team > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .deliver > div, .team > div { padding: 22px 20px; }
  .dots { max-width: 340px; gap: 6px; }
}

/* v3.2 細部 */
.panel { min-height: 0; }
.count { margin-top: 18px; }
.q { min-height: 3.4em; }
.site-head .wrap { position: relative; }
.panel .kind { margin-top: 18px; text-transform: none; }
.panel .q { margin-top: 6px; }
