:root {
  /* Taurus Digital provenance marker: TD-MINAMI-WIN11-20260710-001 */
  --td-owner: "Taurus Digital";
  --td-product-id: "TD-MINAMI-WIN11";
  --td-build-id: "TD-MINAMI-WIN11-20260710-001";
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --ink: #172033;
  --muted: #64748b;
  --line: #dbe3ef;
  --primary: #0078d4;
  --primary-dark: #075985;
  --ai: #7c3aed;
  --ai-soft: #f5edff;
  --success: #107c10;
  --warn: #d83b01;
  --shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(244, 247, 251, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.header-nav,
.footer-inner,
.response-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: var(--surface);
}

.brand span {
  overflow-wrap: anywhere;
}

.header-nav {
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.header-nav a,
.header-download {
  text-decoration: none;
}

.header-download {
  display: inline-flex;
  justify-content: center;
  min-width: 118px;
  padding: 10px 15px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  color: var(--ai);
  font-weight: 900;
  background: #fff;
}

.support-workbench {
  min-height: calc(100vh - 70px);
  padding: 34px 0 54px;
  background:
    linear-gradient(90deg, rgba(244, 247, 251, 0.98), rgba(244, 247, 251, 0.86)),
    url("assets/settings-home.png") center / cover;
}

.workbench-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(340px, 1.1fr);
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.assistant-panel,
.response-panel,
.download-panel,
.faq-list details {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.assistant-panel,
.response-panel {
  min-height: 610px;
  padding: clamp(22px, 4vw, 34px);
}

.assistant-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.assistant-heading img {
  width: 82px;
  height: 82px;
  border: 1px solid #d9e5f7;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ai);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0;
}

.assistant-copy,
.offline-layout p,
.visual-layout p,
.faq-list p,
.response-summary {
  color: var(--muted);
}

.assistant-copy {
  margin: 24px 0;
  font-size: 18px;
}

.question-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
}

textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

textarea:focus {
  outline: 3px solid rgba(0, 120, 212, 0.18);
  border-color: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--ai));
  color: #fff;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.24);
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button-mail {
  background: #111827;
  color: #fff;
}

.button-full {
  width: 100%;
}

.quick-topics,
.topic-grid {
  display: grid;
  gap: 10px;
}

.quick-topics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.quick-topics button,
.topic-grid button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.quick-topics button:hover,
.topic-grid button:hover {
  border-color: #c7d2fe;
  background: var(--ai-soft);
}

.response-panel {
  display: flex;
  flex-direction: column;
}

.response-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.response-topline span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

#responseConfidence {
  background: var(--ai-soft);
  color: #5b21b6;
}

.response-summary {
  margin: 16px 0 0;
  font-size: 17px;
}

.response-steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  counter-reset: step;
}

.response-steps li {
  position: relative;
  min-height: 54px;
  padding: 13px 14px 13px 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.response-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 14px;
  top: 13px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--ai));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.response-note {
  margin-top: 18px;
  padding: 14px;
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  background: #fff8ed;
  color: #7c2d12;
}

.response-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1180px, calc(100% - 36px));
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.status-strip div {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.status-strip div:last-child {
  border-right: 0;
}

.status-strip strong,
.status-strip span {
  display: block;
}

.status-strip span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.offline-section,
.topic-section,
.visual-section,
.faq-section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.offline-section {
  background: var(--surface);
}

.offline-layout,
.visual-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.download-panel {
  padding: 24px;
}

.download-status {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.download-status.is-ready {
  border-left-color: var(--success);
}

.download-status.is-fallback {
  border-left-color: var(--warn);
}

.download-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.download-meta span {
  color: var(--muted);
}

.download-panel .button {
  margin-top: 14px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-grid button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  text-align: left;
}

.topic-grid span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 15px;
}

.visual-section {
  background: #eef6ff;
}

.visual-layout {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(28, 36, 36, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 36px rgba(28, 36, 36, 0.14);
}

.screenshot-grid img:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.faq-section {
  background: var(--surface);
}

.faq-layout {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  align-items: flex-start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
}

.site-footer {
  padding: 26px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
  font-weight: 900;
}

.footer-inner a {
  color: #fff;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

  .workbench-shell,
  .offline-layout,
  .visual-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .assistant-panel,
  .response-panel {
    min-height: auto;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .status-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .brand span {
    font-size: 14px;
  }

  .header-download {
    min-width: 96px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .support-workbench {
    padding-top: 18px;
  }

  .workbench-shell,
  .status-strip,
  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .assistant-heading {
    align-items: flex-start;
  }

  .assistant-heading img {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .input-row,
  .quick-topics,
  .topic-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .screenshot-grid img:first-child {
    grid-column: span 1;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
