/* US株式会社 公式サイト 共通スタイル */
:root {
  --navy: #1b3a6b; --blue: #3d8fd6; --blue-soft: #eaf3fc;
  --bg: #ffffff; --bg2: #f5f7fa; --fg: #1d2533; --muted: #5d6878; --line: #e1e6ee;
  --radius: 12px; --max: 1080px;
  --f: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f); font-size: 16px; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.4; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 900; font-size: 20px; }
.brand img { width: 40px; height: 40px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--fg); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--blue-soft); }
.nav a.cta { background: var(--navy); color: #fff; margin-left: 6px; }
.nav a.cta:hover { background: var(--blue); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; color: var(--navy); }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
         flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a.cta { margin: 6px 0 0; text-align: center; }
}

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg2); }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.sec-title { font-size: clamp(24px, 3.2vw, 32px); color: var(--navy); margin: 6px 0 14px; }
.lead { color: var(--muted); max-width: 720px; }
.page-head { background: linear-gradient(135deg, var(--navy), #24508f); color: #fff; padding: 56px 0 48px; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); }
.page-head p { opacity: .85; margin-top: 8px; }

/* hero */
.hero { background: radial-gradient(ellipse at 85% 20%, #dcebfb 0, transparent 55%), linear-gradient(180deg, #f3f8fe, #fff); padding: 88px 0 72px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); color: var(--navy); font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lead { font-size: 18px; margin-top: 18px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 700; border: 2px solid var(--navy); }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--blue); border-color: var(--blue); }
.btn.ghost { color: var(--navy); background: #fff; }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.small { padding: 8px 18px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 13px; color: var(--muted); }

/* cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0; }
.card h3 { color: var(--navy); font-size: 19px; margin: 10px 0 8px; }
.card p, .card li { color: var(--muted); font-size: 15px; }
.card ul { padding-left: 1.2em; margin: 10px 0 0; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--navy); display: grid; place-items: center; font-weight: 900; font-size: 20px; }

/* demo feature */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; margin-top: 32px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(27,58,107,.12); overflow: hidden; background: #fff; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; display: grid; place-items: center; text-align: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .ph { padding: 20px; opacity: .85; font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 900; }

/* steps */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 32px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--blue); }
.step::before { counter-increment: s; content: "STEP " counter(s); color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.step h3 { color: var(--navy); font-size: 17px; margin: 6px 0; }
.step p { color: var(--muted); font-size: 14px; }

/* tiers (demo page) */
.tiers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 20px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; display: grid; gap: 8px; align-content: start; }
.tier .tag { justify-self: start; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-weight: 700; }
.tier h3 { color: var(--navy); font-size: 17px; }
.tier p { color: var(--muted); font-size: 14px; }

/* table (company) */
.info { width: 100%; border-collapse: collapse; margin-top: 24px; background: #fff; }
.info th, .info td { border-bottom: 1px solid var(--line); padding: 16px 12px; text-align: left; vertical-align: top; }
.info th { width: 11em; color: var(--navy); font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .info th, .info td { display: block; width: auto; } .info th { border-bottom: none; padding-bottom: 0; } }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-top: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 44px; }
.faq summary::after { content: "＋"; position: absolute; right: 18px; top: 15px; color: var(--blue); }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* form */
.form { display: grid; gap: 18px; max-width: 680px; margin-top: 28px; }
.form label { display: block; font-weight: 700; font-size: 15px; }
.form label > input, .form label > select, .form label > textarea { display: block; margin-top: 6px; }
.form .req { color: #c4320a; font-size: 12px; margin-left: 6px; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid #c9d1dd; border-radius: 8px; background: #fff; width: 100%; }
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 7px; }
.form button { font: inherit; font-weight: 700; padding: 14px; border-radius: 999px; border: none; background: var(--navy); color: #fff; cursor: pointer; }
.form button:hover { background: var(--blue); }
.notice { background: var(--blue-soft); border-radius: 10px; padding: 14px 18px; color: var(--navy); font-size: 14px; }
.notice.warn { background: #fff4e5; color: #8a4b00; }
.hp { position: absolute; left: -9999px; }

/* prose (privacy) */
.prose { max-width: 820px; }
.prose h2 { font-size: 20px; color: var(--navy); margin: 36px 0 10px; }
.prose p, .prose li { color: #384252; }
.prose ul, .prose ol { padding-left: 1.4em; }

/* pains */
.pain { display: flex; gap: 14px; align-items: flex-start; }
.pain .q { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--navy); display: grid; place-items: center; font-weight: 900; }
.pain h3 { margin: 0 0 4px; font-size: 17px; }

/* industries */
.inds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.inds span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 18px; font-weight: 700; color: var(--navy); }

/* prices */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 28px; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.price h3 { font-size: 16px; color: var(--navy); }
.price .yen { font-size: 28px; font-weight: 900; color: var(--navy); margin: 6px 0; }
.price .yen small { font-size: 14px; font-weight: 700; }
.price p { font-size: 13px; color: var(--muted); }
.price.free { border: 2px solid var(--blue); }
.price.free .yen { color: var(--blue); }

/* SES (green) */
.ses-strip { --g: var(--navy); --g-soft: var(--blue-soft); display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--g-soft); border-radius: var(--radius); padding: 22px 26px; margin-top: 20px; }
.ses-strip h3 { color: var(--navy); }
.ses-strip p { color: var(--muted); font-size: 15px; }
.btn.green { background: var(--g); border-color: var(--g); color: #fff; }
.btn.green:hover { background: var(--blue); border-color: var(--blue); }
.btn.green-ghost { color: var(--g); border-color: var(--g); background: #fff; }
@media (max-width: 700px) { .ses-strip { grid-template-columns: 1fr; } }
/* LINE 欄：PC は QR コードも表示、スマホはボタンだけ */
.ses-strip:has(.line-qr) { grid-template-columns: auto 1fr auto auto; }
@media (max-width: 700px) { .ses-strip:has(.line-qr) { grid-template-columns: 1fr; } .line-qr { display: none; } }

/* news */
.news { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.news li { display: flex; gap: 20px; padding: 14px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.news time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 7em; }

.free-demo { background: linear-gradient(180deg, #eaf3fc, #fff); }
.free-demo .step { border-top-color: var(--navy); }

/* demo request (AI hearing) */
.rq { max-width: 860px; }
.rq-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: st; }
.rq-steps li { text-align: center; font-size: 13px; color: var(--muted); padding: 10px 4px; border-bottom: 3px solid var(--line); }
.rq-steps li::before { counter-increment: st; content: counter(st) ". "; }
.rq-steps li.on { color: var(--navy); font-weight: 700; border-color: var(--blue); }
.rq-steps li.past { color: var(--blue); border-color: #b9d6f2; }
.rq-panel h2 { color: var(--navy); font-size: 22px; margin-bottom: 8px; }
.rq-panel .notice { margin-bottom: 16px; }
#msg { margin-bottom: 16px; }
.small-link { font-size: 14px; color: var(--muted); }
.chat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; height: min(60vh, 560px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.7; }
.bubble.assistant { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-top-left-radius: 4px; }
.bubble.user { background: var(--navy); color: #fff; align-self: flex-end; border-top-right-radius: 4px; }
.bubble.file { background: var(--blue-soft); color: var(--navy); align-self: flex-end; font-size: 13px; }
.bubble.notice { background: #fff4e5; color: #8a4b00; align-self: center; font-size: 13px; max-width: 95%; }
.thinking-bubble { color: var(--muted); font-size: 14px; }
.att-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.att-list button { background: none; border: none; color: #c4320a; cursor: pointer; font: inherit; text-decoration: underline; padding: 0 4px; }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip-btn { font: inherit; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--blue); background: #fff; color: var(--navy); cursor: pointer; }
.chip-btn:hover { background: var(--blue-soft); }
.chat-input { margin-top: 12px; display: grid; gap: 10px; }
.chat-input textarea { font: inherit; padding: 12px 14px; border: 1px solid #c9d1dd; border-radius: 10px; resize: vertical; width: 100%; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chat-actions .turns { margin-left: auto; color: var(--muted); font-size: 13px; }
.chat-actions .btn { cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; }
.file-btn { cursor: pointer; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
button.btn:disabled { opacity: .5; cursor: default; }
@media (max-width: 600px) { .chat-actions .turns { margin-left: 0; width: 100%; order: -1; } .rq-steps li { font-size: 11px; } }

/* cta band & footer */
.cta-band { background: linear-gradient(135deg, var(--navy), #24508f); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(22px, 3vw, 28px); }
.cta-band p { opacity: .85; margin-top: 10px; }
.cta-band .btn { border-color: #fff; }
.cta-band .btn.primary { background: #fff; color: var(--navy); }
.site-footer { background: #0f2240; color: #c6d2e3; padding: 40px 0 28px; font-size: 14px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer a { color: #c6d2e3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer .copy { margin-top: 28px; opacity: .7; font-size: 12px; }
