/* =============================================
   SAMURAI WEB - 士業専門ホームページ制作サービス
   共通スタイルシート
   ============================================= */

/* --- CSS Variables --- */
:root {
  /* Primary Colors */
  --primary-dark: #1a2a4a;
  --primary: #243b6a;
  --primary-light: #2e4d8a;
  
  /* Accent Colors */
  --accent: #c8a850;
  --accent-light: #dfc478;
  --accent-dark: #a88930;
  
  /* Neutral Colors */
  --white: #ffffff;
  --off-white: #f8f7f4;
  --light-gray: #f0ede6;
  --gray: #d1cdc4;
  --medium-gray: #8a8578;
  --dark-gray: #4a4640;
  --text-color: #2c2820;
  --text-light: #6a6560;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a2a4a 0%, #243b6a 50%, #2e4d8a 100%);
  --gradient-accent: linear-gradient(135deg, #c8a850 0%, #dfc478 100%);
  --gradient-hero: linear-gradient(160deg, #1a2a4a 0%, #1e3358 40%, #243b6a 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 42, 74, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 42, 74, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 42, 74, 0.16);
  --shadow-xl: 0 16px 60px rgba(26, 42, 74, 0.2);
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-color);
  background-color: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

/* --- Section Base --- */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(200, 168, 80, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(200, 168, 80, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 20px 56px;
  font-size: 1.1rem;
}

.btn i {
  font-size: 0.9em;
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-slow);
  padding: 16px 0;
}

.header.scrolled {
  background: rgba(26, 42, 74, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* 下層ページ用ヘッダー */
.header-inner {
  background: var(--primary-dark);
}

.header-inner.scrolled {
  background: rgba(26, 42, 74, 0.98);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.logo-text span {
  color: var(--accent);
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  background: var(--gradient-accent);
  color: var(--primary-dark) !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 700 !important;
  letter-spacing: 1px;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(200, 168, 80, 0.4);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.mobile-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200, 168, 80, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 168, 80, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

/* 和柄パターン */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--accent) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, var(--accent) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 168, 80, 0.15);
  border: 1px solid rgba(200, 168, 80, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-badge span {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 600;
  letter-spacing: 1px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: 3rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-title .accent {
  color: var(--accent);
  position: relative;
}

.hero-title .price-highlight {
  font-size: 3.6rem;
  color: var(--accent);
  font-weight: 900;
}

.hero-title .tax-note {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 2;
  margin-bottom: 40px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

/* Hero Visual Side */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.hero-card-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-card-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.hero-card-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-card-feature i {
  color: var(--accent);
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}

.hero-card-feature span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* Floating badges */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =============================================
   PROBLEMS SECTION (お悩み)
   ============================================= */
.problems {
  background: var(--off-white);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 168, 80, 0.2);
}

.problem-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(200, 168, 80, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-dark);
}

.problem-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* =============================================
   REASONS SECTION (選ばれる理由)
   ============================================= */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.reason-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.reason-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.reason-number {
  background: var(--gradient-primary);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.reason-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  font-family: 'Georgia', serif;
}

.reason-num-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 2px;
}

.reason-body {
  padding: 32px 28px;
}

.reason-body h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.reason-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* =============================================
   TEMPLATES SECTION
   ============================================= */
.templates {
  background: var(--off-white);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.template-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.template-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--medium-gray);
}

.template-preview-placeholder i {
  font-size: 2rem;
}

.template-preview-placeholder span {
  font-size: 0.8rem;
}

.template-info {
  padding: 20px;
}

.template-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.template-desc {
  font-size: 0.85rem;
  color: var(--text-light);
}

.template-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: rgba(200, 168, 80, 0.1);
  color: var(--accent-dark);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* =============================================
   LIGHTBOX (Template Preview Popup)
   ============================================= */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
  padding: 40px;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  max-height: 90vh;
  width: 100%;
  animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  text-align: center;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: -64px;
}

.lightbox-next {
  right: -64px;
}

.template-card {
  cursor: pointer;
}

.template-preview {
  position: relative;
}

.template-preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 42, 74, 0);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-card:hover .template-preview::after {
  background: rgba(26, 42, 74, 0.4);
}

.template-preview .preview-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1rem;
  z-index: 2;
  opacity: 0;
  transition: var(--transition);
}

.template-card:hover .preview-zoom {
  opacity: 1;
}

@media (max-width: 768px) {
  .lightbox-overlay {
    padding: 20px;
  }
  
  .lightbox-prev {
    left: -8px;
    width: 36px;
    height: 36px;
  }
  
  .lightbox-next {
    right: -8px;
    width: 36px;
    height: 36px;
  }
  
  .lightbox-close {
    top: -44px;
    right: 0;
  }
}

/* =============================================
   PRICE SECTION
   ============================================= */
.price-section {
  background: var(--white);
}

.price-main-card {
  max-width: 700px;
  margin: 0 auto 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-main-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 168, 80, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.price-ribbon {
  position: absolute;
  top: 20px;
  left: -40px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 6px 50px;
  font-size: 0.8rem;
  font-weight: 700;
  transform: rotate(-45deg);
  letter-spacing: 1px;
}

.price-main-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.price-main-amount {
  position: relative;
  z-index: 1;
}

.price-main-amount .yen {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.price-main-amount .amount {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -2px;
}

.price-main-amount .tax {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-top: 8px;
}

.price-includes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.price-includes li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.price-includes li i {
  color: var(--accent);
  font-size: 0.8rem;
}

.price-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

/* Option Cards */
.option-title {
  text-align: center;
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 32px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.option-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.option-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.option-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(200, 168, 80, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.option-card h3 {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.option-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.option-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
}

.option-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* =============================================
   FLOW SECTION (制作の流れ)
   ============================================= */
.flow {
  background: var(--off-white);
}

.flow-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.flow-timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
}

.flow-step {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-step-number {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 900;
  z-index: 2;
  border: 4px solid var(--off-white);
  font-family: 'Georgia', serif;
}

.flow-step-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  flex: 1;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
}

.flow-step-content h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-step-content h3 i {
  color: var(--accent);
  font-size: 0.9rem;
}

.flow-step-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* =============================================
   TARGET SECTION (対象の士業)
   ============================================= */
.target-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.target-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  width: 200px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.target-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.target-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.target-card-badge {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.target-card-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.target-card:hover .target-card-badge {
  transform: scale(1.1);
}

.target-card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq {
  background: var(--off-white);
}

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

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--light-gray);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(200, 168, 80, 0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  gap: 16px;
  user-select: none;
}

.faq-question::before {
  content: 'Q';
  min-width: 28px;
  height: 28px;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.faq-toggle {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.faq-toggle i {
  font-size: 0.7rem;
  color: var(--primary-dark);
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  background: var(--primary-dark);
}

.faq-item.active .faq-toggle i {
  color: var(--white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-content {
  padding: 0 28px 20px 72px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--gradient-primary);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 168, 80, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #111820;
  padding: 60px 0 30px;
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-brand .logo-text {
  margin-bottom: 16px;
}

.footer-brand .logo-img {
  height: 36px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* =============================================
   PAGE HERO (下層ページ用)
   ============================================= */
.page-hero {
  background: var(--gradient-primary);
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 168, 80, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: 2.5rem;
  color: var(--white);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.page-hero-breadcrumb {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero-breadcrumb a:hover {
  color: var(--accent);
}

/* =============================================
   FORM STYLES
   ============================================= */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.form-label .required {
  background: #e74c3c;
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 168, 80, 0.1);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a4640' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* =============================================
   ABOUT PAGE SPECIFIC
   ============================================= */
.about-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--light-gray);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-gray);
  font-size: 3rem;
  overflow: hidden;
}

.about-info h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.about-info .about-title-label {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: block;
}

.about-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 16px;
}

.about-message {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 32px;
  border-left: 4px solid var(--accent);
  margin-top: 24px;
}

.about-message p {
  margin-bottom: 0;
}

/* Access Section */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.access-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.access-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.access-info-item i {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(200, 168, 80, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.access-info-item div h4 {
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.access-info-item div p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.access-map {
  width: 100%;
  height: 400px;
  background: var(--light-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================
   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);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .reasons-grid,
  .problems-grid,
  .options-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-profile {
    grid-template-columns: 1fr;
  }
  
  .about-photo {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-title .price-highlight {
    font-size: 2.6rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  
  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    transition: var(--transition-slow);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.1rem;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .mobile-overlay.active {
    display: block;
  }
  
  .problems-grid,
  .reasons-grid,
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .target-cards {
    gap: 16px;
  }
  
  .target-card {
    width: calc(50% - 8px);
  }
  
  .price-main-card {
    padding: 40px 24px;
  }
  
  .price-main-amount .amount {
    font-size: 3rem;
  }
  
  .flow-step {
    gap: 20px;
  }
  
  .flow-timeline::before {
    left: 24px;
  }
  
  .flow-step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1rem;
  }
  
  .flow-step-content {
    padding: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .page-hero {
    padding: 120px 0 40px;
  }
  
  .page-hero-title {
    font-size: 1.8rem;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-title .price-highlight {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .target-card {
    width: calc(50% - 8px);
    padding: 24px 16px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.bg-white { background-color: var(--white); }
.bg-offwhite { background-color: var(--off-white); }
