/* ============================================================
   固定資産税セカンドオピニオン LP
   Design tokens & global styles
   ============================================================ */

:root {
  --navy: #1A3A5C;
  --navy-deep: #142E49;
  --navy-light: #2A5378;
  --gold: #C9A961;
  --gold-deep: #B89544;
  --gold-soft: #E8D9B0;
  --white: #FFFFFF;
  --cream: #F8F5EF;
  --cream-deep: #EFEAE0;
  --charcoal: #2C2C2C;
  --gray: #6B6B6B;
  --gray-light: #B5B0A8;
  --line: #E2DDD2;
  --warn: #B23B3B;

  --serif: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
  --sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;

  --shadow-sm: 0 1px 2px rgba(20, 46, 73, 0.06), 0 1px 1px rgba(20, 46, 73, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 46, 73, 0.08), 0 2px 4px rgba(20, 46, 73, 0.05);
  --shadow-lg: 0 12px 32px rgba(20, 46, 73, 0.12), 0 4px 8px rgba(20, 46, 73, 0.06);
  --shadow-cta: 0 6px 18px rgba(201, 169, 97, 0.32);
  --shadow-cta-hover: 0 10px 28px rgba(201, 169, 97, 0.45);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --section-py-d: 112px;
  --section-py-m: 72px;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
}
@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.75; }
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--navy);
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section { padding: var(--section-py-d) 0; position: relative; }
@media (max-width: 720px) { .section { padding: var(--section-py-m) 0; } }

.section-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 3px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 20px;
}
.section-lede {
  font-size: 16px;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.9;
  margin: 0 0 56px 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform .2s ease-out, box-shadow .2s ease-out, background-color .2s ease-out;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-size: 18px;
  padding: 18px 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: var(--gray-light);
  color: var(--white);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  font-size: 16px;
  padding: 16px 28px;
  border: 1px solid var(--navy);
  border-radius: var(--radius-md);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); text-decoration: none; }

.btn-arrow::after {
  content: "→";
  font-weight: 400;
  transition: transform .2s ease-out;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- fade-in on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease-out, transform .6s ease-out;
  /* CSSフォールバック: JSが動かない環境でも0.8s後に表示 */
  animation: reveal-fallback 0.6s 0.8s ease-out forwards;
}
@keyframes reveal-fallback {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.reveal.in {
  opacity: 1;
  transform: none;
  animation: none;
}
/* モバイルではアニメーションを無効化し、常にコンテンツを表示 */
@media (max-width: 767px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  html { scroll-behavior: auto; }
}
