/* ===================================
   デスクトップ最適化CSS
   PCでの表示を改善し、余白を効率的に活用
   =================================== */

/* ===================================
   モバイル用のグリッドリセット
   =================================== */
@media (max-width: 1023px) {
  .types-grid {
    display: block !important;
  }
  
  .types-grid .card {
    margin-bottom: 1rem !important;
  }
  
  #officesGrid {
    display: block !important;
  }
  
  #officesGrid .office-card {
    margin-bottom: 1rem !important;
  }
}

/* ===================================
   デスクトップ用CSS変数の上書き
   =================================== */
@media (min-width: 1024px) {
  :root {
    /* より広いコンテナ幅 */
    --container-max-width: 1400px !important;
    
    /* デスクトップ用の余白調整 */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    
    /* フォントサイズの固定化 */
    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-base: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;
    --font-size-4xl: 48px;
    
    /* ヘッダー高さの固定 */
    --header-height: 70px;
  }
}

/* ===================================
   大画面（1440px以上）向け最適化
   =================================== */
@media (min-width: 1440px) {
  :root {
    --container-max-width: 1600px !important;
  }
  
  .container {
    max-width: 1600px !important;
    padding: 0 40px !important;
  }
}

/* ===================================
   超大画面（1920px以上）向け最適化
   =================================== */
@media (min-width: 1920px) {
  :root {
    --container-max-width: 1800px !important;
  }
  
  .container {
    max-width: 1800px !important;
    padding: 0 60px !important;
  }
}

/* ===================================
   デスクトップ向けレイアウト改善
   =================================== */
@media (min-width: 1024px) {
  /* コンテナの基本設定 */
  .container {
    max-width: 1400px !important;
    padding: 0 30px !important;
  }
  
  /* ヒーローセクションの最適化 */
  .hero {
    padding: 80px 0;
    min-height: 600px;
  }
  
  .hero .card {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px;
  }
  
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 40px 0;
  }
  
  /* 診断セクションの2カラムレイアウト */
  .diagnosis-section .card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
  }
  
  .diagnosis-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .diagnosis-form .form-group:last-child,
  .diagnosis-form .text-center {
    grid-column: 1 / -1;
  }
  
  /* 事務所グリッドの最適化 */
  #officesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
  }
  
  .office-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
  }
  
  /* FAQ セクションの最適化 */
  .faq-container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .faq-item {
    margin-bottom: 20px;
  }
  
  /* 債務整理タイプカードの3カラム */
  .types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
  }
  
  .type-card {
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  /* ボタンのサイズ調整 */
  .btn {
    padding: 14px 32px;
    font-size: 18px;
  }
  
  .btn-large {
    padding: 18px 48px;
    font-size: 20px;
  }
  
  /* テーブルの最適化 */
  .comparison-table {
    font-size: 16px;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 16px 20px;
  }
  
  /* フッターの最適化 */
  .footer {
    padding: 60px 0 40px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 40px;
  }
}

/* ===================================
   1280px以上での追加最適化
   =================================== */
@media (min-width: 1280px) {
  /* サイドバー付きレイアウト */
  .content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
  }
  
  /* 統計情報の水平表示 */
  .stats-container {
    display: flex;
    justify-content: space-around;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
  }
  
  .stat-box {
    text-align: center;
    flex: 1;
  }
  
  .stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
    display: block;
  }
  
  .stat-label {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 8px;
  }
  
  /* カード内のコンテンツ余白調整 */
  .card {
    padding: 40px;
  }
  
  .card-header {
    margin-bottom: 32px;
  }
  
  .card-title {
    font-size: 32px;
    margin-bottom: 16px;
  }
  
  /* リストアイテムの間隔 */
  .feature-list li,
  .benefit-list li {
    padding: 12px 0;
    font-size: 18px;
  }
}

/* ===================================
   超ワイドスクリーン対応（2560px以上）
   =================================== */
@media (min-width: 2560px) {
  :root {
    --container-max-width: 2200px !important;
  }
  
  .container {
    max-width: 2200px !important;
    padding: 0 80px !important;
  }
  
  /* 4カラムレイアウト */
  #officesGrid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .types-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* より大きなフォントサイズ */
  body {
    font-size: 20px;
  }
  
  .hero .card-title {
    font-size: 56px;
  }
  
  .section-title {
    font-size: 48px;
  }
}

/* ===================================
   アニメーション無効化（パフォーマンス向上）
   =================================== */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  /* スムーズなホバーエフェクト */
  .card,
  .btn,
  .office-card,
  .type-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover,
  .office-card:hover,
  .type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
}

/* ===================================
   印刷用スタイル
   =================================== */
@media print {
  .header,
  .nav,
  .footer,
  .btn,
  .emergency-alert {
    display: none !important;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}
/* Footer Copyright PC Centered Fix */
@media (min-width: 769px) {
  .footer-bottom {
    text-align: center \!important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .footer-bottom .copyright {
    text-align: center \!important;
    margin: 0 auto \!important;
    width: 100%;
    display: block;
  }
  
  .footer-bottom .footer-links {
    justify-content: center \!important;
    margin-top: 1rem;
  }
}
EOF < /dev/null
