/* ========================================
   OneFlow — Stylesheet
   参考サイト（Crescendo Lab）のカラー・構成パターンに合わせた設計
   ======================================== */

:root {
  /* Crescendo Lab に近いカラーパレット */
  --color-primary: #1a1f36;
  --color-primary-dark: #0d1222;
  --color-accent: #4a7dff;
  --color-accent-hover: #3a6aee;
  --color-accent-light: rgba(74, 125, 255, 0.12);

  --color-bg: #ffffff;
  --color-bg-light: #f5f7fb;
  --color-bg-dark: #161c2e;
  --color-bg-darker: #0e1220;
  --color-bg-semidark: #1b2240;
  --color-bg-bubble: #13182b;
  --color-bg-grad-start: #1a3068;
  --color-bg-grad-end: #2b4fa3;
  --color-grad-voice-start: #1e3a7a;
  --color-grad-voice-end: #3562c0;

  --color-text: #2a2f45;
  --color-text-light: #5c6480;
  --color-text-muted: #8e95aa;
  --color-text-white: #ffffff;

  --color-border: #dfe3ec;
  --color-border-light: #eaeef5;

  --color-success: #10b981;
  --color-error: #ef4444;

  --font-primary: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-padding: 100px;
  --container-max: 1100px;
  --container-padding: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;          /* 横スクロール防止 — html側で制御 */
  overscroll-behavior-x: none;  /* 横方向のバウンススクロール禁止 */
}

body {
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;  /* iOS横向き時の文字拡大防止 */
  text-size-adjust: 100%;
  min-height: 100vh;                /* iOS Safariでの底部白余白防止 */
}

/* レスポンシブ改行制御 — デスクトップのみ改行、スマホでは自然折り返し */
.br-desktop { display: inline; }
@media (max-width: 768px) {
  .br-desktop { display: none; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
strong { font-weight: 600; }

/* Select wrapper — カスタム矢印 */
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-text-muted);
  pointer-events: none;
}
.select-wrapper select {
  width: 100%;
  padding-right: 36px;  /* 矢印分のスペース */
}

main {
  overflow-x: clip;  /* 子要素のはみ出しを完全に切り取り（hidden より強力） */
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Custom Scrollbar (参考サイトに合わせて、デスクトップのみ) --- */
@media (min-width: 769px) {
  ::-webkit-scrollbar { width: 14px; }
  ::-webkit-scrollbar-track { background: #fff; }
  ::-webkit-scrollbar-thumb { background: var(--color-accent); }
}

/* ---- Section ---- */
.section { padding: var(--section-padding) 0; }
.section-header { text-align: center; margin-bottom: 52px; }

.section-title {
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.section-title-light {
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-text-white);
}
.section-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
}
.section-subtitle-light {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 14px; font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-accent {
  background: var(--color-accent); color: #fff;
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(74,125,255,0.3);
}
.btn-ghost {
  background: transparent; color: var(--color-text);
  border-color: transparent; padding-left: 0;
}
.btn-ghost:hover { color: var(--color-accent); }
.btn-white {
  background: #fff; color: var(--color-primary);
  border-color: #fff; font-weight: 700;
}
.btn-white:hover { background: var(--color-bg-light); transform: translateY(-1px); }
.btn-outline-white {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn-lg { padding: 16px 40px; font-size: 15px; }
.btn-full { width: 100%; }

/* ---- HEADER ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }

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

.logo { display: flex; align-items: center; z-index: 1001; }
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 13px; font-weight: 500; color: var(--color-text-light); }
.nav-link:hover { color: var(--color-primary); }
.nav-link.active { color: var(--color-accent); }
.nav-link.cta-nav {
  background: var(--color-accent); color: #fff;
  padding: 9px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
}
.nav-link.cta-nav:hover { background: var(--color-accent-hover); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--color-primary); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-nav-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
  z-index: 999; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.4s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;  /* オーバーレイ内のスクロールが背面に伝播しない */
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

/* body スクロールロック（JSで .nav-open を付与） */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  /* top は JS で動的にセット */
}
.mobile-nav-inner {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 80px 24px 40px;
}
.mobile-nav-link {
  font-size: 18px; font-weight: 600; color: var(--color-primary);
  padding: 8px 0;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-link.cta-mobile {
  background: var(--color-accent); color: #fff;
  padding: 14px 36px; border-radius: var(--radius-sm); margin-top: 10px;
}

/* ==========================
   HERO — 白背景（参考サイトと同じ）
   ========================== */
.hero {
  padding-top: 76px;
  background: #fff;
}
.hero-container {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
  padding: 80px 0 72px;
}

.hero-title {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800; line-height: 1.35;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  opacity: 0; animation: fadeInUp 0.7s 0.15s forwards;
}
.hero-subtitle {
  font-size: 15px; line-height: 1.95;
  color: var(--color-text-light);
  margin-bottom: 32px;
  opacity: 0; animation: fadeInUp 0.7s 0.35s forwards;
  word-break: auto-phrase;       /* 日本語の自然な折り返し（Chrome 119+） */
  overflow-wrap: break-word;
}
.hero-subtitle strong { color: var(--color-primary); }
.hero-cta-group {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: fadeInUp 0.7s 0.55s forwards;
}

/* Hero Profile Photo */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: fadeIn 1s 0.4s forwards;
}
.hero-profile { text-align: center; }
.hero-profile-img {
  width: 300px; height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.10);
}
.hero-profile-name {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.profile-name {
  font-size: 17px; font-weight: 700; color: var(--color-primary);
}
.profile-title {
  font-size: 12px; font-weight: 500; color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ==========================
   TRUST BAND — 暗い帯（primary-semidark）
   参考サイト: パートナーバッジ帯
   ========================== */
.section-trust {
  background: var(--color-bg-semidark);
  padding: 38px 0;
}
.trust-inner { text-align: center; }
.trust-badges {
  display: flex; justify-content: center; align-items: center;
  gap: 0; flex-wrap: wrap;
}
.trust-badge {
  padding: 0 30px;
}
.trust-badge span {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.trust-badge strong {
  color: #fff; font-weight: 700;
}
.trust-divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.12);
}

/* ==========================
   ABOUT — ブルーグラデーション背景
   参考サイト: gradient-blue-bg
   ========================== */
.section-about {
  background: linear-gradient(135deg, var(--color-bg-grad-start), var(--color-bg-grad-end));
  padding: 100px 0;
}
.about-block { max-width: 740px; margin: 0 auto; }
.about-main-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800; color: #fff;
  margin-bottom: 12px;
}
.about-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
}
.about-body p {
  font-size: 15px; line-height: 2;
  color: rgba(255,255,255,0.80);
  margin-bottom: 20px;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: #fff; }

/* ==========================
   PROBLEM + WHY — 暗いバブル背景（参考サイト: bubble）
   連続して暗い背景
   ========================== */
.section-problem {
  background: var(--color-bg-bubble);
  padding: var(--section-padding) 0 56px;
}
.problem-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-bottom: 36px;
}
.problem-card {
  background: rgba(255,255,255,0.04);
  padding: 28px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.problem-card:hover { background: rgba(255,255,255,0.07); }
.problem-text {
  font-size: 14px; line-height: 1.85;
  color: rgba(255,255,255,0.68);
  word-break: auto-phrase;
  overflow-wrap: break-word;
}
.problem-conclusion-text {
  text-align: center;
  font-size: 15px; color: rgba(255,255,255,0.5);
  padding-top: 8px;
}
.problem-conclusion-text strong {
  color: var(--color-accent);
}

/* WHY — 暗い背景の上に白カード（参考サイトの slider 構造） */
.section-why {
  background: var(--color-bg-bubble);
  padding: 0 0 var(--section-padding);
}
.why-slider { display: flex; flex-direction: column; gap: 18px; }
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-card-inner {
  display: grid;
  grid-template-columns: 1fr;
  padding: 42px 48px;
}
.why-label {
  font-family: var(--font-en);
  font-size: 12px; font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  background: var(--color-accent-light);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  width: fit-content;
}
.why-card-title {
  font-size: 20px; font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5; margin-bottom: 14px;
}
.why-card-desc {
  font-size: 14px; line-height: 1.95;
  color: var(--color-text-light);
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

/* ==========================
   SERVICES — 白背景（参考サイト: 特徴セクション、3列カード）
   ========================== */
.section-services { background: var(--color-bg); }
.services-grid-3col {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card-v2 {
  background: var(--color-bg-light);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: var(--transition);
  text-align: center;
}
.service-card-v2:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}
.service-card-icon {
  width: 48px; height: 48px;
  background: var(--color-accent-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--color-accent);
  font-size: 20px;
}
.service-card-name {
  font-size: 16px; font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.service-card-desc {
  font-size: 13px; line-height: 1.85;
  color: var(--color-text-light);
  text-align: left;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

/* ==========================
   PROCESS — 白背景/ライト背景
   ========================== */
.section-process { background: var(--color-bg); }
.process-timeline {
  position: relative; max-width: 640px; margin: 0 auto;
}
.process-timeline::before {
  content: ''; position: absolute; top: 0; left: 22px;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
}
.process-step {
  display: flex; gap: 24px; padding-bottom: 38px;
  position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.step-number {
  flex-shrink: 0; width: 46px; height: 46px;
  background: var(--color-accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 14px; font-weight: 800;
  position: relative; z-index: 1;
  box-shadow: 0 3px 12px rgba(74,125,255,0.2);
}
.step-title {
  font-size: 16px; font-weight: 700;
  color: var(--color-primary); margin-bottom: 4px;
}
.step-desc {
  font-size: 13px; line-height: 1.85;
  color: var(--color-text-light);
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

/* ==========================
   RESULTS — グラデーション背景（参考サイト: お客様の声 gradient）
   ========================== */
.section-results {
  background: linear-gradient(135deg, var(--color-grad-voice-start), var(--color-grad-voice-end));
}

.results-profile-block {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 44px;
  padding: 32px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.results-profile-photo img {
  width: 80px; height: 80px;
  object-fit: cover; object-position: center top;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}
.results-profile-info h3 {
  font-size: 20px; font-weight: 700; color: #fff;
  line-height: 1.3;
}
.results-profile-info h3 span {
  font-family: var(--font-en);
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-left: 8px;
}
.results-profile-role {
  font-size: 13px; color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.results-list { display: flex; flex-direction: column; gap: 14px; }
.result-item {
  display: flex; gap: 18px;
  padding: 26px 28px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.result-item:hover { background: rgba(255,255,255,0.10); }
.result-marker {
  flex-shrink: 0; width: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}
.result-body h4 {
  font-size: 15px; font-weight: 700;
  color: #fff; margin-bottom: 6px;
}
.result-body p {
  font-size: 13px; line-height: 1.85;
  color: rgba(255,255,255,0.65);
}

/* ==========================
   NOT FOR — ライト背景
   ========================== */
.section-not-for { background: var(--color-bg-light); }
.not-for-text-block {
  max-width: 600px; margin: 0 auto 36px;
  text-align: center;
}
.not-for-text-block p {
  font-size: 14px; line-height: 1.9;
  color: var(--color-text-light);
  word-break: auto-phrase;
  overflow-wrap: break-word;
}
.not-for-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-bottom: 40px;
}
.not-for-card {
  padding: 22px 24px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid #f0dede;
}
.not-for-card p {
  font-size: 14px; font-weight: 500;
  color: var(--color-text); line-height: 1.6;
  padding-left: 12px;
  border-left: 3px solid var(--color-error);
}

.not-for-positive {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border-light);
}
.positive-lead {
  font-size: 16px; font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.positive-list { display: flex; flex-direction: column; gap: 10px; }
.positive-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--color-text);
}
.positive-item::before {
  content: '—';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================
   FINAL CTA — 暗い背景（参考サイトの資料DL＋問い合わせ帯）
   ========================== */
.section-final-cta {
  background: var(--color-bg-semidark);
  padding: 80px 0;
}
.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.final-cta-card {
  padding: 44px 36px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.final-cta-card.filled {
  background: var(--color-accent);
}
.final-cta-card.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
}
.final-cta-card h3 {
  font-size: 22px; font-weight: 700; color: #fff;
  margin-bottom: 12px;
}
.final-cta-card p {
  font-size: 14px; line-height: 1.8;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}
.final-cta-card .btn-white { margin-top: auto; }
.final-cta-card .btn-outline-white { margin-top: auto; }

/* ==========================
   CONTACT — 白背景
   ========================== */
.section-contact { background: var(--color-bg); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 40px; align-items: start;
}
.contact-info-card {
  background: var(--color-primary); color: #fff;
  padding: 40px; border-radius: var(--radius-lg);
  position: sticky; top: 84px;  /* ヘッダー76px + 8px余白 */
}
.contact-info-card h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 12px;
}
.contact-info-card p {
  font-size: 14px; line-height: 1.8;
  color: rgba(255,255,255,0.65); margin-bottom: 24px;
}
.contact-benefits { list-style: none; }
.contact-benefits li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
}
.contact-benefits li:last-child { border-bottom: none; }
.contact-benefits li i { color: var(--color-accent); font-size: 12px; }

.contact-form-wrapper {
  background: #fff; padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--color-text); }

.required {
  font-size: 10px; color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 1px 5px; border-radius: 3px; margin-left: 3px;
  font-weight: 600;
}
.optional {
  font-size: 10px; color: var(--color-text-muted);
  margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-primary);
  font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-light);
  color: var(--color-text);
  transition: var(--transition); outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74,125,255,0.08);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { margin-top: 4px; }
.form-message {
  text-align: center; padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; margin-top: 8px;
}
.form-message.success {
  background: rgba(16,185,129,0.06); color: var(--color-success);
  border: 1px solid rgba(16,185,129,0.15);
}
.form-message.error {
  background: rgba(239,68,68,0.06); color: var(--color-error);
  border: 1px solid rgba(239,68,68,0.15);
}

/* ==========================
   FOOTER — 非常に暗い（参考サイトに合わせて）
   ========================== */
.site-footer {
  background: var(--color-bg-darker);
  padding: 48px 0 24px;
}
.footer-simple {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand-col .footer-logo .logo-img {
  filter: brightness(0) invert(1);
  height: 44px;
}
.footer-desc {
  font-size: 12px; margin-top: 10px;
  color: rgba(255,255,255,0.3);
}
.footer-nav-col {
  display: flex; gap: 22px;
}
.footer-nav-col a {
  font-size: 12px; color: rgba(255,255,255,0.35);
  transition: var(--transition);
}
.footer-nav-col a:hover { color: #fff; }
.footer-bottom { padding-top: 18px; text-align: center; }
.footer-bottom p {
  font-size: 11px; color: rgba(255,255,255,0.18);
  font-family: var(--font-en);
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--color-accent); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  box-shadow: 0 3px 14px rgba(74,125,255,0.25);
  z-index: 100;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: hover) {
  .back-to-top:hover { background: var(--color-accent-hover); transform: translateY(-3px); }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

[data-animate] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate="fade-right"] { transform: translateX(-24px); }
[data-animate="fade-left"] { transform: translateX(24px); }
[data-animate].animated { opacity: 1; transform: translate(0,0); }

/* スマホでは横方向アニメーションを縦に変更（白余白の原因を根絶） */
@media (max-width: 768px) {
  [data-animate="fade-right"],
  [data-animate="fade-left"] {
    transform: translateY(24px);
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  :root { --section-padding: 80px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-cta-group { justify-content: center; }
  .hero-profile-img { width: 240px; height: 300px; }
  .problem-grid { grid-template-columns: 1fr; }
  .services-grid-3col { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-info-card { position: static; width: 100%; }
  .not-for-grid { grid-template-columns: 1fr; }
  .results-profile-block { flex-direction: column; text-align: center; }
  .final-cta-grid { grid-template-columns: 1fr; }
  .footer-simple { flex-direction: column; gap: 20px; text-align: center; }
  .footer-nav-col { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px; --container-padding: 18px; }
  body { font-size: 14px; }

  /* Header */
  .nav-container { height: 62px; }
  .logo-img { height: 42px; }

  /* Hero */
  .hero { padding-top: 62px; }
  .hero-container { padding: 40px 0 36px; gap: 28px; }
  .hero-title { font-size: 26px; margin-bottom: 16px; }
  .hero-subtitle { font-size: 14px; line-height: 1.85; margin-bottom: 24px; }
  .hero-profile-img { width: 180px; height: 230px; border-radius: 12px; }
  .hero-profile-name { margin-top: 12px; }
  .profile-name { font-size: 15px; }

  /* Trust */
  .section-trust { padding: 28px 0; }
  .trust-badges { flex-direction: column; gap: 8px; }
  .trust-badge { padding: 6px 0; }
  .trust-badge span { font-size: 12px; }
  .trust-divider { display: none; }

  /* About */
  .section-about { padding: 64px 0; }
  .about-main-title { font-size: 22px; margin-bottom: 8px; }
  .about-sub { font-size: 13px; margin-bottom: 28px; }
  .about-body p { font-size: 14px; line-height: 1.9; margin-bottom: 16px; }
  .about-block { text-align: left; }

  /* Problem */
  .problem-grid { grid-template-columns: 1fr; gap: 12px; }
  .problem-card { padding: 22px 20px; }
  .problem-text { font-size: 13px; }
  .problem-conclusion-text { font-size: 14px; }

  /* Why */
  .why-slider { gap: 14px; }
  .why-card-inner { padding: 28px 22px; }
  .why-card-title { font-size: 17px; margin-bottom: 10px; }
  .why-card-desc { font-size: 13px; }
  .why-label { font-size: 11px; padding: 2px 10px; margin-bottom: 10px; }

  /* Services */
  .services-grid-3col { grid-template-columns: 1fr; gap: 14px; }
  .service-card-v2 { padding: 28px 22px; }
  .service-card-icon { width: 42px; height: 42px; font-size: 18px; margin-bottom: 14px; }
  .service-card-name { font-size: 15px; }
  .service-card-desc { font-size: 13px; }

  /* Process */
  .process-timeline { max-width: 100%; }
  .process-step { gap: 16px; padding-bottom: 28px; }
  .step-number { width: 40px; height: 40px; font-size: 12px; }
  .process-timeline::before { left: 19px; }
  .step-title { font-size: 15px; }
  .step-desc { font-size: 13px; }

  /* Results */
  .results-profile-block { padding: 24px 20px; gap: 16px; }
  .results-profile-photo img { width: 64px; height: 64px; }
  .results-profile-info h3 { font-size: 17px; }
  .results-profile-info h3 span { display: block; margin-left: 0; margin-top: 2px; }
  .results-list { gap: 12px; }
  .result-item { padding: 22px 20px; gap: 14px; }
  .result-body h4 { font-size: 14px; }
  .result-body p { font-size: 12px; }

  /* Not For */
  .not-for-grid { grid-template-columns: 1fr; gap: 10px; }
  .not-for-card { padding: 18px 20px; }
  .not-for-card p { font-size: 13px; }
  .not-for-positive { padding: 28px 20px; }
  .positive-lead { font-size: 15px; }
  .positive-item { font-size: 13px; }

  /* Final CTA */
  .final-cta-grid { grid-template-columns: 1fr; gap: 16px; }
  .final-cta-card { padding: 32px 24px; }
  .final-cta-card h3 { font-size: 19px; }
  .final-cta-card p { font-size: 13px; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-info { width: 100%; }  /* 親要素を全幅に */
  .contact-info-card { padding: 28px 20px; position: static; width: 100%; }
  .contact-info-card h3 { font-size: 18px; }
  .contact-form-wrapper { padding: 28px 18px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .site-footer { padding: 36px 0 20px; }
  .footer-simple { flex-direction: column; gap: 20px; text-align: center; }
  .footer-brand-col .footer-logo .logo-img { height: 38px; }
  .footer-nav-col { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .footer-nav-col a { font-size: 11px; }

  /* Section headers */
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 22px; }
  .section-title-light { font-size: 22px; }

  /* Back to top */
  .back-to-top { width: 38px; height: 38px; font-size: 14px; bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  :root { --container-padding: 16px; }

  .hero-title { font-size: 23px; }
  .hero-subtitle { font-size: 13px; }
  .hero-profile-img { width: 160px; height: 210px; }

  .hero-cta-group { flex-direction: column; align-items: center; gap: 10px; }
  .hero-cta-group .btn { text-align: center; justify-content: center; min-width: 220px; }
  .btn-lg { padding: 14px 28px; font-size: 14px; }
  .btn-ghost.btn-lg { text-align: center; padding-left: 28px; }

  .about-main-title { font-size: 20px; }
  .about-body p { font-size: 13px; }

  .why-card-title { font-size: 16px; }
  .why-card-desc { font-size: 12px; }

  .result-item { flex-direction: column; gap: 0; }
  .result-marker { width: 100%; height: 3px; margin-bottom: 14px; }

  .final-cta-card { padding: 28px 20px; }
  .final-cta-card h3 { font-size: 18px; }

  .contact-form-wrapper { padding: 22px 16px; }
  .contact-info-card { padding: 24px 16px; }

  .footer-nav-col { gap: 10px 16px; }
}
