/* =========================================================
   theme-modern.css
   機能目的：モダンテーマを青×紫・白背景・青紫ネオン・デジタル管理画面風・非対称レイアウトにする
   注意：高級感以外ではキラキラ演出を使わない
   ========================================================= */

/* 機能目的：モダンテーマの基本配色を定義する */
body.tplp-theme-modern,
body.theme-modern,
body[data-theme="modern"] {
  --tplp-modern-bg: #f7faff;
  --tplp-modern-bg-2: #eef4ff;
  --tplp-modern-main: #2563eb;
  --tplp-modern-sub: #7c3aed;
  --tplp-modern-cyan: #06b6d4;
  --tplp-modern-navy: #0f172a;
  --tplp-modern-text: #111827;
  --tplp-modern-muted: #64748b;
  --tplp-modern-white: #ffffff;
  color: var(--tplp-modern-text);
  background:
    radial-gradient(circle at 10% 12%, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(124, 58, 237, 0.18), transparent 32%),
    radial-gradient(circle at 64% 88%, rgba(6, 182, 212, 0.12), transparent 34%),
    linear-gradient(135deg, var(--tplp-modern-bg) 0%, var(--tplp-modern-bg-2) 100%);
}

/* 機能目的：白背景にデジタル管理画面風のグリッドを重ねる */
body.tplp-theme-modern::before,
body.theme-modern::before,
body[data-theme="modern"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 94%);
}

/* 機能目的：モダン用TOP背景画像を右側に全体表示し、文字可読性を保ちながら画像をはっきり見せる */
body.tplp-theme-modern .tplp-hero-background,
body.theme-modern .tplp-hero-background,
body[data-theme="modern"] .tplp-hero-background {
  --tplp-hero-bg-opacity: 0.52;
  --tplp-hero-bg-mobile-opacity: 0.22;
  --tplp-hero-bg-filter: saturate(1.08) contrast(1.06) brightness(1.03);
  --tplp-hero-bg-overlay: linear-gradient(
    90deg,
    rgba(247, 250, 255, 0.95) 0%,
    rgba(247, 250, 255, 0.62) 42%,
    rgba(247, 250, 255, 0.08) 100%
  );
  background-image: url("../images/top-bg-modern.png");
  background-position: right center;
  background-size: contain;
}

/* 機能目的：モダンテーマの背景光を青にする */
body.tplp-theme-modern .tplp-bg-orb-01,
body.theme-modern .tplp-bg-orb-01,
body[data-theme="modern"] .tplp-bg-orb-01 {
  background: rgba(37, 99, 235, 0.22);
}

/* 機能目的：モダンテーマの背景光を紫にする */
body.tplp-theme-modern .tplp-bg-orb-02,
body.theme-modern .tplp-bg-orb-02,
body[data-theme="modern"] .tplp-bg-orb-02 {
  background: rgba(124, 58, 237, 0.2);
}

/* 機能目的：モダンテーマの背景光をシアンにする */
body.tplp-theme-modern .tplp-bg-orb-03,
body.theme-modern .tplp-bg-orb-03,
body[data-theme="modern"] .tplp-bg-orb-03 {
  background: rgba(6, 182, 212, 0.18);
}

/* 機能目的：ヘッダーを白ベースのガラス管理バーにする */
body.tplp-theme-modern .tplp-header,
body.theme-modern .tplp-header,
body[data-theme="modern"] .tplp-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 16px 44px rgba(37, 99, 235, 0.1);
  backdrop-filter: blur(18px);
}

/* 機能目的：ヘッダーに速めの青紫スキャン光を追加する */
body.tplp-theme-modern .tplp-header::after,
body.theme-modern .tplp-header::after,
body[data-theme="modern"] .tplp-header::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.18),
    rgba(6, 182, 212, 0.28),
    rgba(124, 58, 237, 0.2),
    transparent
  );
  animation-duration: 5.4s;
}

/* 機能目的：ロゴを青紫テーマで見やすくする */
body.tplp-theme-modern .tplp-logo-link,
body.theme-modern .tplp-logo-link,
body[data-theme="modern"] .tplp-logo-link {
  color: var(--tplp-modern-navy);
  filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.14));
}

/* 機能目的：ナビゲーションを小型の管理画面ボタン風にする */
body.tplp-theme-modern .tplp-nav a,
body.theme-modern .tplp-nav a,
body[data-theme="modern"] .tplp-nav a {
  color: #334155;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

/* 機能目的：ナビゲーションのホバー時に青紫ネオンを出す */
body.tplp-theme-modern .tplp-nav a:hover,
body.theme-modern .tplp-nav a:hover,
body[data-theme="modern"] .tplp-nav a:hover {
  color: var(--tplp-modern-main);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.16),
    0 0 0 1px rgba(124, 58, 237, 0.08) inset;
  transform: translateY(-2px);
}

/* 機能目的：問い合わせボタンを青紫ネオンの操作ボタンにする */
body.tplp-theme-modern .tplp-contact-btn,
body.tplp-theme-modern .tplp-cta-button,
body.theme-modern .tplp-contact-btn,
body.theme-modern .tplp-cta-button,
body[data-theme="modern"] .tplp-contact-btn,
body[data-theme="modern"] .tplp-cta-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--tplp-modern-main), var(--tplp-modern-sub));
  box-shadow:
    0 16px 38px rgba(37, 99, 235, 0.3),
    0 0 24px rgba(124, 58, 237, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* 機能目的：ボタンの光をモダンテーマでは速めに流す */
body.tplp-theme-modern .tplp-contact-btn::after,
body.tplp-theme-modern .tplp-cta-button::after,
body.theme-modern .tplp-contact-btn::after,
body.theme-modern .tplp-cta-button::after,
body[data-theme="modern"] .tplp-contact-btn::after,
body[data-theme="modern"] .tplp-cta-button::after {
  animation-duration: 3.2s;
}

/* 機能目的：サブボタンを青系アウトラインにする */
body.tplp-theme-modern .tplp-secondary-button,
body.theme-modern .tplp-secondary-button,
body[data-theme="modern"] .tplp-secondary-button {
  color: var(--tplp-modern-main);
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(37, 99, 235, 0.38);
}

/* 機能目的：テーマ切替をデジタル管理画面のタブ風にする */
body.tplp-theme-modern .tplp-theme-switcher,
body.theme-modern .tplp-theme-switcher,
body[data-theme="modern"] .tplp-theme-switcher {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
}

/* 機能目的：選択中テーマを青紫で強調する */
body.tplp-theme-modern .tplp-theme-button.is-active,
body.theme-modern .tplp-theme-button.is-active,
body[data-theme="modern"] .tplp-theme-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--tplp-modern-main), var(--tplp-modern-sub));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

/* 機能目的：ファーストビューを非対称レイアウトにする */
body.tplp-theme-modern .tplp-hero-inner,
body.theme-modern .tplp-hero-inner,
body[data-theme="modern"] .tplp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(30px, 4.5vw, 68px);
}

/* 機能目的：ファーストビューに速めの斜めスキャン光を追加する */
body.tplp-theme-modern .tplp-hero::before,
body.theme-modern .tplp-hero::before,
body[data-theme="modern"] .tplp-hero::before {
  content: "";
  position: absolute;
  inset: -32% auto -32% -18%;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.1),
    rgba(6, 182, 212, 0.2),
    rgba(124, 58, 237, 0.12),
    transparent
  );
  transform: skewX(-18deg);
  animation: tplpModernHeroScan 5.8s ease-in-out infinite;
}

/* 機能目的：ヒーロー文言を左側の情報エリアとして整える */
body.tplp-theme-modern .tplp-hero-content,
body.theme-modern .tplp-hero-content,
body[data-theme="modern"] .tplp-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* 機能目的：ヒーロータイトルを「ホームページ」「制作料金表」の2行で収め、Basic Priceパネルへの被りを防ぐ */
body.tplp-theme-modern .tplp-hero-title,
body.theme-modern .tplp-hero-title,
body[data-theme="modern"] .tplp-hero-title {
  max-width: 560px;
  color: var(--tplp-modern-navy);
  font-size: clamp(2.85rem, 4.85vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: 0.018em;
  text-shadow:
    0 10px 26px rgba(37, 99, 235, 0.14),
    0 0 20px rgba(124, 58, 237, 0.08);
}

/* 機能目的：ヒーロー説明文の文字サイズと行間を調整する */
body.tplp-theme-modern .tplp-hero-lead,
body.theme-modern .tplp-hero-lead,
body[data-theme="modern"] .tplp-hero-lead {
  color: var(--tplp-modern-muted);
  max-width: 600px;
  font-size: clamp(1.04rem, 1.7vw, 1.26rem);
  line-height: 1.9;
}

/* 機能目的：セクション説明文の文字サイズを調整する */
body.tplp-theme-modern .tplp-section-lead,
body.theme-modern .tplp-section-lead,
body[data-theme="modern"] .tplp-section-lead {
  color: var(--tplp-modern-muted);
  font-size: 1.03rem;
  line-height: 1.9;
}

/* 機能目的：ヒーロー料金パネルを右側の大型ダッシュボードにする */
body.tplp-theme-modern .tplp-hero-panel,
body.theme-modern .tplp-hero-panel,
body[data-theme="modern"] .tplp-hero-panel {
  /* 機能目的：モダンテーマのBasic Priceパネルを少し下げ、HEROタイトルとの重なりを防ぐ */
  align-self: end;
  margin-top: clamp(42px, 5.2vw, 78px);
  min-height: 360px;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.78)),
    radial-gradient(circle at 18% 18%, rgba(6, 182, 212, 0.13), transparent 36%),
    radial-gradient(circle at 86% 28%, rgba(124, 58, 237, 0.12), transparent 34%);
  box-shadow:
    0 28px 82px rgba(37, 99, 235, 0.17),
    0 0 28px rgba(124, 58, 237, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  overflow: hidden;
  animation: tplpModernFloatPanel 4.8s ease-in-out infinite;
}

/* 機能目的：ヒーロー料金パネル上部に管理画面風バーを追加する */
body.tplp-theme-modern .tplp-hero-panel::before,
body.theme-modern .tplp-hero-panel::before,
body[data-theme="modern"] .tplp-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 56px;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.13)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.24) 22px 23px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

/* 機能目的：ヒーローパネル内の文字を上部バーより前面に出す */
body.tplp-theme-modern .tplp-hero-panel > *,
body.theme-modern .tplp-hero-panel > *,
body[data-theme="modern"] .tplp-hero-panel > * {
  position: relative;
  z-index: 1;
}

/* 機能目的：小見出しを青紫にする */
body.tplp-theme-modern .tplp-kicker,
body.theme-modern .tplp-kicker,
body[data-theme="modern"] .tplp-kicker {
  color: var(--tplp-modern-main);
  font-size: 0.82rem;
}

/* 機能目的：セクションタイトルの文字サイズを調整する */
body.tplp-theme-modern .tplp-section-title,
body.theme-modern .tplp-section-title,
body[data-theme="modern"] .tplp-section-title {
  color: var(--tplp-modern-navy);
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
}

/* 機能目的：セクションタイトル下線を青紫ネオンにする */
body.tplp-theme-modern .tplp-section-title::after,
body.theme-modern .tplp-section-title::after,
body[data-theme="modern"] .tplp-section-title::after {
  background: linear-gradient(90deg, var(--tplp-modern-main), var(--tplp-modern-sub), var(--tplp-modern-cyan));
  box-shadow:
    0 0 16px rgba(37, 99, 235, 0.34),
    0 0 26px rgba(124, 58, 237, 0.18);
}

/* 機能目的：基本プランを非対称の12カラム配置にする */
body.tplp-theme-modern .tplp-basic-grid,
body.theme-modern .tplp-basic-grid,
body[data-theme="modern"] .tplp-basic-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}

/* 機能目的：基本プラン1枚目を大きく配置する */
body.tplp-theme-modern .tplp-basic-grid > :nth-child(1),
body.theme-modern .tplp-basic-grid > :nth-child(1),
body[data-theme="modern"] .tplp-basic-grid > :nth-child(1) {
  grid-column: span 7;
  min-height: 352px;
  animation: tplpModernFloatItemA 4.2s ease-in-out infinite;
}

/* 機能目的：基本プラン2枚目をサブパネルとして少しずらして配置する */
body.tplp-theme-modern .tplp-basic-grid > :nth-child(2),
body.theme-modern .tplp-basic-grid > :nth-child(2),
body[data-theme="modern"] .tplp-basic-grid > :nth-child(2) {
  grid-column: span 5;
  min-height: 352px;
  animation: tplpModernFloatItemB 4.6s ease-in-out infinite;
}

/* 機能目的：カードを白いデジタル管理パネル風にし、囲いを少し丸くする */
body.tplp-theme-modern .tplp-card,
body.tplp-theme-modern .tplp-maintenance-card,
body.tplp-theme-modern .tplp-feature-card,
body.theme-modern .tplp-card,
body.theme-modern .tplp-maintenance-card,
body.theme-modern .tplp-feature-card,
body[data-theme="modern"] .tplp-card,
body[data-theme="modern"] .tplp-maintenance-card,
body[data-theme="modern"] .tplp-feature-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3.2vw, 38px);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9)),
    radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.1), transparent 34%);
  box-shadow:
    0 20px 56px rgba(15, 23, 42, 0.08),
    0 0 18px rgba(37, 99, 235, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

/* 機能目的：カード上部に青紫ステータスラインを表示する */
body.tplp-theme-modern .tplp-card::before,
body.tplp-theme-modern .tplp-maintenance-card::before,
body.tplp-theme-modern .tplp-feature-card::before,
body.theme-modern .tplp-card::before,
body.theme-modern .tplp-maintenance-card::before,
body.theme-modern .tplp-feature-card::before,
body[data-theme="modern"] .tplp-card::before,
body[data-theme="modern"] .tplp-maintenance-card::before,
body[data-theme="modern"] .tplp-feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--tplp-modern-main), var(--tplp-modern-sub), var(--tplp-modern-cyan));
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.32);
}

/* 機能目的：カードホバー時に速めの反応で浮かせる */
body.tplp-theme-modern .tplp-card:hover,
body.tplp-theme-modern .tplp-maintenance-card:hover,
body.tplp-theme-modern .tplp-feature-card:hover,
body.theme-modern .tplp-card:hover,
body.theme-modern .tplp-maintenance-card:hover,
body.theme-modern .tplp-feature-card:hover,
body[data-theme="modern"] .tplp-card:hover,
body[data-theme="modern"] .tplp-maintenance-card:hover,
body[data-theme="modern"] .tplp-feature-card:hover {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow:
    0 28px 72px rgba(37, 99, 235, 0.16),
    0 0 26px rgba(124, 58, 237, 0.1),
    0 0 0 1px rgba(124, 58, 237, 0.12) inset;
}

/* 機能目的：カードタイトルの文字サイズと配置を調整する */
body.tplp-theme-modern .tplp-card-title,
body.theme-modern .tplp-card-title,
body[data-theme="modern"] .tplp-card-title {
  font-size: clamp(1.28rem, 2.3vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

/* 機能目的：カード本文を少し大きくし読みやすくする */
body.tplp-theme-modern .tplp-card-text,
body.theme-modern .tplp-card-text,
body[data-theme="modern"] .tplp-card-text {
  font-size: 1rem;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

/* 機能目的：カード内の価格を青紫ネオン数値にする */
body.tplp-theme-modern .tplp-card-price,
body.theme-modern .tplp-card-price,
body[data-theme="modern"] .tplp-card-price {
  color: var(--tplp-modern-main);
  font-size: clamp(1.9rem, 3.7vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-shadow:
    0 8px 18px rgba(37, 99, 235, 0.16),
    0 0 20px rgba(124, 58, 237, 0.08);
}

/* 機能目的：バッジを管理画面ラベルにする */
body.tplp-theme-modern .tplp-card-badge,
body.theme-modern .tplp-card-badge,
body[data-theme="modern"] .tplp-card-badge {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

/* 機能目的：オプションを2列の管理表風にする */
body.tplp-theme-modern .tplp-option-grid,
body.theme-modern .tplp-option-grid,
body[data-theme="modern"] .tplp-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
  align-items: stretch;
}

/* 機能目的：オプションカードを縦積み化し、文字エリアが極端に細くならないようにする */
body.tplp-theme-modern .tplp-option-card,
body.theme-modern .tplp-option-card,
body[data-theme="modern"] .tplp-option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 220px;
}

/* 機能目的：オプションカードのタイトルが1文字ずつ崩れないようにする */
body.tplp-theme-modern .tplp-option-card .tplp-card-title,
body.theme-modern .tplp-option-card .tplp-card-title,
body[data-theme="modern"] .tplp-option-card .tplp-card-title {
  margin: 0;
  font-size: clamp(1.34rem, 2.2vw, 1.92rem);
}

/* 機能目的：オプションカードの説明文の改行位置を自然にする */
body.tplp-theme-modern .tplp-option-card .tplp-card-text,
body.theme-modern .tplp-option-card .tplp-card-text,
body[data-theme="modern"] .tplp-option-card .tplp-card-text {
  margin: 0;
  max-width: 100%;
}

/* 機能目的：オプションカードの価格を下側に配置し、不自然な分割を減らす */
body.tplp-theme-modern .tplp-option-card .tplp-card-price,
body.theme-modern .tplp-option-card .tplp-card-price,
body[data-theme="modern"] .tplp-option-card .tplp-card-price {
  margin-top: auto;
  align-self: flex-end;
  text-align: right;
  font-size: clamp(2rem, 4vw, 3.1rem);
  white-space: nowrap;
}

/* 機能目的：オプションカードに交互の浮遊感を追加する */
body.tplp-theme-modern .tplp-option-grid > :nth-child(odd),
body.theme-modern .tplp-option-grid > :nth-child(odd),
body[data-theme="modern"] .tplp-option-grid > :nth-child(odd) {
  animation: tplpModernFloatItemA 4.4s ease-in-out infinite;
}

/* 機能目的：オプションカードに交互の浮遊感を追加する */
body.tplp-theme-modern .tplp-option-grid > :nth-child(even),
body.theme-modern .tplp-option-grid > :nth-child(even),
body[data-theme="modern"] .tplp-option-grid > :nth-child(even) {
  animation: tplpModernFloatItemB 4.8s ease-in-out infinite;
}

/* 機能目的：保守カードを横長のシステム通知パネル風にする */
body.tplp-theme-modern .tplp-maintenance-card,
body.theme-modern .tplp-maintenance-card,
body[data-theme="modern"] .tplp-maintenance-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(245, 243, 255, 0.94)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
  animation: tplpModernFloatPanel 5.2s ease-in-out infinite;
}

/* 機能目的：保守カード右上に通知ランプ風の装飾を追加する */
body.tplp-theme-modern .tplp-maintenance-card::after,
body.theme-modern .tplp-maintenance-card::after,
body[data-theme="modern"] .tplp-maintenance-card::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 24px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--tplp-modern-cyan);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.72);
}

/* 機能目的：備考カードを段差配置にして非対称感を出す */
body.tplp-theme-modern .tplp-note-grid > :nth-child(1),
body.theme-modern .tplp-note-grid > :nth-child(1),
body[data-theme="modern"] .tplp-note-grid > :nth-child(1) {
  animation: tplpModernFloatItemA 4.5s ease-in-out infinite;
}

/* 機能目的：備考カードを段差配置にして非対称感を出す */
body.tplp-theme-modern .tplp-note-grid > :nth-child(2),
body.theme-modern .tplp-note-grid > :nth-child(2),
body[data-theme="modern"] .tplp-note-grid > :nth-child(2) {
  animation: tplpModernFloatItemB 4.9s ease-in-out infinite;
}

/* 機能目的：備考カードを段差配置にして非対称感を出す */
body.tplp-theme-modern .tplp-note-grid > :nth-child(3),
body.theme-modern .tplp-note-grid > :nth-child(3),
body[data-theme="modern"] .tplp-note-grid > :nth-child(3) {
  animation: tplpModernFloatItemC 5.1s ease-in-out infinite;
}

/* 機能目的：対応内容を横長ステップ風の4カラムにする */
body.tplp-theme-modern .tplp-feature-grid,
body.theme-modern .tplp-feature-grid,
body[data-theme="modern"] .tplp-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 機能目的：対応内容カードをステータス表示風にする */
body.tplp-theme-modern .tplp-feature-card,
body.theme-modern .tplp-feature-card,
body[data-theme="modern"] .tplp-feature-card {
  min-height: 162px;
  text-align: left;
}

/* 機能目的：対応内容アイコンをモダンテーマ用のネオン感あるフレームにする */
body.tplp-theme-modern .tplp-feature-icon,
body.theme-modern .tplp-feature-icon,
body[data-theme="modern"] .tplp-feature-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 22px;
  color: var(--tplp-modern-main);
  border: 1px solid rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.9)),
    radial-gradient(circle at 20% 18%, rgba(6, 182, 212, 0.14), transparent 42%);
  box-shadow:
    0 16px 34px rgba(37, 99, 235, 0.12),
    0 0 18px rgba(124, 58, 237, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 機能目的：対応内容カードにも軽い浮遊感を追加する */
body.tplp-theme-modern .tplp-feature-grid > :nth-child(odd),
body.theme-modern .tplp-feature-grid > :nth-child(odd),
body[data-theme="modern"] .tplp-feature-grid > :nth-child(odd) {
  animation: tplpModernFloatItemA 4.6s ease-in-out infinite;
}

/* 機能目的：対応内容カードにも軽い浮遊感を追加する */
body.tplp-theme-modern .tplp-feature-grid > :nth-child(even),
body.theme-modern .tplp-feature-grid > :nth-child(even),
body[data-theme="modern"] .tplp-feature-grid > :nth-child(even) {
  animation: tplpModernFloatItemB 5s ease-in-out infinite;
}

/* 機能目的：CTAを横長のデジタル操作パネル風にする */
body.tplp-theme-modern .tplp-cta,
body.theme-modern .tplp-cta,
body[data-theme="modern"] .tplp-cta {
  overflow: hidden;
  border-radius: 38px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96)),
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.26), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(124, 58, 237, 0.24), transparent 36%);
  box-shadow: 0 30px 84px rgba(15, 23, 42, 0.24);
}

/* 機能目的：CTAに速めの斜め光を追加する */
body.tplp-theme-modern .tplp-cta::before,
body.theme-modern .tplp-cta::before,
body[data-theme="modern"] .tplp-cta::before {
  content: "";
  position: absolute;
  inset: -30% auto -30% -36%;
  width: 34%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(6, 182, 212, 0.28),
    rgba(255, 255, 255, 0.26),
    transparent
  );
  transform: skewX(-18deg);
  animation: tplpModernCtaScan 5.2s ease-in-out infinite;
}

/* 機能目的：CTA内の文字とボタンを斜め光より前面に出す */
body.tplp-theme-modern .tplp-cta > *,
body.theme-modern .tplp-cta > *,
body[data-theme="modern"] .tplp-cta > * {
  position: relative;
  z-index: 1;
}

/* 機能目的：CTAタイトルの文字サイズを調整する */
body.tplp-theme-modern .tplp-cta-title,
body.theme-modern .tplp-cta-title,
body[data-theme="modern"] .tplp-cta-title {
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
}

/* 機能目的：CTA内の説明文を黒パネル用に調整する */
body.tplp-theme-modern .tplp-cta-text,
body.theme-modern .tplp-cta-text,
body[data-theme="modern"] .tplp-cta-text {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

/* 機能目的：フッターを濃紺の下部バーにする */
body.tplp-theme-modern .tplp-footer,
body.theme-modern .tplp-footer,
body[data-theme="modern"] .tplp-footer {
  background: rgba(15, 23, 42, 0.96);
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(37, 99, 235, 0.28);
}

/* 機能目的：ファーストビューのスキャン光を速めに横切らせる */
@keyframes tplpModernHeroScan {
  0% {
    transform: translateX(-30%) skewX(-18deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  58% {
    opacity: 1;
  }

  100% {
    transform: translateX(330%) skewX(-18deg);
    opacity: 0;
  }
}

/* 機能目的：CTAの斜め光を速めに横切らせる */
@keyframes tplpModernCtaScan {
  0% {
    transform: translateX(0) skewX(-18deg);
    opacity: 0;
  }

  22% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    transform: translateX(460%) skewX(-18deg);
    opacity: 0;
  }
}

/* 機能目的：モダン項目を上方向へ軽く浮遊させる */
@keyframes tplpModernFloatItemA {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* 機能目的：モダン項目を下方向基準で軽く浮遊させる */
@keyframes tplpModernFloatItemB {
  0%,
  100% {
    transform: translateY(12px);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* 機能目的：モダン項目に別テンポの浮遊感を出す */
@keyframes tplpModernFloatItemC {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* 機能目的：大きめパネルを控えめに上下浮遊させる */
@keyframes tplpModernFloatPanel {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* 機能目的：タブレット幅では非対称レイアウトを1列または2列に調整する */
@media (max-width: 960px) {
  body.tplp-theme-modern .tplp-hero-inner,
  body.theme-modern .tplp-hero-inner,
  body[data-theme="modern"] .tplp-hero-inner,
  body.tplp-theme-modern .tplp-maintenance-card,
  body.theme-modern .tplp-maintenance-card,
  body[data-theme="modern"] .tplp-maintenance-card {
    grid-template-columns: 1fr;
  }

  /* 機能目的：タブレット幅ではBasic Priceパネルを通常位置に戻し、縦並び表示を安定させる */
  body.tplp-theme-modern .tplp-hero-panel,
  body.theme-modern .tplp-hero-panel,
  body[data-theme="modern"] .tplp-hero-panel {
    align-self: auto;
    margin-top: 0;
  }

  body.tplp-theme-modern .tplp-basic-grid,
  body.theme-modern .tplp-basic-grid,
  body[data-theme="modern"] .tplp-basic-grid,
  body.tplp-theme-modern .tplp-option-grid,
  body.theme-modern .tplp-option-grid,
  body[data-theme="modern"] .tplp-option-grid {
    grid-template-columns: 1fr;
  }

  body.tplp-theme-modern .tplp-basic-grid > *,
  body.theme-modern .tplp-basic-grid > *,
  body[data-theme="modern"] .tplp-basic-grid > * {
    grid-column: auto;
    min-height: auto;
  }

  body.tplp-theme-modern .tplp-option-card .tplp-card-price,
  body.theme-modern .tplp-option-card .tplp-card-price,
  body[data-theme="modern"] .tplp-option-card .tplp-card-price {
    font-size: clamp(1.9rem, 5.2vw, 2.8rem);
  }

  body.tplp-theme-modern .tplp-feature-grid,
  body.theme-modern .tplp-feature-grid,
  body[data-theme="modern"] .tplp-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 機能目的：スマホ幅では全体を1列化して崩れを防ぐ */
@media (max-width: 640px) {
  body.tplp-theme-modern .tplp-basic-grid,
  body.theme-modern .tplp-basic-grid,
  body[data-theme="modern"] .tplp-basic-grid,
  body.tplp-theme-modern .tplp-option-grid,
  body.theme-modern .tplp-option-grid,
  body[data-theme="modern"] .tplp-option-grid,
  body.tplp-theme-modern .tplp-feature-grid,
  body.theme-modern .tplp-feature-grid,
  body[data-theme="modern"] .tplp-feature-grid {
    grid-template-columns: 1fr;
  }

  body.tplp-theme-modern .tplp-option-card,
  body.theme-modern .tplp-option-card,
  body[data-theme="modern"] .tplp-option-card {
    min-height: 200px;
    gap: 16px;
  }

  body.tplp-theme-modern .tplp-option-card .tplp-card-title,
  body.theme-modern .tplp-option-card .tplp-card-title,
  body[data-theme="modern"] .tplp-option-card .tplp-card-title {
    font-size: clamp(1.28rem, 5vw, 1.72rem);
  }

  body.tplp-theme-modern .tplp-option-card .tplp-card-text,
  body.theme-modern .tplp-option-card .tplp-card-text,
  body[data-theme="modern"] .tplp-option-card .tplp-card-text {
    font-size: 0.98rem;
  }

  body.tplp-theme-modern .tplp-option-card .tplp-card-price,
  body.theme-modern .tplp-option-card .tplp-card-price,
  body[data-theme="modern"] .tplp-option-card .tplp-card-price {
    align-self: flex-start;
    text-align: left;
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    white-space: normal;
  }

  body.tplp-theme-modern .tplp-basic-grid > *,
  body.theme-modern .tplp-basic-grid > *,
  body[data-theme="modern"] .tplp-basic-grid > *,
  body.tplp-theme-modern .tplp-option-grid > *,
  body.theme-modern .tplp-option-grid > *,
  body[data-theme="modern"] .tplp-option-grid > *,
  body.tplp-theme-modern .tplp-note-grid > *,
  body.theme-modern .tplp-note-grid > *,
  body[data-theme="modern"] .tplp-note-grid > * {
    animation: none;
    transform: none;
  }
}

/* 機能目的：動きを減らす設定では浮遊アニメーションを停止する */
@media (prefers-reduced-motion: reduce) {
  body.tplp-theme-modern .tplp-hero-panel,
  body.tplp-theme-modern .tplp-basic-grid > *,
  body.tplp-theme-modern .tplp-option-grid > *,
  body.tplp-theme-modern .tplp-note-grid > *,
  body.tplp-theme-modern .tplp-feature-grid > *,
  body.tplp-theme-modern .tplp-maintenance-card,
  body.theme-modern .tplp-hero-panel,
  body.theme-modern .tplp-basic-grid > *,
  body.theme-modern .tplp-option-grid > *,
  body.theme-modern .tplp-note-grid > *,
  body.theme-modern .tplp-feature-grid > *,
  body.theme-modern .tplp-maintenance-card,
  body[data-theme="modern"] .tplp-hero-panel,
  body[data-theme="modern"] .tplp-basic-grid > *,
  body[data-theme="modern"] .tplp-option-grid > *,
  body[data-theme="modern"] .tplp-note-grid > *,
  body[data-theme="modern"] .tplp-feature-grid > *,
  body[data-theme="modern"] .tplp-maintenance-card {
    animation: none !important;
    transform: none !important;
  }
}