@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400;500;700;900&family=Shippori+Mincho:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ═══════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════ */
:root {
  --blue-deep:    #1B4F8A;
  --blue-mid:     #2B6CB0;
  --blue-bright:  #3B82C4;
  --blue-soft:    #D6E8F7;
  --blue-pale:    #EEF6FD;
  --blue-mist:    #F5FAFE;
  --cream:        #FFFFFF;
  --warm-white:   #FFFFFF;
  --warm-50:      #F8FAFE;
  --warm-100:     #EEF3FA;
  --warm-200:     #CDDAEC;
  --warm-400:     #8BA0BB;
  --warm-600:     #4A6080;
  --warm-800:     #1A2E44;
  --gray-section: #F4F7FB;
  --gray-border:  #E2EAF4;
  --green-soft:   #E8F5EE;
  --green-mid:    #4CAF7D;

  --font-serif: 'Shippori Mincho', serif;
  --font-sans:  'Zen Kaku Gothic New', sans-serif;

  /* ── スマホ優先のセクション余白 ── */
  --section-gap:   80px;
  --container:     1080px;
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     28px;
  --radius-xl:     48px;

  --shadow-card: 0 4px 32px rgba(27,79,138,0.10);
  --shadow-lift: 0 12px 48px rgba(27,79,138,0.16);
  --shadow-soft: 0 2px 16px rgba(27,79,138,0.07);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --fast: 0.2s;
  --mid:  0.4s;
  --slow: 0.7s;
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* 横スクロール防止 */
  max-width: 100%;
}

/* ── ベースフォントサイズ：スマホ17px、PC18px ── */
body {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 20px);
  color: var(--warm-800);
  background: #FFFFFF;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: normal;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

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

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  transition: box-shadow var(--mid) var(--ease);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(27,79,138,0.08); border-bottom: 1px solid var(--gray-border); }

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

.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; display: block; }

.global-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.global-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--warm-600);
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--fast) var(--ease);
}
.global-nav a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1.5px;
  background: var(--blue-mid);
  transition: width var(--mid) var(--ease);
  border-radius: 2px;
}
.global-nav a:hover { color: var(--blue-deep); }
.global-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* ── ボタン ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--mid) var(--ease);
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
/* スマホで読みやすいサイズに底上げ */
.btn-sm  { font-size: 14px; padding: 10px 18px; }
.btn-md  { font-size: 16px; padding: 14px 26px; }
.btn-lg  { font-size: 17px; padding: 16px 32px; border-radius: var(--radius-md); }
.btn-xl  { font-size: 18px; padding: 20px 44px; border-radius: var(--radius-md); }

.btn-primary { background: var(--blue-deep); color: white; }
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-secondary { background: transparent; color: var(--blue-deep); border: 1.5px solid var(--blue-deep); }
.btn-secondary:hover { background: var(--blue-pale); transform: translateY(-2px); }
.btn-white { background: white; color: var(--blue-deep); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.16); }
.btn-white-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-white-outline:hover { background: rgba(255,255,255,0.12); border-color: white; }
/* 相談支援員ボタン：スマホ・タブレットで見やすい半透明青 */
.btn-hero-sub {
  background: rgba(43, 108, 176, 0.75);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-hero-sub:hover {
  background: rgba(43, 108, 176, 0.95);
  border-color: white;
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--warm-800);
  border-radius: 2px;
  transition: all var(--mid) var(--ease);
}

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,254,251,0.98);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.06em;
}
.mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  font-size: 36px;
  color: var(--warm-600);
  line-height: 1;
}

/* ═══════════════════════════════════════
   SECTION COMMON
═══════════════════════════════════════ */
.section { padding: var(--section-gap) 0; }
.section-alt { background: var(--gray-100); }

.section-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue-mid);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
  display: block;
}
/* セクションタイトル：スマホ26px〜PC40px */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--blue-deep);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-weight: 700;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* セクションリード：スマホ16px〜PC18px */
.section-lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--warm-600);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 2;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-mist);
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--blue-soft) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--warm-50) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 20px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--blue-soft);
  color: var(--blue-mid);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
  letter-spacing: 0.05em;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--blue-bright);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-subtext {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--warm-600);
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
/* ヒーロータイトル：スマホ32px〜PC52px */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--blue-deep);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.hero-title-sub {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--warm-600);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero-tag {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}
/* タイトル下の白背景タグ（案C） */
.hero-tag-solid {
  background: white !important;
  color: var(--blue-deep) !important;
  border-radius: 6px !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 7px 18px !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin-top: 4px;
  margin-bottom: 24px;
}
/* ヒーローリード：スマホ16px〜PC18px */
.hero-lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--warm-600);
  line-height: 2;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1/2;
  background: var(--blue-soft);
  box-shadow: var(--shadow-lift);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-img-placeholder {
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(160deg, #C8DEF5 0%, #A8C8ED 50%, #85AED9 100%);
  color: white;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 20px;
}
.hero-img-placeholder svg { width: 64px; height: 64px; opacity: 0.7; stroke: white; fill: none; stroke-width: 1.5; }

.hero-float-card {
  position: absolute;
  bottom: -20px; left: -28px;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lift);
  min-width: 170px;
  border: 1px solid var(--warm-100);
}
.hero-float-label { font-size: 12px; color: var(--warm-400); letter-spacing: 0.08em; margin-bottom: 4px; }
.hero-float-value { font-size: 22px; font-weight: 900; color: var(--blue-deep); line-height: 1; }
.hero-float-unit { font-size: 13px; color: var(--warm-600); margin-top: 3px; }


/* ═══════════════════════════════════════
   HERO OVERLAY (写真+テキスト同一エリア)
═══════════════════════════════════════ */
/* ═══════════════════════════════════════
   HERO — 共通ベース
═══════════════════════════════════════ */
.hero-overlay {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #EBF5FF 0%, #D6EAFF 60%, #C0DEFF 100%);
  margin-top: -1px; /* ヘッダー下の隙間を消す */
}

/* ─── 背景写真レイヤー（スマホ・タブレット用） ─── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none; /* PCでは非表示 */
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  /* グラデーションなし：文字の視認性はtext-shadowで対応 */
  background: transparent;
}

/* ─── PC：左テキスト＋右写真の2カラム ─── */
.hero-overlay-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  min-height: 92vh;
  padding: 80px clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
}

/* テキスト列 */
.hero-overlay-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* 写真列（PC 961px以上のみ表示） */
.hero-overlay-photo {
  display: none; /* デフォルト非表示 */
  height: 580px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero-overlay-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
}
@media (min-width: 961px) {
  .hero-overlay-photo { display: block; } /* PCのみ表示 */
}

/* オーバーレイ時のテキスト色を白系に */
.hero-overlay .hero-badge {
  background: white;
  border-color: var(--blue-soft);
  color: var(--blue-mid);
}
.hero-overlay .hero-badge-dot { background: var(--blue-bright); }
.hero-overlay .hero-subtext { color: var(--warm-600); }
.hero-overlay .hero-title { color: var(--blue-deep); text-shadow: none; }
.hero-overlay .hero-tag {
  background: var(--blue-soft);
  color: var(--blue-deep);
  border: 1px solid var(--blue-pale);
}
.hero-overlay .hero-lead {
  color: var(--warm-600);
  text-shadow: none;
}
/* ボタンの影を強化 */
.hero-overlay .btn-primary {
  box-shadow: 0 3px 14px rgba(0,0,0,0.35);
}
.hero-overlay .btn-hero-sub {
  box-shadow: 0 3px 14px rgba(0,0,0,0.3);
}

/* タブレット・スマホのヒーロー対応は下部のレスポンシブセクションに統合 */

/* ═══════════════════════════════════════
   WORRY SECTION
═══════════════════════════════════════ */
.worry-section {
  background: linear-gradient(135deg, #2B7FD4 0%, #1E6BBF 50%, #1A5FA8 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
.worry-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
/* ウォーリー見出し：スマホ24px〜PC38px */
.worry-heading {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 38px);
  color: white;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.worry-heading span { display: inline-block; border-bottom: 2px solid rgba(255,255,255,0.4); padding-bottom: 6px; }

.worry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 44px;
}
.worry-item {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--mid) var(--ease);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.worry-item:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px); }
.worry-check {
  width: 28px; height: 28px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px; color: #1A5FA8; font-weight: 700;
}
/* ウォーリーテキスト：スマホ15px〜PC17px */
.worry-text {
  font-size: clamp(15px, 2vw, 17px);
  color: white;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.worry-cta { text-align: center; position: relative; z-index: 1; }
/* ウォーリーCTAテキスト：スマホ17px〜PC20px */
.worry-cta-text {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2.2vw, 20px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.9;
}
.worry-cta-text strong { color: white; }

/* ═══════════════════════════════════════
   PHILOSOPHY SECTION
═══════════════════════════════════════ */
.philosophy-section { padding: var(--section-gap) 0; background: var(--gray-section); }

.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 60px;
}
.philosophy-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blue-soft);
  aspect-ratio: 4/3;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--blue-mid);
}
/* 引用：スマホ20px〜PC28px */
.philosophy-quote {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.8vw, 28px);
  color: var(--blue-deep);
  line-height: 1.75;
  margin-bottom: 24px;
  position: relative;
  padding-left: 22px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.philosophy-quote::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--blue-mid);
  border-radius: 2px;
}
/* 本文：スマホ16px〜PC18px */
.philosophy-body {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--warm-600);
  line-height: 2;
  margin-bottom: 20px;
}
.philosophy-list { display: flex; flex-direction: column; gap: 10px; }
.philosophy-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--warm-800);
  line-height: 1.65;
}
.philosophy-list li::before { content: '▸'; color: var(--blue-mid); font-size: 13px; margin-top: 4px; flex-shrink: 0; }

/* ═══════════════════════════════════════
   BEFORE → AFTER
═══════════════════════════════════════ */
.change-section { padding: var(--section-gap) 0; background: var(--warm-white); }

.change-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
  max-width: 860px;
  margin: 0 auto;
}
.change-illust {
  text-align: center;
  margin-bottom: 20px;
}
.change-illust svg {
  width: 80px;
  height: 80px;
}
.change-illust img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.change-icon-before, .change-icon-after {
  font-size: 18px;
  margin-right: 8px;
  flex-shrink: 0;
}
.change-card { border-radius: var(--radius-lg); padding: 28px 24px; border: 1px solid var(--warm-100); }
.change-card.before { background: #F8FAFE; }
.change-card.after  { background: var(--blue-pale); border-color: var(--blue-soft); }

.change-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.change-label.before-label { color: var(--warm-400); }
.change-label.after-label  { color: var(--blue-mid); }
.change-label::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: 0.3; }

.change-items { display: flex; flex-direction: column; gap: 13px; }
/* チェンジアイテム：スマホ15px〜PC17px */
.change-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.6;
}
.change-item.before { color: var(--warm-600); }
.change-item.before .ci { color: var(--warm-400); font-size: 17px; }
.change-item.after  { color: var(--blue-deep); font-weight: 600; }
.change-item.after  .ci { color: var(--blue-mid); font-size: 17px; }

.change-arrow { display: flex; align-items: center; justify-content: center; width: 52px; }
.change-arrow-inner {
  width: 48px; height: 48px;
  background: var(--blue-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px;
}

/* ═══════════════════════════════════════
   WORK SECTION
═══════════════════════════════════════ */
.work-section { padding: var(--section-gap) 0; background: var(--gray-section); position: relative; overflow: hidden; }
.work-section::before {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 600px; height: 600px;
  background: rgba(59,130,196,0.12);
  border-radius: 50%;
}
.work-section .section-title { color: var(--blue-deep); }
.work-section .section-eyebrow { color: var(--blue-mid); }
.work-section .section-lead { color: var(--warm-600); }

.work-grid, .work-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative; z-index: 1;
}
.work-card {
  background: white;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  transition: all var(--mid) var(--ease);
  box-shadow: var(--shadow-soft);
}
.work-card:hover { border-color: var(--blue-mid); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(27,79,138,0.15); }
.work-icon {
  width: 56px; height: 56px;
  background: #1B5FAA;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  transition: background var(--mid) var(--ease);
}
.work-icon svg { width: 28px; height: 28px; stroke: white; fill: none; stroke-width: 1.8; }
.work-card:hover .work-icon { background: var(--blue-deep); }
.work-name {
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.work-desc {
  font-size: clamp(13px, 1.5vw, 15px);
  color: var(--warm-600);
  line-height: 1.75;
}
.work-note { text-align: center; margin-top: 28px; font-size: 15px; color: var(--warm-400); position: relative; z-index: 1; }

/* ═══════════════════════════════════════
   VIDEO SECTION
═══════════════════════════════════════ */
.video-section { padding: var(--section-gap) 0; background: white; }

/* ── 縦型動画：左右2カラム（PC） ── */
.video-layout {
  display: grid;
  grid-template-columns: 280px 1fr;  /* PC: 動画幅を280pxに抑える */
  gap: 48px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

/* 縦型動画枠 */
.video-portrait-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: transparent; /* 黒背景をなくしてposterを見せる */
  aspect-ratio: 9/16;
  position: relative;
  max-width: 280px; /* PC最大幅 */
}
.video-portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: transparent;
}

/* キャプション列 */
.video-portrait-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  max-width: 480px;
}
.video-caption-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--blue-deep);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.video-caption-text {
  font-size: clamp(15px, 1.6vw, 16px);
  color: var(--warm-600);
  line-height: 1.95;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* タブレット：縦積み */
@media (max-width: 960px) {
  .video-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .video-portrait-wrap {
    max-width: 300px;
    margin: 0 auto;
  }
  .video-portrait-caption {
    text-align: center;
    align-items: center;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* スマホ */
@media (max-width: 640px) {
  .video-portrait-wrap {
    max-width: 240px;
  }
  .video-caption-title {
    font-size: 19px;
  }
  .video-caption-text {
    font-size: 15px;
    word-break: auto-phrase;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
  }
  .section-lead {
    font-size: 15px;
    word-break: auto-phrase;
    overflow-wrap: break-word;
    padding: 0 4px;
    max-width: 100%;
  }
}

.video-caption {
  text-align: center; margin-top: 22px;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--warm-600); line-height: 1.9;
}

/* ═══════════════════════════════════════
   CASEWORKER SECTION
═══════════════════════════════════════ */
.caseworker-section { padding: var(--section-gap) 0; background: var(--gray-section); }
.caseworker-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.caseworker-tag {
  display: inline-block;
  background: var(--blue-soft); color: var(--blue-deep);
  font-size: 13px; font-weight: 700;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 16px;
  letter-spacing: 0.08em; border: 1px solid rgba(27,79,138,0.15);
}
.caseworker-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 32px);
  color: var(--blue-deep); margin-bottom: 18px; line-height: 1.5; font-weight: 700;
}
.caseworker-body {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--warm-600); line-height: 2; margin-bottom: 22px;
}
.caseworker-list { display: flex; flex-direction: column; gap: 12px; }
.caseworker-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: clamp(15px, 1.8vw, 17px); color: var(--warm-800);
}
.caseworker-check {
  width: 24px; height: 24px; background: var(--blue-mid); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; flex-shrink: 0; margin-top: 1px;
}
.caseworker-img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3; min-height: 260px;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   VISIT SECTION
═══════════════════════════════════════ */
.visit-section { padding: var(--section-gap) 0; background: var(--warm-white); }
.visit-card {
  max-width: 720px; margin: 0 auto;
  background: white; border: 2px solid var(--blue-soft);
  border-radius: var(--radius-xl);
  padding: 60px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.visit-card::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--blue-pale) 0%, transparent 70%);
  pointer-events: none;
}
.visit-icon {
  width: 76px; height: 76px; background: var(--blue-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.visit-icon svg { width: 38px; height: 38px; stroke: var(--blue-mid); fill: none; stroke-width: 1.5; }
.visit-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 32px);
  color: var(--blue-deep); margin-bottom: 16px; line-height: 1.5;
}
.visit-body {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--warm-600); line-height: 2; margin-bottom: 32px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.visit-note { font-size: 14px; color: var(--warm-400); margin-top: 16px; }

/* ═══════════════════════════════════════
   SNS SECTION
═══════════════════════════════════════ */
.sns-section { padding: var(--section-gap) 0; background: white; border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border); }
.sns-inner { text-align: center; }
.sns-icon-wrap { display: flex; justify-content: center; gap: 16px; margin-bottom: 28px; }
.sns-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 32px;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 700; color: white;
  transition: all var(--mid) var(--ease); box-shadow: var(--shadow-card);
}
.sns-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); opacity: 0.92; }
.sns-link svg { width: 24px; height: 24px; stroke: white; }
.sns-caption { font-size: clamp(14px, 1.6vw, 16px); color: var(--warm-600); line-height: 2; }

/* ═══════════════════════════════════════
   FINAL SECTION
═══════════════════════════════════════ */
.final-section {
  padding: 96px 0 112px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
/* 背景写真レイヤー */
.final-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.final-section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* 白みがかった半透明オーバーレイ（テキスト読みやすく） */
.final-section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
}
.final-tag {
  display: inline-block;
  border: 1px solid var(--blue-soft); color: var(--blue-mid);
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  padding: 6px 18px; border-radius: 100px; margin-bottom: 32px;
}
/* ファイナルメッセージ：スマホ28px〜PC54px */
.final-message {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 54px);
  color: var(--blue-deep); line-height: 1.7; margin-bottom: 28px;
  font-weight: 700; position: relative; z-index: 1;
}
.final-message .accent { color: var(--blue-mid); }
/* ファイナルサブ：スマホ16px〜PC20px */
.final-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--warm-800); line-height: 2;
  max-width: 580px; margin: 0 auto 48px;
  position: relative; z-index: 1;
}
.final-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 2; }
.final-section .btn-secondary {
  background: white;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue-deep);
  box-shadow: 0 2px 8px rgba(27,79,138,0.12);
}
.final-section .btn-secondary:hover {
  background: var(--blue-pale);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(27,79,138,0.18);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer { background: white; padding: 60px 0 28px; color: var(--blue-deep); border-top: 2px solid var(--blue-soft); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: none;
  opacity: 1;
  margin-bottom: 14px;
}
.footer-tagline { font-size: clamp(15px, 1.6vw, 16px); color: var(--warm-600); line-height: 2; margin-top: 14px; }
.footer-col-title { font-size: 15px; font-weight: 400; color: var(--blue-deep); letter-spacing: 0.1em; margin-bottom: 14px; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: clamp(15px, 1.6vw, 16px); color: var(--warm-600); transition: color var(--fast) var(--ease); }
.footer-links a:hover { color: var(--blue-deep); }
.footer-bottom {
  border-top: 1px solid var(--gray-border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: clamp(13px, 1.4vw, 14px); color: var(--warm-400);
}

/* ═══════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════ */
.page-hero { background: var(--blue-mist); padding: 56px 0; border-bottom: 1px solid var(--gray-border); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--warm-400); margin-bottom: 12px; }
.breadcrumb a { color: var(--blue-mid); transition: color var(--fast) var(--ease); }
.breadcrumb a:hover { color: var(--blue-deep); }
.breadcrumb-sep { opacity: 0.5; }
/* ページタイトル：スマホ28px〜PC46px */
.page-title { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 46px); color: var(--blue-deep); font-weight: 700; letter-spacing: 0.03em; }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET (max 960px)
═══════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --section-gap: 64px; }

  /* ─ ヒーロー：背景写真＋白文字オーバーレイ ─ */
  .hero-overlay { min-height: 88vh; background: none; }
  .hero-bg { display: block; }
  .hero-overlay-inner {
    min-height: 88vh;
    grid-template-columns: 1fr;
    padding: 60px 28px 56px;
    align-items: flex-end;
  }
  .hero-overlay-photo { display: none; }
  /* タブレット：テキストを白＋強い影に上書き */
  .hero-overlay .hero-badge { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.50); color: white; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .hero-overlay .hero-badge-dot { background: white; }
  .hero-overlay .hero-subtext { color: rgba(255,255,255,0.95); text-shadow: 0 0 10px rgba(0,0,0,1), 0 2px 4px rgba(0,0,0,0.9), -1px -1px 0 rgba(0,0,0,0.6), 1px 1px 0 rgba(0,0,0,0.6); }
  .hero-overlay .hero-title { color: white; text-shadow: 0 0 14px rgba(0,0,0,1), 0 0 28px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.8), -1px -1px 0 rgba(0,0,0,0.7), 1px 1px 0 rgba(0,0,0,0.7); }
  .hero-overlay .hero-tag { background: rgba(255,255,255,0.18); color: white; border-color: rgba(255,255,255,0.50); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .hero-overlay .hero-tag-solid { background: white !important; color: var(--blue-deep) !important; border-radius: 6px !important; border: none !important; box-shadow: 0 2px 10px rgba(0,0,0,0.25) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .hero-overlay .hero-lead { color: rgba(255,255,255,0.95); text-shadow: 0 0 10px rgba(0,0,0,1), 0 2px 6px rgba(0,0,0,0.8), -1px -1px 0 rgba(0,0,0,0.5), 1px 1px 0 rgba(0,0,0,0.5); }

  /* ─ その他セクション ─ */
  .worry-grid { grid-template-columns: 1fr 1fr; }
  .philosophy-inner { grid-template-columns: 1fr; }
  .philosophy-img { display: flex; aspect-ratio: 4/3; min-height: 200px; }
  .philosophy-img img { object-fit: contain !important; }
  .work-grid, .work-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .change-grid { grid-template-columns: 1fr; gap: 16px; }
  .change-arrow { transform: rotate(90deg); width: 100%; justify-content: center; }
  .caseworker-inner { grid-template-columns: 1fr; }
  .caseworker-img { overflow: hidden; aspect-ratio: 16/7; min-height: 200px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE (max 640px)
═══════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --section-gap: 48px; }

  /* ─── 横スクロール完全防止 ─── */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100%; }

  /* ─── ヘッダー ─── */
  .global-nav, .header-actions { display: none; }
  .hamburger { display: flex; }
  .header-inner { height: 60px; padding: 0 16px; }
  .logo img { height: 34px; }

  /* ─── ヒーロー：背景写真＋白文字オーバーレイ ─── */
  .hero-overlay { min-height: 100svh; min-height: 100vh; background: none; }
  .hero-bg { display: block; }
  .hero-overlay-inner {
    min-height: 100svh;
    min-height: 100vh;
    grid-template-columns: 1fr;
    padding: 0 20px 48px;
    align-items: flex-end;
  }
  .hero-overlay-photo { display: none; }
  /* スマホ：テキストを白＋強い影に上書き */
  .hero-overlay .hero-badge { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.50); color: white; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .hero-overlay .hero-badge-dot { background: white; }
  .hero-overlay .hero-subtext { color: rgba(255,255,255,0.95) !important; text-shadow: 0 0 10px rgba(0,0,0,1), 0 2px 4px rgba(0,0,0,0.9), -1px -1px 0 rgba(0,0,0,0.6), 1px 1px 0 rgba(0,0,0,0.6) !important; }
  .hero-overlay .hero-title { color: white !important; text-shadow: 0 0 14px rgba(0,0,0,1), 0 0 28px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.8), -1px -1px 0 rgba(0,0,0,0.7), 1px 1px 0 rgba(0,0,0,0.7) !important; }
  .hero-overlay .hero-tag { background: rgba(255,255,255,0.18); color: white; border-color: rgba(255,255,255,0.50); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .hero-overlay .hero-tag-solid { background: white !important; color: var(--blue-deep) !important; border-radius: 6px !important; border: none !important; box-shadow: 0 2px 10px rgba(0,0,0,0.25) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .hero-overlay .hero-lead { color: rgba(255,255,255,0.95) !important; text-shadow: 0 0 10px rgba(0,0,0,1), 0 2px 6px rgba(0,0,0,0.8), -1px -1px 0 rgba(0,0,0,0.5), 1px 1px 0 rgba(0,0,0,0.5) !important; }
  /* スマホ：フォントサイズ */
  .hero-badge { font-size: 12px; padding: 6px 12px; margin-bottom: 14px; }
  .hero-subtext { font-size: 14px; margin-bottom: 6px; }
  .hero-title { font-size: clamp(26px, 7vw, 34px); line-height: 1.45; margin-bottom: 10px; }
  .hero-tag { font-size: 13px; padding: 5px 14px; margin-bottom: 14px; }
  .hero-lead { font-size: 15px; line-height: 1.85; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 12px; width: 100%; }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 16px 20px;
  }

  /* ─── セクション共通 ─── */
  .container { padding: 0 16px; }
  .section-title { font-size: clamp(22px, 6vw, 28px); }
  .section-lead { font-size: 16px; margin-bottom: 28px; }
  .section-eyebrow { font-size: 11px; }

  /* ─── お悩みセクション ─── */
  .worry-section { padding: 52px 0; }
  .worry-grid { grid-template-columns: 1fr; gap: 8px; }
  .worry-heading { font-size: clamp(20px, 5.5vw, 26px); margin-bottom: 28px; }
  .worry-text { font-size: 16px; }
  .worry-cta-text { font-size: 17px; }

  /* ─── 理念セクション ─── */
  .philosophy-img { display: flex; aspect-ratio: auto; min-height: unset; width: 100%; }
  .philosophy-img img { object-fit: contain !important; object-position: center !important; max-height: 280px; width: 100%; height: auto; }
  .philosophy-quote { font-size: clamp(18px, 5vw, 22px); }
  .philosophy-body { font-size: 16px; }
  .philosophy-list li { font-size: 16px; }

  /* ─── Before/After ─── */
  .change-card { padding: 22px 18px; }
  .change-item { font-size: 15px; }

  /* ─── 作業プログラム ─── */
  .work-grid, .work-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .work-card { padding: 18px 12px; }
  .work-icon { width: 44px; height: 44px; }
  .work-icon svg { width: 22px; height: 22px; }
  .work-name { font-size: 14px; font-weight: 700; color: var(--blue-deep); }
  .work-desc { font-size: 13px; color: var(--warm-600); }

  /* ─── 見学CTAカード ─── */
  .visit-card { padding: 32px 18px; border-radius: var(--radius-lg); }
  .visit-title { font-size: clamp(19px, 5vw, 23px); }
  .visit-body { font-size: 16px; }

  /* ─── ファイナル ─── */
  .final-section { padding: 64px 0 72px; }
  .final-message { font-size: clamp(24px, 6.5vw, 32px); }
  .final-sub { font-size: 16px; max-width: 100%; padding: 0 4px; word-break: auto-phrase; overflow-wrap: break-word; }
  .final-actions { flex-direction: column; align-items: center; gap: 12px; }
  .final-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    font-size: 16px;
  }

  /* ─── SNS ─── */
  .sns-link { padding: 14px 20px; font-size: 15px; }

  /* ─── フッター ─── */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 11px; }
  .footer-tagline { font-size: 14px; }
  .footer-links a { font-size: 15px; }
  .site-footer { padding: 44px 0 24px; }

  /* ─── ページヒーロー（内部ページ） ─── */
  .page-hero { padding: 32px 0; }
  .page-title { font-size: clamp(24px, 6.5vw, 30px); }
  .breadcrumb { font-size: 13px; }

  /* ─── ボタン ─── */
  .btn-lg { font-size: 16px; padding: 14px 24px; }
  .btn-xl { font-size: 17px; padding: 16px 28px; }
  .btn-sm { font-size: 13px; padding: 9px 14px; }

  /* ─── フォーム ─── */
  .form-label { font-size: 15px; }
  .form-input,
  .form-textarea,
  .form-select { font-size: 16px; }

  /* ─── 装飾円の非表示（横スクロール原因） ─── */
  .hero::before, .hero::after,
  .worry-section::before,
  .work-section::before,
  .final-section::before,
  .visit-card::before { display: none; }

  /* ─── モバイルメニュー ─── */
  .mobile-menu a { font-size: clamp(20px, 5.5vw, 24px); }
}
