/* フィット道場 - オンラインフィットネス | Premium Japanese Fitness */
:root {
  --color-bg: #f8f9f7;
  --color-bg-alt: #fff;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --color-accent: #1a6b4c;
  --color-accent-hover: #145a40;
  --color-accent-light: #e8f2ee;
  --color-border: #e0e0dc;
  --color-footer: #1e1e1e;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-size-base: 16px;
  --line-height: 1.75;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --container: min(100% - 2rem, 960px);
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav a {
  color: var(--color-text);
  font-size: 0.9375rem;
}

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

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232c2c2c' stroke-width='2'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E") center/24px no-repeat;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  color: #fff;
}

.hero h1 {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.4;
}

.hero-lead {
  margin: 0 0 var(--space-xl);
  font-size: 1rem;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1rem;
}

.btn-small {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
}

/* Benefits */
.benefits {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-alt);
}

.benefits h2 {
  margin: 0 0 var(--space-2xl);
  text-align: center;
  font-size: 1.5rem;
}

.benefits-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.benefits-grid li {
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.benefits-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.benefits-grid h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.125rem;
}

.benefits-grid p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* How it works */
.how-it-works {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}

.how-it-works h2 {
  margin: 0 0 var(--space-2xl);
  text-align: center;
  font-size: 1.5rem;
}

.steps-list {
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.steps-list li:last-child {
  margin-bottom: 0;
}

.step-num {
  position: absolute;
  left: 0;
  top: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
}

.steps-list strong {
  color: var(--color-text);
}

/* Products preview / Cards */
.products-preview {
  padding: var(--space-3xl) 0;
}

.product-cards-wide {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.products-preview h2,
.plans h2,
.comparison h2,
.faq-section h2,
.cta-section h2 {
  margin: 0 0 var(--space-xl);
  text-align: center;
  font-size: 1.5rem;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: var(--space-lg);
}

.card-body h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.125rem;
}

.card-body p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.price {
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.text-center {
  text-align: center;
}

.link-arrow::after {
  content: " →";
}

/* Stats section */
.stats-section {
  padding: var(--space-3xl) 0;
  background: var(--color-accent);
  color: #fff;
}

.stats-section h2 {
  margin: 0 0 var(--space-2xl);
  text-align: center;
  font-size: 1.5rem;
  color: #fff;
}

.stats-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.95;
}

/* Instructors preview */
.instructors-preview {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-alt);
}

.instructors-preview h2 {
  margin: 0 0 var(--space-md);
  text-align: center;
  font-size: 1.5rem;
}

.section-lead {
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.instructors-mini {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xl);
}

.instructor-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.instructor-mini img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* Price assurance */
.price-assurance {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}

.price-assurance h2 {
  margin: 0 0 var(--space-xl);
  text-align: center;
  font-size: 1.5rem;
}

.assurance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.assurance-list li {
  position: relative;
  padding-left: 1.5rem;
}

.assurance-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Plans */
.plans {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-alt);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.plans-grid-many {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.plan-card {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.plan-card.featured {
  border: 2px solid var(--color-accent);
}

.badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 1;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.plan-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.plan-body {
  padding: var(--space-lg);
}

.plan-body h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.25rem;
}

.plan-desc {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.plan-specs {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}

.plan-price {
  margin: 0 0 var(--space-xs);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.plan-price .unit {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.plan-note {
  margin: 0 0 var(--space-lg);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Comparison table */
.comparison {
  padding: var(--space-3xl) 0;
}

.table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  text-align: left;
}

.comparison-table th {
  background: var(--color-accent-light);
  font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--color-bg);
}

/* Testimonials */
.testimonials {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-alt);
}

.testimonials h2 {
  margin: 0 0 var(--space-xl);
  text-align: center;
  font-size: 1.5rem;
}

.testimonials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.testimonial {
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
  position: relative;
  padding-left: calc(var(--space-lg) + 64px + var(--space-md));
}

.testimonial-avatar {
  position: absolute;
  left: var(--space-lg);
  top: var(--space-lg);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial blockquote {
  margin: 0 0 var(--space-md);
  font-style: normal;
  color: var(--color-text);
}

.testimonial cite {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: normal;
}

/* FAQ */
.faq-section {
  padding: var(--space-3xl) 0;
}

.faq-section h2 {
  margin: 0 0 var(--space-xl);
  text-align: center;
  font-size: 1.5rem;
}

.faq {
  max-width: 640px;
  margin: 0 auto;
}

.faq dt {
  margin-top: var(--space-lg);
  padding-bottom: var(--space-sm);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  margin: 0 0 0;
  padding: var(--space-md) 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* CTA section */
.cta-section {
  padding: var(--space-3xl) 0;
  background: var(--color-accent);
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  margin: 0 0 var(--space-md);
  color: #fff;
  font-size: 1.5rem;
}

.cta-section p {
  margin: 0 0 var(--space-xl);
  opacity: 0.95;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--color-accent);
}

.cta-section .btn-primary:hover {
  background: var(--color-bg);
  color: var(--color-accent);
  text-decoration: none;
}

/* Page hero (inner pages) */
.page-hero {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin: 0 0 var(--space-sm);
  font-size: 1.75rem;
  text-align: center;
}

.page-hero p {
  margin: 0;
  text-align: center;
  color: var(--color-text-muted);
}

/* About */
.about-content {
  padding: var(--space-3xl) 0;
}

.about-content h2 {
  margin: var(--space-2xl) 0 var(--space-md);
  font-size: 1.25rem;
}

.about-content h2:first-child {
  margin-top: 0;
}

.company-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm) var(--space-xl);
  max-width: 560px;
}

.company-info dt {
  font-weight: 600;
  margin: 0;
}

.company-info dd {
  margin: 0;
  color: var(--color-text-muted);
}

/* Contact */
.contact-section {
  padding: var(--space-3xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h2 {
  margin: 0 0 var(--space-lg);
  font-size: 1.25rem;
}

.contact-form-wrap {
  background: var(--color-bg-alt);
  padding: var(--space-xl);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form .form-group {
  margin-bottom: var(--space-lg);
}

.contact-form label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  font-size: 0.9375rem;
}

.required {
  color: #c00;
  font-size: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-md);
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: var(--space-md);
  font-size: 0.9375rem;
}

.form-status.success {
  color: var(--color-accent);
}

.form-status.error {
  color: #c00;
}

/* Legal */
.legal-content {
  padding: var(--space-3xl) 0;
  max-width: 720px;
  margin: 0 auto;
}

.legal-updated {
  margin-bottom: var(--space-xl);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.legal-content h2 {
  margin: var(--space-xl) 0 var(--space-md);
  font-size: 1.125rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* Footer */
.footer {
  background: var(--color-footer);
  color: #bbb;
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand .logo {
  color: #fff;
  font-weight: 700;
  display: block;
  margin-bottom: var(--space-md);
}

.footer-brand .logo img {
  height: 34px;
  width: auto;
}

.footer-brand p {
  margin: 0 0 var(--space-sm);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav a {
  color: #bbb;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  color: #bbb;
  font-size: 0.875rem;
}

.footer-social a:hover {
  color: #fff;
}

.footer-copy {
  margin: var(--space-xl) 0 0;
  padding-top: var(--space-lg);
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.8125rem;
  color: #888;
}

/* Cookie consent modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: 100%;
  padding: var(--space-xl);
}

.cookie-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

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

.cookie-modal-close::after {
  content: "×";
}

.cookie-modal h3 {
  margin: 0 0 var(--space-md);
  padding-right: 2rem;
  font-size: 1.125rem;
}

.cookie-modal p {
  margin: 0 0 var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.cookie-modal p a {
  text-decoration: underline;
}

.cookie-modal-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-modal-actions .btn {
  flex: 1;
  min-width: 120px;
}

.cookie-modal-actions .cookie-reject {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.cookie-modal-actions .cookie-reject:hover {
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
}
