/*
Theme Name: RYOSEIWORLD
Theme URI: https://ryoseiworld.weblike.jp
Author: RYOSEIWORLD LLC
Author URI: https://ryoseiworld.weblike.jp
Description: RYOSEIWORLDååä¼ç¤¾ ã³ã¼ãã¬ã¼ããµã¤ã - ãã¼ã¯ã¢ãã³ãã¼ã
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: ryoseiworld
*/

/* ============================
   CSS Variables & Reset
   ============================ */
:root {
  --bg-primary: #eaf3ff;
  --bg-secondary: #f3f8ff;
  --bg-card: #ffffff;
  --bg-card-hover: #f7fbff;
  --text-primary: #0f2747;
  --text-secondary: #466591;
  --text-muted: #8aa1c2;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --gradient-accent: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  --border: #d4e3f8;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(59, 130, 246, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-en: 'Inter', var(--font-ja);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ja);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================
   Layout
   ============================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-secondary);
}

/* ============================
   Header / Navigation
   ============================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(234, 243, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.site-logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition);
}

.nav-menu a:hover {
  color: var(--text-primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: var(--transition);
}

/* ============================
   Hero Section
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, var(--accent-glow) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(96, 165, 250, 0.2) 0%, transparent 40%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, 5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--accent-light);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-ja);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ============================
   Section Headers
   ============================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================
   Service Cards
   ============================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (min-width: 769px) and (max-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
}

.service-price small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================
   Strengths / Features
   ============================ */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.strength-item {
  display: flex;
  gap: 20px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.strength-item:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.strength-number {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.strength-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.strength-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================
   Profile / About
   ============================ */
.profile-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
}

.profile-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-role {
  color: var(--accent-light);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.profile-text {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* ============================
   Company Info Table
   ============================ */
.company-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.company-table tr {
  border-bottom: 1px solid var(--border);
}

.company-table th,
.company-table td {
  padding: 20px 16px;
  text-align: left;
  font-size: 0.95rem;
}

.company-table th {
  color: var(--text-muted);
  font-weight: 500;
  width: 160px;
  white-space: nowrap;
}

.company-table td {
  color: var(--text-primary);
}

/* ============================
   Contact Form
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: all var(--transition);
}

.contact-method:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-ja);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Contact Form 7 styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-ja);
  transition: border-color var(--transition);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-ja);
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
  width: 100%;
}

.wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.wpcf7 label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.wpcf7-form p {
  margin-bottom: 16px;
}

/* ============================
   Footer
   ============================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  list-style: none;
  gap: 24px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================
   Scroll Animations
   ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(234, 243, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .strengths-grid {
    grid-template-columns: 1fr;
  }

  .profile-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }
}

/* ========================================
   Testimonials
   ======================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.testimonial-stars {
  color: #ffc857;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  min-height: 80px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.testimonial-detail {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Pagination */
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ââ SNS Links ââ */
.hero-social {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-social-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  text-decoration: none;
}

.hero-social a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 32px 0 24px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

/* ââ Contact Form ââ */
.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form .form-row {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-form .required {
  color: #ef4444;
  font-size: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 8px;
}

/* ============================
   ãããã¨ãã»ã¯ã·ã§ã³
   ============================ */
.rw-thanks-section {
  background: linear-gradient(135deg, #fef9c3 0%, #fde68a 30%, #fbbf24 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rw-thanks-section::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.rw-thanks-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.rw-thanks-emoji {
  font-size: 64px;
  margin-bottom: 16px;
  animation: rw-thanks-bounce 2s ease-in-out infinite;
}

@keyframes rw-thanks-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.rw-thanks-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #92400e;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.rw-thanks-text {
  font-size: 1.1rem;
  color: #78350f;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 32px;
}

.rw-thanks-section .btn-outline {
  border: 2px solid #d97706;
  color: #d97706;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rw-thanks-section .btn-outline:hover {
  background: #d97706;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}

/* ââ ä»£è¡¨AIãã¿ã³ï¼ä»£è¡¨ã»ã¯ã·ã§ã³åï¼ ââ */
.rw-representative-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-ja);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

.rw-representative-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.45);
}

@media (max-width: 480px) {
  .rw-thanks-section {
    padding: 60px 16px;
  }
  .rw-thanks-emoji {
    font-size: 48px;
  }
}

/* ============================
   Scroll Reveal Animations
   ============================ */
.rw-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.rw-reveal.rw-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   Page Load Transition
   ============================ */
body:not(.rw-loaded) {
  opacity: 0;
}

body {
  transition: opacity 0.5s ease;
}

body.rw-loaded {
  opacity: 1;
}

/* ============================
   Header Scroll States
   ============================ */
.site-header {
  transition: background var(--transition),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(234, 243, 255, 0.96);
  box-shadow: 0 2px 20px rgba(59, 130, 246, 0.1);
}

.site-header.scrolled .container {
  height: 60px;
  transition: height 0.3s ease;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

/* ============================
   Active Navigation
   ============================ */
.nav-menu a.nav-active {
  color: var(--accent);
  font-weight: 600;
}

.nav-menu a.nav-active::after {
  width: 100%;
  background: var(--gradient-accent);
}

/* ============================
   Hamburger â X Animation
   ============================ */
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================
   Back to Top Button
   ============================ */
#rw-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease;
}

#rw-back-to-top.rw-btt-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#rw-back-to-top:hover {
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-3px) scale(1.05);
}

@media (max-width: 768px) {
  #rw-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ============================
   FAQ Accordion
   ============================ */
.rw-faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rw-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rw-faq-item:hover {
  border-color: var(--accent-light);
}

.rw-faq-item.rw-faq-open {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
}

.rw-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-ja);
  transition: color 0.2s ease;
}

.rw-faq-q:hover {
  color: var(--accent);
}

.rw-faq-q::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-left: 16px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rw-faq-item.rw-faq-open .rw-faq-q::after {
  transform: rotate(-135deg);
}

.rw-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.3s ease;
  padding: 0 24px;
}

.rw-faq-item.rw-faq-open .rw-faq-a {
  max-height: 600px;
  padding: 0 24px 20px;
}

.rw-faq-a p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================
   Count Up Numbers
   ============================ */
.rw-count {
  font-family: var(--font-en);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
