/* Design System Tokens */
:root {
  --primary: #0052cc;          /* 以前のロイヤルブルー */
  --primary-hover: #0747a6;
  --accent: #00a3c4;           /* 以前のシアン */
  --accent-hover: #008ba8;
  --accent-light: rgba(0, 163, 196, 0.1);
  --color-orange: #ff7a00;     /* 以前のオレンジ */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;     /* Slate Off-White */
  --bg-dark: #0f172a;          /* Dark Slate for Hero/Footer */
  --text-main: #0f172a;
  --text-light: #ffffff;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --card-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Common Layout Components */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-bg {
  background-color: var(--bg-secondary);
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-muted);
}

.btn-outline:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
  color: var(--text-main);
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.badge-accent {
  background-color: var(--accent-light);
  color: var(--accent);
}

.badge-primary {
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary);
}

/* Header Styles with Glassmorphism */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-smooth);
}

header.scrolled .container {
  height: 64px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.logo:hover {
  opacity: 0.85;
}

.logo .logo-main {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo .logo-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  margin-top: -1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-smooth);
}

nav a:hover {
  color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  position: absolute;
  left: 0;
  transition: var(--transition-smooth);
}

.menu-toggle span:nth-child(1) { top: 4px; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.nowrap-pc {
  white-space: nowrap;
}
.sp-only {
  display: none;
}

.hero-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

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

/* Dashboard Mockup Showcase */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-card {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  max-width: 100%;
}

.dashboard-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 35px 60px -15px rgba(15, 23, 42, 0.25);
}

.dashboard-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.zoom-hint {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.dashboard-card:hover .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Pain Cards */
.pain-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 32px;
  transition: var(--transition-smooth);
  position: relative;
}

.pain-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(30, 58, 138, 0.2);
}

.pain-card .icon {
  font-size: 32px;
  margin-bottom: 24px;
  display: inline-block;
  width: 64px;
  height: 64px;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.pain-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Service Pricing Cards */
.service-card {
  display: grid;
  grid-template-columns: 1fr 340px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(30, 58, 138, 0.15);
}

.service-info {
  padding: 48px;
}

.service-info h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.service-info p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 640px;
}

.service-features {
  list-style: none;
}

.service-features li {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 900;
}

.service-price {
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.price-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.price-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.price-amount span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.price-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Method Section Additions */
.method .pain-card {
  border-color: transparent;
  box-shadow: var(--card-shadow);
}

.method .pain-card .icon {
  background-color: var(--accent-light);
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
  font-family: 'Outfit', sans-serif;
}

/* Profile Section */
.profile-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 56px;
}

.profile-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar-img {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--bg-primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.profile-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.profile-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.profile-bio h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.profile-bio p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.profile-bio ul {
  list-style: none;
  margin-bottom: 24px;
}

.profile-bio ul li {
  font-size: 14px;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  color: var(--text-main);
}

.profile-bio ul li::before {
  content: '•';
  color: var(--accent);
  font-size: 20px;
  position: absolute;
  left: 0;
  top: -3px;
}

/* CTA & Contact Form */
.cta {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition-smooth);
  background-color: var(--bg-primary);
  color: var(--text-main);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 60px 0;
  border-top: 1px solid #1e293b;
}

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

.footer-logo .logo-main {
  color: var(--text-light);
}

.footer-logo .logo-sub {
  color: #64748b;
}

.x-link {
  color: #64748b;
  transition: var(--transition-smooth);
}

.x-link:hover {
  color: var(--text-light);
}

/* Image Zoom Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.9);
}

.modal-content {
  position: relative;
  z-index: 2001;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-modal.active .modal-content {
  transform: scale(1);
}

.modal-body img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: block;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 32px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--accent);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .service-card {
    grid-template-columns: 1fr;
  }
  
  .service-price {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  
  .profile-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  
  .nowrap-pc {
    white-space: normal;
  }
  .sp-only {
    display: inline;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  }
  
  nav.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
