/* ============================================
   MAGI-C Corporate Site — shared styles
   ブランドカラーは :root の変数を差し替えるだけで全体に反映
   ============================================ */

:root {
  /* 現行magi-c.jp og:imageから実測（2026-07-06サンプリング） */
  --brand: #8e4bf5;          /* メイン紫（実測#af72feから濃度調整） */
  --brand-bright: #af72fe;   /* 明るい紫 = 現行ブランドのコア色（実測値） */
  --brand-deep: #4c1d95;     /* 深い紫（影・背景用） */
  --accent: #d16bfe;         /* ピンク紫アクセント（参考画像マゼンタの紫転調・実測#d19dfe系） */
  --bg: #0b0713;             /* ほぼ黒の紫がかった背景 */
  --bg-2: #140d21;
  --text: #f3effa;
  --text-dim: #b6a9d1;
  --line: rgba(168, 85, 247, .25);
  --font-sans: "Noto Sans JP", -apple-system, sans-serif;
  --font-serif: "Shippori Mincho B1", serif;
  --font-display: "Anton", "Archivo Black", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand); color: #fff; }

/* ---------- ノイズテクスチャ（参考画像のグランジ感） ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- ナビ ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(11,7,19,.85), transparent);
  backdrop-filter: blur(2px);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: .12em; color: #fff;
}
.nav__logo span { color: var(--brand-bright); }
.nav__links { display: flex; gap: clamp(16px, 3vw, 40px); font-size: 13px; letter-spacing: .18em; }
.nav__links a { opacity: .75; transition: opacity .3s, color .3s; }
.nav__links a:hover { opacity: 1; color: var(--brand-bright); }
@media (max-width: 640px) { .nav__links a:not(.nav__cta) { display: none; } }
.nav__cta {
  border: 1px solid var(--brand-bright);
  padding: 8px 20px; border-radius: 2px;
  color: var(--brand-bright) !important; opacity: 1 !important;
}
.nav__cta:hover { background: var(--brand); color: #fff !important; }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 80px); position: relative; }
.section__inner { max-width: 1080px; margin: 0 auto; }
.section__label {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 110px);
  line-height: 1; letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168, 85, 247, .35);
  margin-bottom: 8px;
  user-select: none;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 700; line-height: 1.5;
  margin-bottom: clamp(28px, 5vw, 56px);
}
.section__title em { font-style: normal; color: var(--brand-bright); }

/* ---------- カード ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: linear-gradient(160deg, var(--bg-2), rgba(76, 29, 149, .12));
  border: 1px solid var(--line);
  padding: 36px 30px;
  position: relative;
  transition: transform .4s, border-color .4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand-bright); }
.card__num {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: .2em;
  color: var(--accent); margin-bottom: 18px;
}
.card__title { font-size: 19px; font-weight: 700; margin-bottom: 14px; line-height: 1.6; }
.card__text { font-size: 14px; color: var(--text-dim); }

/* ---------- 事例カード ---------- */
.case-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color .4s;
}
.case-card:hover { border-color: var(--brand-bright); }
.case-card__visual {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-deep), var(--bg-2) 60%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); letter-spacing: .15em;
  color: rgba(243, 239, 250, .5); font-size: 14px;
  position: relative;
}
.case-card__body { padding: 26px 26px 30px; }
.case-card__tag {
  display: inline-block; font-size: 11px; letter-spacing: .15em;
  color: var(--accent); border: 1px solid rgba(217, 70, 239, .4);
  padding: 3px 10px; margin-bottom: 14px;
}
.case-card__title { font-size: 17px; font-weight: 700; line-height: 1.6; margin-bottom: 10px; }
.case-card__result { font-family: var(--font-serif); font-size: 15px; color: var(--brand-bright); }
.case-card--dummy { opacity: .45; }

/* ---------- 数字帯 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 40px 20px; text-align: center; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px); line-height: 1.1;
  background: linear-gradient(90deg, var(--brand-bright), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__value small { font-size: .45em; }
.stat__label { font-size: 12px; letter-spacing: .15em; color: var(--text-dim); margin-top: 10px; }

/* ---------- メンバー ---------- */
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.member { text-align: left; }
.member__photo {
  aspect-ratio: 3/4;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(168, 85, 247, .25), transparent 70%),
    linear-gradient(170deg, var(--bg-2), var(--brand-deep) 140%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: rgba(243, 239, 250, .35);
  font-size: 12px; letter-spacing: .2em;
  margin-bottom: 18px;
}
.member__role { font-size: 11px; letter-spacing: .18em; color: var(--accent); margin-bottom: 6px; }
.member__name { font-family: var(--font-serif); font-size: 20px; font-weight: 700; }
.member__name-en { font-size: 11px; letter-spacing: .15em; color: var(--text-dim); margin-top: 2px; }
.member__bio { font-size: 13px; color: var(--text-dim); margin-top: 12px; line-height: 1.8; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; letter-spacing: .2em; font-weight: 700;
  padding: 18px 44px;
  border: 1px solid var(--brand-bright);
  color: #fff; position: relative; overflow: hidden;
  transition: color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s; z-index: -1;
}
.btn:hover::before { transform: scaleX(1); }
.btn--ghost { border-color: rgba(182, 169, 209, .4); font-weight: 400; }
.btn__arrow { font-family: var(--font-display); }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(124, 58, 237, .35), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta__copy {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.4vw, 36px); font-weight: 700;
  line-height: 1.7; margin-bottom: 40px;
}

/* ---------- フッター ---------- */
.footer { padding: 48px clamp(20px, 6vw, 80px); font-size: 12px; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer__logo { font-family: var(--font-display); font-size: 16px; letter-spacing: .12em; color: #fff; }

/* ---------- フェードイン ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- FV案スイッチャー（レビュー用・公開時に削除） ---------- */
.fv-switcher {
  position: fixed; bottom: 20px; left: 20px; z-index: 200;
  display: flex; gap: 2px; align-items: center;
  background: rgba(11, 7, 19, .9); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 10px;
  font-size: 11px; letter-spacing: .1em;
}
.fv-switcher span { color: var(--text-dim); margin-right: 6px; }
.fv-switcher a {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: all .2s;
}
.fv-switcher a:hover, .fv-switcher a.active { background: var(--brand); color: #fff; }
