/* ZIZAI 公開LP 共通スタイル
   見た目の参考: molton.inc/ai-bpo の書体・余白・配色の組み立て(文言・画像は使わない)。
   角は立てる(角丸なし)。影なし。強調色は1色だけ(オーブの青緑)。 */

:root {
  --bg: #ffffff;
  --ink: #0a0b0d;
  --ink-2: #373839;
  --muted: #6b716b;
  --rule: #929a90;
  --hair: #dde1d9;
  /* 面の色: わずかに緑を含んだ灰(名前は初版のまま beige) */
  --beige: #e7eae4;
  --beige-soft: #f2f4f0;
  /* 強調色: オーブの青緑(2026-10-05 経営者の決定で既定に)。白い文字が読める濃さ */
  --accent: #17677a;
  --accent-hover: #115262;
  --accent-deep: #17677a;
  --accent-soft: #e5f0f2;
  --accent-line: #b3d0d6;
  --orb-glow: rgba(23, 103, 122, 0.16);
  --orb-glow-edge: rgba(23, 103, 122, 0.06);
  --on-accent: #ffffff;
  --footer: #050607;
  --footer-line: #27292b;
  --footer-ink: #9a9ea1;
  --required: #c8343b;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --section-y: 64px;
  --head-gap: 48px;
  --header-h: 64px;
}

@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
    --section-y: 128px;
    --head-gap: 64px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  /* 日本語を文節で折り返す(対応ブラウザのみ。未対応では通常の折り返し) */
  word-break: auto-phrase;
}

h1,
h2,
h3,
.lead,
.apply__sub {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

body.is-menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

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

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--outline {
  background: var(--bg);
  border-color: var(--rule);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--beige-soft);
}

.btn--sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn__arrow {
  width: 16px;
  height: 16px;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hair);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  width: 28px;
  height: 28px;
}

.brand__name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.global-nav {
  display: none;
}

.global-nav__list {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.global-nav__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.global-nav__link:hover .global-nav__label,
.global-nav__link[aria-current="page"] .global-nav__label {
  color: var(--accent-deep);
}

.header-actions {
  display: none;
  gap: 12px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle__bars {
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -7px;
}

.menu-toggle__bars::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  background: var(--bg);
}

.mobile-menu[hidden] {
  display: none;
}

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

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
}

.mobile-menu__ja {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.mobile-menu__en {
  font-size: 11px;
  color: var(--muted);
}

.mobile-menu__actions {
  display: grid;
  gap: 12px;
  padding: 24px var(--gutter) 40px;
}

@media (min-width: 1024px) {
  .global-nav {
    display: block;
  }

  .header-actions {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}

/* ---------- 見出しの組 ---------- */

.section {
  padding: var(--section-y) 0;
}

.section--beige {
  background: var(--beige);
}

.section--soft {
  background: var(--beige-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto var(--head-gap);
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
}

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 672px;
  margin: 0;
  padding-top: 4px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* 文の中のリンク(トライアルの冒頭の文字リンクと同じ見え方) */
.lead a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.lead a:hover {
  color: var(--accent-hover);
}

@media (min-width: 768px) {
  .h2 {
    font-size: 40px;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }

  .lead {
    font-size: 18px;
  }
}

@media (min-width: 1280px) {
  .h2 {
    font-size: 46px;
  }
}

/* ---------- 最初の画面 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
}

.hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__copy {
  max-width: 640px;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 12px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  /* スマホ: 長い方の行(「ZIZAIに次の手を打つ。」約10.6文字分)が、左右の余白の内側に少し余裕を持って収まる大きさ */
  font-size: clamp(22px, calc((100vw - 2 * var(--gutter)) / 11), 34px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

/* 見出しは常に2行で見せる(幅ごとに文字の大きさで収める)。見出しの文言を変えたら、各幅の大きさも測り直す */
.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__title-brand {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero__sub {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

.hero__sub strong {
  font-weight: 500;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__credit {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* 事実の区切りの「／」(トライアルの冒頭の事実の1行と同じ扱い) */
.hero__credit span {
  margin: 0 8px;
  color: var(--rule);
}

@media (min-width: 768px) {
  .hero {
    padding: 96px 0 112px;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__sub {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
  }

  .hero__title {
    font-size: 42px;
  }
}

@media (min-width: 1280px) {
  .hero__title {
    font-size: 54px;
  }
}

/* 最初の画面の図: ZIZAIのオーブ(数字でできた球)。
   描き方はアプリ本体の停止中のオーブ(app/v2/_components/motion/ の uneru-idle-geometry.ts)と同じ式を lp.js に写したもの。
   本体のオーブを変えたら、lp.js も合わせて直す。
   後ろの光は放射状のグラデーション1枚だけ(計算はほぼかからない)。 */

.hero-orb {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, var(--orb-glow) 0%, var(--orb-glow-edge) 40%, transparent 68%);
}

.hero-orb__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.js .hero-orb {
  opacity: 0;
  transition: opacity 1.4s ease;
}

.js .hero-orb.is-shown {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-orb {
    opacity: 1;
    transition: none;
  }
}

/* ---------- こんな方に ---------- */

/* 最初の画面と同じ白地が続くので、上に細い線を引いて区切る */
.section--fit {
  padding-top: 0;
}

.section--fit > .container {
  padding-top: var(--section-y);
  border-top: 1px solid var(--hair);
}

.fit-list {
  display: grid;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.fit-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--beige-soft);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

.fit-list__check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--on-accent);
}

.fit-list__check svg {
  width: 20px;
  height: 20px;
}

/* 4つなので、広い画面では2列×2段 */
@media (min-width: 768px) {
  .fit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .fit-list {
    gap: 24px;
  }

  .fit-list__item {
    padding: 28px;
    font-size: 18px;
  }
}

/* ---------- サービス内容のカード ---------- */

.feature-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    gap: 32px;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid transparent;
}

@media (min-width: 1024px) {
  .feature-card {
    padding: 40px 36px;
  }
}

.feature-card--key {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.feature-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-card__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--beige-soft);
  color: var(--ink);
}

.feature-card--key .feature-card__icon {
  background: var(--accent);
  color: var(--on-accent);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
}

.feature-card__text {
  margin: 0;
  color: var(--ink-2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 4px 0 0;
  list-style: none;
}

.tag-list__item {
  padding: 3px 10px;
  border: 1px solid var(--hair);
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.feature-card--key .tag-list__item {
  border-color: var(--accent-line);
}

/* ---------- ご利用の流れ ---------- */

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border: 1px solid var(--hair);
  background: var(--beige-soft);
}

.flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border-top: 1px solid var(--hair);
}

.flow__step:first-child {
  border-top: 0;
}

.flow__step--key {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.flow__num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-deep);
}

.flow__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.flow__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}

.flow__badge {
  align-self: flex-start;
  padding: 2px 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

@media (min-width: 1024px) {
  .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .flow__step {
    padding: 36px 28px 40px;
    border-top: 0;
    border-left: 1px solid var(--hair);
  }

  .flow__step:first-child {
    border-left: 0;
  }

  .flow__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 48px;
    right: -7px;
    z-index: 1;
    width: 12px;
    height: 12px;
    background: inherit;
    border-top: 1px solid var(--hair);
    border-right: 1px solid var(--hair);
    transform: rotate(45deg);
  }

  .flow__step--key:not(:last-child)::after {
    border-color: var(--accent);
  }

  .flow__step:has(+ .flow__step--key)::after {
    background: var(--beige-soft);
  }
}

/* ---------- 料金 ---------- */

.price {
  max-width: 760px;
  margin: 0 auto;
}

/* 上に正式公開後の料金を1行、下に先行導入パートナーの条件。中身の量が違うので横に並べない */
.price__box {
  border: 1px solid var(--rule);
  background: var(--bg);
}

.price__regular {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px;
}

.price__amount--regular .price__value {
  font-size: 30px;
}

.price__offer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px;
  background: var(--accent-soft);
  border-top: 1px solid var(--rule);
}

.price__name {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.price__name strong {
  color: var(--ink);
  font-weight: 700;
}

.price__amount {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
}

.price__unit {
  font-size: 16px;
}

.price__value {
  font-size: 40px;
  letter-spacing: -0.01em;
}

.price__offer .price__value {
  color: var(--accent-deep);
}

.price__tax {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.price__terms {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

.price__terms li {
  position: relative;
  padding-left: 18px;
}

.price__terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--accent-deep);
}

.price__note {
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--accent-line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.price__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .price__regular {
    padding: 28px 40px;
  }

  .price__offer {
    padding: 40px;
  }

  .price__value {
    font-size: 56px;
  }

  .price__amount--regular .price__value {
    font-size: 32px;
  }
}

/* ---------- 支援者の方へ ---------- */

.supporter {
  display: grid;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.supporter__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.supporter__kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.supporter__kinds li {
  padding: 4px 12px;
  border: 1px solid var(--hair);
  background: var(--beige-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.supporter__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.supporter__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

@media (min-width: 1024px) {
  .supporter {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
    padding-top: 48px;
  }

  .supporter__text {
    font-size: 17px;
  }
}

/* ---------- よくある質問 ---------- */

.faq {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

/* 問いを押すと答えが開く(details/summary。キーボードでも開閉できる) */
.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__q,
.faq__a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  margin: 0;
}

.faq__q {
  grid-template-columns: 32px 1fr 20px;
  align-items: start;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover > span:nth-child(2) {
  color: var(--accent-deep);
}

.faq__toggle {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq__toggle::before,
  .faq__toggle::after {
    transition: none;
  }
}

.faq__a {
  padding: 0 28px 28px 0;
}

.faq__a {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}

.faq__a p {
  margin: 0;
}

.faq__list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.faq__list li {
  position: relative;
  padding-left: 18px;
}

.faq__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--rule);
}

.faq__mark {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.faq__q .faq__mark {
  color: var(--accent-deep);
}

/* ---------- 申し込みの帯 ---------- */

.apply {
  padding: var(--section-y) 0;
  background: var(--accent);
  color: var(--on-accent);
}

.apply .form-card {
  color: var(--ink);
}

.apply__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 768px;
  margin: 0 auto 40px;
  text-align: center;
}

.apply__sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.form-card {
  max-width: 768px;
  margin: 0 auto;
  padding: 28px 20px;
  background: var(--bg);
}

@media (min-width: 768px) {
  .apply__sub {
    font-size: 18px;
  }

  .form-card {
    padding: 48px;
  }
}

.form-grid {
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

legend.field__label {
  margin-bottom: 8px;
  padding: 0;
}

.field__req {
  margin-left: 4px;
  color: var(--required);
}

.field__opt {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.field__hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--beige-soft);
  border: 1px solid var(--hair);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 0;
  background-color: var(--bg);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rule);
  background: var(--bg);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.choice input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.method-fields {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.method-fields[hidden] {
  display: none;
}

.form-actions {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 8px;
}

.form-actions .btn {
  width: 100%;
  max-width: 320px;
}

/* 人間の確認(Cloudflare Turnstile)を描く場所。ふだんは見えないので、行の間(gap)を取らないよう並びの外に置く。
   Cloudflare が人の操作を求めるときだけ、lp.js が data-human-check="active" にして並びに戻す。
   display: none にしないのは、隠したまま確認を動かせるようにするため */
[data-human-check] {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

[data-human-check="active"] {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
}

.form-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  text-align: center;
}

.form-fallback {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: 100%;
}

.form-fallback[hidden] {
  display: none;
}

.form-fallback__addr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.form-fallback__addr .btn {
  width: auto;
}

/* ---------- 準備中のページ ---------- */

.page-intro {
  padding: 96px 0;
  border-bottom: 1px solid var(--hair);
}

.page-intro .eyebrow {
  margin-bottom: 16px;
}

.page-intro__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
}

.page-intro__note {
  margin: 24px 0 0;
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .page-intro {
    padding: 128px 0;
  }

  .page-intro__title {
    font-size: 48px;
  }
}

/* ---------- プライバシーポリシー(privacy.html) ----------
   読み物の1列。見出し・本文・表は、ほかの節と同じ罫線と色だけで組む。角は立て、影は付けない。 */

.policy {
  max-width: 800px;
  margin: 0 auto;
}

.policy h2 {
  margin: 56px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

/* 最初の見出しは、上の区切り線(ページの頭の下線)と重ならないよう線を引かない */
.policy h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.policy h3 {
  margin: 32px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.policy p,
.policy li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}

.policy p {
  margin: 0 0 12px;
}

.policy ul {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

.policy a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* 名前のすぐ右に値(料金・サンプルの段と同じ組み方) */
.policy__rows {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 0 0 16px;
  border-top: 1px solid var(--hair);
}

.policy__rows dt,
.policy__rows dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.8;
}

.policy__rows dt {
  color: var(--muted);
}

.policy__rows dd {
  padding-left: 24px;
  color: var(--ink-2);
}

@media (max-width: 559px) {
  .policy__rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .policy__rows dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .policy__rows dd {
    padding-top: 2px;
    padding-left: 0;
  }
}

/* ---------- トライアル(trial.html) ----------
   このページのために足したのはこの節だけ。色・罫線・余白は上の部品と同じ役割のものを使う
   (面=--beige-soft、枠=--rule/--hair、強調=--accent)。角は立て、影は付けない。 */

/* 冒頭: 中央に1語。背景で螺旋のオーブ(lp.js の initSpiral)がうごめく */
.trial-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(600px, 88vh, 920px);
  padding: 96px 0;
  border-bottom: 1px solid var(--hair);
  text-align: center;
}

.trial-hero__orb {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 冒頭の高さに収まる大きさ(上下を切らない)。携帯では横にはみ出して背景になる */
  width: min(150vw, 96vh, 900px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.trial-hero__orb canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.trial-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 文字の下だけ、オーブの線を淡く退かせて読ませる(線そのものは消さない) */
.trial-hero__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -64px -10%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.45) 60%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.trial-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 10vw, 128px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  /* 字間の分だけ右に寄って見えるのを戻す */
  margin-right: -0.08em;
}

.trial-hero__sub {
  margin: 32px 0 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
}

.trial-hero__facts {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

.trial-hero__facts span {
  margin: 0 12px;
  color: var(--rule);
}

.trial-hero__cta {
  margin-top: 40px;
  min-width: 240px;
}

.trial-hero__more {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.trial-hero__more:hover {
  color: var(--accent-hover);
}

@media (max-width: 767px) {
  .trial-hero {
    min-height: 560px;
    padding: 72px 0;
  }

  .trial-hero__sub {
    font-size: 16px;
  }

  .trial-hero__facts span {
    margin: 0 8px;
  }
}

/* サンプル2社・自社の推移表: 同じ2列 */
.sample-pair {
  display: grid;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .sample-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sample {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--rule);
  background: var(--bg);
}

.sample__format {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-deep);
}

.sample__name {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
}

.sample__kind {
  margin: 4px 0 0;
  color: var(--ink-2);
}

/* 名前のすぐ右に値(料金の段と同じく、離して置かない) */
.sample__rows,
.trial-rules__rows {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 24px 0 28px;
  border-top: 1px solid var(--hair);
}

.sample__rows dt,
.sample__rows dd,
.trial-rules__rows dt,
.trial-rules__rows dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.7;
}

.sample__rows dt,
.trial-rules__rows dt {
  color: var(--muted);
}

.sample__rows dd,
.trial-rules__rows dd {
  padding-left: 24px;
}

/* 配るファイル(1つずつ直接ダウンロード。2026-10-29) */
.sample__files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 24px;
}

.sample__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: auto;
}

/* 会社のストーリーを開く(文字のボタン。ダウンロードより一段控えめ) */
.sample__story {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.sample__story:hover {
  color: var(--accent-hover);
}

/* 会社のストーリー(ダイアログ)。枠1本・角は立てる・影なし。中身だけを送る */
.story {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
}

.story::backdrop {
  background: rgba(10, 11, 13, 0.55);
}

.story__frame {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 50px);
}

.story__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--hair);
}

.story__name {
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
}

.story__close {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.story__close:hover {
  background: var(--beige-soft);
}

.story__body {
  overflow-y: auto;
  padding: 24px 28px 32px;
}

.story__how {
  margin: 0 0 8px;
  padding: 14px 16px;
  background: var(--beige-soft);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.story__h {
  margin: 32px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.story__rows {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 12px 0 0;
  border-top: 1px solid var(--hair);
}

.story__rows dt,
.story__rows dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  line-height: 1.75;
}

.story__rows dt {
  max-width: 11em;
  color: var(--muted);
}

.story__rows dd {
  padding-left: 20px;
}

.story__rows--years dt {
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep);
  font-weight: 500;
}

.story__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}

.story__list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  line-height: 1.75;
}

.story__quote {
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.story__foot {
  display: flex;
  justify-content: flex-end;
  padding: 16px 28px;
  border-top: 1px solid var(--hair);
  background: var(--beige-soft);
}

/* カードと同じダウンロードのボタン(lp.js が入れる)。ダイアログの下では、カード用の余白を外す */
.story__foot .sample__files {
  justify-content: flex-end;
  margin: 0;
}

@media (max-width: 599px) {
  .story__head,
  .story__body,
  .story__foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ボタンが縦に積まれて本文の読める範囲が狭くならないよう、2列に並べる */
  .story__foot .sample__files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

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

  .story__rows dt {
    max-width: none;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .story__rows dd {
    padding-left: 0;
    padding-top: 2px;
  }

  .story__foot .btn {
    width: 100%;
  }
}

/* 使い方: 1つの手順=左に文・右に本物の画面 */
.guide {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hair);
  background: var(--beige-soft);
}

.guide__step {
  display: grid;
  gap: 20px;
  padding: 28px 24px;
  border-top: 1px solid var(--hair);
}

.guide__step:first-child {
  border-top: 0;
}

.guide__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide__num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-deep);
}

.guide__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.guide__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* 1巡の手順(2026-10-29): 左にアプリの段の名前、右に押すボタンと入れる値(名前のすぐ右に値。サンプルの段と同じ組み方) */
.guide__rows {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 4px 0 0;
  border-top: 1px solid var(--hair);
}

.guide__rows dt,
.guide__rows dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.75;
}

.guide__rows dt {
  color: var(--muted);
}

.guide__rows dd {
  padding-left: 20px;
  color: var(--ink-2);
}

/* 携帯の幅では段の名前を文の上に置く(横に並べると右の文が細切れになる。390で撮影して確認) */
@media (max-width: 599px) {
  .guide__rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide__rows dt {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 13px;
  }

  .guide__rows dd {
    padding-top: 2px;
    padding-left: 0;
  }
}

/* 押すボタンの名前(アプリの画面の文と同じ。試験が照らす) */
.guide__ui {
  font-weight: 700;
  color: var(--ink);
}

/* 1段目は「仮の名前で構いません」だけを太く見せ、ボタンの名前は本文と同じ太さにする(2026-10-29 経営者の指示) */
.guide__ui--plain {
  font-weight: inherit;
  color: inherit;
}

.guide__strong {
  font-weight: 700;
  color: var(--ink);
}

/* 見出しの横の補い(「1回に数分」) */
.guide__note {
  margin-left: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.guide__after {
  max-width: 760px;
  margin: 32px auto 0;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
  color: var(--ink-2);
}

/* 画面の絵の枠。中身は本物の画面の写真(差し替えるまでは名前だけ) */
.guide__shot {
  margin: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hair);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.guide__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* 切らずに全体を見せる画面(ダッシュボードの8つのグラフ) */
.guide__shot--whole img {
  object-fit: contain;
}

.guide__shot-wait {
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .guide__step {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: center;
    padding: 40px 32px;
  }
}

/* お試しの決まり */
.trial-rules {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 28px 32px;
  border: 1px solid var(--rule);
  background: var(--bg);
}

.trial-rules__rows {
  margin-top: 0;
  border-top: 0;
}

.trial-rules__cta {
  display: flex;
  justify-content: center;
}

/* ---------- フッター ---------- */

.site-footer {
  padding: 48px 0 32px;
  background: var(--footer);
  border-top: 1px solid var(--footer-line);
  color: #ffffff;
}

.site-footer__top {
  display: grid;
  gap: 40px;
}

.site-footer .brand__name {
  color: #ffffff;
}

.site-footer__lead {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--footer-ink);
}

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

.site-footer__heading {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.site-footer__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  font-size: 14px;
  color: var(--footer-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__links a:hover {
  color: #ffffff;
}

.site-footer__bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-line);
  font-size: 12px;
  color: var(--footer-ink);
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 64px 0 32px;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- スクロールで出る ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-shown {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
