/* ==========================================================================
   iR福山店 共通スタイルシート (css/style.css)
   ========================================================================== */

/* 1. 基本変数・カラー定義 */
:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;
  
  --amber-300: #fde047;
  --amber-400: #facc15;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --emerald-100: #d1fae5;
  --emerald-300: #6ee7b7;
  --emerald-500: #10b981;
  --emerald-800: #065f46;

  --font-main: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
}

/* 2. リセット & ベース */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  padding-bottom: 70px; /* スマホ固定バー用 */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* 3. レイアウトコンテナ */
.max-w-7xl { max-width: 1280px; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 1024px; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 896px; margin-left: auto; margin-right: auto; }
.container-px { padding-left: 1rem; padding-right: 1rem; }

@media (min-width: 640px) {
  .container-px { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* 4. ヘッダー & ナビゲーション */
.top-alert-banner {
  background: linear-gradient(to right, var(--amber-600), var(--amber-500), var(--amber-600));
  color: #111827;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 700;
}

.glass-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

.logo-badge {
  background-color: var(--brand-700);
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
}

.nav-links {
  display: none;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-700);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a:hover {
  color: var(--brand-600);
}

.btn-header-cta {
  background-color: var(--brand-600);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.btn-header-cta:hover {
  background-color: var(--brand-700);
}

/* 5. ヒーローセクション */
.hero-bg {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--brand-900) 50%, var(--brand-800) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
}

@media (min-width: 1024px) {
  .hero-bg { padding: 5rem 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
}

.text-gradient {
  background: linear-gradient(to right, var(--amber-300), var(--brand-100), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-card {
  background-color: #ffffff;
  color: var(--gray-900);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 6. 特徴・強みカード */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.feature-card {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

.feature-num {
  width: 3rem;
  height: 3rem;
  background-color: var(--brand-600);
  color: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* 7. シミュレーター＆価格表 */
.sim-card {
  background-color: #ffffff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .sim-card { padding: 2.5rem; }
}

.sim-output {
  background-color: var(--brand-900);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .sim-output {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.price-table-container {
  overflow-x: auto;
  background-color: #ffffff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-200);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.price-table th {
  background-color: var(--gray-100);
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: var(--gray-700);
}

.price-table td {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}

/* 8. スマホ用固定ボトムバー */
.mobile-fixed-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #ffffff;
  border-top: 1px solid var(--gray-200);
  padding: 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
  box-shadow: 0 -10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .mobile-fixed-bar { display: none; }
}

.mobile-btn {
  padding: 0.625rem 0;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.625rem;
}

/* ==========================================================================
   リアルタイム料金シミュレーター専用スタイル
   ========================================================================== */

.sim-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--brand-50), #ffffff);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.sim-badge {
  background-color: var(--brand-100);
  color: var(--brand-800);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.sim-card {
  background-color: #ffffff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .sim-card {
    padding: 2.5rem;
  }
}

.sim-select-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .sim-select-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sim-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.sim-select {
  width: 100%;
  background-color: var(--gray-50);
  border: 1px solid var(--gray-300);
  color: var(--gray-900);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  padding: 0.875rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.sim-select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.sim-output-card {
  margin-top: 2rem;
  background-color: var(--brand-900);
  color: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .sim-output-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
  }
}

.sim-price-val {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--amber-400);
  line-height: 1;
}

@media (min-width: 640px) {
  .sim-price-val {
    font-size: 3.25rem;
  }
}

.sim-meta-info {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-300);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sim-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .sim-cta-group {
    flex-direction: row;
    width: auto;
  }
}

.sim-btn-primary {
  background-color: var(--amber-400);
  color: #111827;
  font-weight: 900;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.sim-btn-primary:hover {
  background-color: var(--amber-500);
}

.sim-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.sim-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}


/* ==========================================================================
   修理価格表セクション専用スタイル
   ========================================================================== */

.price-section {
  padding: 4rem 0;
  background-color: #ffffff;
}

.price-tabs-wrapper {
  display: flex;
  justify-content: flex-start; /* スマホ表示時は左揃え（左端のiPhoneが見切れないようにする） */
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto; /* 横スクロールを許可 */
  -webkit-overflow-scrolling: touch; /* スマホで滑らかにスクロール */
  padding-bottom: 0.25rem;
}

/* パソコン・タブレット（768px以上）の時は中央揃えにする */
@media (min-width: 768px) {
  .price-tabs-wrapper {
    justify-content: center;
  }
}

.price-tab-nav {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 1px;
  min-width: max-content; /* 中身のタブ幅を確保して潰れないようにする */
}

.price-tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.price-tab-btn:hover {
  color: var(--gray-800);
}

.price-tab-btn.active,
.price-tab-btn.border-brand-600 {
  color: var(--brand-600);
  border-bottom-color: var(--brand-600);
}

.price-table-card {
  background-color: #ffffff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.price-table th {
  background-color: var(--gray-100);
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
}

.price-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

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

.price-table tr:hover td {
  background-color: var(--gray-50);
}

.price-val-highlight {
  font-weight: 700;
  color: var(--brand-700);
}

.price-badge-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-600);
}

.price-tab-content.hidden {
  display: none !important;
}

/* ==========================================================================
   よくある質問 (FAQ) セクション専用スタイル
   ========================================================================== */

.faq-section {
  padding: 4rem 0;
  background-color: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q-text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.faq-q-icon {
  color: var(--brand-600);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
}

.faq-toggle-icon {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--brand-600);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  background-color: #ffffff;
}

.faq-item.open .faq-answer {
  max-height: 500px; /* アニメーション用上限値 */
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
  border-top: 1px solid var(--gray-100);
}

.faq-a-inner {
  padding: 1.25rem 1.5rem 1.5rem 3.25rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .faq-a-inner {
    padding-left: 1.5rem;
  }
}

/* ==========================================================================
   店舗情報 & アクセス セクション専用スタイル
   ========================================================================== */

.access-section {
  padding: 4rem 0;
  background-color: var(--gray-900);
  color: #ffffff;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .access-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.access-badge {
  background-color: var(--brand-800);
  color: var(--brand-100);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.access-info-card {
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  font-size: 0.875rem;
}

.access-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.access-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.access-info-icon {
  color: var(--amber-400);
  font-size: 1rem;
  margin-top: 0.2rem;
  width: 1.25rem;
  text-align: center;
}

.route-steps {
  background-color: var(--gray-800);
  border-radius: var(--radius-xl);
  padding: 1rem;
  margin-top: 1rem;
  border-left: 3px solid var(--brand-500);
}

.route-steps h4 {
  font-size: 0.875rem;
  color: var(--brand-100);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.route-steps ol {
  padding-left: 1.25rem;
  font-size: 0.8rem;
  color: var(--gray-300);
  line-height: 1.6;
}

.map-container {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--gray-700);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

@media (min-width: 640px) {
  .map-container {
    height: 450px;
  }
}

/* ==========================================================================
   お問い合わせCTA & フッター専用スタイル
   ========================================================================== */

/* 1. お問い合わせCTAセクション */
.cta-section {
  padding: 4rem 0;
  background-color: #ffffff;
}

.cta-card {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 100%);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 1.5rem;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .cta-card {
    padding: 3.5rem 2.5rem;
  }
}

.cta-badge {
  background-color: var(--amber-400);
  color: #111827;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-btn-phone {
  background-color: #ffffff;
  color: var(--gray-900);
  border-radius: var(--radius-xl);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}

.cta-btn-phone:hover {
  background-color: var(--gray-100);
}

.cta-btn-reserve {
  background-color: var(--amber-400);
  color: #111827;
  border-radius: var(--radius-xl);
  padding: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}

.cta-btn-reserve:hover {
  background-color: var(--amber-500);
}

/* 2. メインフッター */
.site-footer {
  background-color: var(--gray-900);
  color: var(--gray-400);
  font-size: 0.8125rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--gray-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-800);
  text-align: center;
  color: var(--gray-500);
  font-size: 0.75rem;
}