/* ============================================================
   UNISON WORK — style.css
   Design: Refined Navy × Teal、洗練されたミニマルモダン
   ============================================================ */

/* ===== CSS変数 / デザイントークン ===== */
:root {
  /* カラー */
  --color-navy:        #1a2e4a;
  --color-navy-dark:   #0f1e30;
  --color-navy-mid:    #223558;
  --color-teal:        #1D9E75;
  --color-teal-light:  #25c490;
  --color-teal-bg:     #e8f7f1;
  --color-red:         #E24B4A;
  --color-line:        #06C755;
  --color-white:       #ffffff;
  --color-off-white:   #f7f8fc;
  --color-bg:          #f4f5f9;
  --color-text:        #1a1a2e;
  --color-text-mid:    #4a5568;
  --color-text-light:  #8492a6;
  --color-border:      #e2e8f0;
  --color-gold:        #c9a227;

  /* タイポグラフィ — ゴシック統一 */
  --font-sans:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-serif:   'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-display: 'Montserrat', 'Noto Sans JP', sans-serif;

  /* スペーシング */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  14px;
  --space-4:  20px;
  --space-6:  32px;
  --space-7:  40px;
  --space-8:  48px;
  --space-10: 56px;
  --space-12: 64px;
  --space-16: 88px;
  --space-20: 104px;
  --space-24: 120px;
  --space-32: 160px;

  /* 角丸 */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* シャドウ */
  --shadow-sm:  0 1px 3px rgba(26,46,74,.08);
  --shadow-md:  0 4px 16px rgba(26,46,74,.10);
  --shadow-lg:  0 12px 40px rgba(26,46,74,.14);
  --shadow-xl:  0 24px 64px rgba(26,46,74,.18);

  /* トランジション */
  --ease-out: cubic-bezier(.22,.68,0,1.2);
  --ease-smooth: cubic-bezier(.4,0,.2,1);

  /* コンテナ幅 */
  --container-max: 1120px;
  --container-pad: clamp(24px, 5vw, 72px);

  /* ヘッダー高さ */
  --header-h: 64px;
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
details { list-style: none; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ===== ユーティリティ ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.pc-only { display: inline; }
@media (max-width: 768px) { .pc-only { display: none; } }

/* ===== スクロール出現アニメーション ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease-smooth), transform .65s var(--ease-smooth);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== セクション共通 ===== */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--color-teal);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.section-label--light { color: rgba(255,255,255,.55); }
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}
.section-title--light { color: var(--color-white); }
.section-sub {
  font-size: 15px;
  color: var(--color-text-mid);
  line-height: 2.0;
}
.section-sub--light { color: rgba(255,255,255,.65); }
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.text-accent { color: var(--color-red); }
.text-highlight {
  position: relative;
  display: inline-block;
  color: var(--color-teal);
}
.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 3px;
  background: var(--color-teal);
  opacity: .3;
  border-radius: 2px;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: all .25s var(--ease-smooth);
  white-space: nowrap;
}
.btn--line {
  background: var(--color-line);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(6,199,85,.28);
}
.btn--line:hover {
  background: #05b44e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,199,85,.36);
}
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn--outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,.08);
}
.btn--hero {
  padding: 14px 28px;
  font-size: 15px;
  box-shadow: 0 6px 24px rgba(6,199,85,.32);
}
.btn--hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(6,199,85,.44);
}
.btn--line-large {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 18px 40px;
  border-radius: var(--radius-full);
  background: var(--color-line);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 8px 32px rgba(6,199,85,.38);
  transition: all .25s var(--ease-smooth);
}
.btn--line-large:hover {
  background: #05b44e;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(6,199,85,.5);
}
.btn--sm { padding: 8px 18px; font-size: 12px; }
.btn--full { display: flex; justify-content: center; width: 100%; }
.btn__icon { display: flex; align-items: center; flex-shrink: 0; }

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth);
}
.header.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
}
.header.is-scrolled .header__nav-link { color: var(--color-navy); }
.header.is-scrolled .header__hamburger-line { background: var(--color-navy); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: 0 var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;

}
.header__logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.header__logo-img {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter .3s var(--ease-smooth);
}
.header.is-scrolled .header__logo-img {
  /* スクロール後（白背景）では元の色 */
  filter: none;
}
.header__nav { display: flex; }
.header__nav-list { display: flex; gap: var(--space-6); }
.header__nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s;
  position: relative;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--color-teal);
  border-radius: 1px;
  transition: width .25s var(--ease-smooth);
}
.header__nav-link:hover { color: var(--color-teal); }
.header__nav-link:hover::after,
.header__nav-link.is-active::after { width: 100%; }
.header__cta { flex-shrink: 0; }
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  margin-left: var(--space-4);
}
.header__hamburger-line {
  width: 22px; height: 2px;
  background: white;
  border-radius: 1px;
  transition: all .3s var(--ease-smooth);
}
.header__hamburger.is-open .header__hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.is-open .header__hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__hamburger.is-open .header__hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニュー（header外・独立したstacking context） */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #0f1e30;
  padding-top: calc(var(--header-h) + 8px);
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 9000;
  /* 非表示状態 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu__list {
  margin-top: 16px;
  margin-bottom: 40px;
}
.mobile-menu__link {
  display: block;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color .2s, padding-left .2s;
}
.mobile-menu__link:active { color: var(--color-teal); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/haikei_03.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
/* テキスト可読性のための左→右グラデーションオーバーレイ */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 16, 40, 0.88) 0%,
    rgba(8, 16, 40, 0.72) 40%,
    rgba(8, 16, 40, 0.30) 70%,
    rgba(8, 16, 40, 0.10) 100%
  );
}

/* パーティクル */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* テキストエリア：コンテナ幅・左寄せ */
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100svh;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: calc(var(--header-h) + var(--space-12));
  padding-bottom: var(--space-12);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* 左寄せコンテンツ */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 600px;
}
.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: rgba(255,255,255,.6);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  letter-spacing: -.01em;
}
.hero__title-line { display: block; }
.hero__title-line--accent { color: var(--color-red); }
.hero__kinetic {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: .06em;
  transition: letter-spacing .6s var(--ease-out);
}
.hero__subtitle {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 400;
  color: rgba(255,255,255,.7);
  line-height: 1.9;
  margin-bottom: var(--space-8);
  max-width: 480px;
}
.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.hero__badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero__badge {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* スクロールヒント */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,.3);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .14em;
  animation: scrollBounce 2.5s ease-in-out infinite;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.25), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .3; }
  50% { transform: translateX(-50%) translateY(6px); opacity: .55; }
}

/* パーティクル */
.particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(29,158,117,.5);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: .5; }
  100% { transform: translateY(-100vh) translateX(var(--drift)); opacity: 0; }
}

/* ===== ヒーロー レスポンシブ ===== */
@media (max-width: 1024px) {
  .hero__content { max-width: 520px; }
}
@media (max-width: 768px) {
  .hero { min-height: 100svh; }
  .hero__inner {
    padding-top: calc(var(--header-h) + var(--space-8));
    padding-bottom: var(--space-10);
  }
  .hero__content { max-width: 100%; }
  .hero__scroll-hint { display: none; }
}

/* ===== コンセプト / 3つの約束 ===== */
.concept {
  padding: var(--space-32) 0;
  background: var(--color-white);
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.promise-card {
  position: relative;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
  overflow: hidden;
}
.promise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-teal-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-smooth);
}
.promise-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.promise-card:hover::before { transform: scaleX(1); }
.promise-card__num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  color: rgba(26,46,74,.06);
  line-height: 1;
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  user-select: none;
}
.promise-card__icon {
  width: 52px; height: 52px;
  background: var(--color-teal-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  margin-bottom: var(--space-4);
}
.promise-card__title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}
.promise-card__body {
  font-size: 14.5px;
  color: var(--color-text-mid);
  line-height: 1.95;
}

/* ===== 代表プロフィール ===== */
.representative {
  padding: var(--space-32) 0;
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}
.representative::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,.12) 0%, transparent 70%);
  pointer-events: none;
}
.rep-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-16);
  align-items: center;
}
.rep__img-wrap {
  position: relative;
}
/* 写真フレーム */
.rep__img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 320px;
}
.rep__img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius-xl);
}
/* 旧placeholderクラスも念のため残す */
.rep__img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.rep__img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  position: absolute;
  inset: 0;
  display: block;
}
.rep__badge-wrap {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: row;
  gap: var(--space-2);
  z-index: 2;
}
.rep__badge {
  background: var(--color-teal);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}
.rep__content .section-title { color: var(--color-white); }
.rep__body {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 2.0;
  margin-bottom: var(--space-6);
}
.rep__stats {
  display: flex;
  gap: var(--space-8);
  margin: var(--space-10) 0;
  padding: var(--space-8) var(--space-10);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.08);
}
.rep__stat { text-align: center; }
.rep__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--color-teal);
  line-height: 1;
  margin-bottom: 4px;
}
.rep__stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}
.rep__stat-label small { font-size: 10px; color: rgba(255,255,255,.35); }
.rep__profile {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,.1);
}
.rep__name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}
.rep__role {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 3px;
}

/* ===== サービス（Bento Grid） ===== */
.services {
  padding: var(--space-32) 0;
  background: var(--color-bg);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-4);
}
.bento-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bento-card--large {
  grid-column: 1 / 3;
  background: var(--color-navy);
  border-color: transparent;
  padding: var(--space-10);
}
.bento-card--large .bento-card__icon { background: rgba(29,158,117,.15); color: var(--color-teal); }
.bento-card--large .bento-card__title { color: white; font-size: 20px; }
.bento-card--large .bento-card__list li { color: rgba(255,255,255,.7); }
.bento-card--large .bento-card__list li::before { background: var(--color-teal); }
.bento-card__icon {
  width: 52px; height: 52px;
  background: var(--color-teal-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  margin-bottom: var(--space-6);
}
.bento-card--branding .bento-card__icon { background: #fce8e8; color: var(--color-red); }
.bento-card--aidx .bento-card__icon { background: #eee8fe; color: #6d4cca; }
.bento-card--goods .bento-card__icon { background: #fef3e2; color: #c07a0f; }
.bento-card--consult .bento-card__icon { background: #e8f7f1; color: var(--color-teal); }
.bento-card--other .bento-card__icon { background: #f0f1f5; color: #6b7280; }
.bento-card__title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}
.bento-card__list { display: flex; flex-direction: column; gap: 10px; }
.bento-card__list li {
  font-size: 13.5px;
  color: var(--color-text-mid);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.bento-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-teal);
}
.bento-card__tag {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-teal);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: .04em;
}

/* ===== 実績 ===== */
.works {
  padding: var(--space-32) 0;
  background: var(--color-white);
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.work-card__img {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--color-navy);
  overflow: hidden;
}
.work-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-smooth);
}
.work-card:hover .work-card__img img { transform: scale(1.05); }
.work-card__placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: rgba(255,255,255,.4);
  font-size: 12px;
  text-align: center;
  padding: var(--space-4);
}
.work-card__tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-teal);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.work-card__body { padding: var(--space-7) var(--space-7) var(--space-8); }
.work-card__title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}
.work-card__desc { font-size: 13px; color: var(--color-text-mid); line-height: 1.8; margin-bottom: var(--space-3); }
.work-card__note {
  font-size: 11px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  padding: 6px 10px;
  background: var(--color-bg);
  border-left: 2px solid var(--color-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.work-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--space-2); }
.work-card__tags span {
  font-size: 11px;
  color: var(--color-teal);
  background: var(--color-teal-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ===== フロー ===== */
.flow {
  padding: var(--space-32) 0;
  position: relative;
  overflow: hidden;
}
.flow__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/haikei_07.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.flow__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 40, 0.78);
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
  align-items: stretch;
}

/* 番号間をつなぐ細いライン（番号の中心を通す） */
.flow-steps::before {
  content: '';
  position: absolute;
  top: 20px; /* 番号の中心 */
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.18) 15%,
    rgba(255,255,255,.18) 85%,
    transparent 100%
  );
  z-index: 0;
}

.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 番号：シンプルな小さい数字テキスト＋下の細いライン */
.flow-step__num {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(255,255,255,.35);
  margin-bottom: var(--space-6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy-dark);
  border: none;
  border-radius: 0;
}

/* 番号の下の短いアクセントライン */
.flow-step__num::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--color-teal);
  border-radius: 1px;
  opacity: .7;
}

.flow-step__body {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: 100%;
  flex: 1; /* 高さを揃える */
  backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s, transform .3s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flow-step:hover .flow-step__body {
  background: rgba(255,255,255,.09);
  border-color: rgba(29,158,117,.25);
  transform: translateY(-4px);
}
.flow-step__icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.flow-step__title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}
.flow-step__desc {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.9;
  flex: 1;
}

/* ===== お客様の声 ===== */
.testimonials {
  padding: var(--space-32) 0;
  background: var(--color-off-white);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  position: relative;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 64px;
  color: var(--color-teal);
  opacity: .15;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card__stars {
  color: var(--color-gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: var(--space-4);
}
.testimonial-card__text {
  font-size: 14px;
  color: var(--color-text-mid);
  line-height: 1.85;
  margin-bottom: var(--space-5);
  padding-top: var(--space-3);
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-style: normal;
}
.testimonial-card__author span { font-size: 13px; font-weight: 700; color: var(--color-navy); }
.testimonial-card__industry { font-size: 12px; color: var(--color-text-light); }

/* ===== FAQ ===== */
.faq {
  padding: var(--space-32) 0;
  background: var(--color-white);
}
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.faq-item[open] { border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(29,158,117,.08); }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-navy);
  transition: background .2s;
  user-select: none;
}
.faq-item__q:hover { background: var(--color-off-white); }
.faq-item__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  flex-shrink: 0;
  position: relative;
  transition: border-color .25s, background .25s, transform .3s var(--ease-smooth);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-teal);
  border-radius: 1px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item__icon::before { width: 10px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 10px; transition: transform .3s var(--ease-smooth), opacity .3s; }
.faq-item[open] .faq-item__icon { background: var(--color-teal); border-color: var(--color-teal); transform: rotate(45deg); }
.faq-item[open] .faq-item__icon::before,
.faq-item[open] .faq-item__icon::after { background: white; }
.faq-item__a {
  padding: 0 var(--space-8) var(--space-7);
  animation: faqOpen .3s var(--ease-smooth);
}
.faq-item__a p { font-size: 14px; color: var(--color-text-mid); line-height: 1.95; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== コンタクト CTA ===== */
.contact {
  padding: var(--space-32) 0;
  position: relative;
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/haikei_10.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.contact__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 40, 0.72);
}
.contact__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact__wave { width: 100%; margin-bottom: var(--space-6); opacity: .5; }
.contact__title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: var(--space-4);
}
.contact__sub {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.85;
  margin-bottom: var(--space-8);
}
.contact__checks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0 auto var(--space-10);
  width: fit-content;
}
.contact__checks li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 14px;
  color: rgba(255,255,255,.8);
}
.contact__note {
  margin-top: var(--space-5);
  font-size: 12px;
  color: rgba(255,255,255,.35);
  letter-spacing: .04em;
}

/* ===== フッター ===== */
.footer {
  background: var(--color-navy-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: var(--space-16) 0 var(--space-8);
}
.footer__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-12);
}
.footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-3);
}
.footer__logo-img {
  height: 19px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer__tagline { font-size: 11px; color: rgba(255,255,255,.4); margin-bottom: var(--space-4); line-height: 1.6; }
.footer__line-hint { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: var(--space-4); line-height: 1.6; }
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.footer__nav-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--space-4);
}
.footer__nav li { margin-bottom: var(--space-3); }
.footer__nav a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer__nav a:hover { color: var(--color-teal); }
.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.footer__copy { font-size: 11px; color: rgba(255,255,255,.3); }

/* ===== フローティングLINEボタン ===== */
.fab-line {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-line);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 24px rgba(6,199,85,.4);
  font-size: 13px;
  font-weight: 700;
  transition: all .3s var(--ease-smooth);
  transform: translateY(0);
}
.fab-line:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 32px rgba(6,199,85,.55);
}
.fab-line__text { white-space: nowrap; }

/* ===== ページトップボタン ===== */
.page-top {
  position: fixed;
  bottom: calc(var(--space-6) + 52px + var(--space-3));
  right: var(--space-6);
  z-index: 100;
  width: 44px; height: 44px;
  background: rgba(26,46,74,.85);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all .3s var(--ease-smooth);
  backdrop-filter: blur(8px);
}
.page-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.page-top:hover { background: var(--color-navy); transform: translateY(-2px); }

/* ===== スムーズスクロール：バー表示 ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-line));
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .rep-inner { grid-template-columns: 280px 1fr; gap: var(--space-12); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--large { grid-column: 1 / 3; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-steps::before { display: none; }
  .flow-step__body { flex: none; } /* 縦積み時は高さ揃え不要 */
}
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
    --space-32: 96px;
    --space-24: 80px;
    --space-20: 64px;
    --space-16: 56px;
  }
  .header__logo-img { height: 26px; }
  .header__nav,
  .header__cta { display: none; }
  .header__hamburger { display: flex; }
  .header {
    background: rgba(10, 20, 50, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .header.is-scrolled {
    background: rgba(10, 20, 50, 0.95);
    box-shadow: none;
  }
  .header__logo-img { filter: brightness(0) invert(1); }
  .header__hamburger-line { background: white; }
  .promise-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .rep-inner { grid-template-columns: 1fr; }
  .rep__img-wrap { max-width: 100%; margin: 0 auto 32px; }
  .rep__img-frame { aspect-ratio: 4 / 3; min-height: auto; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--large { grid-column: 1; }
  .works-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .fab-line__text { display: none; }
  .fab-line { padding: 14px; border-radius: 50%; width: 52px; height: 52px; justify-content: center; }
  .page-top { bottom: calc(var(--space-6) + 52px + var(--space-3)); }
  .hero__scroll-hint { display: none; }
  .bento-card { padding: var(--space-7); }
  .promise-card { padding: var(--space-8) var(--space-7); }
  .flow-step__body { padding: var(--space-7); }
  .testimonial-card { padding: var(--space-8) var(--space-7); }
  .faq-item__q { padding: var(--space-5) var(--space-6); }
  .faq-item__a { padding: 0 var(--space-6) var(--space-6); }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn--hero { width: 100%; justify-content: center; }
  .btn--outline { width: 100%; justify-content: center; }
  .flow-step { align-items: flex-start; text-align: left; }
  .contact__checks { align-items: flex-start; }
  .rep__stats { flex-wrap: wrap; gap: var(--space-4); }
}

/* ===== アクセシビリティ：フォーカス ===== */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ===== モーション軽減 ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__kinetic { transition: none; }
  .particle { display: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== 印刷 ===== */
@media print {
  .header, .fab-line, .page-top, .progress-bar, .hero__particles { display: none !important; }
  .hero { min-height: auto; padding: 40px 0; }
  * { color: black !important; background: white !important; }
}
