/* AGI4SCM landing page
   Concept: the plain-language request is the product. Requests are set in a
   Mincho face, like a note handed to a colleague; everything else is quiet
   UD Gothic so the real dashboards carry the visual weight. */

:root {
  --paper: #f5f7f8;
  --white: #ffffff;
  --ink: #17212e;
  --sub: #526071;
  --line: #d4dce3;
  --harbor: #1c5aa3;
  --harbor-deep: #0e3666;
  --harbor-wash: #e7eef6;
  --signal: #f0b429;

  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 4px;
  --r-md: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--harbor); }
h1, h2, h3 { margin: 0; font-weight: 700; word-break: auto-phrase; }
.req-text, .cta-request, .plan-tag { word-break: auto-phrase; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: var(--r-sm);
}
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--harbor); color: var(--white);
  border: 1.5px solid var(--harbor); border-radius: var(--r-sm);
  font-family: var(--gothic); font-weight: 700; font-size: 15px;
  text-decoration: none; letter-spacing: .02em;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--harbor-deep); border-color: var(--harbor-deep); }
.btn-ghost { background: transparent; color: var(--harbor); }
.btn-ghost:hover { background: var(--harbor-wash); color: var(--harbor-deep); border-color: var(--harbor-deep); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-light { background: var(--white); color: var(--harbor-deep); border-color: var(--white); }
.btn-light:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 248, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { font-family: var(--gothic); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.brand-by { font-size: 12px; color: var(--sub); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--harbor); text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-kicker { font-size: 15px; color: var(--harbor); font-weight: 700; margin-bottom: 20px; }
.hero-request {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.42; letter-spacing: .01em;
  min-height: calc(1.42em * 3);
  margin-bottom: 28px;
  font-feature-settings: "palt";
}
.caret {
  display: inline-block; width: .08em; height: .9em; margin-left: .06em;
  background: var(--signal); vertical-align: -.08em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { font-size: 17px; color: var(--ink); max-width: 34em; margin-bottom: 32px; }
.hero-lead strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(240, 180, 41, .38) 62%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-shot { margin: 0; }
.shot-frame {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(14, 54, 102, .35);
  overflow: hidden;
  transform: rotate(-.6deg);
}
.shot-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot-bar span { margin-left: 10px; font-size: 12px; color: var(--sub); }
.shot-frame img { aspect-ratio: 4 / 3.4; object-fit: cover; object-position: top center; width: 100%; transition: opacity .35s; }
.shot-frame img.is-fading { opacity: 0; }
.hero-shot figcaption { font-size: 13px; color: var(--sub); margin-top: 14px; }

/* Domains */
.domains { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.domain-list { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--sub); }
.domain-list li { white-space: nowrap; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--harbor-wash); }
.h2 {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.45;
  margin-bottom: 18px; font-feature-settings: "palt";
  max-width: 24em;
}
.section-lead { color: var(--sub); max-width: 40em; margin-bottom: 48px; }
.note { font-size: 14px; color: var(--sub); margin-top: 24px; }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; padding: 24px 24px 8px 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--mincho); font-weight: 800;
  font-size: 44px; line-height: 1; color: var(--harbor); margin-bottom: 18px;
}
.steps h3 { font-size: 17px; margin-bottom: 10px; }
.steps p { font-size: 15px; color: var(--sub); }

/* Comparison */
.compare { background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 9em minmax(0, 1fr) minmax(0, 1fr); }
.compare-row > span { padding: 18px 22px; font-size: 15px; border-top: 1px solid var(--line); }
.compare-row > span:nth-child(2) { color: var(--sub); }
.compare-row > span:nth-child(3) { background: #f4f8fc; font-weight: 700; border-left: 3px solid var(--harbor); }
.compare-row > [role="rowheader"] { font-weight: 700; color: var(--ink); }
.compare-head > span { border-top: 0; font-size: 14px; font-weight: 700; padding-top: 16px; padding-bottom: 16px; }
.compare-head > span:nth-child(3) { color: var(--harbor-deep); }

/* Gallery */
.gallery { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.requests { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.requests button {
  display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; align-items: baseline;
  text-align: left; width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 14px 12px 14px 14px; cursor: pointer; color: var(--ink);
  border-left: 3px solid transparent;
  transition: background-color .15s, border-color .15s;
}
.requests button:hover { background: var(--white); }
.requests button[aria-selected="true"] { background: var(--white); border-left-color: var(--harbor); }
.req-domain { font-family: var(--gothic); font-size: 13px; color: var(--sub); }
.req-text { font-family: var(--mincho); font-weight: 500; font-size: 17px; line-height: 1.6; }
.requests button[aria-selected="true"] .req-text { font-weight: 700; }
.requests button[aria-selected="true"] .req-domain { color: var(--harbor); font-weight: 700; }

.panel { position: sticky; top: 88px; }
.panel-text { margin-bottom: 18px; min-height: 7.5em; }
.panel-title { font-size: 20px; margin-bottom: 8px; }
.panel-desc { color: var(--sub); font-size: 15px; max-width: 36em; }
.panel-shot { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.panel-shot img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: top center; }
.panel-open {
  position: absolute; right: 12px; bottom: 12px;
  background: var(--ink); color: var(--white); font-size: 13px; padding: 6px 12px; border-radius: var(--r-sm);
}
.panel-shot:hover .panel-open { background: var(--harbor); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--harbor); border-radius: var(--r-sm); padding: 32px; }
.plan + .plan { border-top-color: var(--harbor-deep); }
.plan-name { font-family: var(--mincho); font-size: 24px; margin-bottom: 6px; }
.plan-tag { color: var(--harbor); font-weight: 700; margin-bottom: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 12px; height: 6px; border-left: 2px solid var(--harbor); border-bottom: 2px solid var(--harbor);
  transform: rotate(-45deg);
}

/* Security */
.security { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); }
.security .section-lead { margin-bottom: 0; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.facts > div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-weight: 700; margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; color: var(--sub); }

/* Why (dark band) */
.section-ink { background: var(--harbor-deep); color: #e9f0f8; }
.section-ink .h2 { color: var(--white); margin-bottom: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 64px); }
.why-grid h3 { font-size: 18px; color: var(--white); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.why-grid p { color: #c9d7e8; font-size: 15px; max-width: 34em; }

/* CTA */
.cta { background: var(--ink); color: var(--white); padding: clamp(72px, 10vw, 120px) 0; }
.cta-inner { text-align: left; }
.cta-request { font-family: var(--mincho); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.4; margin-bottom: 16px; }
.cta-request::after {
  content: ""; display: inline-block; width: .08em; height: .9em; margin-left: .08em;
  background: var(--signal); vertical-align: -.08em;
}
.cta-lead { color: #c3ccd6; max-width: 36em; margin-bottom: 32px; }

/* Footer */
.site-footer { background: var(--ink); color: #9aa6b4; border-top: 1px solid #2b3747; font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; padding-bottom: 32px; }
.site-footer a { color: #d5dde6; }

/* Responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid, .gallery, .security { grid-template-columns: minmax(0, 1fr); }
  .hero-request { min-height: 0; }
  .shot-frame { transform: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .panel { position: static; }
  .panel-text { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand-by { display: none; }
  .steps, .plans, .facts, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 20px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .facts > div, .facts > div:nth-child(even) { padding: 18px 0; border-left: 0; }
  .compare-row { grid-template-columns: minmax(0, 1fr); }
  .compare-head { display: none; }
  .compare-row > [role="rowheader"] { background: var(--paper); padding-top: 12px; padding-bottom: 12px; }
  .compare-row > span:nth-child(2)::before { content: "汎用の AI だけ："; font-weight: 700; color: var(--ink); }
  .compare-row > span:nth-child(3)::before { content: "AGI4SCM："; color: var(--harbor-deep); }
  .compare-row > span { padding: 14px 16px; }
  .requests { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; border-top: 0; gap: 10px; padding-bottom: 6px; }
  .requests button {
    flex: 0 0 78%; scroll-snap-align: start; grid-template-columns: minmax(0, 1fr); gap: 4px;
    border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white);
  }
  .requests button[aria-selected="true"] { border-color: var(--harbor); box-shadow: inset 0 -3px 0 var(--harbor); }
  .plan { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .shot-frame img { transition: none; }
  * { transition-duration: 0s !important; }
}

/* CTA + form */
.cta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cta-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #344255; }
.cta-list li { padding: 14px 0; border-bottom: 1px solid #344255; color: #c3ccd6; font-size: 15px; }
.cta-list b { color: var(--white); }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--r-md); padding: clamp(22px, 3vw, 36px); }
.form-type { border: 0; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form-type legend { font-weight: 700; margin-bottom: 10px; padding: 0; font-size: 15px; }
.form-type label { position: relative; cursor: pointer; }
.form-type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.form-type span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; }
.form-type input:checked + span { border-color: var(--harbor); background: var(--harbor-wash); color: var(--harbor-deep); font-weight: 700; }
.form-type input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: flex; gap: 8px; align-items: baseline; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.req, .opt { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.req { background: var(--harbor); color: var(--white); }
.opt { background: var(--paper); color: var(--sub); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--harbor); outline: none; box-shadow: 0 0 0 3px rgba(28, 90, 163, .18); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; font-size: 14px; }
.consent input { margin-top: .4em; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { font-size: 14px; color: var(--sub); }
.form-status.error { color: #b42318; }
.thanks { display: none; }
.form-card.done form { display: none; }
.form-card.done .thanks { display: block; }
.thanks h3 { font-size: 20px; margin-bottom: 8px; }
@media (max-width: 960px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .fields { grid-template-columns: minmax(0, 1fr); } }

/* Legal page (privacy.html) */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.legal-wrap { max-width: 760px; }
.legal-title { font-family: var(--mincho); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.4; margin-bottom: 20px; }
.legal-lead { color: var(--ink); margin-bottom: 40px; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 18px; margin-bottom: 12px; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 0 0 10px; padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }
.legal-dl { margin: 0; }
.legal-dl > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 12px; padding: 4px 0; }
.legal-dl dt { color: var(--sub); }
.legal-dl dd { margin: 0; }
.legal-date { color: var(--sub); font-size: 14px; }
.legal-back { margin-top: 32px; }
