/* 配色・フォントは公式サイト（mix-corp.jp）に合わせています */
@font-face { font-family: "Noto Sans JP"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/NotoSansJP-400.woff") format("woff"); }
@font-face { font-family: "Noto Sans JP"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/NotoSansJP-700.woff") format("woff"); }

:root {
  --ink: #1a1815;
  --muted: #5c574f;
  --line: #e4e0d6;
  --bg: #f6f4ef;
  --accent: #a23a2a;
  --accent-dark: #85301f;
  --cta: #ffb000;
  --cta-hover: #ffc233;
  --radius: 14px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.8; font-size: 16px; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 700; text-wrap: balance; word-break: auto-phrase; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.pc { display: inline; }
.sp { display: none; }
.nb { display: inline-block; }

/* ボタン（全ページ共通・これ1種類だけ） */
.btn { --btn-shadow: 0 10px 24px rgba(26, 24, 21, .25); --ring: 14px; position: relative; overflow: hidden; display: inline-block; background: var(--cta); color: var(--ink); text-decoration: none; font-weight: 700; border-radius: 999px; text-align: center; box-shadow: var(--btn-shadow); transition: background .2s, transform .2s; animation: cta-pulse 2s ease-out infinite; }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); transform: skewX(-20deg); animation: cta-shine 2.6s ease-in-out infinite; pointer-events: none; }
.btn:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn-small { --btn-shadow: 0 4px 12px rgba(26, 24, 21, .2); --ring: 10px; padding: 10px 24px; font-size: 15px; white-space: nowrap; }
.btn-large { padding: 18px 48px; font-size: 18px; }

/* ヘッダー（ロゴ＋ボタン1つだけ） */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(246, 244, 239, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 18px; display: flex; align-items: baseline; gap: 10px; }
.brand small { font-size: 12px; color: var(--accent); letter-spacing: .08em; }

/* ファーストビュー */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(26px, 2.9vw, 38px); letter-spacing: -0.01em; white-space: nowrap; }
.hero h1 .em { font-style: normal; font-size: 1.22em; letter-spacing: -.02em; margin-right: .04em; }
.lead { margin: 22px 0 34px; font-size: 18px; color: var(--muted); }
.hero-actions { max-width: 440px; display: flex; flex-direction: column; align-items: center; }
.badges { width: 100%; list-style: none; padding: 6px; margin: 30px 0 0; max-width: 440px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.badges li { display: flex; justify-content: center; }
.badge-circle { width: 100%; max-width: 200px; aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent), 0 14px 28px rgba(162, 58, 42, .16); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; font-weight: 700; line-height: 1.2; }
.badge-label { font-size: 14px; letter-spacing: .06em; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid rgba(162, 58, 42, .45); margin-bottom: 4px; }
.badge-label-long { font-size: 12px; letter-spacing: .02em; line-height: 1.5; white-space: nowrap; }
.badge-num { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.01em; }
.badge-num small { font-size: .42em; margin-left: 2px; }
.hero-img img { width: 100%; border-radius: 20px; box-shadow: 0 20px 50px rgba(26, 24, 21, .16); }

/* 動画＋3つのポイント */
.show { background: var(--ink); color: #fff; padding: 64px 0; }
.show-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; justify-content: center; }
.show-video { width: 300px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.show-points h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 28px; }
.show-points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.show-points li { display: flex; gap: 18px; align-items: flex-start; }
.show-points span { font-size: 30px; font-weight: 700; color: #e08a78; line-height: 1.2; min-width: 44px; }
.show-points p { text-wrap: pretty; word-break: auto-phrase; font-size: 15px; color: #d8d3c7; line-height: 1.7; }
.show-points b { display: block; font-size: 19px; color: #fff; margin-bottom: 2px; }

/* 事例 */
.cases { padding: 72px 0 80px; }
.cases h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 32px; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.case img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-body { padding: 18px 20px 22px; }
.case-tag { font-size: 12px; font-weight: 700; color: var(--accent); }
.case blockquote { margin: 8px 0 12px; padding: 0; font-size: 15px; line-height: 1.85; }
.case-name { font-size: 13px; color: var(--muted); }

/* Mix株式会社とは */
.about { background: #fff; border-top: 1px solid var(--line); padding: 72px 0 80px; }
.about-wrap { max-width: 760px; }
.about h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 24px; }
.about p { font-size: 16px; line-height: 2; margin-top: 18px; text-wrap: pretty; word-break: auto-phrase; }
.about .about-lead { font-size: 18px; font-weight: 700; margin-top: 0; }
.about .about-sign { margin-top: 28px; text-align: right; font-weight: 700; }

/* 最後のボタン */
.cta-final { background: var(--accent); color: #fff; padding: 64px 0; }
.cta-final h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 26px; }

/* 追尾ボタン（画面下に固定。ファーストビューと最後のボタンが見えている間は隠す） */
.float-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); pointer-events: none; transition: opacity .25s, transform .25s; }
.float-cta .btn { --btn-shadow: 0 10px 28px rgba(26, 24, 21, .35); --ring: 18px; pointer-events: auto; width: min(560px, 100%); padding: 20px 24px; font-size: 22px; letter-spacing: .02em; }
@keyframes cta-pulse { 0% { box-shadow: var(--btn-shadow), 0 0 0 0 rgba(255, 176, 0, .7); } 70%, 100% { box-shadow: var(--btn-shadow), 0 0 0 var(--ring) rgba(255, 176, 0, 0); } }
@keyframes cta-shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }

/* フッター */
.site-footer { background: var(--ink); color: #b9b3a5; padding: 22px 0 120px; font-size: 13px; }
.footer-inner { display: grid; gap: 4px; line-height: 1.8; }
.footer-inner b { color: #fff; font-size: 14px; }
.footer-inner span a { color: inherit; }
.footer-link { justify-self: start; margin-top: 8px; color: #b9b3a5; font-size: 12px; text-decoration: underline; }
.footer-link:hover { color: #fff; }
.site-footer-doc { padding-bottom: 22px; }

/* ポリシー等の文書ページ */
.brand-link { color: var(--ink); text-decoration: none; }
.doc { padding: 48px 0 72px; }
.doc-wrap { max-width: 760px; }
.doc h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.doc h2 { font-size: 18px; margin: 34px 0 10px; }
.doc p, .doc li { font-size: 15px; line-height: 1.9; }
.doc ul { margin: 0; padding-left: 1.4em; }
.doc-date { margin-top: 40px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding: 28px 0 44px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero h1 { font-size: min(30px, 6vw); }
  .lead { font-size: 16px; margin: 16px 0 24px; }
  .pc { display: none; }
  .sp { display: inline; }
  .btn-small { padding: 9px 14px; font-size: 13px; }
  .brand small { display: none; }
  .btn-large { width: 100%; padding: 18px 20px; }
  .float-cta .btn { font-size: 20px; padding: 20px 12px; }
  .show { padding: 44px 0; }
  .show-grid { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .show-video { width: min(300px, 80%); }
  .show-points { width: 100%; }
  .case-grid { grid-template-columns: 1fr; }
  .cases { padding: 52px 0; }
  .cta-final { padding: 52px 0; }
  .about { padding: 52px 0 56px; }
  .about p { font-size: 15px; }
  .about .about-lead { font-size: 16px; }
  .cta-final h2 { font-size: 22px; }
  .badges { gap: 18px; padding: 6px 8px; }
  .badge-label { font-size: 13px; }
  .badge-num { font-size: 32px; }
}
@media (max-width: 400px) {
  .badges { padding: 6px 4px; gap: 12px; }
  .badge-label-long { font-size: 11px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .float-cta { transition: none; } }
