/* Base Variables & Reset */
:root {
  --primary-color: #0f172a;
  --accent-color: #0284c7;
  --accent-hover: #0369a1;
  --text-color: #334155;
  --heading-color: #0f172a;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --card-border: #e2e8f0;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --font-main: 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: white;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading-color);
}
.logo-area img {
  width: 38px;
  height: 38px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--heading-color);
  font-weight: 500;
  font-size: 0.95rem;
}
nav a:hover, nav a.active {
  color: var(--accent-color);
}

.btn-cta {
  background: var(--accent-color);
  color: #fff !important;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-cta:hover {
  background: var(--accent-hover);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--heading-color);
}

/* Mobile Nav */
@media (max-width: 850px) {
  .mobile-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  }
  nav.open { display: block; }
  nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(2,132,199,0.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 850px) {
  .hero-container { grid-template-columns: 1fr; }
}
.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}
.hero-text p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}
.hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  max-height: 420px;
}

/* Common Section Layout */
.section {
  padding: 4.5rem 1.5rem;
}
.bg-light { background-color: var(--bg-light); }
.section-title {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}
.section-title h2 {
  font-size: 1.85rem;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}
.section-title p {
  color: #64748b;
  font-size: 1.05rem;
}

/* Stats */
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-card {
  background: var(--bg-white);
  padding: 2rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.95rem;
  color: #64748b;
}

/* Services Grid */
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.service-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}
.service-card-body p {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Features Block */
.feature-block {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 850px) {
  .feature-block { grid-template-columns: 1fr; }
}
.feature-block img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}
.feature-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
}
.feature-list i {
  color: var(--accent-color);
  margin-top: 0.25rem;
}

/* Pricing Section */
.pricing-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--accent-color);
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15);
}
.badge-popular {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--accent-color);
  color: #fff;
  padding: 2px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.price-tag {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--heading-color);
  margin: 1rem 0;
}
.price-tag span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #64748b;
}
.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  flex-grow: 1;
}
.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}

/* Form Section */
.form-container {
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.checkbox-group input {
  width: auto;
  margin-top: 0.25rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-white);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  display: none;
  color: var(--text-color);
  border-top: 1px solid #f1f5f9;
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* Trust Layer */
.trust-layer {
  background: #f1f5f9;
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 1.5rem;
  font-size: 0.88rem;
  color: #475569;
}
.trust-container {
  max-width: 1200px;
  margin: 0 auto;
}
.trust-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 1.5rem 1.5rem;
  font-size: 0.9rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: var(--footer-text);
}
.footer-col a:hover {
  color: #ffffff;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  text-align: center;
  font-size: 0.82rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  z-index: 10000;
  display: none;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 0.9rem;
  max-width: 800px;
}
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}
.btn-cookie-accept {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.btn-cookie-decline {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #475569;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}