/* ========================================
   GXスマートライフ 住宅向け太陽光発電＆蓄電池 LP
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #2d6a3f;
  --color-primary-dark: #1e4f2e;
  --color-primary-light: #edf7f0;
  --color-primary-50: #f5faf7;

  --color-accent: #e8850c;
  --color-accent-dark: #c06d08;
  --color-accent-light: #fff4e5;

  --color-text: #2c2c2c;
  --color-text-light: #555;
  --color-text-muted: #888;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-dark: #1a2e1a;
  --color-border: #e0e0e0;

  --font-primary: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  --font-accent: 'Inter', 'Noto Sans JP', sans-serif;

  --fs-hero: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h2: clamp(1.5rem, 3.5vw, 2.25rem);
  --fs-h3: clamp(1.125rem, 2.5vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;

  --section-padding: clamp(60px, 8vw, 120px);
  --container-max: 1200px;
  --container-padding: clamp(20px, 4vw, 40px);

  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* --- Reset / Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

strong {
  font-weight: var(--fw-bold);
}

small {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* --- Utility --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.sp-only {
  display: none;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  color: var(--color-text);
}

.section-sub {
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: var(--fs-body);
}

.section-header--light h2 {
  color: #fff;
}

.section-sub--light {
  color: rgba(255,255,255,0.85);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232,133,12,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}

.btn-outline-white:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Placeholder Image Fallback --- */
.placeholder-active {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #d4e8dc 50%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
}

.placeholder-active::after {
  content: attr(data-placeholder);
  display: block;
  padding: 20px;
  font-size: var(--fs-small);
  color: var(--color-primary);
  text-align: center;
  opacity: 0.6;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.header--scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  z-index: 1001;
}

.logo-img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.9);
  transition: color var(--transition-base);
}

.header--scrolled .main-nav a {
  color: var(--color-text);
}

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

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.header-cta-btn:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  transition: all var(--transition-base);
}

.header--scrolled .hamburger span {
  background: var(--color-text);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.is-active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
  background: var(--color-text);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
  background: var(--color-text);
}

/* ========================================
   FV (First View)
   ======================================== */
.fv {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.fv-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fv-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* プレースホルダー: 画像がない場合のフォールバック */
.fv-bg:has(img[src=""]),
.fv-bg:not(:has(img)) {
  background: linear-gradient(135deg, #1a3a24 0%, #2d6a3f 40%, #1a2e1a 100%);
}

.fv-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.75) 45%,
    rgba(255,255,255,0.15) 100%
  );
}

.fv-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
  color: var(--color-text);
}

.fv-label {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 16px;
  border-left: 3px solid var(--color-accent);
  padding-left: 12px;
}

.fv-heading {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  color: var(--color-primary-dark);
}

.fv-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--fw-medium);
  margin-bottom: 20px;
  color: var(--color-primary);
}

.fv-body {
  font-size: var(--fs-body);
  line-height: 2;
  margin-bottom: 32px;
  color: var(--color-text-light);
}

.fv-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.fv-note {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  font-family: var(--font-accent);
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 1px;
  height: 40px;
  background: var(--color-primary);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -40px; }
  100% { top: 40px; }
}

/* ========================================
   EMPATHY (共感・課題提示)
   ======================================== */
.empathy {
  padding-top: var(--section-padding);
  background: var(--color-bg);
}

.empathy-intro {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.empathy-heading {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  margin-bottom: 16px;
  color: var(--color-text);
}

.empathy-lead {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-text-light);
  line-height: 1.9;
}

.empathy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

.empathy-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.empathy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.empathy-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #2a3a4a 0%, #1a2530 100%);
}

.empathy-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.empathy-card:hover .empathy-card-image img {
  transform: scale(1.05);
}

.empathy-card-body {
  padding: 24px;
}

.empathy-card-body h3 {
  font-size: var(--fs-h3);
  margin-bottom: 8px;
  color: var(--color-text);
}

.empathy-card-body p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Empathy Bridge */
.empathy-bridge {
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.empathy-bridge-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3a24 0%, #2d5a3f 100%);
}

.empathy-bridge-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empathy-bridge-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,46,26,0.75) 0%,
    rgba(26,46,26,0.5) 100%
  );
}

.empathy-bridge-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 60px 20px;
}

.bridge-sub {
  font-size: var(--fs-body);
  opacity: 0.8;
  margin-bottom: 16px;
}

.bridge-main {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: var(--fw-bold);
  line-height: 1.6;
}

.bridge-main strong {
  color: var(--color-accent-light);
}

/* ========================================
   EFFECT (導入効果)
   ======================================== */
.effect {
  padding: var(--section-padding) 0;
  background: var(--color-bg-alt);
}

.effect-highlight {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.effect-highlight-label {
  font-size: var(--fs-body);
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.effect-highlight-number {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--fw-black);
  color: var(--color-accent);
  line-height: 1.2;
}

.effect-yen {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.effect-unit {
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.counter {
  display: inline-block;
}

/* Comparison */
.effect-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.effect-before,
.effect-after {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.effect-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.effect-before .effect-card-image {
  background: linear-gradient(135deg, #e8e8e8 0%, #ccc 100%);
}

.effect-after .effect-card-image {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #b8dcc4 100%);
}

.effect-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.effect-card-body {
  padding: 24px;
}

.effect-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  margin-bottom: 12px;
}

.effect-badge--before {
  background: #e8e8e8;
  color: #666;
}

.effect-badge--after {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.effect-price {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 8px;
  color: var(--color-text);
}

.effect-price strong {
  font-family: var(--font-accent);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: var(--fw-black);
}

.effect-after .effect-price strong {
  color: var(--color-primary);
}

.effect-price span {
  font-size: var(--fs-body);
}

.effect-desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.7;
}

.effect-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.effect-arrow svg {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.effect-message {
  text-align: center;
  padding: 32px;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
}

.effect-message p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.9;
  color: var(--color-text);
}

/* ========================================
   MID CTA
   ======================================== */
.mid-cta {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mid-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3a24 0%, #2d5a3f 100%);
}

.mid-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mid-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,46,26,0.7);
}

.mid-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
}

.mid-cta-text {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 32px;
  line-height: 1.6;
}

.mid-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.mid-cta-note {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.7);
}

/* ========================================
   REASONS (選ばれる理由)
   ======================================== */
.reasons {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.reason-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.reason-item:last-child {
  margin-bottom: 0;
}

.reason-item--reverse {
  direction: rtl;
}

.reason-item--reverse > * {
  direction: ltr;
}

.reason-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #d4e8dc 100%);
}

.reason-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.reason-item:hover .reason-image img {
  transform: scale(1.03);
}

.reason-number {
  display: block;
  font-family: var(--font-accent);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--fw-black);
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: 8px;
}

.reason-body h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: 16px;
  color: var(--color-text);
}

.reason-body p {
  font-size: var(--fs-body);
  color: var(--color-text-light);
  line-height: 1.9;
}

/* ========================================
   PLANS (製品ラインナップ)
   ======================================== */
.plans {
  padding: var(--section-padding) 0;
  background: var(--color-bg-alt);
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.plan-card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #d4e8dc 100%);
}

.plan-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-card-header {
  padding: 16px 24px;
  text-align: center;
}

.plan-card-header h3 {
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  color: #fff;
}

.plan-card-header--diy {
  background: #5a8a6a;
}

.plan-card-header--omakase {
  background: var(--color-primary);
}

.plan-card-header--premium {
  background: var(--color-primary-dark);
}

.plan-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-prices {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.plan-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
}

.plan-price-label {
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

.plan-price-value {
  font-size: var(--fs-body);
  color: var(--color-text);
}

.plan-price-value strong {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: var(--fw-black);
  color: var(--color-accent);
}

.plan-features {
  margin-bottom: 20px;
}

.plan-features li {
  padding: 6px 0 6px 20px;
  font-size: var(--fs-small);
  color: var(--color-text-light);
  position: relative;
  line-height: 1.6;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}

.plan-bonus {
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.plan-bonus-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.plan-bonus p {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.plan-target {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}

.plan-target-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 4px;
}

.plan-target p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  font-style: italic;
}

/* ========================================
   MAKERS (メーカー)
   ======================================== */
.makers {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.maker-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.maker-group-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.maker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.maker-tag {
  display: inline-block;
  padding: 8px 18px;
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-light);
  border-radius: 30px;
  font-size: var(--fs-small);
  color: var(--color-text);
  transition: all var(--transition-base);
}

.maker-tag:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* ========================================
   SUBSIDY (補助金)
   ======================================== */
.subsidy {
  padding: var(--section-padding) 0;
  background: var(--color-bg-alt);
}

.subsidy-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.subsidy-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.subsidy-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.subsidy-table th,
.subsidy-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--color-border);
}

.subsidy-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.subsidy-table tbody tr:last-child td {
  border-bottom: none;
}

.subsidy-table tbody tr:hover {
  background: var(--color-primary-50);
}

.subsidy-dr {
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
}

.badge-premium {
  display: inline-block;
  background: var(--color-primary-dark);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.subsidy-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #d4e8dc 100%);
}

.subsidy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subsidy-note {
  margin-top: 24px;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  text-align: center;
}

/* ========================================
   FLOW (導入の流れ)
   ======================================== */
.flow {
  position: relative;
  padding: var(--section-padding) 0;
  overflow: hidden;
}

.flow-bg {
  position: absolute;
  inset: 0;
  background: var(--color-primary-50);
}

.flow-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
}

.flow .container {
  position: relative;
  z-index: 1;
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 12px;
}

.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  margin-bottom: 16px;
}

.flow-step-icon {
  margin-bottom: 12px;
}

.flow-step-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  margin: 0 auto;
}

.flow-step h3 {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  margin-bottom: 8px;
  color: var(--color-text);
}

.flow-step p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.6;
}

.flow-connector {
  width: 40px;
  min-width: 40px;
  height: 2px;
  background: var(--color-primary);
  opacity: 0.3;
  margin-top: 23px;
  flex-shrink: 0;
}

/* ========================================
   COMPANY (会社情報)
   ======================================== */
.company {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.company-profile {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 64px);
}

.company-photo {
  text-align: center;
}

.company-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #d4e8dc 100%);
}

.company-photo-name {
  margin-top: 12px;
  font-size: var(--fs-body);
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.company-photo-name strong {
  display: block;
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  margin-top: 2px;
}

.company-info h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: 16px;
  color: var(--color-text);
}

.company-info h3 small {
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  display: block;
  margin-top: 4px;
}

.company-desc {
  font-size: var(--fs-body);
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 20px;
}

.company-details p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  padding: 4px 0;
}

.company-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 64px);
}

.trust-badge {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.trust-badge-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #d4e8dc 100%);
}

.trust-badge-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-badge-text h4 {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  margin-bottom: 8px;
  color: var(--color-text);
}

.trust-badge-text p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.6;
}

.company-local {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #d4e8dc 100%);
}

.company-local img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-local p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
}

/* ========================================
   CONTACT (CTA)
   ======================================== */
.contact {
  padding: var(--section-padding) 0;
  background: var(--color-bg-dark);
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-base);
}

.contact-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.contact-card-icon {
  margin-bottom: 16px;
}

.contact-card-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  margin: 0 auto;
}

.contact-card h3 {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 16px;
}

.contact-phone {
  display: block;
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--fw-black);
  color: #fff;
  margin-bottom: 8px;
}

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

.contact-email {
  display: block;
  font-size: var(--fs-body);
  color: #fff;
  margin-bottom: 8px;
  word-break: break-all;
}

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

.contact-hours {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* ========================================
   CROSS LINK
   ======================================== */
.cross-link {
  padding: clamp(40px, 5vw, 60px) 0;
  background: var(--color-primary-50);
}

.cross-link-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 40px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.cross-link-image {
  flex-shrink: 0;
  width: 180px;
}

.cross-link-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cross-link-text {
  flex: 1;
}

.cross-link-text .btn {
  margin-top: 16px;
}

.cross-link-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cross-link-text h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: 4px;
  color: var(--color-text);
}

.cross-link-text p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.footer-company p {
  font-size: var(--fs-small);
  line-height: 1.8;
}

.footer-company a {
  color: rgba(255,255,255,0.6);
}

.footer-company a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copyright {
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.3);
}

/* ========================================
   MOBILE FIXED CTA
   ======================================== */
.mobile-fixed-cta {
  display: none;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.animate-on-scroll--left {
  transform: translateX(-30px);
}

.animate-on-scroll--right {
  transform: translateX(30px);
}

.animate-on-scroll--scale {
  transform: scale(0.95);
}

/* Staggered Animation */
.plan-cards .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.plan-cards .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.plan-cards .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }

.empathy-cards .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.empathy-cards .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.empathy-cards .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }

.flow-steps .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.flow-steps .animate-on-scroll:nth-child(3) { transition-delay: 0.1s; }
.flow-steps .animate-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.flow-steps .animate-on-scroll:nth-child(7) { transition-delay: 0.3s; }
.flow-steps .animate-on-scroll:nth-child(9) { transition-delay: 0.4s; }

.contact-methods .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.contact-methods .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.contact-methods .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }

/* ========================================
   RESPONSIVE
   ======================================== */

/* --- Tablet --- */
@media (max-width: 960px) {
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 16px 40px;
    font-size: 1.1rem;
    color: var(--color-text);
  }

  .header-cta-btn {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .empathy-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .effect-comparison {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .effect-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  .reason-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reason-item--reverse {
    direction: ltr;
  }

  .reason-image {
    aspect-ratio: 16 / 9;
  }

  .plan-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
  }

  .maker-groups {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .subsidy-content {
    grid-template-columns: 1fr;
  }

  .subsidy-image {
    display: none;
  }

  .flow-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .flow-step {
    width: 100%;
    max-width: 320px;
    padding: 20px 0;
  }

  .flow-connector {
    width: 2px;
    height: 24px;
    min-width: 2px;
    margin: 0 auto;
  }

  .company-profile {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .company-photo {
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 1;
  }

  .company-trust {
    grid-template-columns: 1fr;
  }

  .trust-badge {
    grid-template-columns: 100px 1fr;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .cross-link-inner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .cross-link-image {
    width: 140px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .fv {
    min-height: 90vh;
  }

  .fv-content {
    text-align: center;
    padding-top: 100px;
  }

  .fv-label {
    border-left: none;
    padding-left: 0;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 4px;
  }

  .fv-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .empathy-bridge {
    min-height: 300px;
  }

  .company-local {
    aspect-ratio: 16 / 9;
  }

  /* Mobile Fixed CTA */
  .mobile-fixed-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 8px 12px;
    gap: 8px;
  }

  .mobile-fixed-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    text-decoration: none;
  }

  .mobile-fixed-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .mobile-cta-phone {
    background: var(--color-primary);
    color: #fff;
  }

  .mobile-cta-form {
    background: var(--color-accent);
    color: #fff;
  }

  /* フッターのスペースを確保（固定CTAバーの分） */
  .site-footer {
    padding-bottom: 80px;
  }

  .effect-highlight {
    padding: 28px 16px;
  }

  .contact-phone {
    font-size: 1.5rem;
  }
}

/* --- Small Mobile --- */
@media (max-width: 480px) {
  .fv-heading {
    font-size: 1.75rem;
  }

  .effect-highlight-number {
    font-size: 1.75rem;
  }

  .reason-number {
    font-size: 2rem;
  }
}

/* --- Image onerror placeholder styles --- */
img[style*="display: none"] + .placeholder-active,
.placeholder-active {
  display: flex;
}
