/* ========================================
   Global Styles & Variables
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e45700;
  --accent: #ff6a1a;
  --sub: #ffb680;
  --text: #111827;
  --subtext: #475569;
  --bg: #fffbf7;
  --white: #ffffff;
  --success: #22c55e;
  --warning: #f59e0b;
  --shadow: 0 4px 20px rgba(228, 87, 0, 0.1);
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(228, 87, 0, 0.2);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-bg: linear-gradient(135deg, var(--bg) 0%, #fff5f0 100%);
  
  /* Subpage heading sizes */
  --sub-h1: clamp(1.9rem, 3.8vw, 2.6rem);
  --sub-h2: clamp(1.4rem, 2.8vw, 1.9rem);
  --sub-h3: clamp(1.1rem, 2.1vw, 1.3rem);
}

body {
  font-family: "Noto Sans JP", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 80px;
}

/* ========================================
   Utility Classes
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { 
  position: absolute !important; 
  left: -9999px; 
  height: 0; 
  width: 0; 
  overflow: hidden; 
}

/* Responsive break utility */
.sp-only {
  display: none !important;  /* PCでは確実に非表示 */
}

@media (max-width: 768px) {
  .sp-only {
    display: inline !important;  /* SPでのみ改行を表示 */
  }
}

/* ========================================
   Header
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 12px;
  flex-wrap: nowrap;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.header-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-brand-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Logo & Wordmark */
.header-wordmark {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.header-logo-img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Navigation */
.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-shrink: 0;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: all 0.2s ease;
  position: relative;
}

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

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.header-nav a:hover::after {
  width: 100%;
}

/* Header CTA Button (special case) */
.header-nav .header-cta,
.header-nav .header-cta:hover,
.header-nav .header-cta:focus,
.header-nav .header-cta:active {
  color: #fff;
}

.header-nav .header-cta::after {
  content: none;
}

/* Language Selector */
.lang-switcher { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.lang-select { 
  position: relative; 
  --h: 40px; 
}

.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: var(--h);
  padding: 0 40px 0 12px;
  min-width: 132px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  line-height: var(--h);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .06s ease;
}

.lang-select select:hover { 
  border-color: rgba(0,0,0,.2); 
}

.lang-select select:active { 
  transform: translateY(1px); 
}

.lang-select select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,106,26,.18);
}

.lang-select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--text);
  transform: translateY(-25%);
  opacity: .8;
  pointer-events: none;
}

.header.scrolled .lang-select select {
  background: rgba(255,255,255,.96);
  border-color: rgba(0,0,0,.1);
}

/* ========================================
   Primary CTA & Buttons
======================================== */
.cta-group { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

.cta-primary,
.header-cta {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 18px 36px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary::before,
.header-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.cta-primary:hover::before,
.header-cta:hover::before {
  left: 100%;
}

.cta-primary:hover,
.header-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cta-primary:focus,
.header-cta:focus {
  outline: none;
}

.cta-primary:focus-visible,
.header-cta:focus-visible {
  box-shadow: 0 0 0 4px rgba(255,106,26,.22), var(--shadow);
}

button.cta-primary,
button.header-cta {
  -webkit-appearance: none;
  appearance: none;
  border: none;
}

button.cta-primary::-moz-focus-inner,
button.header-cta::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.cta-white {
  background: white;
  color: var(--primary);
  padding: 20px 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  z-index: 2;
}

.cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Hero Section
======================================== */
.hero {
  padding: 100px 0 140px;
  position: relative;
  background: var(--gradient-bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(228, 87, 0, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg); 
    opacity: 0.4; 
  }
  50% { 
    transform: translate(-20px, -30px) rotate(180deg); 
    opacity: 0.2; 
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-family: "Inter", sans-serif;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--subtext);
  margin-bottom: 32px;
  font-weight: 500;
  line-height: 1.6;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.benefit-tag {
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--sub);
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--subtext);
  font-size: 0.9rem;
}

.stars {
  color: var(--warning);
  font-size: 1rem;
}

/* Hero Variants */
.hero--about,
.hero--releases,
.hero--policy {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero--about {
  padding: 100px 0 100px;
}

.hero--releases {
  padding: 96px 0 72px;
}

.hero--about .hero-content,
.hero--releases .hero-content {
  grid-template-columns: 1fr;
  gap: 32px;
}

.hero--about .hero-text h1 {
  margin-bottom: 12px;
}

.hero--about .hero-subtitle {
  margin-top: 12px;
  line-height: 1.9;
}

.hero--about .hero-benefits {
  margin-top: 16px;
}

/* ========================================
   Gauge Visualization
======================================== */
.gauge-demo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gauge-container {
  width: 320px;
  height: 320px;
  position: relative;
  animation: gaugeFloat 4s ease-in-out infinite;
}

@keyframes gaugeFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.gauge-bg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--sub) 0%, var(--accent) 50%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.gauge-bg::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent) 30%, transparent 70%, var(--primary) 100%);
  opacity: 0.3;
  animation: spin 6s linear infinite;
  z-index: -1;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gauge-inner {
  width: 82%;
  height: 82%;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

.gauge-value {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.gauge-label {
  font-size: 1rem;
  color: var(--subtext);
  font-weight: 600;
}

.profit-hints {
  position: absolute;
  top: -30px;
  right: -40px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 240px;
  animation: hintFloat 3s ease-in-out infinite;
}

@keyframes hintFloat {
  0%, 100% { 
    transform: translateY(0px); 
    opacity: 1; 
  }
  50% { 
    transform: translateY(-5px); 
    opacity: 0.95; 
  }
}

.hint-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500;
}

.hint-item:last-child {
  margin-bottom: 0;
}

.hint-icon {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 1; 
  }
  50% { 
    transform: scale(1.2); 
    opacity: 0.8; 
  }
}

/* ========================================
   Main Content Sections
======================================== */

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.3rem;
  color: var(--subtext);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Pain to Outcome */
.pain-outcome {
  padding: 100px 0;
  background: var(--white);
}

.pain-outcome-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.pain-card,
.outcome-card {
  padding: 40px 36px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
}

.pain-card:hover,
.outcome-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.pain-card {
  background: linear-gradient(135deg, #fef2f2 0%, #ffe4e6 100%);
  border-left: 5px solid #ef4444;
}

.outcome-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 5px solid var(--success);
}

/* リストスタイルの修正 */
.pain-card ul,
.outcome-card ul {
  list-style: none;  /* デフォルトのマーカーを無効化 */
  padding-left: 0;   /* インデントをリセット */
  margin: 0;
}

.pain-card li,
.outcome-card li {
  padding-left: 0;   /* 左パディングをなくす（既に • が含まれているため） */
  margin-bottom: 8px;
  line-height: 1.8;
}

.arrow {
  font-size: 2.5rem;
  color: var(--primary);
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

/* Steps */
.steps {
  padding: 100px 0;
  background: var(--gradient-bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 80px;
}

.step-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.step-number {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 30px;
  box-shadow: 0 4px 20px rgba(228, 87, 0, 0.3);
}

.step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.step-description {
  color: var(--subtext);
  line-height: 1.7;
  font-size: 1rem;
}

/* Results */
.results {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.result-item {
  padding: 30px 20px;
  border-radius: 16px;
  background: var(--bg);
  transition: all 0.3s ease;
}

.result-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.result-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.result-label {
  font-size: 0.9rem;
  color: var(--subtext);
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background: var(--gradient-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.author-info h4 {
  font-weight: 600;
  margin-bottom: 2px;
}

.author-info span {
  color: var(--subtext);
  font-size: 0.9rem;
}

/* Pricing */
.pricing {
  padding: 100px 0;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 80px;
}

.pricing-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--white) 0%, #fffbf7 100%);
}

.pricing-card.featured:hover {
  transform: scale(1.08) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.pricing-plan {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
}

.pricing-period {
  color: var(--subtext);
  margin-bottom: 40px;
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--success);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ */
.faq {
  padding: 100px 0;
  background: var(--gradient-bg);
}

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

.faq-item {
  background: var(--white);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

/* モバイルで左右に余白を追加 */
@media (max-width: 768px) {
  .faq-item {
    margin-left: 16px;
    margin-right: 16px;
  }
  
  /* Aboutページ専用の調整 */
  main > .faq-item {
    margin-left: 16px;
    margin-right: 16px;
  }
}

.faq-item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 24px 28px;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(228, 87, 0, 0.05);
}

.faq-answer {
  padding: 16px 28px 24px;
  margin-top: 6px;
  border-top: 1px solid rgba(0,0,0,.06);
  color: var(--subtext);
  line-height: 1.7;
  display: none;
  animation: slideDown 0.3s ease;
}

.faq-answer.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-question:hover + .faq-answer,
.faq-question:focus-visible + .faq-answer {
  border-top-color: transparent;
}

.faq-icon {
  color: var(--primary);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-icon.active {
  transform: rotate(180deg);
}

/* Mission/Product Mission special cases */
#mission.faq-item:hover,
#product-mission.faq-item:hover {
  box-shadow: var(--shadow-soft);
}

#mission .faq-question,
#product-mission .faq-question {
  cursor: default;
}

#mission .faq-question:hover,
#product-mission .faq-question:hover {
  background: transparent;
}

#mission .faq-question:hover + .faq-answer,
#product-mission .faq-question:hover + .faq-answer {
  border-top-color: rgba(0,0,0,.06);
}

/* Final CTA */
.final-cta {
  padding: 100px 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: ctaBackground 10s linear infinite;
}

@keyframes ctaBackground {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.final-cta h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  line-height: 1.3;
  white-space: normal;  /* PCでは通常の折り返し */
}

/* PCサイズではbrタグを非表示にして1行表示を保証 */
@media (min-width: 769px) {
  .final-cta h2 {
    white-space: nowrap;  /* 改行を防ぐ */
  }
}

.final-cta p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

/* ========================================
   Contact Section
======================================== */
.contact {
  padding: 72px 0 120px;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 40px;
}

.contact-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.contact-form {
  display: block;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.req {
  color: var(--primary);
  margin-left: 4px;
}

.form-input,
.form-textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-input::placeholder {
  color: #9ca3af;
}

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

.form-input:focus,
.form-textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,106,26,.18);
}

.form-input:invalid,
.form-textarea:invalid,
.contact-form select:invalid {
  border-color: #fca5a5;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.contact .cta-primary {
  width: 100%;
  max-width: 260px;
}

.privacy-hint {
  color: var(--subtext);
  font-size: .95rem;
  margin-top: 4px;
}

.privacy-hint a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.captcha-container {
  margin-top: 16px;
}

/* ========================================
   Releases Page
======================================== */
.releases {
  padding: 48px 0 120px;
  background: var(--white);
}

.release-timeline {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.release-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 20px 20px 16px;
  border: 1px solid rgba(0,0,0,.06);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.release-version {
  font-weight: 700;
  font-size: 1.1rem;
}

.release-date {
  color: var(--subtext);
  font-size: .95rem;
}

.release-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--primary);
}

.release-body ul {
  margin-left: 1.2em;
  line-height: 1.9;
}

.release-body li {
  margin: .3em 0;
}

.release-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.release-footer .cta-primary {
  padding: 12px 18px;
  font-size: 1rem;
}

#load-more {
  margin: 12px auto 0;
  display: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  cursor: pointer;
}

#load-more:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.sentinel {
  height: 1px;
}

.empty-hint {
  text-align: center;
  color: var(--subtext);
  margin-top: 12px;
}

/* ========================================
   Footer
======================================== */
.footer {
  background: #1f2937;
  color: #f9fafb;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--sub) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--sub);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-description {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-column h4 {
  color: #f9fafb;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--sub);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
}

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

.copyright {
  color: #9ca3af;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  color: #9ca3af;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #374151;
}

.social-link:hover {
  color: var(--sub);
  background: #4b5563;
  transform: translateY(-2px);
}

/* ========================================
   Animations & Effects
======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.loading {
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

/* Scroll margin for anchor links */
#ai,
#features,
#pricing,
#faq {
  scroll-margin-top: 96px;
}

/* ========================================
   Subpage Typography
======================================== */
body:has(.hero[class*="hero--"]) .hero-text h1,
.hero--about .hero-text h1,
.hero--releases .hero-text h1,
.hero--policy .hero-text h1 {
  font-size: var(--sub-h1);
  line-height: 1.2;
}

body:has(.hero[class*="hero--"]) .hero-subtitle,
.hero--about .hero-subtitle,
.hero--releases .hero-subtitle,
.hero--policy .hero-subtitle {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.75;
}

body:has(.hero[class*="hero--"]) .page-title {
  font-size: var(--sub-h1);
}

body:has(.hero[class*="hero--"]) .page-subtitle {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

body:has(.hero[class*="hero--"]) .section-header h2,
body:has(.hero[class*="hero--"]) h2 {
  font-size: var(--sub-h2);
  line-height: 1.3;
}

body:has(.hero[class*="hero--"]) h3 {
  font-size: var(--sub-h3);
}

/* ========================================
   Responsive Design - Tablet
======================================== */
@media (max-width: 768px) {
  /* Container */
  .container {
    padding: 0 20px;
  }
  
  /* Header - Mobile First Approach */
  .header-nav a:not(.header-cta) {
    display: none;
  }
  
  .header-brand {
    gap: 8px;
  }
  
  /* 初期状態：テキストのみ表示、アイコンは非表示 */
  .header-wordmark {
    display: inline-block;
    font-weight: 700;
    font-size: 1.3rem;
    transition: opacity .22s ease, transform .22s ease;
  }
  
  .header-logo-img {
    display: none;  /* 初期状態でアイコンを完全非表示 */
  }
  
  /* スクロール後：テキストを非表示、アイコンを表示 */
  .header.scrolled .header-wordmark {
    display: none;  /* テキストを完全非表示 */
  }
  
  .header.scrolled .header-logo-img {
    display: block;  /* アイコンを表示 */
    width: 32px;
    height: 32px;
    opacity: 1;
  }
  
  .lang-select {
    --h: 38px;
  }
  
  .lang-select select {
    min-width: 112px;
    font-size: .9rem;
  }
  
  /* Hero adjustments */
  .hero {
    padding: 100px 0 150px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-benefits {
    justify-content: center;
  }
  
  .hero--about {
    padding: 90px 0 120px;
  }
  
  .hero--releases {
    padding: 90px 0 60px;
  }
  
  /* Gauge */
  .gauge-container {
    width: 280px;
    height: 280px;
  }
  
  .profit-hints {
    position: static;
    margin-top: 30px;
    max-width: 300px;
  }
  
  /* Pain to Outcome - Vertical layout */
  .pain-outcome-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .arrow {
    transform: rotate(90deg);
    font-size: 2rem;
    margin: 20px auto;  /* 左右中央寄せ */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60px;
  }
  
  /* モバイル用の矢印アニメーション */
  @keyframes arrowBounceMobile {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50% { transform: rotate(90deg) translateX(10px); }
  }
  
  .arrow {
    animation: arrowBounceMobile 2s ease-in-out infinite;
  }
  
  /* Grid layouts */
  .steps-grid,
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Pricing */
  .pricing-card.featured {
    transform: none;
    order: -1;
  }
  
  /* Typography */
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .section-header p {
    font-size: 1.1rem;
  }
  
  .final-cta h2 {
    font-size: 2.2rem;
  }
  
  .final-cta p {
    font-size: 1.1rem;
  }
  
  /* Buttons */
  .cta-primary,
  .cta-white {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-brand {
    max-width: none;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  /* Releases */
  .release-footer {
    justify-content: center;
  }
  
  /* Subpage typography */
  body:has(.hero[class*="hero--"]) .hero-text h1,
  .hero--about .hero-text h1,
  .hero--releases .hero-text h1,
  .hero--policy .hero-text h1,
  body:has(.hero[class*="hero--"]) .page-title {
    font-size: 2rem;
  }
  
  body:has(.hero[class*="hero--"]) .hero-subtitle,
  body:has(.hero[class*="hero--"]) .page-subtitle {
    font-size: 1rem;
  }
  
  /* Forms */
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Responsive Design - Mobile
======================================== */
@media (max-width: 480px) {
  /* Header compact mode */
  .header-content {
    gap: 8px;
    padding: 14px 0;  /* パディングを少し減らす */
  }
  
  .header-nav {
    gap: 8px;  /* ナビゲーション間のギャップを減らす */
  }
  
  .header-logo-img {
    width: 28px;
    height: 28px;
  }
  
  .header-wordmark {
    font-size: 1.05rem;
    letter-spacing: -0.2px;
  }
  
  .header-suffix {
    display: none;
  }
  
  .lang-select {
    --h: 34px;
  }
  
  .lang-select select {
    min-width: 100px;  /* 幅を少し減らす */
    padding: 0 32px 0 10px;  /* パディングを調整 */
  }
  
  .header-cta {
    padding: 10px 14px;  /* 左右のパディングを少し減らす */
    border-radius: 10px;
    font-size: .92rem;  /* わずかにフォントサイズ調整 */
    white-space: nowrap;  /* テキストの折り返しを防ぐ */
    letter-spacing: -0.02em;  /* 文字間を少し詰める */
  }
  
  /* Hero */
  .hero-text h1 {
    font-size: 2rem;
  }
  
  /* Section headers */
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  /* Gauge */
  .gauge-container {
    width: 240px;
    height: 240px;
  }
  
  .profit-hints {
    max-width: 280px;
    padding: 16px 20px;
  }
  
  .hint-item {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  
  /* Grid */
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  /* Cards padding reduction */
  .step-card,
  .pain-card,
  .outcome-card,
  .testimonial-card,
  .pricing-card {
    padding: 30px 24px;
  }
  
  /* Subpage typography */
  body:has(.hero[class*="hero--"]) .hero-text h1,
  .hero--about .hero-text h1,
  .hero--releases .hero-text h1,
  .hero--policy .hero-text h1,
  body:has(.hero[class*="hero--"]) .page-title {
    font-size: 1.8rem;
  }
}

/* ========================================
   Responsive Design - Extra Small
======================================== */
@media (max-width: 360px) {
  .container {
    padding: 0 16px;  /* 左右のパディングを減らす */
  }
  
  .header-content {
    gap: 6px;
    padding: 12px 0;
  }
  
  .header-wordmark {
    font-size: .95rem;  /* さらに小さく */
  }
  
  .lang-select {
    --h: 32px;  /* セレクタの高さを減らす */
  }
  
  .lang-select select {
    min-width: 90px;  /* 最小幅をさらに減らす */
    font-size: .85rem;
  }
  
  .header-cta {
    padding: 8px 12px;
    font-size: .85rem;  /* フォントサイズを少し小さく */
  }
}

/* ========================================
   Media Query - Reduced Motion
======================================== */
@media (prefers-reduced-motion: reduce) {
  .lang-select select {
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Legal / Policy pages (terms & privacy) ===== */
.hero.hero--policy{
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 96px 0 72px;
}

.policy-body{
  padding: 48px 0 120px;
  background: #fff;
}

.policy-wrap{
  max-width: 900px;
  margin: 0 auto;
}

/* minor typographic helpers */
.policy-meta{ color: var(--subtext); margin-top: 8px; }
.policy-wrap h2{ font-size: 1.35rem; margin: 32px 0 12px; }
.policy-wrap h3{ font-size: 1.15rem; margin: 24px 0 10px; }
.policy-wrap p{ margin: 8px 0; line-height: 1.9; }
.policy-wrap ul,
.policy-wrap ol{ margin: 8px 0 16px 1.2em; line-height: 1.9; }

/* --- Mobile safe padding (左右の安全域) --- */
@media (max-width: 768px){
  .hero.hero--policy{ padding: 90px 0 60px; }

  .policy-wrap{
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

@media (max-width: 480px){
  .policy-wrap{
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
}

/* ===== Informational layout (共通) ===== */
.page-informational .info-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 96px 0 56px;
  background: var(--gradient-bg);
}
.page-informational .info-wrap {
  max-width: 880px; margin: 0 auto; padding: 0 20px 120px; background: #fff;
}
.page-informational .info-card {
  background: #fff; border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-soft); border-radius: 16px; padding: 24px;
}
.page-informational .hero-content { display: grid; grid-template-columns: 1fr; gap: 12px; }
.page-informational .info-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.page-informational .info-actions .cta-primary { padding: 14px 20px; font-size: 1rem; }
.page-informational .muted { color: var(--subtext); }
.page-informational .list-tight { margin: 8px 0 16px 1.2em; line-height: 1.9; }

@media (max-width: 768px) {
  .page-informational .info-hero { padding: 90px 0 48px; }
  .page-informational .info-wrap { padding: 0 16px 100px; }
  .page-informational .info-actions { justify-content: center; }
}