/* ============================================================
   YMデザイン企画 / YM Design&Co.
   Main Stylesheet
   ============================================================ */

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

:root {
  /* Color Palette */
  --color-primary:      #1a3a5c;   /* 藍色（深） */
  --color-primary-mid:  #2a5298;   /* 藍色（中） */
  --color-primary-light:#4a7ab5;   /* 藍色（淡） */
  --color-primary-pale: #d6e4f0;   /* 藍色（極淡） */

  --color-white:        #ffffff;
  --color-off-white:    #f8f7f4;   /* 薄いベージュ寄りニュートラル */
  --color-gray-light:   #f0eeea;   /* 淡いグレー */
  --color-gray:         #b0a89e;   /* ミドルグレー */
  --color-gray-dark:    #6b6560;   /* ダークグレー */
  --color-text:         #2d2926;   /* 本文テキスト */
  --color-text-muted:   #665d57;   /* サブテキスト */
  --color-border:       #e0dbd4;   /* ボーダー */

  --color-accent:       #c8915a;   /* テラコッタアクセント（控えめ） */

  /* Typography */
  --font-ja:   'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --font-en:   'Cormorant Garamond', 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   6rem;
  --space-2xl:  8rem;

  /* Transition */
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(26,58,92,0.08);
  --shadow-md: 0 4px 20px rgba(26,58,92,0.12);
  --shadow-lg: 0 8px 40px rgba(26,58,92,0.16);

  /* Max widths */
  --max-width: 1140px;
  --max-width-narrow: 800px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ja);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.en-label {
  font-family: var(--font-en);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-primary-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-primary);
  line-height: 1.4;
}

.section-lead {
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  color: var(--color-text-muted);
  line-height: 1.85;
  letter-spacing: 0.03em;
  max-width: 600px;
}

/* ============================================================
   Layout Utilities
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding-block: var(--space-xl);
}

.section--alt {
  background-color: var(--color-off-white);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-header {
  margin-bottom: var(--space-lg);
}

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

.section-header--center .section-lead {
  margin-inline: auto;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  min-height: 52px; /* タップしやすいサイズ */
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-mid);
  border-color: var(--color-primary-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}

.btn--outline-white:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: var(--color-white);
}

.btn--lg {
  padding: 1.1rem 2.75rem;
  font-size: 1.05rem;
  min-height: 58px;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Header / Navigation
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}

.site-logo__top {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
}

.site-logo__mark {
  width: 1.62rem;
  height: 1.62rem;
  flex: 0 0 auto;
  object-fit: contain;
  transform: translateY(0.02rem);
}

.site-logo__ja {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.site-logo__en {
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: var(--color-primary-light);
  letter-spacing: 0.14em;
  line-height: 1;
  padding-left: calc(1.62rem + 0.84rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.08em;
  padding-block: 0.25rem;
  position: relative;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width var(--transition);
}

.site-nav__link:hover::after,
.site-nav__link.active::after {
  width: 100%;
}

.site-nav__link:hover {
  color: var(--color-primary);
}

.nav-cta {
  font-size: 0.82rem !important;
  padding: 0.6rem 1.25rem !important;
  min-height: auto !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.mobile-nav__link {
  font-family: var(--font-ja);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.mobile-nav__link .en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--color-primary-light);
  letter-spacing: 0.14em;
  font-weight: 400;
}

.mobile-nav__cta {
  margin-top: 2.5rem;
  width: min(100%, 320px);
}

/* ============================================================
   Hero / First View — 動画背景版
   ============================================================ */

/* ─── セクション本体 ─── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh; /* iOS 対応 */
  display: flex;
  align-items: center;
  overflow: hidden;
  /* 動画読み込み中 / 非対応時のフォールバック */
  background-color: #0f2340;
}

/* ─── 背景動画（最背面） ─── */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* 動画の見せ場を上寄りに */
  z-index: 0;
  /* iOS など自動再生制限環境でのちらつき防止 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ─── 全体オーバーレイ（藍色・薄め） ─── */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 上から藍色ベースで静かに覆う。右側は透けて動画が見える */
  background: linear-gradient(
    to right,
    rgba(10, 25, 50, 0.72) 0%,
    rgba(15, 35, 70, 0.58) 45%,
    rgba(20, 45, 85, 0.38) 75%,
    rgba(20, 45, 85, 0.22) 100%
  );
}

/* ─── 左側テキストエリア追加グラデーション（可読性強化） ─── */
.hero__overlay-left {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* 左端のみ縦グラデーションで文字エリアをさらに引き締める */
  background: linear-gradient(
    to bottom,
    rgba(10, 25, 50, 0.25) 0%,
    transparent 35%,
    transparent 70%,
    rgba(10, 25, 50, 0.30) 100%
  );
  pointer-events: none;
}

/* ─── index main 背景演出レイヤー（英字 + ぼかし円） ─── */
.home-page .home-main__body {
  position: relative;
  isolation: isolate;
}

.home-page .home-main__body > .section > .container {
  position: relative;
  z-index: 1;
}

.home-page .home-main__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 90%, transparent 100%);
}

.home-page .home-main__ambient-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(74, 107, 148, 0.28);
  box-shadow:
    inset -24px -28px 56px rgba(58, 86, 120, 0.11),
    inset 18px 18px 34px rgba(235, 243, 248, 0.22),
    0 0 0 1px rgba(244, 248, 250, 0.08),
    0 8px 30px rgba(70, 100, 138, 0.08);
  opacity: 0.64;
  background:
    radial-gradient(circle at 28% 24%, rgba(234, 242, 248, 0.28) 0%, rgba(210, 224, 236, 0.18) 16%, rgba(126, 157, 193, 0.22) 34%, rgba(78, 111, 149, 0.16) 58%, rgba(52, 82, 118, 0.08) 76%, transparent 100%);
  will-change: transform, opacity;
}

.home-page .home-main__ambient-orb--1 {
  top: 11%;
  right: -1%;
  width: clamp(220px, 24vw, 380px);
  height: clamp(220px, 24vw, 380px);
  animation: heroOrbFloatA 6s ease-in-out infinite;
}

.home-page .home-main__ambient-orb--2 {
  left: 6%;
  top: 34%;
  width: clamp(180px, 20vw, 320px);
  height: clamp(180px, 20vw, 320px);
  opacity: 0.28;
  animation: heroOrbFloatB 6.4s ease-in-out infinite;
}

.home-page .home-main__ambient-orb--3 {
  left: 72%;
  top: 49%;
  width: clamp(150px, 16vw, 260px);
  height: clamp(150px, 16vw, 260px);
  opacity: 0.26;
  animation: heroOrbFloatC 5.8s ease-in-out infinite;
}

.home-page .home-main__ambient-orb--4 {
  right: 18%;
  top: 67%;
  width: clamp(130px, 14vw, 230px);
  height: clamp(130px, 14vw, 230px);
  opacity: 0.22;
  animation: heroOrbFloatD 6.8s ease-in-out infinite;
}

.home-page .home-main__ambient-orb--5 {
  left: -3%;
  top: 74%;
  width: clamp(160px, 18vw, 280px);
  height: clamp(160px, 18vw, 280px);
  opacity: 0.2;
  animation: heroOrbFloatE 6.2s ease-in-out infinite;
}

.home-page .home-main__ambient-orb--6 {
  left: 34%;
  top: 17%;
  width: clamp(120px, 13vw, 210px);
  height: clamp(120px, 13vw, 210px);
  opacity: 0.18;
  animation: heroOrbFloatF 5.6s ease-in-out infinite;
}

.home-page .home-main__ambient-orb--7 {
  right: 5%;
  top: 81%;
  width: clamp(110px, 12vw, 190px);
  height: clamp(110px, 12vw, 190px);
  opacity: 0.16;
  animation: heroOrbFloatG 6.6s ease-in-out infinite;
}

.home-page .home-main__ambient-copy {
  position: absolute;
  left: 0;
  display: flex;
  gap: 4rem;
  width: max-content;
  font-family: var(--font-en);
  font-size: clamp(4.1rem, 8.8vw, 8.4rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(88, 109, 126, 0.072);
  white-space: nowrap;
  will-change: transform;
}

.home-page .home-main__ambient-copy span {
  display: inline-block;
}

.home-page .home-main__ambient-copy--upper {
  top: 8.5%; /* フォールバック：JSで #services 上部に上書き */
  animation: heroCopyDrift 28s linear infinite;
}

.home-page .home-main__ambient-copy--middle {
  top: 50%; /* フォールバック：JSで #works 上部に上書き */
  font-size: clamp(4.2rem, 9vw, 8rem);
  color: rgba(112, 128, 142, 0.064);
  animation: heroCopyDriftReverse 32s linear infinite;
}

.home-page .home-main__ambient-copy--lower {
  top: 75%; /* フォールバック：JSで #about-teaser 上部に上書き */
  font-size: clamp(4.2rem, 9vw, 8rem);
  color: rgba(112, 128, 142, 0.064);
  animation: heroCopyDrift 34s linear infinite;
}

/* ─── コンテンツ（最前面） ─── */
.hero__content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3.5rem);
  /* header の高さ分だけ下げてセンタリング */
  padding-top: clamp(5rem, 12vh, 8rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
}

/* ─── eyebrow（英語サブタイトル） ─── */
.hero__eyebrow {
  font-family: var(--font-en);
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

/* ─── メインコピー ─── */
.hero__title {
  font-family: var(--font-ja);
  font-size: clamp(2.1rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  line-height: 1.35;
  margin-bottom: 1.6rem;
  /* テキストシャドウで動画に埋もれない視認性を確保 */
  text-shadow: 0 2px 20px rgba(10, 25, 50, 0.5);
}

.hero__title span {
  display: block;
}

/* ─── サブコピー ─── */
.hero__subtitle {
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 2;
  max-width: 480px;
  margin-bottom: 2.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(10, 25, 50, 0.45);
}

/* ─── CTAボタン群 ─── */
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* プライマリボタン：白背景・藍文字 → 目立つが上品 */
.btn--hero-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--transition), color var(--transition), transform 0.2s;
  box-shadow: 0 4px 20px rgba(10, 25, 50, 0.3);
}
.btn--hero-primary:hover {
  background: #ffffff;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(10, 25, 50, 0.4);
}

/* ゴーストボタン：アウトライン白 → 控えめなセカンダリ */
.btn--hero-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  font-weight: 400;
  letter-spacing: 0.08em;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background var(--transition), border-color var(--transition), transform 0.2s;
}
.btn--hero-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

/* ─── スクロールインジケーター ─── */
.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes heroOrbFloatA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate3d(-72px, 68px, 0) scale(1.04); opacity: 0.62; }
}

@keyframes heroOrbFloatB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.24; }
  50% { transform: translate3d(74px, -66px, 0) scale(1.05); opacity: 0.5; }
}

@keyframes heroOrbFloatC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.2; }
  50% { transform: translate3d(62px, -58px, 0) scale(1.05); opacity: 0.44; }
}

@keyframes heroOrbFloatD {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.18; }
  50% { transform: translate3d(-70px, 64px, 0) scale(1.06); opacity: 0.42; }
}

@keyframes heroOrbFloatE {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.16; }
  50% { transform: translate3d(68px, -64px, 0) scale(1.05); opacity: 0.4; }
}

@keyframes heroOrbFloatF {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.15; }
  50% { transform: translate3d(-64px, 60px, 0) scale(1.04); opacity: 0.36; }
}

@keyframes heroOrbFloatG {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.14; }
  50% { transform: translate3d(60px, -56px, 0) scale(1.04); opacity: 0.34; }
}

@keyframes heroCopyDrift {
  0% { transform: translate3d(8%, 0, 0); }
  100% { transform: translate3d(-38%, 0, 0); }
}

@keyframes heroCopyDriftReverse {
  0% { transform: translate3d(-24%, 0, 0); }
  100% { transform: translate3d(14%, 0, 0); }
}

/* ─── スマホ最適化 ─── */
@media (max-width: 768px) {
  /* スマホでも動画背景を表示する（display:none は使わない） */
  /* 動画が重い場合の保険として background はグラデーションを維持 */
  .hero {
    background: linear-gradient(
      160deg,
      #0b1f3a 0%,
      #1a3a5c 45%,
      #1e3d6e 70%,
      #243f72 100%
    );
  }

  /* スマホではオーバーレイを全体均等に（左右差不要） */
  .hero__overlay {
    background: rgba(10, 25, 50, 0.60);
  }

  .hero__overlay-left {
    display: none;
  }

  .home-page .home-main__ambient-copy {
    font-size: clamp(1.55rem, 5.8vw, 2.2rem);
    gap: 1.75rem;
    letter-spacing: 0.11em;
    color: rgba(88, 109, 126, 0.38); /* スマホ：視認できる濃さに調整 */
  }

  .home-page .home-main__ambient-copy--upper {
    top: 8.3%; /* フォールバック：JSで上書き */
  }

  .home-page .home-main__ambient-copy--middle {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
    color: rgba(112, 128, 142, 0.32);
    /* フォールバック：JSで上書き */
  }

  .home-page .home-main__ambient-copy--lower {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
    color: rgba(112, 128, 142, 0.32);
    /* フォールバック：JSで上書き */
  }

  .home-page .home-main__ambient-orb--1 {
    right: -10%;
    top: 12%;
    width: 180px;
    height: 180px;
    opacity: 0.28;
  }

  .home-page .home-main__ambient-orb--2 {
    left: -8%;
    top: 38%;
    width: 140px;
    height: 140px;
    opacity: 0.2;
  }

  .home-page .home-main__ambient-orb--3 {
    left: 72%;
    top: 61%;
    width: 110px;
    height: 110px;
    opacity: 0.16;
  }

  .home-page .home-main__ambient-orb--4 {
    display: block;
    right: 12%;
    top: 72%;
    width: 90px;
    height: 90px;
    opacity: 0.18;
  }

  .home-page .home-main__ambient-orb--5 {
    display: block;
    left: -5%;
    top: 78%;
    width: 100px;
    height: 100px;
    opacity: 0.16;
  }

  .home-page .home-main__ambient-orb--6 {
    display: block;
    left: 38%;
    top: 20%;
    width: 75px;
    height: 75px;
    opacity: 0.14;
  }

  .home-page .home-main__ambient-orb--7 {
    display: block;
    right: 3%;
    top: 85%;
    width: 70px;
    height: 70px;
    opacity: 0.13;
  }

  .hero__content {
    padding-top: clamp(5.5rem, 18vw, 7rem);
    padding-bottom: 4rem;
  }

  .hero__title {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
    text-shadow: 0 2px 12px rgba(10, 25, 50, 0.6);
    margin-bottom: 1.25rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(10, 25, 50, 0.5);
    margin-bottom: 2.2rem;
    max-width: 100%;
  }

  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .btn--hero-primary,
  .btn--hero-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .btn--hero-ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.8);
  }
}

/* ─── タブレット中間調整 ─── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero__overlay {
    background: linear-gradient(
      to right,
      rgba(10, 25, 50, 0.75) 0%,
      rgba(15, 35, 70, 0.60) 50%,
      rgba(20, 45, 85, 0.35) 100%
    );
  }
}

/* ─── prefers-reduced-motion 対応 ─── */
@media (prefers-reduced-motion: reduce) {
  /* 動きを減らす設定の場合は動画を止める（JSでも制御） */
  .hero__video {
    animation-play-state: paused;
  }
  .home-main__ambient-orb,
  .home-main__ambient-copy,
  .hero__scroll-line {
    animation: none;
  }
}

/* ============================================================
   Pain Points / Concern Section
   ============================================================ */

.concerns {
  background-color: var(--color-off-white);
}

.concern-list {
  display: grid;
  /* PC: 3列固定 → 6枚が3×2段で整列 */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.concern-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-white);
  min-height: 88px;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary-pale);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.concern-item:hover {
  border-left-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.concern-item__icon {
  flex-shrink: 0;
  /* アイコンをテキスト1行目に合わせて縦位置を固定 */
  margin-top: 0.15rem;
}

.concern-item__text {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.concerns__message {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

/* ============================================================
   Services
   ============================================================ */

.service-cards {
  display: grid;
  /* PC: 4枚常に横一列 */
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  /* 全カードの高さを揃えるため align-items はデフォルト(stretch)のまま */
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  /* ボタンを常に下端に固定するため flex レイアウト */
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-primary-pale);
}

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

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card__en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--color-primary-light);
  margin-bottom: 0.5rem;
  display: block;
}

.service-card__title {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.service-card__desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  /* 本文エリアを伸ばしてボタンを常に下端に揃える */
  flex: 1;
}

.service-card__link {
  font-size: 0.82rem;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--color-primary-pale);
  padding: 0.35rem 0;
  transition: all var(--transition);
}

.service-card__link:hover {
  border-bottom-color: var(--color-primary);
  gap: 0.6rem;
}

/* ============================================================
   Strengths
   ============================================================ */

.strengths {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.strengths .section-title {
  color: var(--color-white);
}

.strengths .en-label {
  color: rgba(255,255,255,0.5);
}

.strengths .section-lead {
  color: rgba(255,255,255,0.75);
}

.strength-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem;
  margin-top: var(--space-lg);
}

.strength-item {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  background-color: rgba(255,255,255,0.05);
  transition: all var(--transition);
}

.strength-item:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

.strength-item__number {
  font-family: var(--font-en);
  font-size: 5.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.22);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.strength-item__title {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.strength-item__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
}

/* ============================================================
   Works / Portfolio
   ============================================================ */

.works-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.works-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.works-slider::-webkit-scrollbar {
  display: none;
}

.work-card {
  flex: 0 0 clamp(280px, 32vw, 360px);
  scroll-snap-align: start;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

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

.work-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--color-gray-light);
  position: relative;
}

.work-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.5s ease;
}

.work-card__img img.work-card__img--banner {
  object-fit: cover;
  object-position: center center;
  background: none;
  padding: 0;
}

.work-card:hover .work-card__img img {
  transform: scale(1.04);
}

.work-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-primary-pale), var(--color-gray-light));
  color: var(--color-primary-light);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.work-card__placeholder .icon {
  font-size: 2rem;
  opacity: 0.5;
}

.work-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.work-card__cat {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--color-primary-light);
  background-color: var(--color-primary-pale);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.work-card__title {
  font-family: var(--font-ja);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.work-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.72;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1rem;
}

.slider-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.slider-dots {
  display: flex;
  gap: 0.4rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.slider-dot.active {
  background-color: var(--color-primary);
  width: 18px;
  border-radius: 3px;
}

/* ============================================================
   Testimonials / Voice
   ============================================================ */

/* voiceセクションのサブテキストを極端に圧縮しない */
#voice .section-lead {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
  font-size: clamp(0.78rem, 3.5vw, 1.02rem);
}

.voice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}

.voice-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.voice-card__quote {
  font-size: 3.5rem;
  color: var(--color-primary-pale);
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.voice-card__body {
  margin-top: 1.5rem;
}

.voice-card__highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.voice-card__text {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.voice-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* ============================================================
   About / Profile Teaser
   ============================================================ */

.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-teaser__image {
  position: relative;
}

.about-teaser__img-wrapper {
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-primary-pale);
}

.about-teaser__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.about-teaser__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(160deg, var(--color-primary-pale), #e8eef5);
  color: var(--color-primary-light);
}

.about-teaser__img-placeholder .icon {
  font-size: 3.5rem;
  opacity: 0.4;
}

.about-teaser__img-placeholder span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.about-teaser__deco {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 120px;
  height: 120px;
  border: 1.5px solid var(--color-primary-pale);
  border-radius: var(--radius-sm);
  z-index: -1;
}

.about-teaser__content {
  padding-block: 1rem;
}

.about-teaser__name {
  font-family: var(--font-ja);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  letter-spacing: 0.06em;
}

.about-teaser__role {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  font-family: var(--font-en);
}

.about-teaser__message {
  font-family: var(--font-ja);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  padding-left: 1rem;
  border-left: 3px solid var(--color-primary-light);
}

.about-teaser__text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ============================================================
   Flow Steps
   ============================================================ */

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.flow-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}

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

.flow-step__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.flow-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  z-index: 1;
}

.flow-step__line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-primary-light), var(--color-border));
  margin-top: 0.5rem;
  min-height: 40px;
}

.flow-step:last-child .flow-step__line {
  display: none;
}

.flow-step__body {
  padding-top: 0.75rem;
}

.flow-step__title {
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.flow-step__desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.6;
  letter-spacing: 0.02em;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  min-height: 52px;
}

.faq-question .q-mark {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  line-height: 1.4;
}

.faq-question .q-text {
  flex: 1;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all var(--transition);
  font-size: 0.85rem;
}

.faq-item.open .faq-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: rotate(45deg);
}

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

.faq-answer.open {
  max-height: 300px;
}

.faq-answer__inner {
  padding-bottom: 1.5rem;
  padding-left: 1.75rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ============================================================
   CTA Section
   ============================================================ */

.cta-section {
  background: linear-gradient(160deg, var(--color-primary) 0%, #0f2640 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(74,122,181,0.2) 0%, transparent 60%),
                    radial-gradient(circle at 70% 50%, rgba(42,82,152,0.15) 0%, transparent 60%);
}

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

.cta-section .section-title {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.cta-section .section-lead {
  color: rgba(255,255,255,0.8);
  margin-inline: auto;
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 2.0;
  letter-spacing: 0.03em;
}

.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-top: 1.5rem;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background-color: #0d1f33;
  background-image:
    linear-gradient(135deg, rgba(10, 25, 50, 0.72) 0%, rgba(15, 35, 70, 0.54) 46%, rgba(20, 45, 85, 0.34) 76%, rgba(20, 45, 85, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 25, 50, 0.2) 0%, rgba(10, 25, 50, 0.28) 100%),
    url("../images/footer-bg.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: rgba(255,255,255,0.7);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo__ja {
  font-family: var(--font-ja);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-logo__en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.footer-contact-link:hover {
  color: var(--color-white);
}

.footer-nav__title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  font-family: var(--font-en);
  margin-bottom: 1rem;
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav__link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
}

.footer-nav__link::before {
  content: '—';
  font-size: 0.65rem;
  opacity: 0.4;
}

.footer-nav__link:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
}

.footer-policy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-policy:hover {
  color: var(--color-white);
}

/* ============================================================
   Page Header (Inner pages)
   ============================================================ */

.page-header {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  padding-top: calc(70px + 5rem);
  padding-bottom: 5rem;
  min-height: 420px;
  height: 420px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.page-header > .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-header::after {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -30%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

.page-header::before {
  content: '';
  position: absolute;
  right: 5%;
  bottom: -10%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
}

.page-header__en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
  display: block;
}

.page-header__title {
  font-family: var(--font-ja);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.06em;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.page-header__desc {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: rgba(255,255,255,0.75);
  line-height: 2.0;
  letter-spacing: 0.03em;
  max-width: 560px;
  font-weight: 300;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.breadcrumb__sep {
  opacity: 0.35;
  font-size: 0.6rem;
}

/* ============================================================
   Scroll Animations
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Stagger delay */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================================
   Utilities
   ============================================================ */

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Tags / Badges */
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  font-family: var(--font-sans);
}

.tag--primary {
  background-color: var(--color-primary-pale);
  color: var(--color-primary);
}

/* ============================================================
   Responsive: Tablet
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --space-xl: 5rem;
    --space-2xl: 6rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  /* 悩みカード：タブレットは2列 */
  .concern-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* サービスカード：タブレットは2列×2段 */
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }
}

/* ============================================================
   Responsive: Mobile
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  .site-logo__top {
    gap: 0.34rem;
  }

  .site-logo__mark {
    width: 1.34rem;
    height: 1.34rem;
  }

  .site-logo__ja {
    font-size: 0.94rem;
  }

  .site-logo__en {
    font-size: 0.58rem;
    padding-left: calc(1.34rem + 0.58rem);
  }

  .hamburger {
    display: flex;
  }

  .site-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    top: 70px;
    bottom: auto;
    height: calc(100dvh - 70px);
    padding: 1.25rem 1.5rem max(2rem, env(safe-area-inset-bottom));
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .mobile-nav__list {
    width: min(100%, 360px);
    margin-inline: auto;
    padding-top: 0.25rem;
    gap: 1.35rem;
  }

  .about-teaser {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-teaser__image {
    max-width: 340px;
    margin-inline: auto;
  }

  .about-teaser__deco {
    display: none;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 1.1rem;
    margin-bottom: 1.75rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding-top: 2.75rem;
    padding-bottom: 1.5rem;
    background-size: auto 150%;
    background-position: center 58%;
  }

  .footer-desc {
    margin-bottom: 1.15rem;
  }

  .footer-nav__title {
    margin-bottom: 0.55rem;
  }

  .footer-nav__list {
    gap: 0.2rem;
  }

  .footer-nav__link {
    min-height: 34px;
    font-size: 0.78rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.45rem;
    padding-top: 1rem;
  }

  .footer-copy,
  .footer-policy {
    font-size: 0.72rem;
  }

  .flow-step {
    grid-template-columns: 56px 1fr;
    gap: 1rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;   /* ボタンを中央揃え */
    gap: 0.9rem;
    margin-top: 1rem;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .mobile-nav__cta {
    margin-top: 2rem;
    margin-inline: auto;
  }

  .mobile-nav__cta .btn {
    width: 100%;
  }

  .page-header {
    padding-top: calc(70px + 3.75rem);
    padding-bottom: 3.25rem;
    min-height: 320px;
    height: 320px;
    display: flex;
    align-items: flex-start;
  }

  .page-header > .container {
    width: 100%;
    justify-content: flex-start;
    padding-inline: clamp(1.35rem, 5.8vw, 1.75rem);
  }

  .page-header__en {
    margin-bottom: 0.85rem;
  }

  .page-header__title {
    max-width: 13.5em;
    margin-bottom: 0.9rem;
  }

  .page-header__desc {
    max-width: 31rem;
    margin-inline: 0;
  }

  .page-header .breadcrumb {
    margin-top: 1.6rem;
  }

  .page-header .breadcrumb {
    display: none;
  }

  body.page-about .page-header,
  body.page-works .page-header,
  body.page-flow .page-header,
  body.page-faq .page-header,
  body.page-contact .page-header,
  body.page-service .page-header {
    padding-top: calc(70px + 3.15rem);
    padding-bottom: 2.85rem;
  }

  /* スマホでは SCROLL インジケーターを非表示 */
  .hero__scroll {
    display: none;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-group .btn {
    width: 100%;
    max-width: 320px;
  }

  .cta-section .btn-group {
    margin-top: 2rem !important;
  }

  .cta-section .section-lead {
    margin-bottom: 2rem;
  }

  /* 悩みカード：スマホ（〜768px）は2列 */
  .concern-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .concern-item {
    padding: 1.1rem 1.15rem;
    min-height: 80px;
    gap: 0.75rem;
  }

  .concern-item__text {
    font-size: 0.88rem;
  }

  /* サービスカード：スマホは1列 */
  .service-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #concerns .section-header,
  #services .section-header,
  #works .section-header,
  #voice .section-header,
  #flow-teaser .section-header {
    text-align: left;
    margin-bottom: 2.25rem;
  }

  #concerns .section-header .section-lead,
  #services .section-header .section-lead,
  #strengths .section-lead,
  #works .section-header .section-lead,
  #voice .section-header .section-lead,
  #flow-teaser .section-header .section-lead {
    margin-inline: 0;
    max-width: 31rem;
  }

  #concerns .en-label,
  #services .en-label,
  #works .en-label,
  #voice .en-label,
  #flow-teaser .en-label,
  #about-teaser .en-label {
    margin-bottom: 0.7rem;
  }

  #concerns .section-title,
  #services .section-title,
  #strengths .section-title,
  #works .section-title,
  #voice .section-title,
  #flow-teaser .section-title,
  #about-teaser .section-title,
  #cta .section-title {
    max-width: 14em;
  }

  #concerns .section-title {
    max-width: none;
    font-size: clamp(1.42rem, 5.8vw, 1.78rem);
    letter-spacing: 0.02em;
  }

  #services .section-title {
    max-width: 16.25em;
    font-size: clamp(1.34rem, 5.05vw, 1.68rem);
    letter-spacing: 0.015em;
  }

  #strengths .section-title {
    max-width: 15em;
    font-size: clamp(1.34rem, 5.15vw, 1.68rem);
    letter-spacing: 0.02em;
  }

  #works .section-title,
  #voice .section-title,
  #flow-teaser .section-title {
    max-width: none;
    font-size: clamp(1.42rem, 5.4vw, 1.74rem);
    letter-spacing: 0.025em;
  }

  #about-teaser .section-title {
    max-width: none;
    font-size: clamp(1.2rem, 4.25vw, 1.42rem);
    letter-spacing: 0.005em;
    white-space: nowrap;
    margin-right: -0.02em;
  }

  #about-teaser .about-title-break {
    display: none;
  }

  #cta .section-title {
    max-width: none;
    font-size: clamp(1.34rem, 5.1vw, 1.64rem);
    letter-spacing: 0.02em;
  }

  #cta .cta-title-break {
    display: none;
  }

  #about-teaser .about-teaser__content {
    padding-block: 0;
  }

  #about-teaser .about-teaser__text {
    max-width: 32rem;
  }

  #flow-teaser .flow-steps {
    max-width: none !important;
    margin-inline: 0 !important;
  }

  #cta {
    text-align: left;
  }

  #cta .section-lead {
    margin-inline: 0;
    max-width: 30rem;
  }

  #cta .btn-group {
    justify-content: flex-start !important;
    align-items: flex-start;
  }

  .work-card__body {
    padding: 1.15rem 1.1rem 1.25rem;
  }

  .faq-question {
    padding: 1.15rem 0;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }

  .section { padding-block: 3.5rem; }

  .work-card {
    flex: 0 0 85vw;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .slider-controls {
    gap: 0.5rem;
  }

  /* 悩みカード：スマホ小画面は1列 */
  .concern-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Mobile: br 制御ユーティリティ
   ============================================================ */

/* PC 専用改行：モバイルでは非表示 */
.pc-br { display: inline; }
@media (max-width: 768px) {
  .pc-br { display: none; }
}

/* SP 専用改行：PC では非表示 */
.sp-br { display: none; }
@media (max-width: 768px) {
  .sp-br { display: inline; }
}

/* SP 専用の固定改行 */
.sp-break { display: none; }
@media (max-width: 768px) {
  .sp-break { display: block; }
}

/* モバイルで非表示にしたい語句 */
.sp-hide { display: inline; }
@media (max-width: 768px) {
  .sp-hide { display: none; }
}

/* モバイルで section-lead の <br> を無効化（クラス付与なし箇所のフォールバック） */
@media (max-width: 768px) {
  .section-lead br,
  .page-header__desc br,
  .hero__subtitle br,
  .footer-desc br,
  .service-card__desc br,
  .work-card__desc br {
    display: none;
  }
  .section-lead br.sp-break,
  .page-header__desc br.sp-break,
  .hero__subtitle br.sp-break,
  .footer-desc br.sp-break,
  .service-card__desc br.sp-break,
  .work-card__desc br.sp-break {
    display: block;
  }
  .section-lead,
  .page-header__desc {
    text-wrap: pretty;
  }
  /* section-title の <br> はそのまま（短い見出し分割は維持） */
}

/* 悩みカードの改行：1列レイアウト時は不要 */
@media (max-width: 480px) {
  .concern-item__text br {
    display: none;
  }
}

/* ============================================================
   SVG Icon – 共通スタイル
   ============================================================ */

/* 悩みカード・サービスカードのアイコンラッパー */
.concern-item__icon,
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary-light);
}

.concern-item__icon svg,
.service-card__icon svg {
  display: block;
}

/* 悩みカードアイコンサイズ */
.concern-item__icon svg {
  width: 28px;
  height: 28px;
}

/* サービスカードアイコンサイズ */
.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

/* 実績カードのプレースホルダーSVG */
.placeholder-svg {
  width: 36px;
  height: 36px;
  opacity: 0.35;
  color: var(--color-primary-light);
}

/* フロー・サイドバーのノートアイコン */
.flow-step-large__note {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.flow-step-large__note svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--color-primary-light);
}

/* period-badge 内SVG */
.period-badge svg {
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
  color: var(--color-primary-light);
}

/* サイドバーカードタイトル内SVG */
.sidebar-card__title svg,
.contact-info-card__title svg {
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
  color: var(--color-primary-light);
  margin-right: 0.35rem;
}

/* サービスナビ内SVG */
.service-nav-link svg {
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
}

/* 汎用インラインSVGアイコン */
.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-inline svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-primary-light);
}
