@charset "UTF-8";

/* =========================================================
   Joshin まごころリフォーム - 給湯器トラブル解決 & エラーコード検索
   Premium Modern Design System (Ultra Clean & Sophisticated)
   ========================================================= */

:root {
  /*
   * 【デザイン更新箇所】サイト全体で使う共通色です。
   * 色を変える場合は各スタイルを1件ずつ探さず、まずここを変更します。
   * #E60012 のような # + 6桁のカラーコードで指定してください。
   */
  /* Brand Identity (Refined & Modernized) */
  --brand-red: #E60012;
  --brand-red-hover: #D00010;
  --brand-red-soft: #FFF1F2;
  --brand-red-subtle: #FFE4E6;
  --brand-blue: #004EA2;
  --brand-blue-dark: #003673;
  --brand-blue-soft: #EFF6FF;
  --brand-yellow: #FFD000;

  /* Neutral Slate Palette */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Status Colors (Soft Modern Semantics) */
  --status-safe: #059669;
  --status-safe-bg: #ECFDF5;
  --status-safe-border: #A7F3D0;

  --status-warning: #D97706;
  --status-warning-bg: #FFFBEB;
  --status-warning-border: #FDE68A;

  --status-danger: #DC2626;
  --status-danger-bg: #FEF2F2;
  --status-danger-border: #FECACA;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow-red: 0 0 20px rgba(230, 0, 18, 0.2);
  --shadow-glow-blue: 0 0 20px rgba(0, 78, 162, 0.15);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--slate-800);
  background-color: #F8FAFC;
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 72px; /* 下からせり上がる固定CTAバー分のスペース確保 */
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   2. Modern Hero & Smart Search Showcase
   ========================================================= */
.hero-wrapper {
  position: relative;
  background: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%);
  padding: 0 0 32px;
  overflow: hidden;
}

/* 公式サイト共通ヘッダーは1000px以下でposition:fixedになるため、
   最初のセクションで高さ分のスペースを確保する */
@media (max-width: 1000px) {
  .hero-wrapper {
    padding-top: 58px;
  }
}

/* Full-bleed hero banner */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  background: var(--brand-blue-dark);
}

@media (min-width: 641px) {
  .hero-banner {
    min-height: 400px;
  }
}

@media (min-width: 1024px) {
  .hero-banner {
    min-height: 460px;
  }
}

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

.hero-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 18, 38, 0.72) 0%, rgba(4, 18, 38, 0.42) 42%, rgba(4, 18, 38, 0.12) 72%, rgba(4, 18, 38, 0) 100%),
    linear-gradient(0deg, rgba(4, 18, 38, 0.4) 0%, rgba(4, 18, 38, 0) 35%);
}

@media (max-width: 640px) {
  .hero-banner-bg::after {
    background:
      linear-gradient(0deg, rgba(4, 18, 38, 0.72) 0%, rgba(4, 18, 38, 0.4) 55%, rgba(4, 18, 38, 0.32) 100%),
      linear-gradient(180deg, rgba(4, 18, 38, 0.35) 0%, rgba(4, 18, 38, 0) 30%);
  }
}

.hero-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  padding-top: 32px;
  padding-bottom: 32px;
}

.hero-banner-copy {
  max-width: 620px;
  text-align: left;
}

@media (max-width: 640px) {
  .hero-banner-inner {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-banner-copy {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 16px;
}

.hero-badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 0 rgba(255, 208, 0, 0.6);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 0, 18, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(230, 0, 18, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 0, 18, 0); }
}

.hero-main-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #FFF;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .hero-main-title {
    font-size: 1.65rem;
  }
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  line-height: 1.6;
}

.hero-description strong {
  color: #FFF;
}

@media (max-width: 640px) {
  .hero-badge-pill {
    font-size: 0.72rem;
    padding: 5px 12px;
    margin-bottom: 10px;
  }

  .hero-description {
    font-size: 0.88rem;
    line-height: 1.55;
  }
}

/* =========================================================
   3. Smart Search Terminal (Floating Glass Card)
   ========================================================= */
.search-terminal-card {
  position: relative;
  z-index: 3;
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  margin: -24px 0 32px;
}

.search-card-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px 18px;
}

.search-step-number {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.search-card-intro h2 {
  color: var(--slate-900);
  font-size: 1.1rem;
  line-height: 1.35;
}

.search-card-intro p,
.maker-selection-note {
  color: var(--slate-500);
  font-size: 0.82rem;
  line-height: 1.5;
}

.search-card-help-link {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-card-help-link:hover { text-decoration: underline; }

.maker-selection-note {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 8px;
}

.maker-selection-note i { color: var(--brand-blue); }

@media (max-width: 640px) {
  .search-terminal-card {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .search-card-intro {
    align-items: flex-start;
    padding-bottom: 14px;
  }

  .search-card-intro h2 { font-size: 1rem; }

  .search-card-help-link { display: none; }

  .maker-selection-note { align-items: flex-start; }
}

/* Segmented Maker Tabs */
.segmented-maker-bar {
  display: flex;
  background: var(--slate-100);
  padding: 6px;
  border-radius: var(--radius-full);
  gap: 4px;
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.segmented-maker-btn {
  flex: 1;
  min-width: 110px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--slate-600);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.segmented-maker-btn:hover {
  color: var(--slate-900);
}

.maker-logo-img {
  height: 21px;
  width: auto;
  max-width: 105px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: var(--transition);
}

.segmented-maker-btn.active .maker-logo-img,
.segmented-maker-btn:hover .maker-logo-img {
  filter: none;
}

.segmented-maker-btn.active {
  background: #FFFFFF;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

/* Master Search Bar (Huge Apple-style Input) */
.master-search-container {
  position: relative;
  margin-bottom: 16px;
}

.master-search-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.master-search-inner .search-prefix-icon {
  position: absolute;
  left: 18px;
  font-size: 1.1rem;
  color: var(--slate-400);
  pointer-events: none;
  transition: var(--transition);
}

.master-search-input {
  width: 100%;
  padding: 13px 46px 13px 46px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  background: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.master-search-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 5px rgba(0, 78, 162, 0.12);
}

.master-search-input:focus + .search-prefix-icon {
  color: var(--brand-blue);
}

.master-search-clear {
  position: absolute;
  right: 18px;
  background: var(--slate-200);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--slate-600);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.master-search-clear:hover {
  background: var(--brand-red);
  color: #fff;
}

@media (max-width: 640px) {
  .master-search-input {
    padding: 16px 46px 16px 44px;
    font-size: 1rem;
  }

  .master-search-inner .search-prefix-icon {
    left: 16px;
    font-size: 1.15rem;
  }

  .master-search-clear {
    right: 12px;
    width: 28px;
    height: 28px;
  }
}

/* Quick Chip Badges */
.quick-chip-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0 2px;
  border-top: 1px solid var(--slate-100);
}

.quick-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-chip-label {
  flex-basis: 100%;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0;
}

.quick-chip-btn {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.quick-chip-btn:hover {
  background: var(--brand-blue-soft);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quick-chip-btn .chip-num {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-blue);
}

/* Search Status & Filter Bar */
.search-filter-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  flex-wrap: wrap;
  gap: 16px;
}

.severity-filter-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  color: var(--slate-500);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-results-stat {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-600);
}

.search-results-stat strong {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--slate-900);
  font-family: 'Roboto Mono', monospace;
}

.search-results-stat strong[data-empty="true"],
#resultsCountSuffix[data-empty="true"] {
  display: none;
}

.severity-pill-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.severity-pill-btn {
  border: 1px solid var(--slate-200);
  background: #FFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.severity-pill-btn:hover {
  border-color: var(--slate-400);
  color: var(--slate-900);
}

.severity-pill-btn.active {
  background: var(--slate-900);
  color: #FFF;
  border-color: var(--slate-900);
}

.severity-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.severity-dot-indicator.safe { background: var(--status-safe); }
.severity-dot-indicator.warning { background: var(--status-warning); }
.severity-dot-indicator.danger { background: var(--status-danger); }

/* =========================================================
   4. Ultra-Sleek Error Result Cards
   ========================================================= */
.error-cards-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.modern-error-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.modern-error-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
  transform: translateY(-2px);
}

.safety-alert-banner {
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  border-left: 5px solid var(--status-danger);
  border-radius: var(--radius-md);
  color: #991B1B;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.safety-alert-banner strong {
  display: block;
  margin-bottom: 3px;
}

/* Card Header */
.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 14px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-code-pill {
  font-family: 'Roboto Mono', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  line-height: 1;
  letter-spacing: -0.5px;
}

.card-heading-meta {
  display: flex;
  flex-direction: column;
}

.card-maker-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-error-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.3;
}

/* Severity Tag Badges */
.modern-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
}

.modern-badge.safe {
  background: var(--status-safe-bg);
  color: var(--status-safe);
  border: 1px solid var(--status-safe-border);
}

.modern-badge.warning {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border: 1px solid var(--status-warning-border);
}

.modern-badge.danger {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border: 1px solid var(--status-danger-border);
}

/* Content Grid within Card */
.card-details-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .card-details-grid {
    grid-template-columns: 1fr;
  }
}

.card-info-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.card-info-box .info-header {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.card-info-box .info-header i {
  color: var(--brand-blue);
}

.card-info-box .info-body-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.6;
}

/* Tip Highlight Banner */
.card-tip-banner {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.88rem;
  color: #92400E;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-tip-banner i {
  font-size: 1.1rem;
  color: #D97706;
}

/* Card Action Bar */
.card-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
  flex-wrap: wrap;
  gap: 12px;
}

.reset-badge-status {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reset-badge-status.can-reset { color: var(--status-safe); }
.reset-badge-status.cannot-reset { color: var(--status-danger); }

.card-cta-button {
  background: var(--brand-red);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.2);
  transition: var(--transition);
}

.card-cta-button:hover {
  background: var(--brand-red-hover);
  transform: translateY(-1px);
}

/* Load More Button */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.load-more-btn {
  background: #FFFFFF;
  border: 2px solid var(--slate-200);
  color: var(--slate-700);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.load-more-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

/* Empty Results */
.empty-results-box {
  background: #FFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 60px 24px;
  text-align: center;
}

.empty-results-box i.empty-icon {
  font-size: 3.5rem;
  color: var(--slate-300);
  margin-bottom: 16px;
}

.empty-results-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.empty-results-desc {
  font-size: 0.95rem;
  color: var(--slate-500);
  max-width: 480px;
  margin: 0 auto 24px;
}

/* =========================================================
   5. Interactive Diagnosis & Lifetime Sections
   ========================================================= */
.section-headline {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 24px;
}

.section-pill-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title-text {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.3;
  margin-bottom: 6px;
}

.section-sub-desc {
  font-size: 0.95rem;
  color: var(--slate-500);
}

/* Diagnosis Grid */
.modern-diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.modern-diagnosis-card {
  background: #FFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  font: inherit;
  color: inherit;
}

.modern-diagnosis-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.diagnosis-icon-sphere {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.modern-diagnosis-card:hover .diagnosis-icon-sphere {
  background: var(--brand-blue);
  color: #FFF;
}

.diagnosis-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.diagnosis-chip-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Lifetime Simulator Card */
.lifetime-simulator-card {
  background: #FFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.lifetime-years-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .lifetime-years-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lifetime-year-btn {
  background: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 11px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.lifetime-year-btn:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.lifetime-year-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #FFF;
  box-shadow: var(--shadow-sm);
}

.lifetime-year-btn .year-text {
  font-size: 1.15rem;
  font-weight: 900;
}

.lifetime-year-btn .year-sub {
  font-size: 0.75rem;
  opacity: 0.85;
}

.lifetime-result-pane {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Joshin Advantage 3 Points */
.advantage-section-card {
  background: #FFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-bottom: 36px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.advantage-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 0 0 20px;
  position: relative;
  overflow: hidden;
}

.advantage-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--slate-200);
}

.advantage-box .advantage-num-badge,
.advantage-box .advantage-title,
.advantage-box .advantage-desc {
  padding-left: 20px;
  padding-right: 20px;
}

.advantage-num-badge {
  display: inline-block;
  margin-top: -16px;
  position: relative;
  background: var(--brand-red);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 900;
  padding-top: 3px;
  padding-bottom: 3px;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  box-shadow: var(--shadow-sm);
}

.advantage-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 10px;
  margin-bottom: 6px;
}

.advantage-desc {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* =========================================================
   6. Bottom Mobile Bar
   ========================================================= */
/* Page Top Floating Button */
.pagetop-floating-btn {
  position: fixed;
  right: 20px;
  bottom: 84px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: var(--transition);
}

.pagetop-floating-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pagetop-floating-btn:hover {
  background: var(--brand-blue);
  color: #FFF;
  border-color: var(--brand-blue);
}

/* =========================================================
   7. Sleek Modal Dialog
   ========================================================= */
.sleek-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sleek-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sleek-modal-window {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.sleek-modal-overlay.active .sleek-modal-window {
  transform: translateY(0);
}

.modal-header-bar {
  padding: 22px 28px;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
}

.modal-close-icon-btn {
  background: var(--slate-100);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--slate-500);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-icon-btn:hover {
  background: var(--slate-200);
  color: var(--slate-800);
}

.modal-content-body {
  padding: 28px;
}
