/* パシャ経費管理＆AI相談 — 複式簿記モード LP（ラグジュアリー・レスポンシブ） */

:root {
  --gold: #d4af37;
  --gold-light: #f4e4a6;
  --gold-dark: #8b6914;
  /* rgba(var(--accent-rgb), α) 用（テーマ切り替えで一括変更） */
  --accent-rgb: 212, 175, 55;
  --accent2-rgb: 139, 105, 20;
  --ink: #0d0d0f;
  --ink-soft: #1a1a1f;
  --cream: #faf8f3;
  --muted: rgba(255, 255, 255, 0.72);
  --font-sans: "Noto Sans JP", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", "Noto Serif JP", serif;
  --shadow-soft: 0 25px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--cream);
  background: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* 背景：深い紺〜黒＋ゴールドの光（金運・成功のイメージ） */
.page-bg {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.page-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(var(--accent-rgb), 0.22), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(var(--accent2-rgb), 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(var(--accent-rgb), 0.08), transparent 45%),
    linear-gradient(180deg, #0a0a0c 0%, #121218 40%, #0d0d12 100%);
  pointer-events: none;
}

.page-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

.content-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 4rem;
}

/* ヘッダー */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem) 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
}

.brand {
  font-size: clamp(2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  margin: 0;
}

.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(145deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.45);
}

.btn-secondary {
  display: inline-flex;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: var(--gold-light);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: var(--gold);
}

/* ヒーロー */
.hero {
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(3rem, 10vw, 5rem);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  background: rgba(var(--accent-rgb), 0.06);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #fffef8 0%, var(--gold-light) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto 1rem;
}

.hero-lead strong {
  color: var(--gold-light);
  font-weight: 600;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.9vw, 1.08rem);
  color: var(--muted);
  max-width: 38em;
  margin: 0 auto 1.5rem;
  opacity: 0.92;
}

.hero-sub strong {
  color: var(--gold-light);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  backdrop-filter: blur(8px);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.stat-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* セクション共通 */
section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 1rem;
}

.section-intro {
  color: var(--muted);
  max-width: 42em;
  margin: 0 0 2rem;
  font-size: 1rem;
}

/* 特徴グリッド */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.12);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--gold-light);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* SEOキーワード帯 */
.keyword-band {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.keyword-band p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
}

.keyword-band strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* CTA 帯 */
.cta-section {
  text-align: center;
  padding: clamp(3rem, 8vw, 4.5rem) 1.5rem;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--accent-rgb), 0.2), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  box-shadow: var(--shadow-soft);
}

.cta-section h2 {
  margin-bottom: 0.75rem;
}

.cta-section .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* フッター */
.site-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

/* スマホ：ヒーロータイトルを行幅の約80%に（中央寄せ・やや小さめのフォントで収まりを調整） */
@media (max-width: 599px) {
  .hero h1 {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.45rem, 4.2vw + 0.35rem, 1.95rem);
  }
}

/* タブレット */
@media (min-width: 600px) {
  .nav-links {
    gap: 1rem 1.5rem;
  }
}

/* 大画面でヘッダー横並びを強化 */
@media (min-width: 900px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* アクセシビリティ：フォーカス */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
