/* lynkr サイト（トップ・ログイン・新規登録・ドキュメント・404）
   セクションごとに大胆な色面、極太ゴシック、ピル型のボタンと入力欄。 */
:root {
  --green: #173f2c;
  --lime: #d4f04c;
  --pink: #ffc8e1;
  --pink-strong: #ffb3d9;
  --plum: #3b0b2b;
  --wine: #6f1230;
  --blue: #2550d9;
  --cream: #f5f1e8;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #6b6b6b;
  --gray: #efefec;
  --line: #e2ded4;
  --ok: #1d7a4c;
  --ng: #c63b28;
  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
h1, h2, h3 { font-weight: 900; letter-spacing: -.02em; margin: 0; word-break: auto-phrase; }
.nb { display: inline-block; }

/* ピル型ボタン */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font: 700 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .15s ease, filter .15s ease, background-color .15s ease;
}
.pill:hover { transform: translateY(-2px); filter: brightness(.96); }
.pill:active { transform: translateY(0); }
.pill:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pill-xl { height: 60px; padding: 0 32px; font-size: 17px; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-gray { background: var(--gray); color: var(--ink); }
.pill-pink { background: var(--pink-strong); color: var(--plum); }
.pill-plum { background: var(--plum); color: var(--pink); }
.pill-lime { background: var(--lime); color: var(--ink); }
.pill-block { width: 100%; }

/* ロゴ */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 24px; letter-spacing: -.04em; }
.logo-mark { flex: none; }

/* 浮いたナビゲーション */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none; }
.nav-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1240px; margin: 0 auto; padding: 9px 9px 9px 22px;
  border-radius: 999px; background: #fff; box-shadow: 0 10px 30px -12px rgb(0 0 0 / .25);
  pointer-events: auto;
}
.site-nav { display: flex; gap: 6px; }
.site-nav a { padding: 10px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { background: var(--gray); color: var(--ink); }
.nav-actions { display: flex; gap: 8px; }

/* 色面のバンド */
.band { padding: 128px 0; overflow-x: clip; }
.band p { word-break: auto-phrase; }
.band-green { background: var(--green); color: #fff; }
.band-pink { background: var(--pink); color: var(--plum); }
.band-blue { background: var(--blue); color: #fff; }
.band-wine { background: var(--wine); color: var(--pink); }
.band-cream { background: var(--cream); color: var(--ink); }
.band-lime { background: var(--lime); color: var(--ink); }
.band-plum { background: var(--plum); color: var(--pink); }
.band h2 { font-size: clamp(38px, 4.8vw, 70px); line-height: 1.08; }
.band p { font-size: 18px; }

/* ヒーロー */
.hero { padding: 168px 0 110px; min-height: 860px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 48px; align-items: center; }
.hero h1 { color: var(--lime); font-size: clamp(54px, 7.6vw, 116px); line-height: 1.02; letter-spacing: -.035em; }
.hero-lead { max-width: 30em; margin: 30px 0 0; font-size: 19px; color: #e6efe9; }

.claim { display: flex; gap: 10px; max-width: 620px; margin-top: 38px; }
.claim-field { display: flex; flex: 1; min-width: 0; align-items: center; height: 60px; padding: 0 20px; border-radius: 14px; background: #fff; color: var(--ink); }
.claim-field:focus-within { box-shadow: 0 0 0 3px var(--lime); }
.claim-prefix { font-weight: 700; color: var(--muted); }
.claim-field input { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 0 0 2px; border: 0; outline: 0; background: transparent; font: 700 17px/1 var(--font); color: var(--ink); }
.claim .pill { height: 60px; }

/* スマホ型の見本（実際の公開ページを縮小表示）。--pw は画面の内寸（px の数値） */
.phone { --pw: 280; --pb: 10px; position: relative; flex: none; width: calc(var(--pw) * 1px + var(--pb) * 2); height: calc(var(--pw) * 2px + var(--pb) * 2); overflow: hidden; border: var(--pb) solid var(--ink); border-radius: 44px; background: #fff; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .55); }
.phone iframe { position: absolute; top: 0; left: 0; width: 375px; height: 750px; border: 0; transform-origin: 0 0; transform: scale(calc(var(--pw) / 375)); pointer-events: none; }

.hero-art { position: relative; height: 660px; display: grid; place-items: center; }
.phone-hero { transform: rotate(3deg); z-index: 2; }
.float { position: absolute; z-index: 3; border-radius: 24px; box-shadow: 0 22px 44px -20px rgb(0 0 0 / .55); }
.float-photo { object-fit: cover; border: 6px solid #fff; }
.f1 { top: 18px; left: -6px; width: 190px; height: 240px; transform: rotate(-8deg); z-index: 1; }
.f2 { right: -18px; bottom: 26px; width: 240px; height: 160px; transform: rotate(6deg); z-index: 1; }
.chip-stat { top: 108px; right: -14px; display: grid; gap: 2px; padding: 16px 18px; background: #fff; color: var(--ink); transform: rotate(4deg); }
.chip-stat-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.chip-stat-value { font-size: 30px; font-weight: 900; line-height: 1.1; color: var(--green); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; margin-top: 6px; }
.bars i { display: block; width: 10px; border-radius: 4px 4px 2px 2px; background: var(--lime); }
.bars i:last-child { background: var(--green); }
.chip-social { left: -20px; bottom: 150px; display: flex; gap: 14px; padding: 14px 18px; border-radius: 999px; background: #fff; color: var(--ink); transform: rotate(-5deg); }
.chip-link { left: 6px; bottom: 36px; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; background: var(--lime); color: var(--ink); transform: rotate(-3deg); }
.chip-link img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.chip-link span { display: grid; line-height: 1.35; }
.chip-link small { font-size: 12px; color: #3d4a17; }

/* 2カラム */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split-copy p { margin: 24px 0 34px; max-width: 30em; }
.fan { position: relative; height: 560px; }
.phone-fan { --pw: 220; --pb: 8px; position: absolute; top: 50%; border-radius: 36px; }
.p-left { left: 0; transform: translateY(-46%) rotate(-9deg); }
.p-mid { left: 50%; z-index: 2; transform: translate(-50%, -52%); }
.p-right { right: 0; transform: translateY(-46%) rotate(9deg); }

/* 対応サービス */
.center { text-align: center; }
.center-lead { max-width: 34em; margin: 22px auto 0; }
.service-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; margin: 48px auto 0; padding: 0; list-style: none; }
.service-cloud li { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; }
.service-cloud li.more { background: var(--lime); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; text-align: left; }
.card { padding: 34px 30px; border-radius: 30px; background: #fff; color: var(--ink); }
.card-num { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--lime); font-weight: 900; font-size: 14px; }
.card h3 { margin-top: 18px; font-size: 24px; line-height: 1.3; }
.card p { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-2); }

/* アクセス解析のイメージ */
.stats-card { padding: 30px; border-radius: 34px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -28px rgb(0 0 0 / .6); }
.stats-head { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 18px; }
.stats-range { padding: 6px 14px; border-radius: 999px; background: var(--gray); font-size: 13px; font-weight: 700; }
.stats-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.stats-kpis div { padding: 14px 16px; border-radius: 18px; background: var(--cream); }
.stats-kpis small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.stats-kpis strong { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.stats-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 24px; padding: 0 4px; }
.stats-bars span { flex: 1; border-radius: 10px 10px 4px 4px; background: var(--pink-strong); }
.stats-bars span.is-today { background: var(--wine); }
.stats-refs { margin: 22px 0 0; padding: 0; list-style: none; }
.stats-refs li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 700; }
.stats-refs b { margin-left: auto; }
.stats-note { margin: 12px 0 0 !important; font-size: 12px !important; color: var(--muted); text-align: right; }

/* AI のチャット */
.chat { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 34px; background: var(--ink); color: #fff; }
.bubble { max-width: 88%; padding: 16px 20px; border-radius: 24px; font-size: 16px; line-height: 1.7; }
.bubble-user { align-self: flex-end; background: var(--lime); color: var(--ink); border-bottom-right-radius: 8px; font-weight: 700; }
.bubble-tool { align-self: center; padding: 8px 16px; border: 1px solid #3a3a3a; border-radius: 999px; font: 500 13px/1.4 var(--mono); color: #b9b9b9; }
.bubble-ai { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 8px; }
.chat-cmd { margin-top: 8px; padding: 14px 18px; border-radius: 16px; background: #1e1e1e; font: 400 13px/1.6 var(--mono); color: #c9c9c9; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 30px; padding: 0; list-style: none; }
.tags li { padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 14px; }

/* 作例 */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 20px 26px; border-radius: 30px; background: #fff; }
.person img { width: 104px; height: 104px; margin-bottom: 12px; border-radius: 50%; object-fit: cover; }
.person strong { font-size: 19px; font-weight: 900; }
.person span { font-size: 14px; color: var(--muted); }
.person code { margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: var(--cream); font: 700 13px/1.4 var(--font); }

/* よくある質問 */
.faq { max-width: 860px; }
.faq h2 { text-align: center; }
.faq-list { margin-top: 44px; }
.faq details { margin-bottom: 12px; padding: 0 28px; border-radius: 22px; background: #fff; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; font-weight: 900; font-size: 19px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gray); font-weight: 700; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: var(--lime); }
.faq details p { margin: 0; padding: 0 0 24px; font-size: 16px; color: var(--ink-2); }

/* 最後の CTA */
.final h2 { color: var(--lime); font-size: clamp(44px, 6vw, 88px); }
.final .claim { margin: 44px auto 0; }

/* フッター */
.site-footer { padding: 0 0 40px; background: var(--plum); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding: 48px; border-radius: 36px; background: #fff; }
.footer-brand p { margin: 12px 0 0; font-weight: 700; color: var(--muted); }
.footer-links { display: flex; gap: 72px; }
.footer-links h3 { margin-bottom: 12px; font-size: 15px; }
.footer-links a { display: block; padding: 4px 0; text-decoration: none; color: var(--ink-2); font-size: 15px; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { padding-top: 22px; font-size: 13px; color: var(--pink); text-align: center; }

/* ログイン・新規登録・パスワード再設定・404 */
body.auth { min-height: 100vh; background: var(--green); }
.auth-wrap { display: grid; place-items: center; min-height: 100vh; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 460px; padding: 40px 36px 34px; border-radius: 32px; background: #fff; box-shadow: 0 30px 70px -30px rgb(0 0 0 / .6); }
.auth-card h1 { margin: 26px 0 22px; font-size: 32px; line-height: 1.25; }
.auth-lead { margin: -8px 0 20px; font-size: 15px; color: var(--ink-2); }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span:first-child { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input { width: 100%; height: 54px; padding: 0 18px; border: 2px solid transparent; border-radius: 14px; background: var(--gray); font: 500 16px/1 var(--font); color: var(--ink); outline: none; transition: border-color .15s, background-color .15s; }
.field input:focus { border-color: var(--ink); background: #fff; }
.input-prefix { display: flex; align-items: center; height: 54px; border: 2px solid transparent; border-radius: 14px; background: var(--gray); transition: border-color .15s, background-color .15s; }
.input-prefix:focus-within { border-color: var(--ink); background: #fff; }
.input-prefix span { padding-left: 18px; font-weight: 700; color: var(--muted); }
.input-prefix input { flex: 1; min-width: 0; height: 100%; padding-left: 2px; border: 0 !important; background: transparent !important; font-weight: 700; }
.field-help { font-size: 13px; color: var(--muted); }
.field-help.ok { color: var(--ok); font-weight: 700; }
.field-help.ng { color: var(--ng); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.2); }
.btn-primary { background: var(--ink); }
.btn-block { width: 100%; }
.alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: var(--gray); font-size: 14.5px; }
.alert-error { background: #fdecea; color: #a52a1c; }
.alert-ok { background: #e7f5ec; color: #17633d; }
.auth-forgot { margin: 14px 0 0; font-size: 14px; text-align: right; }
.auth-forgot a { color: var(--muted); }
.auth-switch { margin: 22px 0 0; font-size: 14.5px; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--ink); font-weight: 700; }
.cf-turnstile { min-height: 65px; }
.notfound { text-align: center; }
.notfound .logo { justify-content: center; }
.notfound-code { margin: 24px 0 0; font-size: 84px; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--green); }
.notfound h1 { margin-top: 8px; }
.notfound .btn { margin-top: 12px; }

/* ドキュメント */
body.docs { background: var(--cream); }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 128px; padding-bottom: 96px; }
.docs-toc { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 130px); overflow-y: auto; padding: 14px; border-radius: 22px; background: #fff; font-size: 14px; }
.docs-toc a { padding: 7px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); }
.docs-toc a:hover { background: var(--gray); color: var(--ink); }
.docs-toc .toc-l3 { padding-left: 24px; font-size: 13px; color: var(--muted); }
.prose { min-width: 0; max-width: 860px; padding: 44px 48px; border-radius: 32px; background: #fff; font-size: 15.5px; }
.prose h1 { margin: 0 0 20px; font-size: 40px; }
.prose h2 { margin: 52px 0 14px; font-size: 27px; scroll-margin-top: 110px; }
.prose h3 { margin: 30px 0 10px; font-size: 19px; scroll-margin-top: 110px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--blue); font-weight: 700; }
.prose code { padding: 2px 7px; border-radius: 6px; background: var(--gray); font: 400 .88em var(--mono); overflow-wrap: anywhere; }
.prose pre { margin: 16px 0; padding: 18px 20px; overflow-x: auto; border-radius: 18px; background: var(--ink); }
.prose pre code { padding: 0; background: none; color: #eaeaea; font-size: 13px; line-height: 1.75; overflow-wrap: normal; }
.table-wrap { width: 100%; overflow-x: auto; }
.prose table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 900; white-space: nowrap; }

/* レスポンシブ */
@media (max-width: 1120px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .split-copy { text-align: center; }
  .split-copy p { margin-left: auto; margin-right: auto; }
  .tags { justify-content: center; }
  .fan { max-width: 620px; width: 100%; margin: 0 auto; }
  .chat { max-width: 620px; width: 100%; margin: 0 auto; }
  .stats-card { max-width: 560px; width: 100%; margin: 0 auto; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hide-md { display: none; }
  .cards3 { grid-template-columns: minmax(0, 1fr); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 640px) {
  .band { padding: 88px 0; }
  .band p { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero { padding: 128px 0 72px; }
  .hero-lead { font-size: 16.5px; }
  .claim { flex-direction: column; }
  .claim-field { flex: none; }
  .claim .pill { width: 100%; }
  .hero-art { height: 560px; }
  .phone-hero { --pw: 230; }
  .f1 { width: 130px; height: 170px; left: -4px; }
  .f2 { width: 170px; height: 116px; right: -8px; }
  .chip-stat { right: -6px; top: 70px; padding: 12px 14px; }
  .chip-stat-value { font-size: 24px; }
  .chip-social { left: -6px; bottom: 120px; gap: 10px; padding: 12px 14px; }
  .chip-link { left: 0; bottom: 22px; }
  .fan { height: 420px; }
  .phone-fan { --pw: 150; --pb: 6px; border-radius: 26px; }
  .p-left { left: 4px; }
  .p-right { right: 4px; }
  .stats-card { padding: 22px; border-radius: 28px; }
  .stats-kpis { gap: 8px; }
  .stats-kpis div { padding: 12px; }
  .stats-kpis strong { font-size: 22px; }
  .people { gap: 12px; }
  .person { padding: 22px 12px 20px; border-radius: 24px; }
  .person img { width: 76px; height: 76px; }
  .faq details { padding: 0 20px; }
  .faq summary { font-size: 16.5px; }
  .footer-inner { padding: 32px 24px; border-radius: 28px; }
  .footer-links { gap: 40px; }
  .prose { padding: 28px 22px; border-radius: 24px; }
  .auth-card { padding: 32px 22px 26px; border-radius: 26px; }
}
@media (max-width: 420px) {
  .hide-sm { display: none; }
  .nav-pill { padding-left: 16px; }
  .logo { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .btn { transition: none; }
}
