/* =========================================================
   ReTime — 領収書自動仕訳システム LP
   デザインの正: Claude Design「ReTime LP v2」
   （生成り × 紺 × ゴールドの落ち着いたプロダクトLP）
   自己完結ページ: 本サイト共通の styles.css / script.js には依存しない
   ========================================================= */

:root {
  --cream: #f7f1e3; /* 生成り地（ページ背景） */
  --paper: #fdfaf2; /* 紙白（見出し文字・面） */
  --navy: #1f2b38; /* 紺（最濃色・見出し・CTA地） */
  --navy-2: #2e3a48; /* 紺（ホバー） */
  --tx: #5a6675; /* 本文グレー */
  --gold: #c99a3f; /* ゴールド */
  --gold-l: #e8c97a; /* ゴールド淡 */
  --brown: #b77a3d; /* ブラウン（キッカー・リンクhover） */
  --brown-d: #8a5a2b; /* ブラウン濃（リンク） */
  --rule: #c9bca0; /* 罫線ベージュ */
  --rule-l: #e4d9c2; /* 罫線ベージュ淡 */
  --muted: #6a7380; /* 補助グレー（注記・紙面上でコントラスト比4.5:1以上を保つ） */
  --serif: "Shippori Mincho", serif;
  --sans: "Zen Kaku Gothic New", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--cream);
  font-family: var(--sans);
  color: var(--tx);
  line-height: 1.7;
  word-break: auto-phrase;
}

::selection {
  background: #e8c97a;
  color: var(--navy);
}

a {
  color: var(--brown-d);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brown);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

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

/* 語・複合語を行末で分断させないためのインライン nowrap 用ユーティリティ */
.nowrap {
  white-space: nowrap;
}

/* 文末「。」の直後に次文の冒頭がぶら下がるのを防ぐ。
   余白に収まる文は同一行に残り、収まらない文だけ文頭から次行に落ちる */
.sentence {
  display: inline-block;
}

/* auto-phrase 非対応ブラウザ（Firefox/Safari）向けフォールバック:
   jawrap.js が BudouX で文節境界にゼロ幅スペースを挿入し、
   keep-all で Chrome の auto-phrase と同等の文節折り返しを再現する */
html.jawrap-keepall body {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 60px rgba(31, 43, 56, 0.12);
}

/* ================= ボタン（共通） ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
/* 紺CTA */
.btn--navy {
  background: var(--navy);
  color: var(--cream);
}
.btn--navy:hover {
  background: var(--navy-2);
  color: var(--cream);
}
/* 金CTA */
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover {
  background: var(--gold-l);
  color: var(--navy);
}
/* 枠線CTA（明地の上） */
.btn--outline {
  background: transparent;
  border-color: var(--rule);
  color: var(--navy);
}
.btn--outline:hover {
  border-color: var(--gold);
  background: rgba(201, 154, 63, 0.1);
  color: var(--navy);
}
/* 枠線CTA（紺地の上） */
.btn--ghost {
  background: transparent;
  border-color: rgba(253, 250, 242, 0.4);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: rgba(253, 250, 242, 0.85);
  background: rgba(253, 250, 242, 0.08);
  color: var(--paper);
}

/* ================= HEADER ================= */
.hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 48px;
  border-bottom: 1px solid var(--rule-l);
}
.hd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hd-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}
.hd-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1;
}

/* ================= HERO ================= */
.hero {
  position: relative;
}
.hero-media {
  position: relative;
}
.hero-img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  object-position: left 55%;
}
/* 生成りの薄いスクリム（右側の文字可読性を担保・AI生成画像への保険） */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(247, 241, 227, 0) 30%,
    rgba(247, 241, 227, 0.35) 62%,
    rgba(247, 241, 227, 0.72)
  );
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 56px;
}
.hero-tx {
  max-width: 560px;
  text-align: right;
  min-width: 0;
}
.hero-kicker {
  font-size: 15px;
  letter-spacing: 0.28em;
  color: var(--brown-d); /* 製品ジャンルを示す情報テキストのため装飾ブラウン(--brown)より濃くAA確保 */
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-bottom: 24px;
}
.hero-lead {
  font-size: 17px;
  line-height: 2.1;
  color: var(--tx);
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ================= セクション見出し（共通） ================= */
.sec-kicker {
  font-size: 13px;
  letter-spacing: 0.28em;
  font-weight: 500;
  color: var(--brown);
}
.sec-title {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
}

/* ================= FLOW ================= */
.flow {
  padding: 96px 56px 100px;
}
.flow-inner {
  max-width: 880px;
  margin: 0 auto;
}
.flow-head {
  margin-bottom: 56px;
}
.flow-head .sec-title {
  font-size: 36px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-top: 14px;
}
.flow-list {
  display: grid;
  row-gap: 32px;
}
.flow-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 32px;
}
.flow-marker {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.flow-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 63, 0.18);
  flex: none;
  z-index: 1;
}
.flow-step:not(:last-child) .flow-marker::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: -32px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--rule-l);
}
.flow-body {
  min-width: 0;
  padding-bottom: 4px;
}
.flow-no {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--brown);
  margin-right: 14px;
}
.flow-t {
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.flow-p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--tx);
  max-width: 720px;
}
.flow-note {
  margin-top: 44px;
  padding-left: 60px;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ================= セクションイラスト・機能アイコン ================= */
.intro-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--rule-l);
  border-radius: 14px;
  display: block;
}
.feat-svg {
  display: block;
  color: var(--navy);
  stroke-width: 1.5; /* Lucide既定の2より細く、LPの線の細さに合わせる */
}

/* ================= INTRO / 共感 ================= */
.intro {
  padding: 88px 56px 12px;
}
.intro-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}
.intro-tx {
  min-width: 0;
}
.intro-title {
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-top: 14px;
}
.intro-lead {
  font-size: 16px;
  line-height: 2.1;
  color: var(--tx);
  margin-top: 22px;
}
.intro-points {
  margin-top: 26px;
  display: grid;
  row-gap: 14px;
}
.intro-point {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--navy);
}
.intro-mark {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 6px;
  border-radius: 50%;
  background: rgba(201, 154, 63, 0.14);
  position: relative;
}
.intro-mark::before,
.intro-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.5px;
  background: var(--brown);
  transform: translate(-50%, -50%) rotate(45deg);
}
.intro-mark::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.intro-ph {
  aspect-ratio: 4 / 3;
  min-width: 0;
}

/* ================= FEATURES ================= */
.features {
  padding: 84px 56px 96px;
}
.features-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.features-head {
  text-align: center;
  margin-bottom: 52px;
}
.features-head .sec-title {
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-top: 14px;
}
.features-sub {
  font-size: 15.5px;
  line-height: 2;
  color: var(--tx);
  max-width: 640px;
  margin: 18px auto 0;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feat {
  min-width: 0;
  padding: 30px 28px 32px;
  background: var(--cream);
  border: 1px solid var(--rule-l);
  border-radius: 16px;
}
.feat-ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.feat-t {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.feat-p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--tx);
}
.feat-note {
  margin-top: 36px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ================= RESULTS ================= */
.results {
  position: relative;
  overflow: hidden;
}
.results-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 35%;
}
.results-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    transparent,
    rgba(31, 43, 56, 0.78)
  );
  pointer-events: none;
}
.results-tx {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.results-lede {
  min-width: 0;
}
.results-lede .sec-kicker {
  color: var(--gold-l);
}
.results-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--paper);
  margin-top: 12px;
}
.results-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  text-align: right;
}
.stat {
  min-width: 0;
}
.stat-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  color: var(--paper);
  white-space: nowrap;
}
.stat-num small {
  font-size: 20px;
  color: var(--gold-l);
  margin-left: 2px;
}
.stat-label {
  font-size: 13.5px;
  color: rgba(253, 250, 242, 0.82);
  margin-top: 12px;
  line-height: 1.7;
}

/* ================= PRICE + CTA ================= */
.price {
  background: var(--navy);
  padding: 84px 56px 76px;
}
.price-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
}
.price-lede {
  flex: 1 1 460px;
  min-width: 0;
}
.price-lede .sec-kicker {
  color: var(--gold-l);
}
.price-amount {
  margin: 14px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.price-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--paper);
  white-space: nowrap;
}
.price-tax {
  font-size: 15px;
  color: rgba(253, 250, 242, 0.7);
  letter-spacing: 0.04em;
}
.price-desc {
  font-size: 15.5px;
  line-height: 2.1;
  color: rgba(253, 250, 242, 0.82);
  margin-top: 18px;
  max-width: 560px;
}
.price-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
}
.price-actions .btn {
  width: 100%;
  padding: 16px 30px;
}
.price-legal {
  max-width: 1080px;
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(253, 250, 242, 0.14);
  font-size: 12px;
  line-height: 2;
  color: rgba(253, 250, 242, 0.55);
}

/* ================= FOOTER ================= */
.ft {
  background: var(--navy);
  padding: 0 56px 40px;
  text-align: center;
}
.ft-line {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(253, 250, 242, 0.5);
}
.ft-line + .ft-line {
  margin-top: 10px;
}
.ft-home {
  color: rgba(253, 250, 242, 0.75);
}
.ft-home:hover {
  color: var(--paper);
}

/* =========================================================
   レスポンシブ（規約: 1000px を先、820px を後に）
   ========================================================= */
@media (max-width: 1000px) {
  .hd {
    padding: 18px 28px;
  }

  /* HERO: 絶対配置をやめ、画像の下へテキストを通常フローで */
  .hero-img {
    height: 340px;
  }
  .hero-scrim {
    display: none;
  }
  .hero-overlay {
    position: static;
    padding: 40px 32px 8px;
    justify-content: flex-start;
  }
  .hero-tx {
    max-width: none;
    text-align: left;
  }
  .hero-title {
    font-size: 44px;
  }
  .hero-actions {
    justify-content: flex-start;
  }

  .flow {
    padding: 72px 32px 78px;
  }
  .flow-head {
    margin-bottom: 44px;
  }
  .flow-head .sec-title {
    font-size: 30px;
  }

  .intro {
    padding: 68px 32px 4px;
  }
  .intro-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .intro-title {
    font-size: 30px;
  }
  .intro-ph {
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .features {
    padding: 68px 32px 78px;
  }
  .features-head {
    margin-bottom: 40px;
  }
  .features-head .sec-title {
    font-size: 30px;
  }
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .results-img {
    height: 500px;
  }
  .results-tx {
    left: 32px;
    right: 32px;
    bottom: 40px;
  }
  .results-title {
    font-size: 32px;
  }
  .results-stats {
    gap: 36px;
  }

  .price {
    padding: 68px 32px 62px;
  }
  .price-inner {
    gap: 40px;
  }
  .price-actions {
    min-width: 240px;
  }
  .ft {
    padding: 0 32px 34px;
  }
}

@media (max-width: 820px) {
  .hd {
    padding: 16px 20px;
  }
  .hd-name {
    font-size: 22px;
  }

  .hero-img {
    height: 260px;
  }
  .hero-overlay {
    padding: 32px 20px 4px;
  }
  .hero-title {
    font-size: 34px;
    line-height: 1.5;
  }
  .hero-lead {
    font-size: 15.5px;
    line-height: 2;
  }
  .hero-lead br {
    display: none;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .flow {
    padding: 56px 20px 62px;
  }
  .flow-head {
    margin-bottom: 36px;
  }
  .flow-head .sec-title {
    font-size: 25px;
    line-height: 1.55;
  }
  .flow-step {
    gap: 20px;
  }
  .flow-t {
    font-size: 20px;
  }
  .flow-p {
    font-size: 15px;
  }
  .flow-note {
    padding-left: 0;
    font-size: 13px;
  }

  .intro {
    padding: 52px 20px 4px;
  }
  .intro-title {
    font-size: 25px;
    line-height: 1.55;
  }
  .intro-lead {
    font-size: 15.5px;
  }
  .intro-point {
    font-size: 15px;
  }

  .features {
    padding: 54px 20px 60px;
  }
  .features-head {
    margin-bottom: 32px;
  }
  .features-head .sec-title {
    font-size: 25px;
    line-height: 1.55;
  }
  .feat-br {
    display: none;
  }
  .feat-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feat {
    padding: 26px 22px 28px;
  }
  .feat-note {
    margin-top: 28px;
  }

  .results-img {
    height: 520px;
  }
  .results-tx {
    left: 20px;
    right: 20px;
    bottom: 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .results-title {
    font-size: 28px;
  }
  .results-stats {
    text-align: left;
    gap: 32px;
  }
  .stat-num {
    font-size: 38px;
  }

  .price {
    padding: 54px 20px 50px;
  }
  .price-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
  .price-num {
    font-size: 46px;
  }
  .price-desc br {
    display: none;
  }
  .price-actions {
    min-width: 0;
    width: 100%;
  }
  .price-legal {
    margin-top: 34px;
  }
  .ft {
    padding: 0 20px 30px;
  }
}
