:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f7f7f5;
  --panel-strong: #f0f0ed;
  --text: #191918;
  --muted: #676762;
  --quiet: #8a8a84;
  --line: #d9d9d3;
  --line-soft: #ecece7;
  --primary: #1f4bff;
  --primary-soft: rgba(31, 75, 255, 0.1);
  --secondary: #00a884;
  --secondary-soft: rgba(0, 168, 132, 0.1);
  --max: 1120px;
  --read: 790px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
body.home-screen { min-height: 100svh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { color: inherit; font: inherit; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 13px;
  color: #fff;
  background: #111;
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-header {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  min-height: 82px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.arm-profile { display: inline-flex; align-items: center; }
.arm-profile img {
  width: clamp(83px, 7.2vw, 114px);
  height: auto;
}
.arm-profile:hover { opacity: 0.78; }
.language-link {
  color: #30302e;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-underline-offset: 5px;
}
.language-link:hover,
.language-link:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--primary);
}
.home-main {
  min-height: 100svh;
  padding: calc(82px + clamp(38px, 7vh, 86px)) 18px 82px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 48px;
}
.home-stage {
  width: min(100%, 760px);
  margin: auto;
  display: grid;
  justify-items: center;
}
.home-title {
  margin: 0 0 30px;
  color: #262624;
  font-size: clamp(27px, 3.1vw, 42px);
  font-weight: 420;
  letter-spacing: -0.035em;
  line-height: 1.35;
  text-align: center;
}
.prompt-shell {
  width: 100%;
  min-height: 124px;
  padding: 17px 18px 13px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  border: 1px solid rgba(31, 75, 255, 0.42);
  border-radius: 18px;
  background: var(--panel);
  box-shadow:
    0 18px 50px rgba(17, 17, 16, 0.07),
    0 0 0 3px rgba(0, 168, 132, 0.06);
}
.prompt-placeholder { margin: 0; color: #989893; font-size: 15px; }
.prompt-input {
  width: 100%;
  min-height: 52px;
  padding: 0;
  color: #343431;
  border: 0;
  outline: 0;
  resize: none;
  overflow: hidden;
  background: transparent;
  font-size: 15px;
  line-height: 1.65;
}
.prompt-input::placeholder { color: #989893; opacity: 1; }
.prompt-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.question-submit {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 50%;
  background: var(--primary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}
.question-submit:hover,
.question-submit:focus-visible {
  border-color: var(--secondary);
  background: var(--secondary);
}
.question-submit:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }
.question-submit:disabled { opacity: 0.42; cursor: wait; }
.prompt-shell.is-live-busy,
.response-composer.is-live-busy { border-color: rgba(0, 168, 132, 0.55); }
.prompt-input:disabled,
.composer-input:disabled { opacity: 1; cursor: wait; }
.quick-nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 20px;
}
.quick-nav a {
  color: #2c2c2a;
  font-size: 13px;
  font-weight: 650;
  text-underline-offset: 5px;
}
.quick-nav a:hover, .quick-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--primary);
}
.quick-nav a:first-child { color: var(--primary); }
.conversation-main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 110px 0 38px;
}
.chat-thread { width: min(100%, var(--read)); margin: 12px auto 52px; }
.home-stage .live-chat-thread {
  width: 100%;
  margin: 46px 0 0;
  justify-self: stretch;
  text-align: left;
}
.has-live-conversation .home-stage { margin: 0 auto; }
.home-screen.has-live-conversation .home-title,
.home-screen.has-live-conversation .quick-nav { display: none; }
.home-screen.has-live-conversation .home-stage .live-chat-thread { margin-top: 0; }
.has-live-conversation .home-main {
  min-height: 100svh;
  padding: calc(82px + clamp(28px, 5vh, 58px)) 18px 250px;
  display: block;
}
.home-screen.has-live-conversation .prompt-shell {
  position: fixed;
  z-index: 33;
  left: 50%;
  bottom: 96px;
  width: min(calc(100% - 40px), 760px);
  min-height: 76px;
  margin: 0;
  padding: 10px 14px 8px;
  gap: 6px;
  transform: translateX(-50%);
}
.home-screen.has-live-conversation .prompt-input { min-height: 24px; }
.home-screen .home-identity {
  position: fixed;
  z-index: 32;
  right: 18px;
  bottom: 0;
  left: 18px;
  width: auto;
  padding: 18px 0 28px;
  background: var(--bg);
}
.home-screen.has-live-conversation::after {
  content: "";
  position: fixed;
  z-index: 31;
  right: 0;
  bottom: 0;
  left: 0;
  height: 230px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg) 30%);
}
.chat-turn { position: relative; }
.user-turn { display: flex; justify-content: flex-end; }
.assistant-turn + .user-turn { margin-top: 48px; }
.user-query {
  margin: 0;
  width: fit-content;
  max-width: min(86%, 620px);
  padding: 11px 16px;
  color: #333330;
  border: 1px solid var(--line);
  border-radius: 17px 17px 5px 17px;
  background: var(--panel-strong);
  font-size: clamp(15px, 2vw, 17px);
}
.assistant-turn {
  margin-top: 20px;
  display: block;
}
.assistant-mark {
  display: none;
}
.answer-copy > :first-child { margin-top: 2px; }
.response-emphasis {
  color: var(--text) !important;
  font-size: clamp(24px, 3.4vw, 36px) !important;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.4;
}
.answer-copy h2 {
  margin: 24px 0 10px;
  color: var(--text);
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.5;
}
.answer-copy h3 {
  margin: 34px 0 8px;
  color: #282826;
  font-size: 17px;
  font-weight: 650;
}
.answer-copy p, .answer-copy li { color: #41413e; font-size: 16px; }
.answer-copy p { margin: 0 0 14px; }
.answer-copy a:not(.answer-button) {
  color: #20201f;
  text-decoration: underline;
  text-decoration-color: #b7b7b0;
  text-underline-offset: 4px;
}
.answer-copy a:not(.answer-button):hover { text-decoration-color: var(--primary); }
.answer-grid {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}
.answer-fact { min-height: 118px; padding: 20px; background: #fbfbfa; }
.answer-fact dt {
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.answer-fact dd {
  margin: 0;
  color: #333330;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.65;
}
.company-table { width: 100%; margin: 0; border-collapse: collapse; }
.company-table th, .company-table td {
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.company-table th { width: 180px; color: var(--quiet); font-size: 12px; font-weight: 650; }
.company-table td { color: #3b3b38; font-size: 15px; }
.timeline, .news-stack { margin: 0; padding: 0; list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.timeline time, .news-meta { color: var(--quiet); font-size: 12px; font-weight: 700; }
.news-card { display: block; padding: 2px 0 12px; }
.news-card:hover h2, .news-card:focus-visible h2 { color: var(--primary); }
.news-card h2 { margin: 7px 0 8px; font-size: clamp(19px, 2.6vw, 24px); }
.news-card p { margin-bottom: 0; }
.answer-button {
  display: inline-flex;
  min-height: 48px;
  margin-top: 12px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  font-size: 14px;
  font-weight: 750;
}
.answer-button::after { content: "↗"; }
.answer-button:hover, .answer-button:focus-visible {
  color: #fff;
  border-color: var(--secondary);
  background: var(--secondary);
}
.answer-copy a.inary-contact-link {
  width: fit-content;
  min-height: 38px;
  margin: 0 0 38px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  border-radius: 10px;
  background: var(--primary);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 140ms ease;
}
.inary-contact-link img {
  width: auto;
  height: 22px;
  padding: 2px;
  display: block;
  border-radius: 50%;
  background: #fff;
}
.answer-copy a.inary-contact-link:hover,
.answer-copy a.inary-contact-link:focus-visible {
  color: #fff;
  background: #173bd4;
}
.answer-copy a.inary-contact-link:focus-visible {
  outline: 3px solid rgba(31, 50, 255, 0.22);
  outline-offset: 2px;
}
.response-composer {
  width: min(100%, var(--read));
  min-height: 112px;
  margin: 56px auto 0;
  padding: 16px 17px 13px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  border: 1px solid rgba(31, 75, 255, 0.42);
  border-radius: 18px;
  background: var(--panel);
  box-shadow:
    0 14px 38px rgba(17, 17, 16, 0.06),
    0 0 0 3px rgba(0, 168, 132, 0.05);
}
.composer-input {
  width: 100%;
  min-height: 38px;
  padding: 0;
  color: #3a3a37;
  border: 0;
  outline: 0;
  resize: none;
  overflow: hidden;
  background: transparent;
  font-size: 15px;
  line-height: 1.65;
}
.composer-input::placeholder { color: #989893; opacity: 1; }
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.live-source-heading { margin-top: 25px !important; font-size: 14px !important; }
.live-source-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}
.live-source-list li { font-size: 13px; }
.live-source-list a::after { content: " ↗"; color: var(--quiet); }
.inline-contact {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  scroll-margin-top: 24px;
}
.answer-copy .inline-contact h3 { margin: 0 0 7px; font-size: 18px; }
.answer-copy .inline-contact-intro { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.answer-copy .inline-contact .inary-contact-label {
  margin: 22px 0 10px;
  font-size: 15px;
}
.answer-copy .inline-contact .mail-contact-title {
  margin: 0 0 22px;
  padding-top: 24px;
  border-top: 1px solid #292927;
  font-size: 15px;
}
.inline-contact-form { position: relative; }
.inline-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.inline-contact-field {
  display: grid;
  gap: 6px;
  color: #444440;
  font-size: 12px;
  font-weight: 650;
}
.inline-contact-field-wide { grid-column: 1 / -1; }
.inline-contact-field input,
.inline-contact-field select,
.inline-contact-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}
.inline-contact-field textarea { min-height: 132px; resize: vertical; }
.inline-contact-field input:focus,
.inline-contact-field select:focus,
.inline-contact-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.inline-contact-consent {
  margin-top: 15px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.inline-contact-consent input { margin-top: 5px; }
.answer-copy .inline-contact-consent a { color: var(--primary); }
.inline-contact-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}
.inline-contact-submit {
  min-height: 46px;
  margin-top: 17px;
  padding: 9px 18px;
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.inline-contact-submit:hover,
.inline-contact-submit:focus-visible { border-color: var(--secondary); background: var(--secondary); }
.inline-contact-submit:disabled { opacity: 0.55; cursor: wait; }
.answer-copy .inline-contact-status { margin: 12px 0 0; font-size: 14px; }
.inline-contact-status:empty { display: none; }
.inline-contact-status[data-state="success"] { color: #087c63; font-weight: 650; }
.inline-contact-status[data-state="error"] { color: #b42318; }
.identity-footer {
  width: calc(100% - 36px);
  margin: 0 auto;
  padding: 18px 0 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  color: var(--quiet);
  font-size: 11px;
}
.identity-footer p { margin: 0; }
.home-identity { width: 100%; max-width: none; padding: 0; }
.identity-statement {
  color: #6d6d68;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: right;
}
.identity-statement strong { color: #1a1a19; font-weight: 600; }
body:not(.home-screen) .conversation-main { padding-bottom: 250px; }
body:not(.home-screen) .response-composer {
  position: fixed;
  z-index: 33;
  left: 50%;
  bottom: 78px;
  width: min(calc(100% - 40px), var(--read));
  margin: 0;
  transform: translateX(-50%);
}
body:not(.home-screen) > .identity-footer {
  position: fixed;
  z-index: 32;
  left: 50%;
  bottom: 0;
  width: calc(100% - 36px);
  margin: 0;
  transform: translateX(-50%);
  background: var(--bg);
}
body:not(.home-screen)::after {
  content: "";
  position: fixed;
  z-index: 31;
  right: 0;
  bottom: 0;
  left: 0;
  height: 230px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg) 30%);
}
.response-composer.is-entering { animation: composer-enter 260ms ease-out both; }
.policy-copy h2 { margin-top: 22px; font-size: 17px; }

.llm-motion .chat-turn.is-pending,
.llm-motion .response-composer.is-pending,
.llm-motion .stream-block.is-stream-pending {
  display: none;
}
.is-entering {
  animation: turn-enter 260ms ease-out both;
}
.assistant-turn.is-thinking .answer-copy::before {
  content: "";
  display: block;
  width: 34px;
  height: 18px;
  margin: 5px 0 2px;
  background:
    radial-gradient(circle at 5px 9px, var(--quiet) 0 2px, transparent 2.5px),
    radial-gradient(circle at 17px 9px, var(--quiet) 0 2px, transparent 2.5px),
    radial-gradient(circle at 29px 9px, var(--quiet) 0 2px, transparent 2.5px);
  animation: thinking-pulse 900ms ease-in-out infinite;
}
.assistant-turn.is-streaming .answer-copy::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 3px;
  vertical-align: -0.18em;
  background: var(--primary);
  animation: cursor-blink 700ms steps(1, end) infinite;
}
.stream-block.is-stream-active {
  animation: stream-block-enter 170ms ease-out both;
}

@keyframes turn-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stream-block-enter {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
@keyframes thinking-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@keyframes cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}
@keyframes composer-enter {
  from { opacity: 0; transform: translate(-50%, 7px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 700px) {
  .app-header { min-height: 70px; padding: 16px 18px; }
  .home-main { min-height: 100svh; padding: 108px 16px 70px; }
  .home-title { margin-bottom: 24px; }
  .prompt-shell { min-height: 116px; border-radius: 15px; }
  .question-submit { width: 30px; height: 30px; }
  .home-stage .live-chat-thread { margin-top: 36px; }
  .home-screen.has-live-conversation .home-main { padding: 98px 16px 230px; }
  .home-screen.has-live-conversation .prompt-shell {
    bottom: 76px;
    width: min(calc(100% - 28px), 760px);
    min-height: 72px;
  }
  .home-screen.has-live-conversation .home-identity {
    right: 14px;
    left: 14px;
    padding: 12px 0 16px;
  }
  .home-screen.has-live-conversation::after { height: 212px; }
  .quick-nav { gap: 5px 14px; }
  .quick-nav a { font-size: 12px; }
  .conversation-main { width: min(calc(100% - 28px), var(--max)); padding: 98px 0 32px; }
  .chat-thread { margin-top: 4px; margin-bottom: 42px; }
  .assistant-turn + .user-turn { margin-top: 38px; }
  .user-query { max-width: 92%; }
  .answer-grid { grid-template-columns: 1fr; }
  .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding-bottom: 2px; border-bottom: 0; }
  .company-table td { padding-top: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 3px; }
  .response-composer { min-height: 106px; border-radius: 15px; }
  .inline-contact { padding: 18px; }
  .inline-contact-grid { grid-template-columns: 1fr; }
  .inline-contact-field-wide { grid-column: auto; }
  .identity-footer { width: min(calc(100% - 28px), var(--max)); gap: 14px; font-size: 10px; }
  .home-identity { width: 100%; }
  .identity-statement { max-width: 58%; font-size: 11px; }
  body:not(.home-screen) .conversation-main { padding-bottom: 230px; }
  body:not(.home-screen) .response-composer {
    bottom: 70px;
    width: min(calc(100% - 28px), var(--read));
  }
  body:not(.home-screen) > .identity-footer {
    width: min(calc(100% - 28px), var(--max));
    padding: 12px 0 16px;
  }
  body:not(.home-screen)::after { height: 212px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
