:root {
  --brand: #00668f;
  --brand-deep: #0d2e40;
  --paper: #f3f7f8;
  --white: #ffffff;
  --ink: #1a2b36;
  --muted: #556773;
  --line: #d6e1e6;
  --mkt: #a86700;
  --mkt-soft: #fff3d9;
  --mkt-line: #f0c46a;
  --biz: #0b7a62;
  --biz-soft: #e0f2ec;
  --biz-line: #8fcdb9;
  --navy: #0f2340;
  --gold: #c9a24a;
  --chat-bg: #a9c0db;
  --bubble-user: #8fe06a;
  --radius-lg: 28px;
  --radius: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 900; letter-spacing: .01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---- Buttons ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--brand); color: var(--white);
  border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: background .2s;
}
.button:hover { background: var(--brand-deep); }
.button.small { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand img { width: 150px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav nav a:hover { color: var(--brand); }

/* ---- Chip motif (section labels styled as LINE quick replies) ---- */
.chip-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 16px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand);
  font-size: .9rem; font-weight: 700;
}
.track-mkt .chip-label { color: var(--mkt); }
.track-biz .chip-label { color: var(--biz); }

/* ---- Sections ---- */
.section { padding: 104px 0; }
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
.section-lead { margin-top: 18px; max-width: 40em; color: var(--muted); font-size: 1.05rem; }
.note { margin-top: 12px; color: var(--muted); font-size: .85rem; }
.fig-note { color: var(--muted); font-size: .8rem; }

/* ---- Hero ---- */
.hero { background: var(--white); padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.by { color: var(--brand); font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); color: var(--brand-deep); }
.lead { margin-top: 22px; font-size: 1.1rem; color: var(--muted); max-width: 30em; }
.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 28px; }
.entry {
  display: block; padding: 18px 20px;
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
  border: 1.5px solid; transition: transform .2s;
}
.entry:hover { transform: translateY(-2px); }
.entry strong { display: block; font-size: 1.05rem; }
.entry span { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); line-height: 1.6; }
.entry-mkt { background: var(--mkt-soft); border-color: var(--mkt-line); }
.entry-mkt strong { color: var(--mkt); }
.entry-biz { background: var(--biz-soft); border-color: var(--biz-line); }
.entry-biz strong { color: var(--biz); }

/* ---- Phone / chat ---- */
.hero-phone { margin: 0; justify-self: center; width: min(360px, 100%); }
.hero-phone figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: .8rem; }
.phone {
  border: 10px solid var(--brand-deep);
  border-radius: 40px;
  overflow: hidden;
  background: var(--chat-bg);
  box-shadow: 0 24px 60px -24px rgba(13, 46, 64, .45);
}
.phone-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--brand-deep); color: var(--white); font-size: .9rem;
}
.oa-avatar {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--white); color: var(--brand); font-weight: 900; font-size: .85rem;
}
.chat { height: 420px; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  max-width: 82%; padding: 9px 14px; border-radius: 18px;
  font-size: .9rem; line-height: 1.6; white-space: pre-line;
}
.msg.bot { align-self: flex-start; background: var(--white); border-top-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--bubble-user); border-top-right-radius: 4px; }
.msg.photo::before { content: ""; display: block; width: 120px; height: 76px; margin-bottom: 6px; border-radius: 8px; background: linear-gradient(135deg, #6b8aa8, #c4d3e2); }
.msg.sys {
  align-self: center; max-width: 92%; text-align: center;
  background: rgba(13, 46, 64, .78); color: var(--white); font-size: .78rem; border-radius: 999px; padding: 6px 14px;
}
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.qr {
  font: inherit; font-size: .85rem; font-weight: 700;
  padding: 7px 14px; border-radius: 999px;
  background: var(--white); color: var(--brand); border: 1.5px solid var(--brand);
  cursor: pointer;
}
button.qr:hover:not(:disabled) { background: #e6f1f6; }
button.qr:disabled { cursor: default; opacity: .55; }
.qr.on, button.qr.on:disabled { background: var(--brand); color: var(--white); opacity: 1; }
.quick.static .qr { cursor: default; }
.phone-foot { background: var(--white); padding: 12px 16px; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---- Platform diagram ---- */
.platform { margin-top: 48px; max-width: 760px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pillar {
  display: block; padding: 22px 18px 26px; border-radius: var(--radius) var(--radius) 0 0;
  text-decoration: none; color: var(--ink); border: 1.5px solid; border-bottom: 0;
}
.pillar b { display: block; font-size: 1.1rem; }
.pillar span { font-size: .85rem; color: var(--muted); }
.pillar-mkt { background: var(--mkt-soft); border-color: var(--mkt-line); }
.pillar-mkt b { color: var(--mkt); }
.pillar-biz { background: var(--biz-soft); border-color: var(--biz-line); }
.pillar-biz b { color: var(--biz); }
.pillar-sa { background: var(--white); border-color: var(--line); }
.base {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px; border-radius: 0 0 var(--radius) var(--radius);
  background: var(--brand); color: var(--white);
}
.base b { font-size: 1.3rem; }
.base span { font-size: .9rem; opacity: .9; }

/* ---- Concept: tap instead of type ---- */
.concept {
  margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.concept h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); color: var(--brand-deep); margin-bottom: 16px; }
.concept-copy p + p { margin-top: 12px; }
.concept-copy p { color: var(--muted); }
.concept-dl { margin: 24px 0 0; display: grid; gap: 10px; }
.concept-dl div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.concept-dl dt { font-weight: 700; color: var(--brand); }
.concept-dl dd { margin: 0; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare .fig-note { grid-column: 1 / -1; text-align: right; }
.compare-col { border-radius: var(--radius); padding: 14px; background: var(--chat-bg); display: flex; flex-direction: column; }
.compare-title { font-weight: 700; font-size: .9rem; color: var(--brand-deep); margin-bottom: 10px; }
.mini-chat { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mini-chat .m { padding: 7px 11px; border-radius: 14px; font-size: .8rem; line-height: 1.55; }
.mini-chat .m.user { align-self: flex-end; background: var(--bubble-user); }
.mini-chat .m.bot { align-self: flex-start; background: var(--white); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { padding: 3px 10px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--brand); color: var(--brand); font-size: .75rem; font-weight: 700; }
.opt.on { background: var(--brand); color: var(--white); }
.compare-note { margin-top: 12px; font-size: .78rem; line-height: 1.5; color: var(--brand-deep); background: rgba(255, 255, 255, .7); padding: 6px 8px; border-radius: 8px; }
.is-free .compare-note { color: #8a3b2b; }

/* ---- Marketing ---- */
.track-mkt { background: var(--white); border-top: 6px solid var(--mkt-line); }
.track-mkt h2 { color: var(--brand-deep); }
.features { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--mkt-soft); }
.feature h3 { font-size: 1.15rem; color: var(--mkt); margin-bottom: 10px; }
.feature p { color: var(--ink); font-size: .95rem; }
.feature .example { margin-top: 14px; padding: 10px 14px; background: var(--white); border-radius: 10px; font-size: .88rem; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.timeline li { background: var(--white); border-radius: 10px; padding: 8px 10px; font-size: .85rem; line-height: 1.5; }
.timeline b { display: block; color: var(--mkt); font-size: .8rem; }
.menus { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menus div { background: var(--white); border-radius: 10px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.menus small { grid-column: 1 / -1; color: var(--mkt); font-weight: 700; }
.menus span { background: var(--paper); border-radius: 6px; padding: 8px 4px; text-align: center; font-size: .78rem; line-height: 1.3; }
.record {
  margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  padding: 28px 32px; border: 1.5px solid var(--mkt-line); border-radius: var(--radius);
}
.record-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--mkt); line-height: 1.2; }
.record-num span { display: block; font-size: .9rem; color: var(--ink); font-weight: 700; }
.record-note { font-size: .85rem; color: var(--muted); }

/* ---- Business ---- */
.track-biz { border-top: 6px solid var(--biz-line); }
.track-biz h2 { color: var(--brand-deep); }
.roles { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.roles li { position: relative; padding: 20px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.roles li:not(:last-child)::after {
  content: ""; position: absolute; right: -22px; top: 50%; width: 16px; height: 16px;
  border-top: 3px solid var(--biz); border-right: 3px solid var(--biz); transform: translateY(-50%) rotate(45deg);
}
.roles b { display: block; color: var(--biz); font-size: 1.05rem; }
.roles span { font-size: .85rem; color: var(--muted); line-height: 1.6; display: block; margin-top: 4px; }

.explorer { margin-top: 64px; padding: 40px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.explorer-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.explorer-head h3 { font-size: 1.5rem; color: var(--brand-deep); }
.tag-idea { padding: 2px 12px; border-radius: 6px; background: var(--paper); border: 1px dashed var(--muted); color: var(--muted); font-size: .8rem; font-weight: 700; }
.scene-tabs { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scene-group { display: flex; flex-direction: column; gap: 8px; }
.scene-group > p { font-size: .8rem; font-weight: 700; color: var(--biz); }
.scene-tabs button {
  font: inherit; text-align: left; padding: 10px 14px; border-radius: 10px; cursor: pointer;
  background: var(--paper); border: 1.5px solid transparent; color: var(--ink); font-size: .92rem; font-weight: 500;
}
.scene-tabs button:hover { border-color: var(--biz-line); }
.scene-tabs button[aria-selected="true"] { background: var(--biz); color: var(--white); font-weight: 700; }
.scene-panel { margin-top: 28px; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; padding-top: 28px; border-top: 1px solid var(--line); }
.phone-sm { border-width: 8px; border-radius: 32px; }
.phone-sm .chat { height: auto; min-height: 340px; overflow: visible; }
.scene-who { font-size: .85rem; color: var(--muted); }
.scene-body h4 { font-size: 1.4rem; color: var(--biz); margin-top: 4px; }
.flow { list-style: none; counter-reset: f; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.flow li { counter-increment: f; position: relative; padding: 10px 14px 10px 48px; background: var(--biz-soft); border-radius: 10px; font-size: .95rem; line-height: 1.6; }
.flow li::before { content: counter(f); position: absolute; left: 14px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--biz); color: var(--white); font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.scene-dl { margin: 22px 0 0; display: grid; gap: 10px; }
.scene-dl div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.scene-dl dt { font-weight: 700; color: var(--biz); font-size: .9rem; }
.scene-dl dd { margin: 0; }

/* ---- Case (deliberately different look) ---- */
.case { background: var(--navy); color: #e8edf4; padding: 112px 0; }
.case-badge {
  display: inline-block; padding: 6px 18px; background: var(--gold); color: var(--navy);
  font-weight: 900; border-radius: 4px; margin-bottom: 22px;
}
.case h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); color: var(--white); }
.case-meta { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 36px; }
.case-meta div { display: flex; gap: 10px; }
.case-meta dt { color: var(--gold); font-weight: 700; }
.case-meta dd { margin: 0; }
.ba { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid rgba(201, 162, 74, .5); border-radius: var(--radius); overflow: hidden; }
.ba-col { padding: 28px 32px; }
.ba-col h3 { font-size: 1.15rem; margin-bottom: 16px; color: #a9b6c8; }
.ba-after { background: rgba(201, 162, 74, .12); }
.ba-after h3 { color: var(--gold); }
.ba-row { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.ba-who { font-weight: 700; color: var(--white); }
.ba-steps { margin: 0; padding-left: 1.3em; }
.ba-steps li { line-height: 1.7; }
.case-flow { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.case-flow li { position: relative; padding: 16px 18px; border: 1.5px solid var(--gold); border-radius: 10px; font-weight: 900; color: var(--white); }
.case-flow li span { display: block; font-weight: 400; font-size: .85rem; color: #c9d3e0; }
.case-flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -22px; top: 50%; width: 14px; height: 14px;
  border-top: 3px solid var(--gold); border-right: 3px solid var(--gold); transform: translateY(-50%) rotate(45deg);
}
.case-fig-note { margin-top: 10px; font-size: .8rem; color: #a9b6c8; }
.case-results { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-results li { border-top: 3px solid var(--gold); padding-top: 14px; font-size: .95rem; }
.case-results b { display: block; color: var(--gold); font-size: 1.15rem; margin-bottom: 4px; }

/* ---- Bridge ---- */
.bridge { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.bridge li {
  position: relative; padding: 18px 16px 18px 28px; font-weight: 700; line-height: 1.5;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}
.bridge li:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-left: 18px; }
.bridge small { display: block; font-weight: 400; font-size: .78rem; }
.b-mkt { background: var(--mkt-soft); color: var(--mkt); }
.b-mid { background: #eef3dd; color: #4f6a1e; }
.b-biz { background: var(--biz-soft); color: var(--biz); }

/* ---- Steps ---- */
.steps-sec { background: var(--white); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 28px; border-radius: var(--radius); border: 1.5px solid var(--line); display: flex; flex-direction: column; }
.steps li:nth-child(1) { border-top: 6px solid #7fb3c9; }
.steps li:nth-child(2) { border-top: 6px solid #3f8fb0; }
.steps li:nth-child(3) { border-top: 6px solid var(--brand); }
.step-no { color: var(--brand); font-weight: 900; font-size: .9rem; }
.steps h3 { font-size: 1.5rem; color: var(--brand-deep); margin: 4px 0 12px; }
.steps p { font-size: .93rem; color: var(--muted); }
.steps .benefit { margin-top: auto; padding-top: 16px; color: var(--brand-deep); font-weight: 700; font-size: 1rem; }
.steps-example { margin-top: 24px; padding: 14px 18px; background: var(--paper); border-radius: 10px; font-size: .92rem; }
.steps-example b { color: var(--brand); margin-right: 10px; }

/* ---- kintone ---- */
.kintone-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.k-values { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.k-values li { padding: 16px 18px; background: var(--white); border-radius: 12px; border-left: 4px solid #f4b400; font-size: .88rem; color: var(--muted); line-height: 1.6; }
.k-values b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 4px; }
.k-side { display: grid; gap: 20px; align-content: start; }
.k-box { padding: 26px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.k-box h3 { font-size: 1.15rem; color: var(--brand-deep); margin-bottom: 10px; }
.k-box p + p { margin-top: 10px; }
.k-scope { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .9rem; }
.k-scope caption { text-align: left; font-weight: 700; padding-bottom: 8px; color: var(--brand-deep); }
.k-scope th, .k-scope td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.k-scope th { font-weight: 500; width: 55%; }
.k-scope tr:last-child td { color: #8a5a00; }

/* ---- SalesAnnie ---- */
.sa { padding: 64px 0; background: var(--white); border-top: 1px solid var(--line); }
.sa-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.sa h2 { color: var(--brand-deep); margin-bottom: 8px; }
.sa p:not(.chip-label) { max-width: 40em; color: var(--muted); }

/* ---- FAQ ---- */
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "＋"; position: absolute; right: 4px; top: 20px; color: var(--brand); }
.faq-list details[open] summary::after { content: "－"; }
.faq-list details p { padding: 0 0 20px; color: var(--muted); }

/* ---- Contact ---- */
.contact { background: var(--brand); color: var(--white); padding: 104px 0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.contact-grid > div > p { margin-top: 18px; opacity: .92; }
.contact-card { background: var(--white); color: var(--ink); padding: 36px; border-radius: var(--radius-lg); }
.contact-card h3 { font-size: 1.3rem; color: var(--brand-deep); margin-bottom: 8px; }
.contact-card .button { margin-top: 20px; width: 100%; }
.contact-mail { margin-top: 18px; font-size: .9rem; }

.booking-form { margin-top: 16px; display: grid; gap: 14px; }
.form-required { font-size: .8rem; color: var(--muted); }
.booking-form i { font-style: normal; color: #c0392b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: .88rem; font-weight: 700; color: var(--brand-deep); padding: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; line-height: 1.5;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 102, 143, .15); }
.field input::placeholder, .field textarea::placeholder { color: #9aa8b2; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choice {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 14px; border: 1.5px solid var(--brand); border-radius: 999px;
  color: var(--brand); font-size: .88rem; font-weight: 700;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { background: var(--brand); color: var(--white); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.agree { display: block; position: relative; padding-left: 26px; font-size: .85rem; line-height: 1.6; }
.agree input { position: absolute; top: 0; left: 0; margin: calc((.85rem * 1.6 - 16px) / 2) 0 0; width: 16px; height: 16px; }
.form-error { padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #a12a1e; font-size: .88rem; font-weight: 700; }
.booking-form .button { margin-top: 4px; width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.booking-form .button:disabled { opacity: .6; cursor: wait; }
.booking-form .note { margin-top: 0; }
.booking-done { margin-top: 16px; padding: 22px; border-radius: var(--radius); background: var(--biz-soft); }
.booking-done:focus { outline: none; }
.booking-done-title { font-weight: 900; font-size: 1.15rem; color: var(--biz); margin-bottom: 6px; }

/* ---- References / footer ---- */
.refs { padding: 48px 0; font-size: .85rem; color: var(--muted); }
.refs h2 { font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.refs ul { margin: 0 0 12px; padding-left: 1.2em; }
.refs a { word-break: break-all; }
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 32px 0; font-size: .85rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { width: 120px; margin-bottom: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

/* ---- Print: keep URLs readable ---- */
@media print {
  .site-header, .hero-phone, .scene-tabs, .booking-form { display: none; }
  .case { background: var(--white); color: var(--ink); }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav .button { margin-left: auto; }
  .hero-grid, .concept, .kintone-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .concept { padding: 32px; }
  .roles { grid-template-columns: 1fr 1fr; }
  .roles li:nth-child(2)::after { display: none; }
  .scene-tabs { grid-template-columns: 1fr; }
  .scene-panel { grid-template-columns: 1fr; }
  .scene-panel .phone-sm { max-width: 320px; width: 100%; margin-inline: auto; }
  .bridge { grid-template-columns: 1fr; gap: 6px; }
  .bridge li, .bridge li:first-child { clip-path: none; border-radius: 10px; padding: 14px 18px; }
  .case-flow { grid-template-columns: 1fr 1fr; }
  .case-flow li:nth-child(2)::after { display: none; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 56px; }
  .brand img { width: 120px; }
  .entries, .features, .steps, .k-values, .case-results, .compare, .ba, .field-row { grid-template-columns: 1fr; }
  .contact-card { padding: 26px 18px; }
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillar { border-radius: 0; border-bottom: 1.5px solid; }
  .pillar:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .roles, .case-flow { grid-template-columns: 1fr; gap: 20px; }
  .roles li::after, .case-flow li::after { display: none; }
  .roles li:not(:last-child)::after, .case-flow li:not(:last-child)::after {
    display: block; right: auto; left: 50%; top: auto; bottom: -16px; transform: translateX(-50%) rotate(135deg);
  }
  .record { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .explorer { padding: 24px 18px; }
  .concept { padding: 24px 18px; }
  .ba-col { padding: 22px 18px; }
  .timeline { grid-template-columns: 1fr 1fr 1fr; }
  .sa-inner { flex-direction: column; align-items: flex-start; }
  .chat { height: 380px; }
}
