/* リセットCSS */
/*
  セクション索引
  1) リセットCSS
  2) 基本設定（html/body/typography）
  3) 共通要素（コンテナ/見出し）
  4) アクセシビリティ（スキップリンク）
  5) ヘッダー/ナビ
  6) 比較テーブル/フィルタ
  7) 店舗検索/地図
  8) 投稿スライダー（Swiper）
  9) 投稿一覧（カード/グリッド）
  10) プラン/おすすめ/評価
  11) モーダル/比較パネル
  12) レビュー/理由セクション
  13) 使い方診断（usage-calculator）
  14) ユーティリティ/メディアクエリ
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基本設定 */
html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "游ゴシック", "Yu Gothic", "游ゴシック体",
    "YuGothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ",
    "Meiryo", sans-serif;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #d0d0d0 100%);
  color: #333333;
  line-height: 1.6;
  min-height: 100vh;
}

/* 共通要素 */
.container,
.statistics-panel,
.recommendations-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(111, 186, 44, 1);
  text-align: center;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: #666666;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* スキップリンク */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: rgba(195, 214, 0, 1);
  color: #000000;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 6px;
}

/* ヘッダー */
.header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(195, 214, 0, 1);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgba(195, 214, 0, 1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333333;
  margin: 3px 0;
  transition: 0.3s;
}

/* 比較セクション */
.comparison {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(240, 240, 240, 0.7) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.comparison-filters {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* リセットボタン（比較表） */
.comparison-filters .reset-button {
  padding: 0.6rem 1.2rem;
  background: #ffffff;
  color: #333333;
  border: 2px solid rgba(195, 214, 0, 1);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  /* margin-left: auto; */
  min-width: 220px;
}

.comparison-filters .reset-button:hover {
  background: rgba(195, 214, 0, 1);
  color: #ffffff;
  border-color: rgba(195, 214, 0, 1);
  transform: translateY(-1px);
}

@media (max-width: 1023px) {
  .comparison-filters .reset-button {
    margin-left: 0;
    align-self: flex-end;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .comparison-filters .reset-button {
    width: 100%;
    align-self: stretch;
  }
}

.filter-group {
  display: none;
  /* display: flex; */
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: #333333;
}

.filter-group select {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  background-color: white;
  min-width: 150px;
  transition: border-color 0.3s ease;
}

.filter-group select:focus {
  outline: none;
  border-color: rgba(195, 214, 0, 1);
}

.comparison-table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
}

/* スクロールバーのスタイリング */
.comparison-table-wrapper::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.comparison-table-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(195, 214, 0, 0.6);
  border-radius: 6px;
  border: 2px solid #f1f1f1;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(195, 214, 0, 0.8);
}

.comparison-table-wrapper::-webkit-scrollbar-corner {
  background: #f1f1f1;
}

.comparison-table tr:hover {
  background-color: #f8f9fa;
}

.carrier-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(195, 214, 0, 1);
}

.tax-note {
  font-size: 0.9rem;
  color: #666666;
  margin-left: 0.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  background-color: rgba(111, 186, 44, 0.1);
  color: rgba(111, 186, 44, 1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  margin-right: 0.5rem;
}

.comparison-note {
  text-align: center;
  color: #666666;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* 店舗検索セクション */
.store-search {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(245, 245, 245, 0.8) 0%, rgba(230, 230, 230, 0.8) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* 検索セクション */
.search-section {
  background: white;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.search-label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.search-input,
.search-select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-input:focus,
.search-select:focus {
  outline: none;
  border-color: rgba(195, 214, 0, 1);
}

.search-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(195, 214, 0, 1);
  color: #000000;
}

.search-button:hover {
  background: rgba(111, 186, 44, 1);
}

.search-button.secondary {
  background: rgba(111, 186, 44, 1);
  color: white;
  border: 2px solid rgba(111, 186, 44, 1);
}

.search-button.secondary:hover {
  background: white;
  color: rgba(111, 186, 44, 1);
  border: 2px solid rgba(111, 186, 44, 1);
}

/* 左右分割レイアウト */
.search-map-layout {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  min-height: 600px;
}

/* 左側：地図エリア */
.map-section-left {
  flex: 1;
  min-height: 600px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #ddd;
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  position: relative;
}

.map-content {
  text-align: center;
}

/* 高さいっぱいの地図表示用スタイル */
.map-display-fullheight {
  width: 100%;
  height: 100%;
  background: #f0f8ff;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.map-content-fullheight {
  width: 100%;
  height: 100%;
  position: relative;
}

.map-placeholder-fullheight {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #e8f5e8 25%, transparent 25%),
    linear-gradient(-45deg, #e8f5e8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8f5e8 75%),
    linear-gradient(-45deg, transparent 75%, #e8f5e8 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  position: relative;
  border-radius: 8px;
}

/* 地図マーカー */
.map-marker {
  position: absolute;
  font-size: 20px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* 店舗情報オーバーレイ */
.map-info-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 20;
}

.store-info-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.store-info-card p {
  margin: 4px 0;
}

.store-info-card strong {
  color: #333;
}

/* 地図中央のテキスト */
.map-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #666;
  z-index: 5;
}

.map-center-text p {
  margin: 8px 0;
  font-size: 16px;
}

.map-instruction {
  font-size: 14px !important;
  opacity: 0.8;
}

/* 実際の地図用スタイル */
.real-map {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

/* Google Maps用スタイル */
.gm-style {
  font-family: inherit !important;
}

.gm-style-iw {
  font-family: inherit !important;
}

/* Google Maps コントロールの位置調整 */
.gm-bundled-control {
  margin: 10px !important;
}

/* 地図ポップアップのスタイル */
.map-popup h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #333;
}

.map-popup p {
  margin: 4px 0;
  font-size: 14px;
  color: #666;
}

.map-popup p img {
  width: 14px;
}

.map-popup strong {
  color: #007cba;
}

/* 現在位置ポップアップのスタイル */
.current-location-popup h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #4285f4;
}

.current-location-popup p {
  margin: 4px 0;
  font-size: 14px;
  color: #666;
}

.map-markers-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 右側：検索結果エリア */
.store-results-right {
  flex: 1;
  min-height: 600px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

.results-header {
  padding: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
  border-radius: 8px 8px 0 0;
}

.results-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.results-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  max-height: calc(600px - 60px); /* ヘッダー分を引く */
}

/* スクロールバーのスタイル */
.results-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.results-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.results-scroll-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.results-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 地図セクション（既存との互換性のため残す） */
.map-section {
  margin-top: 2rem;
}

.map-display {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.map-header {
  display: flex;
  justify-content: space-between;
    align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(195, 214, 0, 1);
  color: #000000;
}

.map-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000000;
}

.map-content {
  padding: 2rem;
}

.map-placeholder {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-marker {
  position: absolute;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.map-marker:hover {
  transform: scale(1.2);
}

.map-info {
  background: white;
    padding: 1rem;
    border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  }

  .no-results {
    text-align: center;
  color: #666;
    font-style: italic;
    padding: 2rem;
  }

.store-results {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

/* store-card */
  .store-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.08);
}

.store-card-main {
  padding: 1.5rem;
}

.store-header {
  display: flex;
  justify-content: space-between;
    align-items: flex-start;
  margin-bottom: 1.25rem;
}

.store-title-section {
  flex: 1;
  display: flex;
  align-items: center;
    gap: 1rem;
  }

.store-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.store-carrier {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background-color: rgba(111, 186, 44, 1);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* キャリア別カラー */
.carrier-エックスモバイル {
  background-color: rgba(195, 214, 0, 1) !important;
  color: white !important;
}

.carrier-エックスモバイル取扱店 {
  background-color: rgba(111, 186, 44, 1) !important;
  color: white !important;
}

.carrier-エックスモバイル代理店 {
  background-color: #FF6B35 !important;
  color: white !important;
}

.store-distance-badge {
  text-align: center;
  background: rgba(111, 186, 44, 1);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  min-width: 60px;
  margin-left: 5px;
}

.distance-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.distance-unit {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 2px;
}

.store-details {
  margin-bottom: 1.25rem;
}

.store-info-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.store-info-row:last-child {
  margin-bottom: 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.info-icon {
  font-size: 1.125rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.info-text {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.4;
  word-break: break-word;
}

.store-actions {
  background: #f8fafc;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-map {
  background: rgba(195, 214, 0, 1);
    color: white;
  border: 2px solid rgba(195, 214, 0, 1);
}

.btn-map:hover {
  background: white;
  color: rgba(195, 214, 0, 1);
  border: 2px solid rgba(195, 214, 0, 1);
}

.btn-route {
  background: white;
  color: rgba(195, 214, 0, 1);
  border: 2px solid rgba(195, 214, 0, 1);
}

.btn-route:hover {
  background: rgba(195, 214, 0, 1);
  color: white;
  border: 2px solid rgba(195, 214, 0, 1);
}

.btn-icon {
  font-size: 1.125rem;
  width: 24px;
}

.btn-text {
  font-weight: 600;
}

/* フッター */
.footer {
  background: linear-gradient(135deg, rgba(60, 60, 60, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(195, 214, 0, 1);
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-description {
  color: #cccccc;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: rgba(195, 214, 0, 1);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555555;
  color: #cccccc;
}

/* 投稿スライダーセクション */
.posts-slider {
  padding: 0 2vw;
  background-color: #000000;
  width: 100vw;
  height: 100vh;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: center;
}

/* Swiperスライダーの基本設定 */
.posts-swiper {
  overflow: hidden;
  width: 100%;
  height: auto;
  position: relative;
}

/* 初期状態では投稿を隠す（Swiper初期化前） */
.posts-swiper .swiper-wrapper {
  display: none;
  width: 100%;
  height: auto;
  overflow: visible;
  min-height: 80vh;
  align-items: center;
}

/* Swiper初期化後に表示 */
.posts-swiper.swiper-initialized .swiper-wrapper {
  display: flex;
  overflow: visible;
}

/* JavaScript無効時のフォールバック */
.no-js .posts-swiper .swiper-wrapper {
  display: flex !important;
  flex-wrap: wrap;
    gap: 20px;
  }

.no-js .posts-swiper .swiper-slide {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 320px;
}

.posts-slider-wrapper {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: visible;
}

.posts-swiper {
  border-radius: 0;
  box-shadow: none;
  background-color: #000000;
  padding: 0 40px;
}

.posts-swiper .swiper-slide {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: visible;
  height: 60vh;
  display: flex;
  align-items: stretch;
  perspective: 1000px;
  transition: transform 0.6s ease-in-out;
  transform: scale(0.8);
  opacity: 0.7;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 20px;
}

/* アクティブスライドは大きく、表向き */
.posts-swiper .swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  z-index: 10;
  overflow: visible;
}

/* 隣接スライドも少し大きく */
.posts-swiper .swiper-slide-next,
.posts-swiper .swiper-slide-prev {
  transform: scale(0.85);
  opacity: 0.8;
}

/* デフォルトは裏返し */
.posts-swiper .post-slide-card,
.posts-swiper .post-slide-card.flipped {
  transform: rotateY(180deg);
}

/* アクティブスライドのみ表向き */
.posts-swiper .swiper-slide-active .post-slide-card {
  transform: rotateY(0deg);
}

/* ホバー効果は非アクティブスライドで表向きに */
.posts-swiper .swiper-slide:not(.swiper-slide-active):hover .post-slide-card {
  transform: rotateY(0deg);
}

/* JavaScriptクラス制御との連携 */
.posts-swiper .post-slide-card:not(.flipped) {
  transform: rotateY(0deg);
}

/* 3Dカードコンテナ */
.post-slide-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease-in-out;
  border-radius: 12px;
  perspective: 1000px;
}

.post-slide-front,
.post-slide-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform-style: preserve-3d;
}

.post-slide-front {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9));
  transform: rotateY(0deg);
}

.post-slide-back {
  background: linear-gradient(135deg, rgba(195, 214, 0, 0.9), rgba(111, 186, 44, 0.9));
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 2rem;
}

.back-content {
  max-width: 90%;
}

.back-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.back-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.back-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.back-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.post-slide-content {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.post-slide-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 245, 0.8) 100%);
}

.post-slide-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-slide-content:hover .post-slide-image img {
  transform: scale(1.05);
}

/* No Image表示用スタイル */
.post-slide-image .no-image {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(248, 248, 248, 0.8) 0%, rgba(240, 240, 240, 0.8) 100%);
  color: rgba(153, 153, 153, 0.6);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 画像上 左下にカテゴリバッジを表示 */
.posts-slider .post-slide-image .post-slide-category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.22);
  color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.post-slide-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 40%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.post-slide-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.3;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-slide-excerpt {
  /* font-size: 1.1rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  opacity: 0.9; */
  display: none;
}

.post-slide-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.08);
  color: #333333;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  margin-top: auto;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.post-slide-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.post-slide-link:hover {
  background: rgba(195, 214, 0, 1);
  border-color: rgba(195, 214, 0, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(195, 214, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.post-slide-link:hover::before {
  left: 100%;
}

/* スライダー操作要素 */
.posts-pagination {
  position: static !important;
  margin-top: 2rem;
  text-align: center;
}

.posts-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  margin: 0 6px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.posts-pagination .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.4);
  /* transform: scale(1.2); */
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.posts-next,
.posts-prev {
  width: 48px !important;
  height: 48px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  color: #000000 !important;
  margin-top: -24px !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.posts-next:hover,
.posts-prev:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #000000 !important;
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.posts-next::after,
.posts-prev::after {
  font-size: 18px !important;
  font-weight: bold !important;
}

/* ローディング・エラー表示 */
.posts-loading,
.posts-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  margin-top: 2rem;
}

.posts-error {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* 投稿が無い場合のスタイル */
.no-posts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(248, 249, 250, 0.3) 0%,
    rgba(233, 236, 239, 0.3) 100%
  );
  border-radius: 16px;
  color: #6c757d;
  min-height: 300px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.no-posts p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.no-posts p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: rgba(195, 214, 0, 1);
}

/* サンプル投稿の特別なスタイリング */
.posts-swiper .swiper-slide a[href="#"] {
  cursor: default;
  pointer-events: none;
  opacity: 0.8;
}

.posts-swiper .swiper-slide a[href="#"]:hover {
  transform: none;
  gap: 8px;
}

.posts-swiper .swiper-slide a[href="#"]::after {
  content: "サンプル記事";
  font-size: 0.8rem;
  opacity: 0.6;
}

/* 投稿スライダーの確実な表示 */
.posts-slider-wrapper {
  min-height: 100vh;
  position: relative;
  padding: 0;
}

/* デバッグ用の表示確認 */
.posts-slider[data-debug="true"] .posts-swiper {
  border: 2px dashed rgba(195, 214, 0, 0.5);
}

.posts-slider[data-debug="true"] .swiper-slide {
  border: 1px solid rgba(111, 186, 44, 0.3);
}

/* ローディングアニメーション */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* レスポンシブ対応 */
/* PC専用スタイル (1025px以上) */
@media (min-width: 1025px) {
  /* 強制的に3つ表示 */
  .posts-swiper .swiper-wrapper {
    display: flex !important;
  }

  .posts-swiper .swiper-slide {
    flex: 0 0 calc(33.333% - 20px) !important;
    width: calc(33.333% - 20px) !important;
    max-width: calc(33.333% - 20px) !important;
  }
}

@media (max-width: 1200px) {
  .posts-swiper .swiper-slide {
    height: 55vh;
  }

  .posts-swiper .swiper-slide-active {
    transform: scale(0.95);
  }

  .posts-swiper .swiper-slide-next,
  .posts-swiper .swiper-slide-prev {
    transform: scale(0.8);
  }

  .posts-slider {
    padding: 0 2vw;
  }

  .back-title {
    font-size: 1.3rem;
  }

  .back-excerpt {
    font-size: 0.9rem;
  }
}

/* タブレット・スマホ共通スタイル (1023px以下) */
@media (max-width: 1023px) {
  /* 強制的に1つ表示 */
  .posts-swiper .swiper-wrapper {
    display: flex !important;
  }

  .posts-swiper .swiper-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* JS無効時も1枚表示にする */
  .no-js .posts-swiper .swiper-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* タブレット全体のセクション高さ調整 */
  .posts-slider {
    height: 75vh;
  }

  .posts-slider-wrapper {
    height: auto;
    min-height: 0;
  }

  .posts-swiper {
    height: 75vh;
  }

  .posts-swiper .swiper-wrapper {
    height: auto;
    min-height: 0;
    align-items: center;
  }
}

/* スマホ（480px以下）は1枚表示を強制 */
@media (max-width: 480px) {
  .posts-swiper .swiper-wrapper {
    display: flex !important;
  }
  .posts-swiper .swiper-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* タブレット専用スタイル (768px〜1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .posts-slider {
    padding: 0 2vw;
    height: 100vh;
  }

  .posts-slider-wrapper {
    height: auto;
    min-height: 0;
  }

  .posts-swiper {
    height: 70vh;
    padding: 0 40px;
  }

  .posts-swiper .swiper-wrapper {
    height: auto;
    min-height: 0;
    align-items: center;
  }

  /* 旧: ナビゲーションボタンをカードの真ん中に（統合ルールへ移行のため無効化） */
  /*
  .posts-next,
  .posts-prev {
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
  }
  */

  .posts-swiper .swiper-slide {
    height: 50vh;
    transform: scale(0.8);
    padding: 10px;
    border-radius: 8px;
  }

  .posts-swiper .swiper-slide-active {
    transform: scale(1);
  }

  .posts-swiper .swiper-slide-next,
  .posts-swiper .swiper-slide-prev {
    transform: scale(0.7);
  }

  /* カードを正方形に */
  .post-slide-card {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
  }

  /* 表面を大きく */
  .post-slide-front {
    width: 100%;
    height: 100%;
  display: flex;
  flex-direction: column;
  }

  .posts-slider .post-slide-image .post-slide-category {
    bottom: 10px;
    left: 10px;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 14px;
  }

  /* 情報部分を調整 */
  .post-slide-info {
    padding: 12px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* タイトルを大きく */
  .post-slide-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  /* ボタンを大きく */
  .post-slide-link {
    padding: 10px 16px;
    font-size: 0.9rem;
    margin-top: auto;
    border-radius: 6px;
  }

  /* 裏面を小さく */
  .back-content {
    padding: 10px;
  }

  .back-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .back-excerpt {
    font-size: 0.8rem;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
  }

  .back-meta {
    padding: 6px 10px;
  }

  .back-category {
    font-size: 0.7rem;
  }

  /* ナビゲーションボタンを調整 */
  .posts-next,
  .posts-prev {
    width: 40px !important;
    height: 40px !important;
    margin-top: -20px !important;
  }

  .posts-next::after,
  .posts-prev::after {
    font-size: 14px !important;
  }

  .search-form {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .search-label {
    min-width: 70px;
    font-size: 1rem;
  }
  .search-input,
  .search-select {
    min-width: 100px;
    font-size: 1rem;
    padding: 0.4rem 0.7rem;
    height: 38px;
  }
  .search-button {
    font-size: 1rem;
    height: 38px;
    padding: 0 1.2rem;
  }
}

@media (max-width: 768px) {
  .posts-slider {
    padding: 0 1vw;
    height: auto;
  }

  .posts-slider-wrapper {
    height: auto;
    min-height: 0;
  }

  .posts-swiper {
    height: 70vh;
    padding: 20px 20px 0 20px;
  }

  .posts-swiper .swiper-wrapper {
    height: auto;
    min-height: 0;
    align-items: center;
  }

  .posts-swiper .swiper-slide {
    height: 50vh;
    transform: scale(0.85);
    padding: 8px;
    border-radius: 6px;
  }

  .posts-swiper .swiper-slide-active {
    transform: scale(1);
  }

  .posts-swiper .swiper-slide-next,
  .posts-swiper .swiper-slide-prev {
    transform: scale(0.7);
  }

  /* カードを正方形に */
  .post-slide-card {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
  }

  /* 表面を大きく */
  .post-slide-front {
    width: 100%;
    height: 100%;
  display: flex;
  flex-direction: column;
  }

  .posts-slider .post-slide-image .post-slide-category {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 12px;
  }

  /* 情報部分を調整 */
  .post-slide-info {
    padding: 10px;
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* タイトルを大きく */
  .post-slide-title {
    font-size: 1rem;
    -webkit-line-clamp: 2;
    margin-bottom: 1px;
    line-height: 1.2;
  }

  /* 説明文を非表示 */
  .post-slide-excerpt {
    display: none;
  }

  /* ボタンを大きく */
  .post-slide-link {
    padding: 8px 14px;
    font-size: 0.85rem;
    margin-top: auto;
    border-radius: 5px;
  }

  /* 裏面を小さく */
  .back-content {
    padding: 8px;
  }

  .back-title {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .back-excerpt {
    font-size: 0.7rem;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }

  .back-meta {
    padding: 5px 8px;
  }

  .back-category {
    font-size: 0.6rem;
  }

  .posts-next,
  .posts-prev {
    width: 35px !important;
    height: 35px !important;
    margin-top: -17px !important;
  }

  .posts-next::after,
  .posts-prev::after {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .search-map-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  .map-section-left,
  .store-results-right {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .map-section-left {
    margin-bottom: 1.5rem;
  }
  .posts-slider {
    padding: 0 1vw;
    height: 100vh;
  }

  .posts-slider-wrapper {
    height: auto;
    min-height: 0;
  }

  .posts-swiper {
    height: auto;
    padding: 0 10px;
  }

  .posts-swiper .swiper-wrapper {
    height: auto;
    min-height: 0;
    align-items: center;
    padding-bottom: 0;
  }

  .posts-swiper .swiper-slide {
    height: 35vh;
    transform: scale(0.9);
    opacity: 1;
    padding: 6px;
    border-radius: 5px;
  }

  .posts-swiper .swiper-slide-active {
    transform: scale(1);
  }

  .posts-swiper .swiper-slide-next,
  .posts-swiper .swiper-slide-prev {
    transform: scale(0.75);
  }

  /* カードを正方形に */
  .post-slide-card {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
  }

  /* 表面を大きく */
  .post-slide-front {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  /* スマホでも画像左下にカテゴリを表示 */
  .posts-slider .post-slide-image .post-slide-category {
    display: inline-block !important;
  }

  /* 情報部分を調整 */
  .posts-slider .post-slide-info {
    display: block;
    padding: 12px !important;
    height: auto !important;
  }

  /* 情報欄内のカテゴリは非表示（画像上に表示するため） */
  .posts-slider .post-slide-info .post-slide-category,
  .posts-slider .post-slide-excerpt,
  .posts-slider .post-slide-link {
    display: none !important;
  }

  /* タイトルを大きく */
  .posts-slider .post-slide-title {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 !important;
  }

  /* 裏面の抜粋とメタ情報を非表示 */
  .post-slide-back .back-excerpt,
  .post-slide-back .back-meta {
    display: none !important;
  }

  /* 裏面を小さく */
  .back-content {
    padding: 6px;
  }

  .back-title {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }

  .back-excerpt {
    font-size: 0.6rem;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
  }

  .back-meta {
    padding: 4px 6px;
  }

  .back-category {
    font-size: 0.5rem;
  }

  .posts-next,
  .posts-prev {
    width: 30px !important;
    height: 30px !important;
    margin-top: -15px !important;
  }

  .posts-next::after,
  .posts-prev::after {
    font-size: 10px !important;
  }

  .posts-loading,
  .posts-error {
    padding: 2rem 1rem;
  }
  .search-section {
    padding: 1rem 0.5rem;
  }
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  .section-description {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .search-label {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    font-weight: bold;
    color: #333;
  }
  .search-input,
  .search-select {
    width: 100%;
    font-size: 1rem;
    padding: 0.7rem;
    min-width: 0;
    box-sizing: border-box;
  }
  .search-button {
    width: 100%;
    font-size: 1.05rem;
    padding: 0.9rem 0;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .map-section-left, #realMap {
    min-height: 400px !important;
    height: 400px !important;
    display: block !important;
  }
}

/* エックスモバイル料金プラン */
.x-mobile-plans {
  padding: 5rem 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.plan-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.plan-card.plan-recommended {
  border: 3px solid rgba(195, 214, 0, 1);
  transform: scale(1.05);
  background: linear-gradient(145deg, #ffffff 0%, #f8fff5 100%);
}

.plan-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
}

.plan-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(195, 214, 0, 1);
  margin-bottom: 0.25rem;
}

.data-amount {
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: #7cb342;
  margin-bottom: 25px;
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #34495e;
}

.feature-check {
  color: #27ae60;
  font-size: 1.2rem;
  font-weight: bold;
}

.comparison-text {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  color: #5d6d7e;
  border-left: 4px solid rgba(195, 214, 0, 1);
}

.plan-select-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(
    135deg,
    rgba(195, 214, 0, 1),
    rgba(111, 186, 44, 1)
  );
  color: #000000;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(195, 214, 0, 0.3);
}

.plan-select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(195, 214, 0, 0.4);
}

.plan-recommended .plan-select-btn {
  background: linear-gradient(135deg, #7cb342, #558b2f);
  box-shadow: 0 5px 15px rgba(124, 179, 66, 0.3);
}

.why-section {
  background: white;
  border-radius: 20px;
  padding: 50px 30px;
  margin: 60px 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.why-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 50px;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.reason-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 15px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.reason-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.reason-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: rgba(195, 214, 0, 1);
}

.reason-icon img {
  width: 45px;
}

.reason-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
}

.reason-description {
  color: #5d6d7e;
  font-size: 1rem;
}

.reviews-section {
  background: white;
  border-radius: 20px;
  padding: 50px 30px;
  margin-bottom: 60px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.reviews-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.review-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.9));
  border-radius: 15px;
  padding: 25px;
  border-left: 5px solid rgba(195, 214, 0, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 15px;
}

.reviewer-info {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 15px;
  font-weight: bold;
}

.review-text {
  color: #333333;
  font-size: 1rem;
  line-height: 1.6;
}

.google-reviews-reference {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background: rgba(245, 245, 245, 0.5);
  border-radius: 8px;
}

.reference-text {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.reference-text a {
  color: #4285f4;
  text-decoration: none;
  font-weight: 500;
}

.reference-text a:hover {
  color: #3367d6;
  text-decoration: underline;
}

.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(195, 214, 0, 0.9), rgba(111, 186, 44, 0.9));
  color: white;
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(111, 186, 44, 0.2);
}

.cta-btn {
  background: white;
  color: rgba(195, 214, 0, 1);
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

.disclaimer {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* ローディングアニメーション */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(195, 214, 0, 0.2);
  border-top: 4px solid rgba(195, 214, 0, 1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* エラー表示 */
.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.location-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

/* スクリーンリーダー専用 */
.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;
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス可視化 */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid rgba(195, 214, 0, 1);
    outline-offset: 2px;
}

@media (min-width: 481px) {
  .search-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .search-label {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0;
    color: #333;
    min-width: 90px;
  }
  .search-input,
  .search-select {
    font-size: 1.05rem;
    height: 44px;
    padding: 0.5rem 1rem;
    width: auto;
    min-width: 160px;
  }
  .search-button {
    font-size: 1.1rem;
    height: 44px;
    padding: 0 2rem;
    margin-top: 0;
    white-space: nowrap;
  }
}

@media (max-width: 1023px) {
  .map-section-left {
    min-height: 400px;
    border-radius: 10px;
    padding: 0.5rem;
  }
  .store-results-right {
    border-radius: 10px;
    padding: 0.5rem;
  }
  .store-card {
    border-radius: 12px;
    margin-bottom: 0.75rem;
    padding: 1rem;
  }
  .store-name {
    font-size: 1.1rem;
  }
  .store-carrier {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }
  .search-select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.5rem 1.5rem 0.5rem 0.7rem;
    font-size: 1rem;
    appearance: none;
    background-position: right 0.7rem center;
    background-repeat: no-repeat;
    background-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .map-section-left {
    min-height: 400px;
    border-radius: 8px;
    padding: 0.25rem;
  }
  .store-results-right {
    border-radius: 8px;
    padding: 0.25rem;
  }
  .store-card {
    border-radius: 8px;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
  }
  .store-name {
    font-size: 1rem;
  }
  .store-carrier {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
  .store-actions {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .btn-action {
    font-size: 0.85rem;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
  }
}

@media (max-width: 1023px) {
  /* 検索フォームを縦並び・スマホと同じデザインに */
  .search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .search-label {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    font-weight: bold;
    color: #333;
  }
  .search-input,
  .search-select {
    width: 100%;
    font-size: 1rem;
    padding: 0.7rem;
    min-width: 0;
    box-sizing: border-box;
  }
  .search-button {
    width: 100%;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }

  /* 検索結果カードデザイン調整 */
  .store-list-sp .store-card,
  .store-list-tab .store-card {
    border-radius: 10px;
    margin-bottom: 0.75rem;
    padding: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .store-list-sp .store-header,
  .store-list-tab .store-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .store-list-sp .store-title-section,
  .store-list-tab .store-title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .store-list-sp .store-distance-badge,
  .store-list-tab .store-distance-badge {
    align-self: flex-end;
    margin-top: 0.5rem;
    margin-bottom: 0;
    min-width: 60px;
    position: static;
  }
  .store-list-sp .store-name,
  .store-list-tab .store-name {
    font-size: 1.05rem;
  }
  .store-list-sp .store-carrier,
  .store-list-tab .store-carrier {
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
  }
  .store-list-sp .store-actions,
  .store-list-tab .store-actions {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .store-list-sp .btn-action,
  .store-list-tab .btn-action {
    font-size: 0.95rem;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
  }
}

@media (max-width: 1023px) {
  .store-list-sp .store-info-row,
  .store-list-tab .store-info-row {
    flex-direction: column;
    gap: 0.2rem;
  }
  .store-list-sp .info-item,
  .store-list-tab .info-item {
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .comparison-filters {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
  }
  .filter-group {
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .comparison-table-wrapper {
    max-width: 100vw;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
  }
  .comparison-table {
    min-width: 600px;
    font-size: 0.97rem;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 1rem 0.5rem;
    font-size: 0.97rem;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
  }
  .comparison-table th {
    font-size: 1rem;
    background: rgba(195, 214, 0, 0.95);
    color: #000;
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .comparison-table tr {
    background: #fff;
  }
  .comparison-table tr:hover {
    background: #f8f9fa;
  }
  /* 横スクロールヒント */
  .comparison-table-wrapper::after {
    content: '⇄ スクロールできます';
    position: absolute;
    right: 10px;
    top: 6px;
    font-size: 0.8rem;
    color: #bbb;
    background: rgba(255,255,255,0.8);
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 10;
  }
}

@media (max-width: 1023px) {
  .statistics-panel,
  .recommendations-panel {
    padding: 1.2rem !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    margin: 2rem 1rem !important;
    width: auto !important;
    max-width: 100% !important;
  }
  .stats-grid,
  .recommendations-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .stat-item,
  .recommendation-card {
    padding: 0.8rem !important;
    border-radius: 8px !important;
    font-size: 0.97rem !important;
  }
}
@media (max-width: 480px) {
  .statistics-panel,
  .recommendations-panel {
    padding: 0.7rem !important;
    border-radius: 7px !important;
    margin: 1.2rem 0.5rem !important;
    width: auto !important;
    max-width: 100% !important;
  }
  .stat-item,
  .recommendation-card {
    padding: 0.5rem !important;
    border-radius: 6px !important;
    font-size: 0.93rem !important;
  }
}

/* 結果件数表示 */
.result-count {
  text-align: center;
  color: #666666;
  margin: 1rem;
  font-size: 0.95rem;
}

/* 統計情報パネル */
.statistics-panel {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.statistics-panel h3 {
  color: rgba(111, 186, 44, 1);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0.5rem;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(195, 214, 0, 1);
}

/* おすすめプランパネル */
.recommendations-panel {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.recommendations-panel h3 {
  color: rgba(111, 186, 44, 1);
  margin-bottom: 2rem;
  font-size: 1.5rem;
  text-align: center;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.recommendation-card {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.3s ease;
  text-align: center;
}

.recommendation-card:hover {
  transform: translateY(-3px);
}

.recommendation-card.best-plan {
  border: 3px solid rgba(195, 214, 0, 1);
  background: linear-gradient(145deg, #ffffff 0%, #f8fff5 100%);
  color: #333;
}

.recommendation-card.best-plan .plan-price,
.recommendation-card.best-plan .plan-score {
  color: rgba(195, 214, 0, 1);
}

.recommendation-rank {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff6b35;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.recommendation-card.best-plan .recommendation-rank {
  background-color: #ffd700;
  color: #333333;
}

.recommendation-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: rgba(195, 214, 0, 1);
}

.plan-name {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0.5rem;
}

.plan-capacity,
.plan-score {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0.5rem;
}

/* プラン行 */
.plan-row {
  transition: all 0.3s ease;
  cursor: pointer;
}

.plan-row:hover {
  background-color: #f0fff0 !important;
  transform: translateY(-1px);
}

.plan-row.high-score {
  border-left: 4px solid #28a745;
}

.plan-row.medium-score {
  border-left: 4px solid #ffc107;
}

/* .plan-row.featured-plan {
  background-color: #ffe6e6;
  border-left: 4px solid #ff6b35;
}

.plan-row.featured-plan:hover {
  background-color: #ffd4d4 !important;
} */

/* キャリア情報の表示強化 */
.carrier-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.carrier-name {
  font-weight: 600;
  color: #333333;
}

.network-type {
  font-size: 0.85rem;
  color: #666666;
}

/* プラン情報の表示強化 */
.plan-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.plan-name {
  font-weight: 500;
  color: #333333;
}

.plan-score {
  font-size: 0.85rem;
  color: rgba(195, 214, 0, 1);
  font-weight: 600;
}

/* 価格情報の表示強化 */
.price-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-per-gb {
  font-size: 0.85rem;
  color: #666666;
}

/* 容量情報の表示強化 */
.capacity-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.capacity {
  font-weight: 600;
  color: #333333;
}

.speed {
  font-size: 0.85rem;
  color: #666666;
}

/* 通話情報の表示強化 */
.call-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.call-rate {
  font-weight: 500;
  color: #333333;
}

.sms-rate {
  font-size: 0.85rem;
  color: #666666;
}

/* 特徴情報の表示強化 */
.features-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.details-btn {
  background-color: rgba(111, 186, 44, 1);
  color: #ffffff;
  border: 2px solid rgba(111, 186, 44, 1);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.details-btn:hover {
  background-color: #ffffff;
  color: rgba(111, 186, 44, 1);
  border: 2px solid rgba(111, 186, 44, 1);
}

/* プラン詳細モーダル */
.plan-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.modal-title {
  margin: 0;
  color: rgba(195, 214, 0, 1);
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333333;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-compare,
.btn-external {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-compare {
  background-color: #28a745;
  color: white;
}

.btn-compare:hover {
  background-color: #218838;
}

.btn-compare:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.btn-external {
  background-color: rgba(195, 214, 0, 1);
  color: #000000;
}

.btn-external:hover {
  background-color: rgba(111, 186, 44, 1);
}

/* プラン詳細の内容 */
.plan-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.plan-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.plan-carrier {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carrier-info h3 {
  margin: 0;
  color: rgba(111, 186, 44, 1);
  font-size: 1.5rem;
}

.network-type {
  color: #666666;
  font-size: 0.9rem;
}

.plan-score-display {
  text-align: center;
}

.total-score {
  margin-bottom: 1rem;
}

.score-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(195, 214, 0, 1);
  display: block;
}

.score-label {
  font-size: 0.9rem;
  color: #666666;
}

.score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-category {
  min-width: 50px;
  font-size: 0.85rem;
  color: #666666;
}

.score-bar {
  flex: 1;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background-color: rgba(195, 214, 0, 1);
  transition: width 0.3s ease;
}

.score-value {
  font-size: 0.85rem;
  color: #666666;
  min-width: 40px;
}

.plan-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-section h4 {
  color: rgba(195, 214, 0, 1);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.info-label {
  font-size: 0.9rem;
  color: #666666;
}

.info-value {
  font-weight: 600;
  color: #333333;
}

.info-value.price-large {
  font-size: 1.1rem;
  color: rgba(195, 214, 0, 1);
}

.info-value.available {
  color: #28a745;
}

.info-value.unavailable {
  color: #dc3545;
}

.plan-features h4 {
  color: rgba(195, 214, 0, 1);
  margin-bottom: 1rem;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background-color: rgba(195, 214, 0, 0.1);
  color: rgba(195, 214, 0, 1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.plan-campaign {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  border-radius: 6px;
}

.plan-campaign h4 {
  color: #856404;
  margin-bottom: 0.5rem;
}

.campaign-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.campaign-badge {
  background-color: #ffc107;
  color: #212529;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.campaign-text {
  color: #856404;
  font-size: 0.9rem;
}

.plan-analysis {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid rgba(195, 214, 0, 1);
}

.plan-analysis h4 {
  color: rgba(195, 214, 0, 1);
  margin-bottom: 1rem;
}

.analysis-content {
  color: #333333;
  line-height: 1.6;
}

/* 比較パネル */
.compare-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  min-width: 280px;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.compare-panel.active {
  transform: translateX(0);
}

.compare-panel.collapsed {
  transform: translateX(calc(100% - 60px));
}

.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.compare-header h3 {
  margin: 0;
  color: rgba(111, 186, 44, 1);
  font-size: 1.1rem;
}

.compare-count {
  font-size: 0.9rem;
  color: #666666;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.compare-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 6px;
  font-size: 0.9rem;
}

.compare-plan-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-remove:hover {
  color: #c82333;
}

.compare-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-compare-view,
.btn-compare-clear {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-compare-view {
  background-color: rgba(195, 214, 0, 1);
  color: #000000;
}

.btn-compare-view:hover {
  background-color: rgba(111, 186, 44, 1);
}

.btn-compare-view:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.btn-compare-clear {
  background-color: #dc3545;
  color: white;
}

.btn-compare-clear:hover {
  background-color: #c82333;
}

/* 比較モーダル */
.comparison-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.comparison-content {
  max-width: 90%;
  max-height: 90vh;
}

.comparison-table-container {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
  background-color: rgba(195, 214, 0, 1);
  color: #000000;
  font-weight: 600;
}

.comparison-label {
  font-weight: 600;
  color: #333333;
  background-color: #f8f9fa;
}

.comparison-value {
  text-align: center;
}

/* ローディング表示 */
.loading {
  text-align: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid rgba(195, 214, 0, 1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .plan-overview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .plan-info-grid {
    grid-template-columns: 1fr;
  }

  .recommendations-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-panel {
    right: 10px;
    bottom: 10px;
    min-width: 250px;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }

  .score-breakdown {
    gap: 0.5rem;
  }

  .score-item {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .score-category {
    min-width: auto;
  }

  .score-bar {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-compare,
  .btn-external {
    width: 100%;
  }

  .compare-panel {
    right: 5px;
    bottom: 5px;
    min-width: 200px;
  }
}

/* 検索結果のスクロールバー */
.search-results::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(195, 214, 0, 0.6);
  border-radius: 6px;
  border: 2px solid #f1f1f1;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(195, 214, 0, 0.8);
}

.search-results::-webkit-scrollbar-corner {
  background: #f1f1f1;
}

/* 結果リストのスクロールバー */
.results-list::-webkit-scrollbar {
  width: 8px;
}

.results-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.results-list::-webkit-scrollbar-thumb {
  background: rgba(195, 214, 0, 0.6);
  border-radius: 4px;
}

.results-list::-webkit-scrollbar-thumb:hover {
  background: rgba(195, 214, 0, 0.8);
}

/* モーダルのスクロールバー */
.modal-content::-webkit-scrollbar {
  width: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(195, 214, 0, 0.6);
  border-radius: 5px;
  border: 1px solid #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(195, 214, 0, 0.8);
}

/* 比較パネルのスクロールバー */
.compare-list::-webkit-scrollbar {
  width: 6px;
}

.compare-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.compare-list::-webkit-scrollbar-thumb {
  background: rgba(195, 214, 0, 0.6);
  border-radius: 3px;
}

.compare-list::-webkit-scrollbar-thumb:hover {
  background: rgba(195, 214, 0, 0.8);
}

@media (max-width: 1023px) {
  .x-mobile-plans {
    padding: 2rem 1rem !important;
    border-radius: 10px !important;
    margin: 2rem 1rem !important;
    max-width: 100% !important;
  }
  .plan-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
  .plan-card {
    padding: 1.2rem !important;
    border-radius: 10px !important;
    font-size: 0.97rem !important;
  }
  .plan-name {
    font-size: 1.1rem !important;
  }
  .plan-price {
    font-size: 1.1rem !important;
  }
  .plan-select-btn {
    font-size: 1rem !important;
    padding: 0.8rem 0 !important;
    border-radius: 8px !important;
  }
}
@media (max-width: 480px) {
  .x-mobile-plans {
    padding: 1rem 0.5rem !important;
    border-radius: 7px !important;
    margin: 1.2rem 0.5rem !important;
    max-width: 100% !important;
  }
  .plan-grid {
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
  }
  .plan-card {
    padding: 0.7rem !important;
    border-radius: 7px !important;
    font-size: 0.93rem !important;
  }
  .plan-name {
    font-size: 1rem !important;
  }
  .plan-price {
    font-size: 1rem !important;
  }
  .plan-select-btn {
    font-size: 0.95rem !important;
    padding: 0.7rem 0 !important;
    border-radius: 7px !important;
  }
}

@media (max-width: 1023px) {
  .plan-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 1.2rem !important;
    padding-bottom: 1rem !important;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    scroll-snap-type: x mandatory;
    position: relative;
  }
  .plan-card {
    min-width: 270px;
    max-width: 90vw;
    flex: 0 0 auto;
    scroll-snap-align: start;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
  }
  .plan-grid::after {
    content: '⇄ スクロール';
    position: absolute;
    right: 16px;
    top: 2px;
    font-size: 0.8rem;
    color: #bbb;
    background: rgba(255,255,255,0.8);
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 10;
  }
}
@media (max-width: 480px) {
  .plan-grid {
    gap: 0.7rem !important;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .plan-card {
    min-width: 240px;
    max-width: 92vw;
  }
}

@media (max-width: 480px) {
  html, body {
    overflow-x: hidden !important;
  }
  .posts-slider,
  .posts-swiper {
    max-width: 100vw !important;
  }
  .posts-swiper .swiper-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 1023px) {
  .comparison-filters {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
@media (max-width: 480px) {
  .comparison-filters {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 1023px) {
  .plan-card,
  .reason-item,
  .review-card {
    min-width: 220px !important;
    max-width: 320px !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    font-size: 0.95rem !important;
  }
}
@media (max-width: 480px) {
  .plan-card,
  .reason-item,
  .review-card {
    min-width: 180px !important;
    max-width: 240px !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    font-size: 0.92rem !important;
  }
}

@media (max-width: 1023px) {
  html, body {
    overflow-x: hidden !important;
  }
  .posts-swiper .swiper-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 1023px) {
  #nav-drawer #nav-content i {
    color: rgba(111, 186, 44, 1) !important;
  }
}

/* PC（1025px以上） */
@media (min-width: 1025px) {
  .comparison-table-wrapper {
    margin-left: 2rem;
    margin-right: 2rem;
  }
}

/* タブレット（1023px以下） */
@media (max-width: 1023px) {
  .comparison-table-wrapper {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* スマホ（480px以下） */
@media (max-width: 480px) {
  .comparison-table-wrapper {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

/* 投稿記事一覧セクション */
.posts {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 245, 0.8) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.08);
}

.post-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 245, 0.8) 100%);
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* 投稿記事一覧用のカテゴリー表示（画像の上ではなく内容の下に表示） */
.posts .post-category {
  position: static;
  display: inline-block;
  background: rgba(195, 214, 0, 0.1);
  color: rgba(195, 214, 0, 1);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(195, 214, 0, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: rgba(195, 214, 0, 1);
}

.post-excerpt {
  color: #666666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(195, 214, 0, 1);
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.post-read-more a {
  color: #ffffff !important;
}

.post-read-more:hover {
  background: rgba(111, 186, 44, 1);
  transform: translateY(-2px);
}

/* 投稿がない場合のスタイル */
.no-posts-message {
  text-align: center;
  padding: 3rem;
  color: #666666;
  font-style: italic;
}

/* ローディング状態 */
.posts-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  margin-top: 2rem;
}

/* エラー状態 */
.posts-error {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

/* ページネーション */
.posts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

/* 新: スライダーごとにスコープして矢印をswiper-paginationの横へ（タブレット/スマホ） */
@media (max-width: 1023px) {
  .posts-slider .posts-swiper,
  .reviews-slider .reviews-swiper,
  .why-slider .why-swiper { position: relative; }

  /* posts のページネーションを下端中央に固定 */
  .posts-slider .posts-pagination {
    position: absolute !important;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
  }

  /* ページネーションの横に寄せる（タブレット） */
  .posts-slider .posts-prev { left: 10px; bottom: 0rem; top: auto !important; transform: none !important; z-index: 11; }
  .posts-slider .posts-next { right: 10px; bottom: 0rem; top: auto !important; transform: none !important; z-index: 11; }

  .reviews-slider .reviews-prev { left: 10px; bottom: 0rem; top: auto !important; transform: none !important; z-index: 11; }
  .reviews-slider .reviews-next { right: 10px; bottom: 0rem; top: auto !important; transform: none !important; z-index: 11; }

  .why-slider .why-prev { left: 10px; bottom: 0rem; top: auto !important; transform: none !important; z-index: 11; }
  .why-slider .why-next { right: 10px; bottom: 0rem; top: auto !important; transform: none !important; z-index: 11; }
}

@media (max-width: 480px) {
  /* ページネーションの横に寄せる（スマホ） */
  /* スライダー下部に余白を設けて、ページネーション/矢印とカードの重なりを防止 */
  .posts-slider .posts-swiper,
  .reviews-slider .reviews-swiper,
  .why-slider .why-swiper {
    padding-bottom: 2.2rem;
  }
  .posts-slider .posts-pagination { bottom: 0; }
  .posts-slider .posts-prev, .reviews-slider .reviews-prev, .why-slider .why-prev { left: 10px; bottom: 0rem; }
  .posts-slider .posts-next, .reviews-slider .reviews-next, .why-slider .why-next { right: 10px; bottom: 0rem; }
}

.pagination-btn {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(195, 214, 0, 1);
  background: white;
  color: rgba(195, 214, 0, 1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.pagination-btn:hover {
  background: rgba(195, 214, 0, 1);
  color: white;
}

.pagination-btn.active {
  background: rgba(195, 214, 0, 1);
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* レスポンシブ対応 */
@media (max-width: 1023px) {
  .posts {
    padding: 3rem 1rem;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .post-card {
    border-radius: 12px;
  }

  .post-content {
    padding: 1.25rem;
  }

  .post-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .posts {
    padding: 2rem 1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .post-image {
    height: 180px;
  }

  .post-content {
    padding: 1rem;
  }

  .post-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .post-excerpt {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .posts {
    padding: 1.5rem 0.5rem;
  }

  .post-image {
    height: 160px;
  }

  .posts .post-category,
  .posts .post-date {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .post-content {
    padding: 0.75rem;
  }

  .post-title {
    font-size: 0.95rem;
  }

  .post-excerpt {
    font-size: 0.85rem;
  }

  .post-read-more {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
  }
}

/* ===============================================
Usage Calculator Card Design - レスポンシブ対応
=============================================== */

/* 使用量計算ツール - コンテナ */
.usage-calculator {
  margin: 40px 0;
  padding: 0 20px;
}

.usage-calculator-container {
  max-width: 1200px;
  margin: 0 auto;
}

.usage-calculator-title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.usage-calculator-subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* カードグリッド */
.usage-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* 使用量カード */
.usage-card {
  position: relative;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.usage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #4CAF50;
}

.usage-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.usage-radio:checked + .usage-card-content {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border-color: #4CAF50;
}

.usage-radio:checked + .usage-card-content .usage-card-title {
  color: white;
}

.usage-radio:checked + .usage-card-content .recommended-gb-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.usage-radio:checked + .usage-card-content .app-icon {
  filter: brightness(0) invert(1);
}

.usage-radio:checked + .usage-card-content .usage-note {
  color: rgba(255, 255, 255, 0.9);
}

/* カードコンテンツ */
.usage-card-content {
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* カードヘッダー */
.usage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.usage-icon {
  font-size: 32px;
  margin-right: 12px;
}

.usage-card-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
  flex: 1;
}

.recommended-gb-badge {
  background: linear-gradient(135deg, #FF6B6B 0%, #ee5a52 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  border: 2px solid transparent;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.recommended-gb-badge--large {
  background: linear-gradient(135deg, #9C27B0 0%, #8e24aa 100%);
  box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

/* カードボディ */
.usage-card-body {
  flex: 1;
}

.usage-details {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.usage-details li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.app-icon {
  font-size: 18px;
  margin-right: 12px;
  width: 20px;
  flex-shrink: 0;
}

.usage-note {
  font-size: 13px;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  margin-top: 8px;
}

/* タブレット対応 (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .usage-calculator {
    padding: 0 24px;
  }

  .usage-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .usage-calculator-title {
    font-size: 26px;
  }

  .usage-card-content {
    padding: 20px;
  }

  .usage-card-title {
    font-size: 22px;
  }
}

/* スマートフォン対応 (767px以下) */
@media screen and (max-width: 767px) {
  .usage-calculator {
    margin: 30px 0;
    padding: 0 16px;
  }

  .usage-calculator-title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .usage-calculator-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .usage-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .usage-card-content {
    padding: 20px;
  }

  .usage-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .usage-card-title {
    font-size: 20px;
    margin-bottom: 0;
  }

  .usage-icon {
    font-size: 28px;
    margin-right: 8px;
  }

  .recommended-gb-badge {
    font-size: 13px;
    padding: 6px 14px;
    align-self: flex-end;
  }

  .usage-details li {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .app-icon {
    font-size: 16px;
    margin-right: 10px;
    width: 18px;
  }

  .usage-note {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* 小型スマートフォン対応 (480px以下) */
@media screen and (max-width: 480px) {
  .usage-calculator {
    padding: 0 12px;
  }

  .usage-calculator-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .usage-calculator-subtitle {
    font-size: 13px;
  }

  .usage-card-content {
    padding: 16px;
  }

  .usage-card-title {
    font-size: 18px;
  }

  .usage-icon {
    font-size: 24px;
  }

  .recommended-gb-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  .usage-details li {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .app-icon {
    font-size: 14px;
    margin-right: 8px;
    width: 16px;
  }
}

/* 超小型スマートフォン対応 (320px以下) */
@media screen and (max-width: 320px) {
  .usage-calculator-title {
    font-size: 18px;
  }

  .usage-card-content {
    padding: 14px;
  }

  .usage-card-title {
    font-size: 16px;
  }

  .usage-icon {
    font-size: 20px;
  }

  .recommended-gb-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .usage-details li {
    font-size: 12px;
  }
}

/* フォーカス・アクセシビリティ対応 */
.usage-card:focus-within {
  outline: 2px solid #4CAF50;
  outline-offset: 2px;
}

.usage-radio:focus + .usage-card-content {
  outline: 2px solid #4CAF50;
  outline-offset: 2px;
}

/* アニメーション効果 */
@keyframes cardSelect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.usage-radio:checked + .usage-card-content {
  animation: cardSelect 0.3s ease;
}

/* レビュースライダー */
.reviews-slider {
    position: relative;
    width: 100%;
    margin: 2rem 0;
}

.reviews-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.reviews-swiper .swiper-wrapper {
    display: flex;
    transition-property: transform;
}

.reviews-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    position: relative;
    transition-property: transform;
}

.review-slide-card {
    height: 100%;
    padding: 1rem;
    transition: all 0.3s ease;
}

.review-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.15);
}

.reviews-pagination {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.reviews-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reviews-pagination .swiper-pagination-bullet-active {
    background: #28a745;
}

.reviews-next,
.reviews-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.reviews-next:hover,
.reviews-prev:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.reviews-next {
    right: 10px;
}

.reviews-prev {
    left: 10px;
}

/* Whyスライダー */
.why-slider {
    position: relative;
    width: 100%;
    margin: 2rem 0;
}

.why-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.why-swiper .swiper-wrapper {
    display: flex;
    transition-property: transform;
}

.why-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    position: relative;
    transition-property: transform;
}

.why-slide-card {
    height: 100%;
    padding: 1rem;
    transition: all 0.3s ease;
}

.why-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.15);
}

.why-pagination {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.why-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.why-pagination .swiper-pagination-bullet-active {
    background: #28a745;
}

.why-next,
.why-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.why-next:hover,
.why-prev:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.why-next {
    right: 10px;
}

.why-prev {
    left: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .reviews-next,
    .reviews-prev,
    .why-next,
    .why-prev {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .reviews-pagination,
    .why-pagination {
        bottom: -1.5rem;
    }
}

@media (max-width: 480px) {
    .reviews-next,
    .reviews-prev,
    .why-next,
    .why-prev {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .review-slide-card,
    .why-slide-card {
        padding: 0.5rem;
    }
}

/* タブレット（768px〜1023px）：mobile-only スライダーのカードを中央寄せ */
@media (min-width: 768px) and (max-width: 1023px) {
  .reviews-slider.mobile-only .reviews-swiper .swiper-slide,
  .why-slider.mobile-only .why-swiper .swiper-slide {
    display: flex;
    justify-content: center;
  }
}

/* レスポンシブ表示制御 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* レビューグリッド（PC用） */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.reviews-grid .review-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.reviews-grid .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.15);
}

/* 理由グリッド（PC用） */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.reasons-grid .reason-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.reasons-grid .reason-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.15);
}

.reasons-grid .reason-icon {
    margin-bottom: 1.5rem;
}

.reasons-grid .reason-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.reasons-grid .reason-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.reasons-grid .reason-description {
    color: #5d6d7e;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 1023px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .reviews-toggle {
        margin: 1.5rem 0;
    }

    .toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .reviews-toggle {
        margin: 1rem 0;
    }

    .toggle-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .toggle-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* レビューコンテンツの折りたたみ */
.review-content {
    position: relative;
}

.review-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    margin-bottom: 0;
}

.review-text-full {
    line-height: 1.6;
    margin-bottom: 0;
}

.review-toggle-btn {
    background: transparent;
    color: #28a745;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.review-toggle-btn:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.review-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.review-toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .review-toggle-btn {
        font-size: 13px;
        padding: 6px 0;
    }
}

@media (max-width: 480px) {
    .review-toggle-btn {
        font-size: 12px;
        padding: 4px 0;
    }
}

