﻿@charset "UTF-8";

/* =========================================================
   D-Group Portal / style.css
   Tone: 白基調 / アクセント＝さくら会コーポレートカラーのピンク×グリーン
   （パステルで淡い色調。ピンクを主役、グリーンを差し色として使用）
   ========================================================= */

:root {
  /* Base：ほんのりピンク〜グリーンに寄せた白 */
  --ground: #FDF7F8;
  --ground-2: #F3F7EC;
  --surface: #FFFFFF;

  /* Ink */
  --ink: #17293D;
  --ink-soft: #4C6076;
  --ink-faint: #8698AB;

  /* Line */
  --line: rgba(23, 41, 61, 0.10);
  --line-soft: rgba(23, 41, 61, 0.06);

  /* Accent: ピンク(#f8cad3系)を主役、グリーン(#d2e5ac系)を差し色に */
  --pink: #F8CAD3;
  --pink-deep: #B34A66;
  --pink-pale: #FCE7EC;
  --sage: #D2E5AC;
  --sage-deep: #5C7A32;
  --sage-pale: #EEF4DE;
  --blue-pale: #DCE9F7;

  /* Effects */
  --shadow-sm: 0 6px 20px -12px rgba(23, 41, 61, 0.30);
  --shadow: 0 16px 44px -22px rgba(23, 41, 61, 0.28);
  --shadow-lg: 0 28px 64px -26px rgba(23, 41, 61, 0.34);

  /* Type: 見出し（雑誌の特集見出しの声）は明朝、英字ラベルは個性のあるJosefin Sans、UIまわりはゴシック */
  --font-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-num: "Josefin Sans", "Zen Kaku Gothic New", sans-serif;
  --font-script: "Yellowtail", cursive;

  /* Layout */
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 20px;
  --header-h: 64px;
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

a:focus-visible,
label:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.pc-br { display: none; }

/* ---------- Eyebrow / Section head ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--pink);
}

.sec-head { margin-bottom: clamp(34px, 6vw, 56px); }

.sec-head h2 {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.2vw, 2.1rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.sec-head .sub {
  margin-top: 16px;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.sec-head.center { text-align: center; }
.sec-head.center .sub { margin-inline: auto; }
.sec-head.center .eyebrow::before { display: none; }

/* Mission / Vision：企業理念そのものなので、通常の見出しより一段大きく・印象的に扱う。
   写真＋テキストの2カラム（ミッションとビジョンは左右を鏡合わせにしてリズムを作る） */
/* flex + orderで並び順を制御：スマホは常にテキスト→写真、PCのみビジョンを反転 */
.mv-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 5vw, 40px) 0;
  border-bottom: 1px solid var(--line-soft);
}

.mv-block .mv-text { order: 1; }
.mv-block .mv-photo { order: 2; }

.mv-block--vision { border-bottom: none; }

.mv-block h2 {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.2vw, 2.1rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.mv-block .sub {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.95;
}

/* TODO: 実際の写真が届いたら差し替える */
.mv-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px 40px 6px 40px;
  overflow: hidden;
  background: var(--pink-pale);
}

.mv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(1.04);
}

/* ヒーローの写真と同じ色調に統一する */
.mv-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, var(--pink-deep) 0%, var(--sage-deep) 100%);
  opacity: 0.4;
  mix-blend-mode: color;
  pointer-events: none;
}

.vision .sec-head { margin-top: clamp(40px, 6vw, 64px); }

@media (min-width: 768px) {
  .mv-block { flex-direction: row; align-items: center; gap: 48px; }
  .mv-block .mv-text,
  .mv-block .mv-photo { flex: 1 1 50%; }

  /* ビジョンだけ左右を反転（ミッションと鏡合わせに） */
  .mv-block--vision .mv-photo { order: 1; }
  .mv-block--vision .mv-text { order: 2; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 26px -14px rgba(248, 202, 211, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #F0A9BC;
  box-shadow: 0 18px 34px -14px rgba(248, 202, 211, 0.9);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-sm { padding: 9px 18px; font-size: 0.84rem; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--sage);
  color: var(--sage-deep);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 34px;
  height: 34px;
}

.logo-txt { display: flex; flex-direction: column; line-height: 1; }

.logo-txt .en {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
}

.logo-txt .en b { color: var(--pink-deep); }

.logo-txt .jp {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

/* --- Hamburger (CSS only) --- */
.nav-btn {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.nav-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle:checked + .nav-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-btn span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Nav (mobile: drawer) --- */
.gnav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 0 var(--pad);
  max-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: max-height 0.35s ease, padding 0.35s ease, border-color 0.3s;
}

.nav-toggle:checked ~ .gnav {
  max-height: 420px;
  padding: 12px var(--pad) 24px;
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow);
}

.gnav ul { display: grid; }

.gnav ul a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.2s;
}

.gnav ul a:hover { color: var(--pink-deep); }

.gnav-cta { margin-top: 16px; justify-content: center; }

/* =========================================================
   DECORATION (幾何学図形)
   ========================================================= */
.deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco .circle,
.deco .line { position: absolute; display: block; }

.deco .circle { border-radius: 50%; }

.deco .line {
  width: 2px;
  border-radius: 2px;
  transform: rotate(38deg);
  transform-origin: center;
}

/* Section decorations: 各セクション1〜2点に整理 */
.vision .c5 {
  width: clamp(160px, 32vw, 280px);
  aspect-ratio: 1;
  top: -12%;
  left: -12%;
  background: radial-gradient(circle at 60% 40%, var(--pink-pale), transparent 70%);
}

.vision .l4 { height: clamp(120px, 24vw, 210px); top: 14%; right: 8%; background: var(--sage); opacity: 0.55; }

.companies .c6 {
  width: clamp(180px, 38vw, 340px);
  aspect-ratio: 1;
  top: 4%;
  right: -14%;
  background: radial-gradient(circle at 40% 40%, var(--pink-pale), transparent 72%);
}

.companies .c7 {
  width: clamp(120px, 26vw, 220px);
  aspect-ratio: 1;
  bottom: 2%;
  left: -10%;
  background: radial-gradient(circle at 50% 50%, var(--sage-pale), transparent 72%);
}

.numbers .c8 {
  width: clamp(200px, 44vw, 380px);
  aspect-ratio: 1;
  top: -22%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(248, 202, 211, 0.4), transparent 70%);
}

.contact-box .c9 {
  width: clamp(140px, 30vw, 240px);
  aspect-ratio: 1;
  top: -30%;
  right: -8%;
  background: radial-gradient(circle at 45% 45%, var(--sage-pale), transparent 70%);
}

.contact-box .c10 {
  width: clamp(80px, 18vw, 140px);
  aspect-ratio: 1;
  bottom: -18%;
  left: -6%;
  background: radial-gradient(circle at 50% 50%, rgba(248, 202, 211, 0.5), transparent 70%);
}

/* =========================================================
   HERO
   ========================================================= */
/* KVは「浮かせたカード」ではなく、スギ薬局のように画面幅いっぱいに塗る2分割構成 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-visual {
  position: relative;
  overflow: hidden;
}

/* aspect-ratioはスマホの縦積みレイアウト専用。PC版(960px+)はinset:0で全面表示するため付けない */
@media (max-width: 959px) {
  .hero-visual { aspect-ratio: 4 / 3; }
}

.hero-copy-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(56px, 11vw, 96px) var(--pad);
  background: var(--ground);
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-inline: auto;
}

.hero-mark {
  display: inline-block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--pink-deep);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.3s ease;
  /* 画像が読み込まれる前/失敗時のフォールバック背景 */
  background: var(--pink-pale);
}

.slide.is-active { opacity: 1; }

/* 3枚の写真の色味・彩度がそれぞれ違うので、彩度を揃えつつブランドカラーのオーバーレイで統一する */
.slide img { filter: saturate(0.8) brightness(1.04); }

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(150deg, var(--pink-deep) 0%, var(--sage-deep) 100%);
  opacity: 0.45;
  mix-blend-mode: color;
  pointer-events: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 枠の縦横比によって左右/上下が大きくトリミングされても、各写真の主役が切れないように基準位置を指定 */
.slide[data-tone="a"] img { object-position: 78% 40%; } /* 面談シーン：人物は右寄り */
.slide[data-tone="b"] img { object-position: 68% center; } /* PC作業：人物は右寄り */
.slide[data-tone="c"] img { object-position: 38% center; } /* 電話対応：人物は中央やや左 */

.slide-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(23, 41, 61, 0.35);
  backdrop-filter: blur(4px);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease;
}

.dot.is-active { background: #fff; }

/* スギ薬局のタグライン風装飾ではなく、Josefin Sansの字形そのもので「ロゴ的な一文」に見せる */
.hero-eyebrow {
  margin-top: 14px;
  font-family: var(--font-num);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.06em;
  color: var(--pink-deep);
}

.hero-title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.2vw, 2.7rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.hero-title .hl {
  position: relative;
  color: var(--pink-deep);
}

.hero-title .hl::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0.08em;
  height: 0.34em;
  z-index: -1;
  border-radius: 999px;
  background: var(--pink-pale);
}

.hero-lead {
  margin: 24px auto 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 2.4vw, 1rem);
  line-height: 1.9;
  font-weight: 500;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* =========================================================
   MOTION（JS実行時のみ有効。.has-jsはmain.jsが<head>で即時付与する）
   ========================================================= */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ヒーローの登場演出：ラベル→見出し→リード文→CTAの順にステージング表示 */
.has-js .hero-eyebrow,
.has-js .hero-title,
.has-js .hero-lead,
.has-js .hero-actions {
  opacity: 0;
}

.has-js .hero-eyebrow  { animation: reveal-up 0.9s cubic-bezier(.16,.8,.24,1) 0.05s forwards; }
.has-js .hero-title    { animation: reveal-up 0.9s cubic-bezier(.16,.8,.24,1) 0.22s forwards; }
.has-js .hero-lead     { animation: reveal-up 0.9s cubic-bezier(.16,.8,.24,1) 0.4s forwards; }
.has-js .hero-actions  { animation: reveal-up 0.9s cubic-bezier(.16,.8,.24,1) 0.56s forwards; }

/* スクロール連動のフェードイン（IntersectionObserverがin-viewを付与） */
.has-js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.has-js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.approach-list .approach-item:nth-child(1) { transition-delay: 0s; }
.approach-list .approach-item:nth-child(2) { transition-delay: 0.1s; }
.approach-list .approach-item:nth-child(3) { transition-delay: 0.2s; }

.company-grid .company-card:nth-child(1) { transition-delay: 0s; }
.company-grid .company-card:nth-child(2) { transition-delay: 0.1s; }
.company-grid .company-card:nth-child(3) { transition-delay: 0.2s; }

.num-grid .num-item:nth-child(1) { transition-delay: 0s; }
.num-grid .num-item:nth-child(2) { transition-delay: 0.08s; }
.num-grid .num-item:nth-child(3) { transition-delay: 0.16s; }
.num-grid .num-item:nth-child(4) { transition-delay: 0.24s; }
.num-grid .num-item:nth-child(5) { transition-delay: 0.32s; }

/* =========================================================
   SECTIONS
   ========================================================= */
.block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 12vw, 112px) 0;
}

.block > .wrap { position: relative; z-index: 1; }

/* ---------- Vision：雑誌の特集記事のような、写真＋テキストが交互に並ぶ構成 ---------- */
.vision { background: var(--surface); }

/* Our Approach：写真は使わず、番号＋見出しのシンプルなリストで構成する */
.approach-list {
  display: flex;
  flex-direction: column;
}

.approach-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}

.approach-item:last-child { border-bottom: none; padding-bottom: 0; }

.approach-num {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  min-width: 2ch;
}

.approach-item[data-tone="a"] .approach-num { color: var(--pink); }
.approach-item[data-tone="b"] .approach-num { color: var(--sage-deep); }
.approach-item[data-tone="c"] .approach-num { color: var(--ink-faint); }

.approach-script {
  display: block;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--pink-deep);
}

.approach-body h3 {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.approach-body p {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.95;
}

/* ---------- Group companies ---------- */
.companies { background: linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 100%); }

/* 公開済みの会社数が今後も変動するため、grid固定カラムではなくflexで中央寄せ */
.company-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.company-card { width: 100%; max-width: 360px; }

.companies-note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

.company-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.company-card:hover,
.company-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(179, 74, 102, 0.4);
}

/* 仮の企業ロゴエリア */
.logo-area {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  aspect-ratio: 16 / 7;
  border-bottom: 1px solid var(--line-soft);
  background: var(--ground);
  overflow: hidden;
}

.logo-area::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  top: -55px;
  left: -40px;
  background: var(--pink-pale);
}

.logo-area::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  right: -26px;
  bottom: -34px;
  background: var(--blue-pale);
}

.logo-area .logo-en {
  position: relative;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1;
}

.logo-area .logo-en b { color: var(--pink-deep); }

.logo-area .logo-sub {
  position: relative;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* 会社サイト未公開時の「準備中」バッジ */
.status-badge {
  position: relative;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.company-card.is-pending .card-more { color: var(--ink-faint); }

/* --- デンサポ：ネイビー地／白＋シアンのロゴタイプ --- */
.logo-area[data-brand="densapo"] {
  background: #0A2038;
  border-bottom-color: transparent;
}

.logo-area[data-brand="densapo"]::before {
  width: 190px;
  height: 190px;
  top: -70px;
  left: -60px;
  background: radial-gradient(circle at 50% 50%, rgba(34, 199, 214, 0.22), transparent 70%);
}

.logo-area[data-brand="densapo"]::after {
  width: 120px;
  height: 120px;
  right: -34px;
  bottom: -44px;
  background: radial-gradient(circle at 50% 50%, rgba(34, 199, 214, 0.14), transparent 70%);
}

.logo-area[data-brand="densapo"] .logo-en {
  font-family: "Barlow Semi Condensed", var(--font-num);
  font-weight: 800;
  font-size: clamp(1.7rem, 7vw, 2.2rem);
  letter-spacing: 0.06em;
  color: #fff;
}

.logo-area[data-brand="densapo"] .logo-en b {
  color: #22C7D6;
  font-weight: 800;
}

.logo-area[data-brand="densapo"] .logo-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: none;
  color: #93A9C4;
}

/* --- M&Aプランナー：淡い空のグラデーション／明朝 --- */
.logo-area[data-brand="ma"] {
  background:
    linear-gradient(158deg, #A9C8E4 0%, #C3D6EB 36%, #E7CDD4 68%, #F3C6B7 100%);
  border-bottom-color: transparent;
}

.logo-area[data-brand="ma"]::before {
  width: 170px;
  height: 170px;
  top: -60px;
  left: -46px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.75), transparent 68%);
}

.logo-area[data-brand="ma"]::after {
  width: 140px;
  height: 140px;
  right: -40px;
  bottom: -52px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6), transparent 70%);
}

/* --- PROMIX：実サイト同様のダーク地＋紫・シアン・ピンクのオーロラ --- */
.logo-area[data-brand="promix"] {
  background:
    radial-gradient(circle at 75% 65%, rgba(255, 95, 178, 0.55), transparent 55%),
    #0a0a14;
  border-bottom-color: transparent;
}

.logo-area[data-brand="promix"]::before {
  width: 260px;
  height: 260px;
  top: -50px;
  left: -70px;
  background: radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.85), transparent 65%);
  filter: blur(40px);
}

.logo-area[data-brand="promix"]::after {
  width: 260px;
  height: 260px;
  right: -70px;
  bottom: -60px;
  background: radial-gradient(circle at 50% 50%, rgba(61, 224, 255, 0.75), transparent 65%);
  filter: blur(40px);
}

.logo-area[data-brand="promix"] .logo-mark {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Syne", var(--font-num);
  font-weight: 800;
  font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(10, 10, 20, 0.35);
}

.logo-area[data-brand="promix"] .logo-mark i {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #3de0ff, #7c5cff);
  display: inline-block;
}

.logo-area[data-brand="promix"] .logo-sub {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 16px rgba(10, 10, 20, 0.35);
}

.logo-area .logo-jp-serif {
  position: relative;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  font-size: clamp(1.02rem, 4.2vw, 1.24rem);
  letter-spacing: 0.16em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(23, 41, 61, 0.45);
  white-space: nowrap;
}

.company-body { padding: 24px 24px 4px; flex: 1; }

.company-body h3 {
  font-size: 1.14rem;
  font-weight: 700;
}

.company-body p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.88;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 5px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--ground);
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 20px 24px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: gap 0.25s ease, color 0.25s ease;
}

.card-more svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-card:hover .card-more { gap: 0.9em; color: var(--pink-deep); }

/* ---------- Numbers ---------- */
.numbers { background: var(--surface); }

.num-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(26px, 5vw, 40px) 16px;
  text-align: center;
}

.num-item {
  position: relative;
  padding-top: 8px;
}

/* 数字の裏に覗く、パステルの丸（3色を順番に） */
.num-deco {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.num-item:nth-child(3n+1) .num-deco { background: var(--pink-pale); }
.num-item:nth-child(3n+2) .num-deco { background: var(--sage-pale); }
.num-item:nth-child(3n+3) .num-deco { background: var(--blue-pale); }

.num-script {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--pink-deep);
}

.num-item .num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.num-item .num .u {
  font-size: 0.34em;
  font-weight: 700;
  color: var(--ink-faint);
}

.num-item .lbl {
  display: block;
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.num-caution {
  margin-top: clamp(26px, 5vw, 40px);
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, var(--ground-2) 0%, var(--ground) 100%);
}

.contact-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 8vw, 64px) clamp(24px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: clamp(22px, 4vw, 30px);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-box .eyebrow { position: relative; z-index: 1; }
.contact-box .eyebrow::before { display: none; }

.contact-box h2 {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: clamp(1.4rem, 5.2vw, 2.1rem);
}

.contact-box p {
  position: relative;
  z-index: 1;
  margin: 16px auto 0;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.contact-actions {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: clamp(48px, 9vw, 72px) 0 28px;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.foot-top {
  display: grid;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-soft);
}

.foot-brand .en {
  display: block;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
}

.foot-brand .en b { color: var(--pink-deep); }

.foot-brand .jp {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.foot-brand p {
  margin-top: 16px;
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.9;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}

.foot-col h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.foot-col ul { margin-top: 14px; display: grid; gap: 10px; }

.foot-col a {
  font-size: 0.86rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.foot-col a:hover { color: var(--pink-deep); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
}

.foot-bottom small {
  font-family: var(--font-num);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.foot-links { display: flex; gap: 18px; }

.foot-links a {
  font-size: 0.78rem;
  color: var(--ink-faint);
  transition: color 0.2s;
}

.foot-links a:hover { color: var(--pink-deep); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* --- Tablet (>=768px) --- */
@media (min-width: 768px) {
  .approach-item { gap: 32px; padding: 34px 0; }
  .approach-num { font-size: 2.8rem; min-width: 2.4ch; }

  .num-grid { grid-template-columns: repeat(5, 1fr); }
  .foot-top { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .foot-nav { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
}

/* --- PC (>=960px) --- */
@media (min-width: 960px) {
  :root { --header-h: 74px; }

  .pc-br { display: inline; }

  /* ヘッダー：ハンバーガー非表示、横並びナビ */
  .nav-btn { display: none; }

  .gnav {
    position: static;
    display: flex;
    align-items: center;
    gap: 30px;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
  }

  .gnav ul { display: flex; gap: 28px; }

  .gnav ul a {
    padding: 0;
    border-bottom: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
  }

  .gnav-cta { margin-top: 0; }

  /* 企業一覧：3カラム
     TODO: 会社が4社以上に増えた場合は repeat(3, 1fr) を
     repeat(auto-fit, minmax(280px, 1fr)) に変更して自動折返しにする */
  .company-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .hero-title { letter-spacing: 0.01em; }

  /* ヒーロー：写真とテキストを単純に左右分割。写真側は高さいっぱいに敷き(object-fit:coverで比率維持したまま
     トリミング)。960px台は見出しの折り返しを優先して54%、1200px以上は画面幅半分に近づける */
  .hero {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
  }

  .hero-visual {
    flex: 0 0 46%;
  }

  .hero-copy-wrap {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    text-align: left;
    padding: clamp(40px, 5vw, 72px) clamp(32px, 5vw, 64px);
  }

  .hero-copy { margin-inline: 0; max-width: 520px; }
  .hero-copy .hero-lead { margin-inline: 0; }
  .hero-copy .hero-actions { justify-content: flex-start; }
}

/* --- Wide (>=1200px) --- */
@media (min-width: 1200px) {
  .company-grid { gap: 28px; }

  /* 幅に余裕があるので、写真をほぼ画面幅半分まで広げる */
  .hero-visual { flex: 0 0 50%; }
  .hero-copy-wrap { flex: 1 1 50%; }
}
