/* ============================================
   pro-upgrade.css — プロデザイナー品質への改善
   ============================================ */

/* --- Google Fonts プリコネクト --- */
/* head に以下を追加:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
*/

/* --- 改善されたベース --- */
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
}

/* --- よりプロフェッショナルなヘッダー --- */
.header {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-bottom: none;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}

.logo-text {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-desktop a {
  position: relative;
  padding-bottom: 4px;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-primary);
  transition: width 0.3s ease;
}
.nav-desktop a:hover::after {
  width: 100%;
}

/* --- 洗練されたヒーロー --- */
.hero {
  background: linear-gradient(135deg, #1A73E8 0%, #1557B0 40%, #4A90D9 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-badge {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-cta {
  box-shadow: 0 4px 12px rgba(255,109,63,0.4);
  letter-spacing: 0.03em;
}
.hero-cta:hover {
  box-shadow: 0 6px 20px rgba(255,109,63,0.5);
}

/* --- 結論ボックスの改善 --- */
.summary-card {
  position: relative;
  overflow: hidden;
}
.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-primary), var(--accent));
  border-radius: 4px 0 0 4px;
}
.summary-card h2 {
  font-weight: 700;
  font-size: 1.05rem;
}

/* --- 評価基準カードの改善 --- */
.criteria-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.criteria-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.criteria-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  border-radius: 12px;
  margin: 0 auto 8px;
}

/* --- ランキングカードのプロ化 --- */
.rank-card {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  overflow: visible;
}
.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.rank-1 {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--white), var(--white)), linear-gradient(135deg, #F5A623, #F7C948, #F5A623);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
}
.rank-1::before {
  content: '👑';
  position: absolute;
  top: -14px;
  left: 20px;
  font-size: 1.4rem;
  z-index: 2;
}

.rank-badge {
  border-radius: 0 0 12px 0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.rank-header h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.spec-value {
  font-feature-settings: 'tnum';
}
.spec-value.highlight {
  background: linear-gradient(135deg, var(--accent), #FF8F6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.15rem;
}

.rank-cta {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.1s;
}
.rank-cta:hover {
  transform: scale(1.01);
}
.rank-1 .rank-cta {
  background: linear-gradient(135deg, var(--accent), #FF8F6B);
}
.rank-1 .rank-cta:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}

/* --- 特徴リストの改善 --- */
.feature-list li {
  padding: 4px 0;
  transition: padding-left 0.2s;
}
.feature-list li:hover {
  padding-left: 4px;
}

/* --- 会社情報の改善 --- */
.company-info {
  border-left: 3px solid var(--blue-primary);
}

/* --- FAQ の改善 --- */
.faq-item {
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: var(--shadow);
}
.faq-item summary {
  transition: color 0.2s;
}
.faq-item summary:hover {
  color: var(--blue-primary);
}
.faq-item[open] {
  border-color: var(--blue-primary);
}
.faq-item[open] summary {
  color: var(--blue-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

/* --- 注意喚起ボックスの改善 --- */
.warning-box {
  position: relative;
  overflow: hidden;
}
.warning-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #F59E0B;
}

/* --- フッターの改善 --- */
.footer {
  background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
}
.footer-col a {
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover {
  padding-left: 4px;
}
.footer-copy {
  opacity: 0.6;
}

/* --- 全体的なマイクロインタラクション --- */
@media (prefers-reduced-motion: no-preference) {
  .rank-card,
  .criteria-item,
  .faq-item,
  .compare-card,
  .merit-card,
  .scene-card,
  .check-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .compare-card:hover,
  .merit-card:hover,
  .scene-card:hover,
  .check-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
}

/* --- スクロールバーのカスタマイズ --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* --- テキスト選択色 --- */
::selection {
  background: var(--blue-light);
  color: var(--blue-dark);
}

/* --- プリントスタイル --- */
@media print {
  .header, .footer, .hamburger, .nav-mobile, .cta-section, .cta-card { display: none; }
  body { background: white; color: black; }
  .rank-card { break-inside: avoid; }
}

/* --- PC幅でのレイアウト改善 --- */
@media (min-width: 768px) {
  .container { max-width: 840px; padding: 0 24px; }

  .hero h1 { font-size: 2.6rem; line-height: 1.25; }
  .hero-sub { font-size: 1.05rem; }

  .rank-specs { gap: 0; }
  .spec { padding: 16px; }

  .rank-body { padding: 0 24px 20px; }
  .rank-header { padding: 20px 24px 0; }
}

/* --- 超大画面 --- */
@media (min-width: 1024px) {
  .container { max-width: 880px; }
}
