:root {
  --ink: #1c2b2a;
  --muted: #5a6b6a;
  --accent: #6fc5c1;
  --accent-dark: #2c6d6a;
  --soft: #e7f5f4;
  --line: #d3e2e1;
  --paper: #ffffff;
  --wash: #e7f5f4;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK JP", sans-serif; }
body { margin: 0; line-height: 1.7; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #2c6d6a; outline-offset: 4px; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
.skip-link { position: absolute; left: 12px; top: -100px; padding: 10px 14px; background: var(--ink); color: #fff; z-index: 10; }
.skip-link:focus { top: 12px; }

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 19px; font-weight: 760; letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand small { border-radius: 999px; background: var(--soft); color: var(--accent-dark); padding: 4px 9px; font-size: 11px; font-weight: 650; letter-spacing: 0; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 14px; }
.site-nav a { padding: 10px 0; text-decoration: none; }
.site-nav a:hover { color: var(--accent-dark); }
.site-nav .current { color: var(--accent-dark); font-weight: 700; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(38px, 6vw, 78px); align-items: center; padding: 62px 0 58px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--accent-dark); font-size: 14px; font-weight: 650; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1, h2, h3, h4 { line-height: 1.28; letter-spacing: -0.035em; }
h1 { margin: 0; font-size: clamp(42px, 5.2vw, 66px); font-weight: 760; }
h2 { margin: 0 0 20px; font-size: clamp(28px, 3vw, 38px); }
h3 { margin: 28px 0 12px; font-size: 21px; }
h4 { margin: 24px 0 10px; font-size: 17px; }
p { margin: 12px 0; }
.lede { max-width: 570px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; padding: 13px 20px; font-size: 15px; font-weight: 680; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--accent-dark); color: #fff; }
.button-primary:hover { background: #1c2b2a; }
.button-secondary { border: 1px solid var(--line); background: #fff; color: var(--accent-dark); }
.button-secondary:hover { background: var(--wash); }
.text-link { color: var(--accent-dark); font-weight: 650; text-underline-offset: 4px; }
.mascot-note { display: inline-block; margin-top: 18px; color: var(--accent-dark); font-size: 14px; font-weight: 650; transform: rotate(-2deg); }
.mascot-wrap { position: relative; display: grid; place-items: center; min-height: 280px; }
.mascot { width: min(320px, 76%); filter: drop-shadow(0 20px 26px #1c2b2a14); }
.mascot-bubble { position: absolute; right: 7%; top: 5%; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; background: #fff; padding: 10px 16px; color: var(--accent-dark); font-weight: 700; box-shadow: 0 12px 30px #1c2b2a0c; }
.static-mascot { display: none; }
@media (prefers-reduced-motion: reduce) {
  .animated-mascot { display: none; }
  .static-mascot { display: block; }
}

.workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 22px 60px #1c2b2a12; }
.workspace-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.workspace-top strong { font-size: 14px; }
.workspace-top span { color: var(--muted); font-size: 12px; }
.workspace-body { display: grid; grid-template-columns: 190px 1fr; min-height: 390px; }
.bot-roster { padding: 18px 14px; border-right: 1px solid var(--line); background: var(--wash); }
.inbox-label { display: flex; align-items: center; gap: 8px; margin: 0 6px 16px; color: var(--muted); font-size: 12px; }
.bot-contact { display: flex; align-items: center; gap: 9px; padding: 10px 8px; border-radius: 12px; }
.bot-contact.active { background: #fff; box-shadow: 0 2px 10px #1c2b2a0a; }
.bot-contact img { width: 36px; height: 36px; border-radius: 50%; }
.bot-contact strong, .bot-contact small { display: block; }
.bot-contact strong { font-size: 12px; }
.bot-contact small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.chat { padding: 22px; }
.chat-date { margin: 0 0 18px; color: var(--muted); font-size: 11px; text-align: center; }
.message { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.message img { width: 32px; height: 32px; border-radius: 50%; }
.message p { max-width: 85%; margin: 0; padding: 10px 13px; border-radius: 5px 15px 15px 15px; background: var(--wash); font-size: 12px; line-height: 1.75; }
.message.user { justify-content: flex-end; }
.message.user p { border-radius: 15px 5px 15px 15px; background: var(--accent-dark); color: #fff; }
.approval-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--accent-dark); font-size: 12px; font-weight: 650; }
.approval-note svg { width: 16px; height: 16px; }

.fact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); }
.fact-row strong { font-size: 16px; }
.fact-row p { color: var(--muted); font-size: 14px; }
.apply-strip { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; margin: 28px 0 54px; border-radius: 22px; background: var(--ink); color: #fff; padding: 34px 38px; }
.apply-strip h2 { margin: 0 0 10px; font-size: 28px; }
.apply-strip p { margin: 0; color: #e7f5f4; font-size: 14px; }
.apply-strip .button { flex-shrink: 0; background: #fff; color: var(--ink); }

.page-hero { display: grid; grid-template-columns: 1fr 230px; gap: 36px; align-items: center; padding: 52px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(36px, 4.5vw, 52px); }
.page-hero .mascot-wrap { min-height: 180px; }
.page-hero .mascot { width: 190px; }
.page-body { padding: 26px 0 46px; max-width: 850px; }
.page-body.wide { max-width: none; }
.page-body p, .page-body li { line-height: 1.85; }
.page-body li { margin: 8px 0; }
.page-body code { border-radius: 5px; background: var(--wash); padding: 2px 5px; font-size: .92em; overflow-wrap: anywhere; }
.page-body pre { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); padding: 16px 18px; font-size: 13px; line-height: 1.7; }
.page-body pre code { padding: 0; background: transparent; }
.callout { margin: 24px 0; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--wash); padding: 16px 18px; }
.callout strong { display: block; margin-bottom: 6px; }
.callout p { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.info-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 20px; }
.info-card h3 { margin: 0 0 8px; }
.info-card p { color: var(--muted); font-size: 14px; }
.info-card .button { margin-top: 12px; }
.pending { display: inline-block; border-radius: 999px; background: var(--wash); color: var(--muted); padding: 4px 9px; font-size: 12px; }
.check-list { padding-left: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 750; }
.link-list { display: grid; gap: 12px; padding-left: 0; list-style: none; }
.link-list a { color: var(--accent-dark); font-weight: 650; text-underline-offset: 4px; }
.company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 26px; margin: 20px 0; font-size: 14px; }
.company dt { color: var(--muted); }
.company dd { margin: 0; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--line); padding: 30px 0 38px; color: var(--muted); font-size: 12px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 15px; font-weight: 700; }
.footer-brand img { width: 26px; height: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--accent-dark); text-decoration: none; }
.footer-company { margin: 8px 0; }
.footer-company strong { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 46px; }
  .hero-copy { max-width: 700px; }
  .mascot-wrap { min-height: 220px; }
  .mascot { width: 220px; }
  .fact-row { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 32px, 1180px); }
  .site-header { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .site-nav { width: 100%; justify-content: space-between; gap: 12px; font-size: 13px; }
  h1 { font-size: 42px; }
  .workspace-body { grid-template-columns: 1fr; }
  .bot-roster { display: flex; gap: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .inbox-label { display: none; }
  .bot-contact { flex: 0 0 auto; padding: 6px; }
  .bot-contact small { display: none; }
  .bot-contact img { width: 32px; height: 32px; }
  .chat { padding: 16px; }
  .apply-strip { grid-template-columns: 1fr; padding: 28px 24px; }
  .page-hero { grid-template-columns: 1fr; }
  .page-hero .mascot-wrap { display: none; }
  .card-grid, .company { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
