@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #1f1f1f;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* ===== Layout Shell ===== */
.site-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ===== Aside / Sidebar Nav ===== */
.site-aside {
  width: 240px;
  min-width: 240px;
  background: #ffffff;
  border-right: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.site-aside nav {
  padding: 80px 0 16px;
}

.site-aside nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}

.site-aside nav ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.site-aside nav ul li a:hover,
.site-aside nav ul li a[aria-current="page"] {
  background: #f0f0f0;
  color: #1f1f1f;
}

.aside-related,
.aside-meta {
  padding: 16px 12px;
  border-top: 1px solid #f0f0f0;
}

.aside-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 10px;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-links li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-links li a:hover {
  background: #f5f5f5;
  color: #1f1f1f;
}

.aside-meta-item {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

/* ===== Main Column ===== */
.inner-main,
.home-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e8e8;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.header-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.brand-text {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  letter-spacing: -0.02em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: #1f1f1f;
  color: #ffffff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s;
}

.header-cta:hover {
  opacity: 0.85;
}

/* ===== Hero (Home) ===== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 64px);
  background: #1f1f1f;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 60px;
  max-width: 700px;
}

.hero-h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: #ffffff;
  color: #1f1f1f;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  color: #ffffff;
}

.hero-arc {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: #f5f5f5;
  clip-path: ellipse(60% 100% at 50% 100%);
}

/* ===== Page Hero (Inner Pages) ===== */
.page-hero {
  background: #1f1f1f;
  padding: 60px 60px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: #f5f5f5;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 6px;
}

.page-hero h1 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero .subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ===== Wrap / Content Structure ===== */
main {
  flex: 1;
}

.wrap {
  padding: 0;
}

.content-section {
  padding: 48px 60px;
}

.content-section > article {
  max-width: 740px;
}

/* ===== Page Content Typography ===== */
.page-content {
  font-size: 16px;
  line-height: 1.8;
  color: #2a2a2a;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 36px 0 12px;
  letter-spacing: -0.02em;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f1f1f;
  margin: 28px 0 10px;
}

.page-content p {
  margin-bottom: 18px;
}

.page-content ul, .page-content ol {
  margin: 16px 0 20px 20px;
  list-style: revert;
}

.page-content li {
  margin-bottom: 8px;
}

.page-content blockquote {
  border-left: 3px solid #1f1f1f;
  padding: 12px 20px;
  margin: 24px 0;
  background: #ffffff;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #555;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.page-content th,
.page-content td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

.page-content th {
  font-weight: 600;
  background: #f5f5f5;
}

/* ===== Subtitle (h2 + p.subtitle) ===== */
h2 + .subtitle,
h2 + p.subhead,
h2 + p.desc,
h2 + p.lead {
  color: #666;
  font-size: 15px;
  margin-top: 8px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.subtitle {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ===== Bento Grid ===== */
.bento-section {
  padding: 48px 60px;
  background: #f5f5f5;
}

.bento-section > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

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

.bento-grid--small {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
}

.bento-grid--about {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
}

/* ===== Bento Cards ===== */
.bento-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px solid #e8e8e8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.bento-card:hover {
  transform: scale(1.02);
  border-color: #cccccc;
}

.bento-card--static {
  cursor: default;
}

.bento-card--static:hover {
  transform: none;
  border-color: #e8e8e8;
}

.bento-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.card-inner {
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 6px;
}

.card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-date {
  font-size: 11px;
  color: #bbb;
  margin-top: auto;
}

.card-arrow {
  font-size: 16px;
  color: #ccc;
  margin-top: auto;
  transition: color 0.15s, transform 0.15s;
}

.bento-card:hover .card-arrow {
  color: #1f1f1f;
  transform: translateX(3px);
}

/* ===== Ranking List ===== */
.ranking-section {
  padding: 48px 60px;
  background: #ffffff;
}

.ranking-section > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.ranking-list {
  display: grid;
  gap: 0;
}

.rank-dt {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}

.rank-num {
  font-size: 32px;
  font-weight: 700;
  color: #e8e8e8;
  min-width: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rank-dt a {
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
  transition: color 0.15s;
  line-height: 1.4;
}

.rank-dt a:hover {
  color: #555;
}

.rank-dd {
  font-size: 14px;
  color: #888;
  padding: 8px 0 16px 72px;
  border-bottom: 1px solid #f8f8f8;
  line-height: 1.6;
}

.rank-dd time {
  display: inline-block;
  margin-left: 12px;
  font-size: 12px;
  color: #bbb;
}

/* ===== Compare ===== */
.compare-intro {
  padding: 32px 60px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.compare-badges {
  display: flex;
  align-items: center;
  gap: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge--a {
  background: #1f1f1f;
  color: #ffffff;
}

.badge--b {
  background: #f5f5f5;
  color: #1f1f1f;
  border: 1.5px solid #e8e8e8;
}

.compare-vs {
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.05em;
}

/* ===== Review Hero ===== */
.review-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  background: #1f1f1f;
  position: relative;
  overflow: hidden;
}

.review-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: #f5f5f5;
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

.review-hero-img {
  overflow: hidden;
}

.review-hero-img .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.review-hero-content {
  padding: 60px 50px 80px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-hero-content h1 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 14px 0 12px;
}

.review-hero-content .subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.review-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.review-body {
  max-width: 740px;
}

/* ===== FAQ Content ===== */
.faq-content .page-content {
  max-width: 740px;
}

/* ===== About / Privacy ===== */
.about-body,
.privacy-body {
  max-width: 740px;
}

.about-mission {
  padding: 48px 60px;
}

.about-mission > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

/* ===== Footer ===== */
.site-footer {
  background: #1f1f1f;
  padding: 40px 60px 32px;
  margin-top: auto;
}

.footer-brand {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.15;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy a {
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}

.footer-copy a:hover {
  color: rgba(255,255,255,0.85);
}

/* ===== Scroll Reveal ===== */
@media (prefers-reduced-motion: no-preference) {
  .bento-card,
  .rank-dt,
  .rank-dd,
  .page-content h2,
  .page-content p {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .bento-card.revealed,
  .rank-dt.revealed,
  .rank-dd.revealed,
  .page-content h2.revealed,
  .page-content p.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .bento-card:nth-child(2) { transition-delay: 0.05s; }
  .bento-card:nth-child(3) { transition-delay: 0.10s; }
  .bento-card:nth-child(4) { transition-delay: 0.15s; }
  .bento-card:nth-child(5) { transition-delay: 0.20s; }
  .bento-card:nth-child(6) { transition-delay: 0.25s; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .site-aside {
    width: 200px;
    min-width: 200px;
  }

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

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

  .review-hero {
    grid-template-columns: 1fr;
  }

  .review-hero-img {
    height: 200px;
  }

  .content-section,
  .bento-section,
  .ranking-section,
  .about-mission,
  .compare-intro {
    padding-left: 36px;
    padding-right: 36px;
  }

  .hero-content,
  .page-hero {
    padding-left: 36px;
    padding-right: 36px;
  }

  .site-footer {
    padding-left: 36px;
    padding-right: 36px;
  }
}

@media (max-width: 768px) {
  .site-shell {
    flex-direction: column;
  }

  .site-aside {
    width: 100%;
    min-width: unset;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    overflow-y: visible;
  }

  .site-aside nav {
    padding: 72px 0 8px;
  }

  .site-aside nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding: 0 12px 8px;
    -webkit-overflow-scrolling: touch;
  }

  .site-aside nav ul li {
    flex-shrink: 0;
  }

  .site-aside nav ul li a {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 12px;
  }

  .aside-related,
  .aside-meta {
    display: none;
  }

  .site-header {
    height: 56px;
    padding: 0 16px;
  }

  .hero-content {
    padding: 60px 20px 80px;
  }

  .hero-h1 {
    font-size: 28px;
  }

  .page-hero {
    padding: 48px 20px 64px;
  }

  .content-section,
  .bento-section,
  .ranking-section,
  .about-mission,
  .compare-intro {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer {
    padding: 32px 16px 24px;
  }

  .footer-brand {
    font-size: 24px;
  }

  .bento-grid,
  .bento-grid--duo,
  .bento-grid--small,
  .bento-grid--about {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-2x1,
  .bento-2x2 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .card-inner {
    padding: 18px;
    min-height: 140px;
  }

  .review-hero {
    grid-template-columns: 1fr;
  }

  .review-hero-content {
    padding: 40px 20px 60px;
  }

  .rank-num {
    font-size: 24px;
    min-width: 40px;
  }

  .rank-dd {
    padding-left: 60px;
  }
}

@media (max-width: 375px) {
  .hero-h1 {
    font-size: 24px;
  }

  .btn-primary,
  .btn-ghost {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
  }

  .header-cta {
    font-size: 12px;
    padding: 0 14px;
  }
}
