/*
Theme Name: 合格ナビ
Theme URI: https://gokaku-nabi.local
Author: Gokaku Nabi Team
Author URI: https://gokaku-nabi.local
Description: 日本資格試験APP矩阵主题 - 提供测评、报告、内容推荐、收藏和错题本功能
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gokaku-nabi
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.2
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  line-height: 1.7;
  color: #1f2933;
  background: radial-gradient(120% 120% at 80% 10%, #e8efff 0%, #f6f7fb 60%, #ffffff 100%);
  letter-spacing: 0.01em;
}

a {
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #4338ca;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0f172a;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

p {
  margin-bottom: 1rem;
  color: #334155;
  line-height: 1.85;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(103, 126, 234, 0.12);
  padding: 1.4rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site.scrolled header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(15, 24, 61, 0.08);
}

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

.logo {
  font-size: 1.9rem;
  font-weight: 700;
  color: #2c3d8f;
  letter-spacing: 0.08em;
}

.logo:hover {
  color: #1e2a6f;
}

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

nav a {
  color: #1f2a56;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 0.3rem;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5 0%, #22d3ee 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav a:hover {
  color: #111c44;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
  padding: 4rem 0 6rem;
}

/* Hero Section */
.hero {
  background: radial-gradient(120% 140% at 65% 10%, rgba(68, 93, 255, 0.6) 0%, rgba(84, 55, 204, 0.62) 32%, rgba(28, 26, 92, 0.95) 100%);
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 4rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(22, 36, 110, 0.25);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.35;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
}

.hero::after {
  width: 320px;
  height: 320px;
  bottom: -160px;
  left: -110px;
}

.hero h1 {
  font-size: clamp(2.8rem, 4.6vw, 3.6rem);
  margin-bottom: 1.2rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 16px 36px rgba(6, 10, 38, 0.55);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.2rem;
  color: rgba(250, 254, 255, 0.94);
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(248, 250, 252, 0.9);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(120deg, #f97316 0%, #fb7185 50%, #f472b6 100%);
  color: white;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  box-shadow: 0 15px 40px rgba(249, 115, 22, 0.35);
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.45);
}

.cta-secondary {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(4px);
}

.cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.9);
  color: white;
}

.hero-points {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0;
}

.hero-points li {
  font-size: 1.02rem;
  color: rgba(250, 254, 255, 0.96);
  max-width: 260px;
  position: relative;
  padding-left: 1.8rem;
  text-align: left;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
}

.metrics-section {
  margin: 4.5rem 0 5rem;
  text-align: center;
}

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

.metric-card {
  padding: 1.8rem 1.6rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.14);
  box-shadow: 0 18px 40px rgba(15, 24, 61, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 24, 61, 0.18);
}

.metric-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1f2a56;
  margin-bottom: 0.6rem;
}

.metric-value span {
  background: linear-gradient(120deg, #6366f1 0%, #22d3ee 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.95rem;
  color: #48526d;
  line-height: 1.7;
}

.metrics-note {
  font-size: 0.85rem;
  color: #5b6478;
}

.legal-page {
  padding: 4rem 0 6rem;
  max-width: 880px;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.8rem;
}

.legal-breadcrumb a {
  color: #475569;
}

.legal-header {
  margin-bottom: 3rem;
}

.legal-header h1 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.legal-subtitle {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 1.2rem;
}

.legal-section {
  margin-bottom: 2.6rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 1rem;
  color: #0f172a;
}

.legal-section ul {
  list-style: disc;
  margin: 1rem 0 1rem 1.5rem;
  color: #334155;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.85;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 0.95rem;
  color: #475569;
}

.legal-meta dl {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-meta dt {
  font-weight: 600;
  color: #0f172a;
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-links a {
  color: #2563eb;
}

.legal-links a:hover {
  color: #1d4ed8;
}

/* Process Section */
.process-section {
  margin: 5rem 0;
  padding: 3.5rem 0;
}

.process-section h2,
.benefits-section h2,
.products-section h2,
.cta-section h2 {
  text-align: center;
  margin-bottom: 3.2rem;
  color: #121c44;
  letter-spacing: 0.04em;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.2rem;
  margin-bottom: 3rem;
}

.step {
  background: rgba(255, 255, 255, 0.8);
  padding: 2.2rem;
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 18px 38px rgba(15, 24, 61, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  backdrop-filter: blur(10px);
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(15, 24, 61, 0.18);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  color: white;
  border-radius: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.3);
}

.step h3 {
  margin: 0;
  color: #131c3f;
}

.step p {
  color: #3f4c63;
  font-size: 0.98rem;
  line-height: 1.85;
}

/* Benefits Section */

.benefits-section {
  margin: 5rem 0;
  padding: 3.5rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.4rem;
}

.benefit-item {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: 2.4rem;
  box-shadow: 0 18px 50px rgba(15, 24, 61, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(148, 163, 184, 0.18);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.benefit-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(79, 70, 229, 0.12) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.benefit-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(15, 24, 61, 0.2);
}

.benefit-item:hover::after {
  opacity: 1;
}

.benefit-item h3 {
  margin-bottom: 1rem;
  color: #12213f;
}

.benefit-item p {
  color: #3e4b61;
  font-size: 0.98rem;
  line-height: 1.85;
}

/* Products Section */

.products-section {
  margin: 5rem 0;
  padding: 3.5rem 0;
}

.section-lead {
  text-align: center;
  max-width: 740px;
  margin: -1.4rem auto 3.2rem;
  color: #4b5563;
  font-size: 1.08rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.8rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 45px rgba(15, 24, 61, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  border: 1px solid rgba(129, 140, 248, 0.18);
  backdrop-filter: blur(10px);
  position: relative;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(79, 70, 229, 0.08) 0%, rgba(56, 189, 248, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 32px 70px rgba(15, 24, 61, 0.22);
}

.product-card:hover::after {
  opacity: 1;
}

.product-header {
  background: linear-gradient(130deg, rgba(99, 102, 241, 0.13) 0%, rgba(22, 163, 255, 0.16) 100%);
  color: #1f2559;
  padding: 2.4rem 2rem 2rem;
  text-align: center;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.product-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.product-body {
  padding: 1.8rem 2.2rem 1.8rem;
}

.product-body p {
  color: #394257;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.9;
}

.product-features {
  list-style: none;
  margin: 1rem 0;
}

.product-features li {
  padding: 0.45rem 0;
  color: #3f4961;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.product-features li:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.product-footer {
  padding: 0 2.2rem 2.2rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(120deg, #4f46e5 0%, #22d3ee 100%);
  color: white;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
}

.product-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.45);
}

/* CTA Section */

.cta-section {
  margin: 6rem 0 3rem;
}

.cta-card {
  background: linear-gradient(140deg, #0b1224 0%, #1d2741 55%, #3730a3 100%);
  color: white;
  padding: 3.6rem 3rem;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 38px 90px rgba(17, 24, 39, 0.35);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 80% 20%, rgba(55, 65, 229, 0.6) 0%, rgba(55, 65, 229, 0) 70%);
  opacity: 0.6;
}

.cta-card h2,
.cta-card p,
.cta-card .cta-button {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  color: #f8fafc;
  text-shadow: 0 12px 28px rgba(4, 8, 26, 0.55);
}

.cta-card p {
  font-size: 1.15rem;
  margin-bottom: 2.4rem;
  color: rgba(241, 245, 249, 0.9);
}

.cta-card .cta-button {
  background: linear-gradient(115deg, #f97316 0%, #facc15 100%);
  color: #211c02;
}

.cta-card .cta-button:hover {
  transform: translateY(-4px) scale(1.01);
}

/* Footer */
footer {
  background-color: #0f172a;
  color: rgba(226, 232, 240, 0.8);
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

footer p {
  margin-bottom: 0.5rem;
  color: rgba(226, 232, 240, 0.7);
}

footer a {
  color: #38bdf8;
}

footer a:hover {
  color: #60a5fa;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    margin-bottom: 1.2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  nav ul {
    gap: 1rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .hero-points {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .hero-points li {
    max-width: 320px;
    text-align: left;
  }

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

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

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .step {
    padding: 1.7rem;
  }

  .product-header {
    min-height: 100px;
  }

  .product-header h3 {
    font-size: 1.1rem;
  }
}
