/* ==========================================================
   FureAI LP  - mobile first
   Navy + white + gold/amber (poster palette)
   ========================================================== */
:root {
  --navy: #0e2240;
  --navy-2: #16305a;
  --navy-3: #1f3d6e;
  --gold: #e0a93a;
  --gold-dark: #c48d1f;
  --ink: #1b2533;
  --muted: #5b6676;
  --line: #dde3ec;
  --pale: #f4f6fa;
  --white: #fff;
  --radius: 12px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "palt";
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 720px; }
.sp-only { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background-color .2s, transform .2s;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover, .btn--gold:focus-visible { background: var(--gold-dark); }
.btn--small {
  padding: 6px 16px;
  font-size: .85rem;
  background: var(--gold);
  color: var(--navy);
}
.btn--block { display: block; width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 34, 64, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.logo span { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(224, 169, 58, .18), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: var(--white);
  padding: 56px 0 64px;
}
.hero__eyebrow {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  margin-bottom: 1.2em;
}
.hero__title {
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .02em;
  margin-bottom: .8em;
}
.hero__lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, .88);
  max-width: 34em;
  margin-bottom: 2em;
}
.hero__facts {
  list-style: none;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero__facts strong {
  display: block;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1.3;
}
.hero__facts span { font-size: .78rem; color: rgba(255, 255, 255, .75); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--pale { background: var(--pale); }
.section__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .4em;
}
.section--navy .section__label { color: var(--gold); }
.section__title {
  font-size: 1.6rem;
  margin-bottom: 1em;
  position: relative;
  padding-bottom: .5em;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
}
.section__desc { color: var(--muted); }
.section--navy .section__desc { color: rgba(255, 255, 255, .8); }

.note { font-size: .8rem; color: var(--muted); margin-top: 1.5em; }
.section--navy .note { color: rgba(255, 255, 255, .65); }
.source { font-size: .72rem; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about__lead { font-size: 1.02rem; }
.partners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 32px 0 12px;
  text-align: center;
}
.partners__col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--pale);
}
.partners__col h3 {
  font-size: .85rem;
  color: var(--gold-dark);
  letter-spacing: .1em;
  margin-bottom: .5em;
}
.partners__col p { margin: 0; font-weight: 500; }
.partners__x { font-size: 1.6rem; color: var(--gold); line-height: 1; align-self: center; }
.about__period { text-align: center; font-size: .9rem; color: var(--muted); }
.funding {
  margin-top: 32px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: var(--pale);
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Results ---------- */
.results__lead strong { color: var(--gold); }
.cards { display: grid; gap: 16px; margin-top: 28px; }
.stat-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  border-top: 4px solid var(--gold);
}
.stat-card__num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .3em;
}
.stat-card__num small { font-size: 1rem; margin-left: .15em; }
.stat-card__text { font-size: .92rem; }

/* ---------- System ---------- */
.devices { display: grid; gap: 16px; margin-top: 28px; }
.device {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: row;
}
.device__img {
  flex: 0 0 34%;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
  background: var(--white);
  border-right: 1px solid var(--line);
  position: relative;
}
.device__img img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.device__img--dark, .device__img--dark img { background: #000; }
.device__img--navy, .device__img--navy img { background: var(--navy); }
/* 画像未配置時のプレースホルダ(main.js が .is-missing を付与) */
.device__img.is-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, #eef1f6 0 10px, #f6f8fb 10px 20px);
}
.device__img.is-missing::after {
  content: attr(data-label);
  font-size: .7rem;
  color: var(--muted);
  padding: 0 1em;
  text-align: center;
}
.device__body { padding: 14px 16px; flex: 1; min-width: 0; }
.device h3, .platform h3 { font-size: 1.05rem; margin-bottom: .5em; }
.device h3 span, .platform h3 span {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: .04em;
}
.device p { font-size: .9rem; margin: 0; }

.platform {
  margin-top: 16px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  padding: 24px 22px;
}
.platform__label {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4em;
}
.platform h3 span { color: var(--gold); }
.platform p { margin: 0; font-size: .95rem; }

/* ---------- Japan ---------- */
.japan__lead { font-size: 1.05rem; }
.japan__lead strong { color: var(--navy); }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  background: var(--white);
  border: 1px solid var(--navy);
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .85rem;
  font-weight: 500;
}

/* ---------- Form ---------- */
.form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-top: 24px;
}
.form__row { margin-bottom: 18px; }
.form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.req, .opt {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: 2px;
}
.req { background: var(--gold); color: var(--navy); }
.opt { background: var(--line); color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* iOS zoom 回避 */
  padding: 12px 14px;
  border: 1px solid #c5cedb;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(224, 169, 58, .35);
}
.form .is-invalid { border-color: #c0392b; background: #fff7f6; }
.form__privacy { font-size: .8rem; color: var(--muted); }
.form__privacy a { color: var(--navy-3); }
.form__error {
  color: #b03a2e;
  background: #fdecea;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .88rem;
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1a31;
  color: rgba(255, 255, 255, .8);
  padding: 40px 0 28px;
  font-size: .88rem;
}
.site-footer__company { color: var(--white); font-weight: 700; font-size: 1rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; }
.site-footer__links a { color: var(--gold); }
.site-footer__partners p {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: .4em;
}
.site-footer__partners ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer__copy { margin: 28px 0 0; color: rgba(255, 255, 255, .5); }

/* ---------- Thanks page ---------- */
.thanks { min-height: 70vh; display: flex; align-items: center; }
.thanks .section__title::after { left: 50%; transform: translateX(-50%); }
.thanks__box { text-align: center; }

/* ==========================================================
   Tablet / Desktop
   ========================================================== */
@media (min-width: 600px) {
  .sp-only { display: none; }
  .partners { grid-template-columns: 1fr auto 1fr; gap: 20px; }
  .devices { grid-template-columns: 1fr 1fr; }
  .device { flex-direction: column; }
  .device__img { flex: none; aspect-ratio: 4 / 3; align-self: stretch; border-right: 0; border-bottom: 1px solid var(--line); }
  .device__body { padding: 18px 20px 20px; }
  .form { padding: 36px 36px 32px; }
}

@media (min-width: 900px) {
  body { font-size: 17px; }
  .site-header__inner { height: 64px; }
  .btn--small { padding: 8px 20px; font-size: .9rem; }
  .hero { padding: 96px 0 88px; }
  .hero__title { font-size: 3rem; }
  .hero__lead { font-size: 1.1rem; }
  .hero__facts { max-width: 520px; }
  .hero__facts strong { font-size: 2rem; }
  .section { padding: 96px 0; }
  .section__title { font-size: 2rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .devices { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .platform { display: grid; grid-template-columns: 220px 1fr; align-items: center; column-gap: 32px; padding: 28px 32px; }
  .platform__label { grid-column: 1; grid-row: 1; margin: 0; }
  .platform h3 { grid-column: 1; grid-row: 2; margin: 0; }
  .platform p { grid-column: 2; grid-row: 1 / 3; }
}
