/* GenbaRelay Demo v0.1
   正式LPと同じ、工業・建築分野向けの直線的なデザインを使います。 */

:root {
  --paper: #f5f5f1;
  --white: #ffffff;
  --ink: #171a1b;
  --ink-soft: #25292a;
  --text: #202526;
  --text-soft: #5e6565;
  --muted: #7d8382;
  --line: #c9cdca;
  --line-dark: #4b5150;
  --green: #285b4d;
  --green-light: #bed0c9;
  --green-pale: #e8eeeb;
  --warning: #d7ad68;
  --focus: #d99a3c;
  --shell: 1680px;
  --sans:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Sans",
    "Yu Gothic UI",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  --serif:
    "Yu Mincho",
    YuMincho,
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.025em;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
p,
figure,
ol,
ul,
dl,
dd {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 96px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* 共通ヘッダー */
.demo-header {
  position: relative;
  z-index: 20;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-button {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  text-align: left;
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.brand-mode {
  color: var(--green-light);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.header-disclaimer {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.72rem;
}

.header-disclaimer strong {
  padding: 4px 10px;
  color: var(--ink);
  background: var(--green-light);
  letter-spacing: 0.08em;
}

.header-disclaimer span {
  color: #c4c9c7;
}

/* 一覧画面 */
.demo-intro {
  min-height: 560px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(32px, 5vw, 90px);
  padding-block: clamp(90px, 10vw, 170px) 90px;
}

.intro-index {
  align-self: start;
  color: var(--green);
  border-top: 2px solid var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.eyebrow,
.section-label {
  margin-bottom: 22px;
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.intro-copy h1 {
  max-width: 1000px;
  margin-bottom: 38px;
  font-family: var(--serif);
  font-size: clamp(3.35rem, 5.8vw, 6.9rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.intro-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.2vw, 1.24rem);
}

.prototype-note {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.prototype-note span {
  display: block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.prototype-note p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.projects-section {
  padding-bottom: clamp(90px, 10vw, 160px);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}

.section-heading-row h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.section-heading-row .section-label {
  margin-bottom: 8px;
}

.section-heading-row > p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 80px minmax(240px, 1.3fr) minmax(300px, 1fr) 150px;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: 36px 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: color 180ms ease, background 180ms ease, padding 180ms ease;
}

button.project-card:hover,
button.project-card:focus-visible {
  padding-inline: 28px;
  color: var(--white);
  background: var(--ink);
}

.project-number {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

button.project-card:hover .project-number,
button.project-card:focus-visible .project-number {
  color: var(--green-light);
}

.project-title,
.project-meta {
  min-width: 0;
}

.project-title strong,
.project-title span {
  display: block;
}

.project-title strong {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 500;
}

.project-title span {
  color: var(--text-soft);
  font-size: 0.88rem;
}

button.project-card:hover .project-title span,
button.project-card:focus-visible .project-title span {
  color: #c8cecb;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  font-size: 0.78rem;
}

.project-meta small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.project-action {
  justify-self: end;
  font-size: 0.78rem;
  font-weight: 750;
}

.project-action-muted {
  color: var(--muted);
}

.list-help {
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

/* 案件詳細 */
.detail-hero {
  padding-block: 48px clamp(72px, 8vw, 130px);
  color: var(--white);
  background: var(--ink);
}

.text-button {
  padding: 0 0 8px;
  color: #d3d7d5;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.75rem;
}

.text-button:hover {
  color: var(--white);
  border-color: var(--white);
}

.detail-title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.6fr);
  align-items: end;
  gap: clamp(60px, 9vw, 160px);
  padding-top: clamp(70px, 9vw, 150px);
}

.detail-title-grid h1 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6.8vw, 8rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-title-grid h1:focus {
  outline: 0;
}

.detail-title-grid h1 span {
  display: block;
  margin-top: 28px;
  color: var(--green-light);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.project-facts {
  margin-bottom: 0;
  border-top: 1px solid var(--line-dark);
}

.project-facts div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.project-facts dt {
  color: #939997;
  font-size: 0.68rem;
}

.project-facts dd {
  margin: 0;
  font-size: 0.82rem;
}

.fiction-banner {
  margin: 70px 0 0;
  padding: 16px 0;
  color: #c9cecc;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.76rem;
}

.fiction-banner strong {
  margin-right: 24px;
  color: var(--warning);
  letter-spacing: 0.08em;
}

.section-space {
  padding-block: clamp(90px, 10vw, 170px);
}

.point-heading {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  margin-bottom: clamp(50px, 6vw, 90px);
}

.point-heading > p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.point-heading > p span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.point-heading h2,
.section-title-grid h2,
.report-actions h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 6rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.intake-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.intake-metrics div {
  min-width: 0;
  padding: clamp(28px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.intake-metrics div:last-child {
  border-right: 0;
}

.intake-metrics dt {
  margin-bottom: 28px;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.intake-metrics dd {
  margin: 0;
  white-space: nowrap;
}

.intake-metrics strong {
  margin-right: 10px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5vw, 6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.field-data-section {
  background: var(--white);
}

.section-title-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  margin-bottom: clamp(54px, 7vw, 100px);
}

.section-title-grid > div > p {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--text-soft);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.photo-item {
  min-width: 0;
  margin: 0;
  background: var(--white);
}

.photo-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03);
}

.photo-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px 18px;
  font-size: 0.68rem;
}

.photo-item figcaption strong {
  letter-spacing: 0.08em;
}

.photo-item figcaption span {
  color: var(--text-soft);
  text-align: right;
}

.image-notice {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(70px, 8vw, 120px);
  background: var(--line);
  border: 1px solid var(--line);
}

.record-block {
  min-width: 0;
  padding: clamp(28px, 4vw, 56px);
  background: var(--white);
}

.excel-block {
  grid-column: 1 / -1;
}

.record-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

.record-heading span {
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.record-heading h3 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}

.voice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.voice-list li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.voice-list time {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}

.voice-list p {
  margin-bottom: 0;
}

.memo-list {
  margin: 0;
}

.memo-list div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.memo-list dt {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.memo-list dd {
  margin: 0;
}

.record-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--green-pale);
  border-left: 4px solid var(--green);
}

.file-icon {
  flex: 0 0 auto;
  padding: 12px 10px;
  color: var(--white);
  background: var(--green);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.file-row strong,
.file-row span {
  display: block;
}

.file-row strong {
  overflow-wrap: anywhere;
}

.file-row div span {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.7rem;
}

/* 整理処理 */
.organize-section {
  color: var(--white);
  background: var(--ink);
}

.organize-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(520px, 1.3fr);
  gap: clamp(70px, 10vw, 180px);
  align-items: start;
}

.light-label {
  color: var(--green-light);
}

.organize-copy h2 {
  margin-bottom: 36px;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.3vw, 6.5rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.organize-copy > p:not(.section-label):not(.human-check-note) {
  max-width: 540px;
  color: #c5cac8;
}

.human-check-note {
  margin-top: 42px;
  padding: 18px 0 18px 22px;
  color: var(--warning);
  border-left: 2px solid var(--warning);
  font-size: 0.78rem;
}

.organize-console {
  min-width: 0;
  padding: clamp(28px, 4vw, 60px);
  border: 1px solid var(--line-dark);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.console-head > span {
  color: #949b98;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.status-badge {
  color: var(--warning);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.status-badge.is-processing {
  color: #e8e1d4;
}

.status-badge.is-complete {
  color: var(--green-light);
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 0;
  font-weight: 750;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-action:hover:not(:disabled),
.primary-action:focus-visible,
.secondary-action:hover:not(:disabled),
.secondary-action:focus-visible {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.processing-panel {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}

.processing-panel > p {
  min-height: 1.75em;
  margin-bottom: 18px;
  color: var(--green-light);
  font-size: 0.82rem;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 12px;
  color: #747b78;
  border-bottom: 1px solid #343938;
  font-size: 0.74rem;
}

.process-list li span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid #6e7673;
}

.process-list li.is-active {
  color: var(--white);
}

.process-list li.is-active span {
  background: var(--warning);
  border-color: var(--warning);
}

.process-list li.is-done {
  color: var(--green-light);
}

.process-list li.is-done span {
  background: var(--green-light);
  border-color: var(--green-light);
}

.organize-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.organize-results div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 12px;
  border-right: 1px solid var(--line-dark);
  text-align: center;
}

.organize-results div:last-child {
  border-right: 0;
}

.organize-results span {
  color: #9ca29f;
  font-size: 0.65rem;
}

.organize-results i {
  color: var(--green-light);
  font-style: normal;
}

.organize-results strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
}

/* 人間による確認 */
.review-section {
  background: var(--green-pale);
}

.review-list {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.review-item {
  display: grid;
  grid-template-columns: 70px minmax(160px, 0.6fr) minmax(360px, 1.4fr) 170px;
  align-items: center;
  gap: clamp(22px, 4vw, 60px);
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
}

.review-number {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}

.review-location small,
.review-location strong {
  display: block;
}

.review-location small {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.review-location strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.review-item dl {
  min-width: 0;
  margin: 0;
}

.review-item dl div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding-block: 5px;
}

.review-item dt {
  color: var(--text-soft);
  font-size: 0.68rem;
}

.review-item dd {
  min-width: 0;
  margin: 0;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.review-control {
  display: grid;
  gap: 10px;
}

.review-status {
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}

.review-status.is-checked {
  color: var(--green);
  font-weight: 800;
}

.review-button {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 750;
}

.review-button:hover:not(:disabled),
.review-button:focus-visible {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.review-button:disabled {
  color: var(--green);
  border-color: var(--green);
  opacity: 0.75;
}

/* 報告書プレビュー */
.report-section {
  background: var(--white);
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.55fr) minmax(540px, 1fr);
  gap: clamp(70px, 10vw, 180px);
  align-items: start;
}

.report-actions {
  position: sticky;
  top: 40px;
}

.report-actions > p:not(.section-label):not(.button-help) {
  margin: 34px 0 40px;
  color: var(--text-soft);
}

.secondary-action {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.button-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.69rem;
}

.report-preview {
  min-width: 0;
  padding: clamp(40px, 6vw, 90px);
  background: #fbfbf8;
  border: 1px solid var(--line);
  box-shadow: 18px 18px 0 #e2e4e0;
}

.report-preview:focus {
  outline: 0;
}

.report-demo-label {
  margin-bottom: 54px;
  padding-bottom: 12px;
  color: var(--green);
  border-bottom: 2px solid var(--green);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.report-preview header p {
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.report-preview header h3 {
  margin-bottom: 48px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.2;
}

.report-preview header h3 span {
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  vertical-align: top;
}

.report-facts {
  margin: 0 0 48px;
  border-top: 1px solid var(--ink);
}

.report-facts div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.report-facts dt,
.report-preview section h4 {
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 500;
}

.report-facts dd {
  margin: 0;
}

.report-preview section {
  margin-bottom: 40px;
}

.report-preview section h4 {
  margin-bottom: 12px;
}

.report-preview section p {
  margin-bottom: 0;
}

.report-preview ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-preview li {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.attachment-count {
  margin: 42px 0;
  font-weight: 700;
}

.report-disclaimer {
  margin: 0;
  padding: 18px;
  color: #6a5127;
  background: #f3eadb;
  border-left: 3px solid var(--warning);
  font-size: 0.74rem;
}

/* Before / After */
.comparison-section {
  color: var(--white);
  background: var(--ink);
}

.comparison-section > .shell > h2 {
  max-width: 1200px;
  margin-bottom: clamp(60px, 8vw, 120px);
  font-family: var(--serif);
  font-size: clamp(3rem, 6.3vw, 7.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.055em;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.comparison-grid article {
  min-width: 0;
  padding: clamp(40px, 6vw, 90px);
  border-right: 1px solid var(--line-dark);
  text-align: center;
}

.comparison-grid article:last-child {
  border-right: 0;
}

.comparison-name {
  display: block;
  margin-bottom: 44px;
  color: #9da3a0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: left;
}

.flow-inputs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.flow-inputs span {
  padding: 9px 12px;
  border: 1px solid var(--line-dark);
  font-size: 0.74rem;
}

.flow-arrow {
  margin-block: 24px;
  color: #818784;
}

.comparison-grid article > strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 500;
}

.after-flow > strong:first-of-type {
  color: var(--green-light);
}

.human-step {
  color: var(--warning);
}

.flow-output {
  margin: 0;
  padding-block: 18px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.end-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 64px;
}

.end-action p {
  margin: 0;
  color: #9da3a0;
  font-size: 0.74rem;
}

.light-action {
  width: min(100%, 340px);
}

/* Footer */
.demo-footer {
  color: var(--white);
  background: #101212;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.footer-inner div {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.footer-inner div span {
  color: var(--green-light);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-inner p {
  max-width: 760px;
  margin: 0;
  color: #929896;
  font-size: 0.68rem;
  text-align: right;
}

/* 1366px前後では、説明欄を見出しの下へ移して不自然な改行を防ぎます。 */
@media (max-width: 1450px) {
  .demo-intro {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .prototype-note {
    grid-column: 2;
    max-width: 620px;
  }
}

/* タブレット：広い画面用の列を減らし、通常の縦方向へ戻します。 */
@media (max-width: 1100px) {
  .shell {
    width: min(calc(100% - 64px), var(--shell));
  }

  .demo-intro {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .prototype-note {
    grid-column: 2;
    max-width: 620px;
  }

  .project-card {
    grid-template-columns: 50px minmax(220px, 1.2fr) minmax(280px, 1fr) 110px;
    gap: 24px;
  }

  .detail-title-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 60px;
  }

  .organize-grid,
  .report-layout {
    grid-template-columns: 1fr;
  }

  .organize-copy,
  .report-actions {
    max-width: 760px;
  }

  .report-actions {
    position: static;
  }

  .review-item {
    grid-template-columns: 50px minmax(150px, 0.6fr) minmax(280px, 1.4fr);
  }

  .review-control {
    grid-column: 2 / -1;
    grid-template-columns: 1fr 170px;
    align-items: center;
  }
}

/* スマートフォン：すべて通常の1列配置を基本にします。 */
@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .shell {
    width: min(calc(100% - 36px), var(--shell));
  }

  .header-inner {
    min-height: 106px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .header-disclaimer {
    display: block;
    font-size: 0.64rem;
  }

  .header-disclaimer strong {
    display: inline-block;
    margin-right: 8px;
  }

  .header-disclaimer span {
    display: inline;
  }

  .demo-intro {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 64px 72px;
  }

  .intro-index {
    width: 48px;
  }

  .intro-copy h1 {
    margin-bottom: 28px;
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .prototype-note {
    grid-column: auto;
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row > p {
    margin: 16px 0 0;
  }

  .project-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 0;
  }

  button.project-card:hover,
  button.project-card:focus-visible {
    padding-inline: 14px;
  }

  .project-title,
  .project-meta,
  .project-action {
    grid-column: 2;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-action {
    justify-self: start;
  }

  .detail-hero {
    padding-top: 32px;
  }

  .detail-title-grid {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 64px;
  }

  .detail-title-grid h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .detail-title-grid h1 span {
    margin-top: 22px;
  }

  .fiction-banner {
    margin-top: 54px;
  }

  .fiction-banner strong {
    display: block;
    margin: 0 0 8px;
  }

  .section-space {
    padding-block: 78px;
  }

  .point-heading,
  .section-title-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .point-heading > p {
    margin-top: 0;
  }

  .point-heading h2,
  .section-title-grid h2,
  .report-actions h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

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

  .intake-metrics div {
    padding: 26px 18px;
    border-bottom: 1px solid var(--line);
  }

  .intake-metrics div:nth-child(2) {
    border-right: 0;
  }

  .intake-metrics div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .intake-metrics dt {
    margin-bottom: 18px;
  }

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

  .photo-item figcaption {
    display: block;
    padding: 12px;
  }

  .photo-item figcaption span {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .records-grid {
    grid-template-columns: 1fr;
  }

  .excel-block {
    grid-column: auto;
  }

  .record-block {
    padding: 26px 20px;
  }

  .record-heading {
    display: block;
  }

  .record-heading h3 {
    margin-top: 6px;
  }

  .voice-list li {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .memo-list div {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
  }

  .organize-grid,
  .report-layout {
    gap: 58px;
  }

  .organize-console {
    padding: 24px 18px;
  }

  .console-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .organize-results {
    grid-template-columns: 1fr;
  }

  .organize-results div {
    flex-direction: row;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .organize-results div:last-child {
    border-bottom: 0;
  }

  .review-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 22px 14px;
  }

  .review-location,
  .review-item dl,
  .review-control {
    grid-column: 2;
  }

  .review-item dl div {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .review-control {
    grid-template-columns: 1fr;
  }

  .review-status {
    text-align: left;
  }

  .report-preview {
    padding: 30px 20px;
    box-shadow: 8px 8px 0 #e2e4e0;
  }

  .report-facts div,
  .report-preview li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .comparison-section > .shell > h2 {
    font-size: clamp(2.75rem, 13vw, 4.5rem);
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-grid article {
    padding: 42px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .comparison-grid article:last-child {
    border-bottom: 0;
  }

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

  .footer-inner {
    min-height: 0;
    gap: 20px;
    padding-block: 36px;
  }

  .footer-inner p {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .brand-button {
    gap: 10px;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .intake-metrics strong {
    font-size: 3rem;
  }

  .file-row {
    align-items: flex-start;
    padding: 18px;
  }
}

/* 動きを減らす設定の利用者には、画面スクロールのアニメーションを止めます。 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
