/* =========================================================
   株式会社リリビット コーポレートサイト
   ・外部リソース（CDN/フォント/画像）に依存しない設計
   ・ブランドカラーはロゴの赤 #C83937 を基準とする
   ========================================================= */

:root {
  /* ブランドカラー：ロゴの赤（#C83937）を基準に、会社資料の強調色 #C00000 を併用 */
  --brand: #c83937;          /* ロゴと同じ赤 */
  --brand-dark: #a52d2b;     /* ホバー時など */
  --brand-strong: #c00000;   /* 会社資料の強調赤 */
  --relyten: #1fa89d;        /* リライテン（プロダクト）の色 */
  --navy: #221f1f;           /* 濃色セクションの背景（赤に合う暖かい濃色） */
  --ink: #221f1f;            /* 本文 */
  --muted: #6f6867;
  --line: #e8e4e3;
  --bg-soft: #f7f5f4;
  --max: 1140px;
  --pad: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: YuGothic, 'Yu Gothic', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  /* ヒーローと同じ暖かいトーンでページの上下を呼応させる */
  background: linear-gradient(150deg, #645350 0%, #4d4340 55%, #383130 100%);
  color: #fff;
}

.sec-head { margin-bottom: 48px; }
.sec-en {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: .02em;
  font-weight: 800;
  margin: 0 0 12px;
}
.section--dark .sec-en { color: #fff; }
.sec-ja {
  font-size: 14px; color: var(--muted);
  letter-spacing: .16em; margin: 0;
}
.section--dark .sec-ja { color: rgba(255,255,255,.6); }
.sec-en .dot { color: var(--brand); }

/* ---------- ヘッダー ---------- */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.hd.is-scrolled { border-bottom-color: var(--line); }
.hd-in {
  max-width: var(--max); margin-inline: auto; padding: 14px var(--pad);
  display: flex; align-items: center; gap: 40px;
}
/* ナビは右寄せにして、お問い合わせボタンの手前で終わるように揃える */
.hd-nav { margin-left: auto; }
.hd-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.hd-nav a {
  font-size: 13px; letter-spacing: .08em; position: relative; padding-block: 6px;
}
.hd-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brand); transition: width .25s;
}
.hd-nav a:hover::after { width: 100%; }
.hd-cta {
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; transition: background .25s;
}
.hd-cta:hover { background: var(--brand-dark); }
.burger { display: none; width: 26px; height: 18px; position: relative; cursor: pointer; border: 0; background: none; padding: 0; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: .3s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  background: linear-gradient(160deg, #3b1a18 0%, var(--navy) 55%, #171313 100%);
  color: #fff; overflow: hidden;
}
/* 背景モーショングラフィック（js/hero-bg.js が描画） */
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero::before {
  /* Canvasの上に重ねる膜。グラフを透かしつつ、文字の可読性を確保する */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34,30,29,.52) 0%, rgba(34,30,29,.32) 40%, rgba(34,30,29,.04) 74%, rgba(34,30,29,0) 100%),
    linear-gradient(180deg, rgba(34,30,29,.28) 0%, transparent 27%, transparent 77%, rgba(34,30,29,.22) 100%);
}
.hero-in { position: relative; z-index: 2; width: 100%; }
.scroll-cue { z-index: 2; }
.hero-en {
  font-size: clamp(52px, 11vw, 140px);
  line-height: .95; font-weight: 800; letter-spacing: .01em;
  margin: 0 0 20px;
}
.hero-en .thin { font-weight: 300; opacity: .85; display: block; }
.hero-lead { font-size: clamp(15px, 2vw, 19px); max-width: 680px; color: rgba(255,255,255,.86); margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: transform .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--navy); color: #fff; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.6);
  display: grid; justify-items: center; gap: 8px;
}
.scroll-cue i { width: 1px; height: 44px; background: rgba(255,255,255,.4); display: block; overflow: hidden; position: relative; }
.scroll-cue i::after {
  content: ''; position: absolute; inset: 0; background: #fff;
  animation: cue 2s infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ---------- 理念3リンク ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio a {
  border: 1px solid var(--line); border-radius: 14px; padding: 32px 26px; background: #fff;
  transition: border-color .25s, transform .25s;
}
.trio a:hover { border-color: var(--brand); transform: translateY(-4px); }
.trio .num { font-size: 12px; color: var(--brand); letter-spacing: .2em; }
.trio h3 { margin: 10px 0 8px; font-size: 19px; }
.trio p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 事業紹介カード ---------- */
.biz { display: grid; gap: 16px; }

.biz-item {
  position: relative; overflow: hidden;
  min-height: 260px; border-radius: 18px;
  display: grid; align-items: center;
  color: #fff;
  background:
    /* 全面にごく薄い斜めストライプ（のっぺり感を消す質感） */
    repeating-linear-gradient(115deg,
      rgba(255,255,255,.030) 0px, rgba(255,255,255,.030) 1px,
      transparent 1px, transparent 9px),
    /* 上から下へのゆるい明暗（横方向には差をつけない） */
    linear-gradient(180deg, #4a3c37 0%, #3b302c 100%);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .3s, border-color .3s;
}
.biz-item:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.14); }

/* 左端のアクセントライン（ブランドカラー） */
.biz-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand), rgba(200,57,55,.25));
  z-index: 3;
}
/* 上辺のごく細いハイライト（面が立って見える） */
.biz-item::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.09) 0%, transparent 14%);
}

/* 背景の線画。右側に配置し、文字に干渉しない濃さに抑える */
.biz-art {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 4%;
  color: #fff;
  opacity: .13;
  pointer-events: none;
}
.biz-art svg { width: min(42%, 320px); height: auto; }

/* 文章側。覆いは敷かず、背景の明るさをそのまま活かす */
.biz-item .overlay {
  position: relative; z-index: 1;
  padding: 40px 44px;
  height: 100%; display: grid; align-content: center;
  /* 文字の背後だけ、ごくわずかに沈ませて可読性を担保する */
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.biz-item .en { font-size: 12px; letter-spacing: .22em; color: #f2a49f; }
.biz-item h3 { margin: 8px 0 10px; font-size: clamp(22px, 3vw, 30px); }
.biz-item p { margin: 0 0 18px; max-width: 520px; font-size: 14px; color: rgba(255,255,255,.82); }

@media (max-width: 900px) {
  /* 縦積みになるため、線画は全面に薄く敷く */
  .biz-art { justify-content: center; padding-right: 0; opacity: .08; }
  .biz-art svg { width: 68%; }
  .biz-item .overlay { padding: 28px 26px; }
}

/* 各事業に含まれる具体サービス */
.biz-tags {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.biz-tags li {
  font-size: 12px; color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.28);
  padding: 5px 13px; border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.more { font-size: 13px; font-weight: 700; color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.more::after { content: '→'; transition: transform .25s; }
.biz-item:hover .more::after { transform: translateX(6px); }


/* ---------- ニュース ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 12px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-family: inherit; transition: .25s;
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { border-bottom: 1px solid var(--line); }
.news a,
.news .news-item { display: grid; grid-template-columns: 110px 96px 1fr; gap: 20px; align-items: center; padding: 22px 4px; transition: background .25s; }
/* リンクを持たないお知らせ（外部記事がないもの） */
.news .news-item { cursor: default; }
.news a:hover { background: #fff; }
.news time { font-size: 13px; color: var(--muted); }
.news .cat { font-size: 11px; text-align: center; padding: 4px 0; border-radius: 999px; background: #eef4f4; color: var(--brand-dark); }
.news .ttl { font-size: 14px; }
.news .ext { font-size: 11px; color: var(--muted); margin-left: 6px; vertical-align: 1px; }
.news a:hover .ttl { color: var(--brand-dark); }
.news-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 0 8px; margin: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta .wrap { position: relative; z-index: 1; }
/* CTA内の見出し。.sec-en を使う場合は他セクションと同じ大きさを保つ */
.cta h2:not(.sec-en) { font-size: clamp(26px, 4vw, 40px); margin: 0 0 14px; }
.cta p { color: rgba(255,255,255,.72); margin: 0 0 32px; }
/* 採用メッセージの本文（長めの文章なので幅と行間を最適化） */
.cta-lead {
  max-width: 720px; margin: 0 auto 36px !important;
  text-align: left; line-height: 2.1; font-size: 15px;
  color: rgba(255,255,255,.82) !important;
}
@media (max-width: 700px) { .cta-lead { font-size: 14px; line-height: 2; } }

/* ---------- フッター ---------- */
.ft {
  /* CTAと同系色のまま一段深くして、ページの終わりを引き締める */
  background: #2e2724; color: rgba(255,255,255,.72); padding: 72px 0 32px;
}
.ft-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.ft h4 { color: #fff; font-size: 12px; letter-spacing: .16em; margin: 0 0 16px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft a { font-size: 13px; }
.ft a:hover { color: var(--brand); }
.ft-logo { filter: brightness(0) invert(1); opacity: .9; margin-bottom: 16px; }
.ft-note { font-size: 12px; line-height: 1.9; }
.ft-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   下層ページ（企業情報など）
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden;
  padding: 150px 0 64px;
  /* CTAセクションと同じ暖かいトーンで揃える */
  background: linear-gradient(150deg, #645350 0%, #4d4340 55%, #383130 100%);
  color: #fff;
}
.page-hero .wrap { position: relative; z-index: 1; }

/* ページ見出しは背が低いので、ウサギの配置を専用に調整する */
.page-hero .rabbits svg:nth-child(1) { width:  84px; left:  3%; top: 26%; }
.page-hero .rabbits svg:nth-child(2) { width:  52px; left: 14%; bottom: 14%; top: auto; }
.page-hero .rabbits svg:nth-child(3) { width:  40px; left: 27%; top: 20%; }
.page-hero .rabbits svg:nth-child(4) { width:  60px; right: 24%; bottom: 18%; top: auto; }
.page-hero .rabbits svg:nth-child(5) { width: 104px; right:  4%; top: 22%; }
.page-hero .rabbits svg:nth-child(6) { width:  46px; right: 12%; bottom: 12%; top: auto; }
.page-hero-en { font-size: clamp(34px, 6vw, 60px); font-weight: 800; line-height: 1; margin: 0 0 10px; }
.page-hero-ja { font-size: 15px; letter-spacing: .18em; color: rgba(255,255,255,.7); margin: 0; font-weight: 500; }

/* ページ内リンク（追従） */
.anchor-nav {
  position: sticky; top: 64px; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.anchor-nav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.anchor-nav a {
  display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap;
  padding: 16px 18px; font-size: 13px; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color .25s, border-color .25s;
}
.anchor-nav a span { font-size: 11px; color: var(--brand); font-weight: 700; }
.anchor-nav a:hover { color: var(--ink); }
.anchor-nav a.is-current { color: var(--ink); border-bottom-color: var(--brand); font-weight: 700; }

/* アンカーで飛んだときに見出しが隠れないように */
[id] { scroll-margin-top: 120px; }

/* 本文 */
.prose { max-width: 760px; }
.prose p { margin: 0 0 22px; line-height: 2.05; }
.prose p:last-child { margin-bottom: 0; }
.prose .lead { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; line-height: 1.9; }
/* 中央揃えで見せたい本文（ミッションなど） */
.prose--center { margin-inline: auto; text-align: center; }

/* ミッションの見せ場 */
/* 筆書きフォント（「全員優勝」の4文字だけを収めた軽量版・約6KB） */
@font-face {
  font-family: "Yuji Syuku";
  src: url("/fonts/yuji-syuku.ttf") format("truetype");
  font-weight: 400; font-style: normal;
  font-display: swap;
}

.mission-hero {
  text-align: center; padding: 56px 24px 32px; margin-bottom: 24px;
}
.mission-word {
  font-family: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(46px, 9.5vw, 96px);
  font-weight: 400; letter-spacing: .06em;
  color: var(--brand);
  margin: 0 0 18px; line-height: 1.25;
}
.mission-sub { margin: 0; color: var(--muted); font-size: 14px; }

/* バリュー3枚 */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.value { border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.value-num { font-size: 11px; letter-spacing: .2em; color: var(--brand); font-weight: 700; }
.value h3 { margin: 12px 0 10px; font-size: 18px; }
.value p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.9; }

/* 会社概要テーブル */
.company-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.company-table th, .company-table td { padding: 22px 26px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-table th { width: 190px; font-size: 13px; color: var(--muted); font-weight: 700; background: #fbfcfd; letter-spacing: .06em; }
.company-table td { font-size: 15px; line-height: 1.9; }

/* ごあいさつ */
.message-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.message-photo img { border-radius: 16px; width: 100%; height: auto; }

@media (max-width: 900px) {
  .page-hero { padding: 120px 0 48px; }
  .anchor-nav { top: 56px; }
  .value-grid { grid-template-columns: 1fr; }
  .message-layout { grid-template-columns: 1fr; gap: 28px; }
  .message-photo { max-width: 220px; }
  .company-table th, .company-table td { display: block; width: auto; }
  .company-table th { border-bottom: 0; padding-bottom: 6px; }
  .company-table td { padding-top: 0; }
}

/* =========================================================
   事業紹介ページ
   ========================================================= */
.biz-detail { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.biz-detail-title { font-size: clamp(21px, 3vw, 28px); margin: 0 0 20px; line-height: 1.6; }
.biz-detail .prose { max-width: none; }

/* 明るい背景で使うタグ */
.biz-tags--light { margin-top: 24px; margin-bottom: 0; }
.biz-tags--light li {
  color: var(--brand-dark);
  border-color: rgba(200,57,55,.35);
  background: rgba(200,57,55,.07);
}

/* ---------- 事業紹介の図版（動きのあるSVG） ----------
   外部ライブラリ不使用。線画＋CSSアニメーションのみ。
   「視差効果を減らす」設定では静止する。 */
.motion-figure {
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #fbfaf9 0%, #f3efec 100%);
  border: 1px solid var(--line);
}
.motion-figure svg { width: 100%; height: auto; display: block; }

/* 共通パーツ */
.mf-panel { fill: #fff; stroke: var(--line); stroke-width: 1.4; }
.mf-grid  { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 7; }
.mf-axis  { stroke: #cfc8c4; stroke-width: 1.4; }
.mf-cap   { fill: #a89f9a; font-size: 11px; letter-spacing: .14em; text-anchor: middle;
            font-family: YuGothic, 'Yu Gothic', sans-serif; }

/* ① 広告：棒が伸びる → 線が引かれる → 光点が脈打つ */
.mf-bar {
  fill: rgba(200,57,55,.16); stroke: var(--brand); stroke-width: 1.4;
  y: 240px; height: 0;
  animation: mfGrow 5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes mfGrow {
  0%, 8%    { height: 0;         y: 240px; }
  38%, 74%  { height: calc(var(--h) * 1px); y: calc((240 - var(--h)) * 1px); }
  96%, 100% { height: 0;         y: 240px; }
}
.mf-line {
  stroke: var(--brand); stroke-width: 2.6;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: mfDraw 5s ease-in-out infinite;
}
@keyframes mfDraw {
  0%, 14%   { stroke-dashoffset: 340; }
  52%, 78%  { stroke-dashoffset: 0; }
  96%, 100% { stroke-dashoffset: 340; }
}
.mf-dot { fill: var(--brand); animation: mfPulse 5s ease-in-out infinite; opacity: 0; }
@keyframes mfPulse {
  0%, 48%  { opacity: 0; r: 4; }
  60%      { opacity: 1; r: 8; }
  70%, 82% { opacity: 1; r: 6; }
  92%, 100%{ opacity: 0; r: 4; }
}
.mf-arrow { stroke: var(--brand); stroke-width: 2; opacity: 0; animation: mfFade 5s ease-in-out infinite; }
@keyframes mfFade { 0%,55% { opacity: 0; } 68%,82% { opacity: .9; } 94%,100% { opacity: 0; } }

/* ② アフィリエイト：メディア→店舗へ成果が流れる */
.mf-node {
  fill: rgba(200,57,55,.10); stroke: var(--brand); stroke-width: 1.8;
  animation: mfBlink 3s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes mfBlink {
  0%, 100% { fill: rgba(200,57,55,.10); }
  22%      { fill: rgba(200,57,55,.34); }
}
.mf-shop { stroke: #8b817c; stroke-width: 1.8; }
.mf-qr   { fill: none; stroke: var(--brand); stroke-width: 1.4; }
.mf-flow { stroke: #d9d2ce; stroke-width: 1.4; stroke-dasharray: 5 7; }
.mf-pulse{ fill: var(--brand); }
.mf-win { fill: #cfc8c4; stroke: none; }
.mf-line-thin { stroke: #ded7d3; stroke-width: 1.6; }
.mf-ring {
  fill: none; stroke: var(--brand); stroke-width: 1.6;
  animation: mfRing 3s ease-out infinite;
}
/* WEB側と実店舗側、それぞれで波紋が出る */
.mf-ring--web   { transform-origin: 300px 110px; animation-delay: .4s; }
.mf-ring--store { transform-origin: 287px 236px; animation-delay: 1.9s; }
@keyframes mfRing {
  0%, 60% { opacity: 0; transform: scale(.4); }
  72%     { opacity: .7; }
  100%    { opacity: 0; transform: scale(2.1); }
}

/* ③ クリエイティブ：制作物が入れ替わり、反応を測る */
.mf-card {
  stroke: #b9b0ab; stroke-width: 1.6; fill: #fff;
  opacity: 0; animation: mfSwap 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.mf-card path { stroke: #d5cdc8; stroke-width: 1.6; }
@keyframes mfSwap {
  0%       { opacity: 0; transform: translate(8px, 8px); }
  10%, 30% { opacity: 1; transform: translate(0, 0); }
  42%,100% { opacity: 0; transform: translate(-6px, -6px); }
}
.mf-play-ring { stroke: var(--brand); stroke-width: 1.8; animation: mfRingPulse 3s ease-in-out infinite; }
@keyframes mfRingPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.mf-play { fill: var(--brand); stroke: none; }
.mf-mini { stroke: var(--brand); stroke-width: 2.2; stroke-dasharray: 130; stroke-dashoffset: 130;
           animation: mfMini 6s ease-in-out infinite; }
@keyframes mfMini {
  0%, 30%   { stroke-dashoffset: 130; }
  62%, 88%  { stroke-dashoffset: 0; }
  98%, 100% { stroke-dashoffset: 130; }
}
.mf-mini-dot { fill: var(--brand); opacity: 0; animation: mfFade2 6s ease-in-out infinite; }
@keyframes mfFade2 { 0%,58% { opacity: 0; } 68%,88% { opacity: 1; } 98%,100% { opacity: 0; } }

/* 動きを減らす設定では、完成形で静止させる */
@media (prefers-reduced-motion: reduce) {
  .motion-figure * { animation: none !important; }
  .mf-bar { height: calc(var(--h) * 1px); y: calc((240 - var(--h)) * 1px); }
  .mf-line, .mf-mini { stroke-dashoffset: 0; }
  .mf-dot, .mf-arrow, .mf-mini-dot { opacity: 1; }
  .mf-card { opacity: 1; transform: none; }
  .mf-ring, .mf-pulse { opacity: 0; }
}

/* 進め方ステップ */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.step-num { font-size: 11px; letter-spacing: .2em; color: var(--brand); font-weight: 700; }
.step h4 { margin: 12px 0 10px; font-size: 17px; }
.step p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.9; }

/* 注目ボックス（REHAP など） */
.callout {
  margin-top: 56px; border-radius: 18px; padding: 36px 40px; color: #fff;
  background: linear-gradient(150deg, #645350 0%, #4d4340 55%, #383130 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.callout-label { font-size: 11px; letter-spacing: .2em; color: #fdd4d0; margin: 0 0 8px; font-weight: 700; }
.callout h4 { margin: 0 0 10px; font-size: 24px; }
.callout-desc { margin: 0; font-size: 14px; color: rgba(255,255,255,.78); max-width: 620px; line-height: 1.9; }

/* サービス一覧カード */
.service-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; }
.svc-en { font-size: 11px; letter-spacing: .2em; color: var(--brand); font-weight: 700; }
.svc h4 { margin: 12px 0 10px; font-size: 18px; }
.svc p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.9; }

@media (max-width: 900px) {
  .biz-detail { grid-template-columns: 1fr; gap: 32px; }
  .biz-detail-side { order: -1; }
  .step-grid, .service-cards { grid-template-columns: 1fr; }
  .callout { padding: 28px 24px; }
}

/* ---------- 料金 ---------- */
.price-block { margin-top: 64px; }
.price-head { text-align: center; margin-bottom: 36px; }
.price-head h4 { font-size: clamp(20px, 3vw, 26px); margin: 0 0 8px; }
.price-head p { margin: 0; font-size: 14px; color: var(--muted); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.price-card:hover {
  border-color: var(--brand); transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(34,31,31,.07);
}
.price-cat { font-size: 10px; letter-spacing: .2em; color: var(--brand); font-weight: 700; }
.price-card h5 { margin: 10px 0 14px; font-size: 17px; }
.price-val {
  margin: 0 0 12px; font-size: 30px; font-weight: 800; line-height: 1;
  letter-spacing: -.01em; color: var(--ink);
}
.price-val span { font-size: 13px; font-weight: 700; margin-left: 4px; color: var(--muted); }
.price-desc { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.85; }

/* 月額パッケージだけ強調する */
.price-card--feature {
  background: linear-gradient(150deg, #645350 0%, #4d4340 55%, #383130 100%);
  border-color: transparent; color: #fff;
}
.price-card--feature .price-cat { color: #fdd4d0; }
.price-card--feature .price-val { color: #fff; }
.price-card--feature .price-val span { color: rgba(255,255,255,.6); }
.price-card--feature .price-desc { color: rgba(255,255,255,.72); }
.price-card--feature:hover { border-color: transparent; }

.price-caution {
  margin: 26px 0 0; font-size: 12px; color: var(--muted); line-height: 1.9; text-align: center;
}

@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-block { margin-top: 48px; }
}

/* =========================================================
   お問い合わせページ
   ========================================================= */
.form-card {
  max-width: 780px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 40px;
}
.field { margin-bottom: 28px; }
.field:last-of-type { margin-bottom: 0; }
.field-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.field-label { font-size: 14px; font-weight: 700; }
.badge-req {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: #fdeceb; color: #c0392b; padding: 3px 9px; border-radius: 4px;
}
.badge-any {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: #eef1f4; color: var(--muted); padding: 3px 9px; border-radius: 4px;
}
.input, .textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fbfcfd; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; transition: border-color .2s, background .2s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.textarea { min-height: 170px; resize: vertical; line-height: 1.8; }
.field-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  font-size: 14px; background: #fbfcfd; transition: border-color .2s, background .2s;
}
.check:hover { border-color: var(--brand); }
.check input { width: 17px; height: 17px; accent-color: var(--brand); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--brand); background: rgba(200,57,55,.06); }

.agree-box {
  margin-top: 32px; padding: 20px; border-radius: 12px; background: var(--bg-soft);
  font-size: 13px; color: var(--muted); line-height: 1.9;
}
.agree-box a { color: var(--brand-dark); text-decoration: underline; }

.submit-row { text-align: center; margin-top: 32px; }
.btn-submit {
  font-family: inherit; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  padding: 17px 48px; border-radius: 999px;
  transition: background .25s, transform .25s, opacity .25s;
}
.btn-submit:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-2px); }
.btn-submit:disabled { background: #c3ccd4; cursor: not-allowed; }
.submit-hint { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

.form-status { margin-top: 20px; padding: 16px 20px; border-radius: 10px; font-size: 14px; display: none; }
.form-status.is-ok { display: block; background: #eaf7f5; color: #12695f; border: 1px solid #b9e3dd; }
.form-status.is-ng { display: block; background: #fdeceb; color: #a5322a; border: 1px solid #f3c6c2; }

.contact-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.contact-info div { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #fff; }
.contact-info h3 { margin: 0 0 8px; font-size: 15px; }
.contact-info p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.9; }

@media (max-width: 900px) {
  .form-card { padding: 26px 20px; }
  .check-grid, .contact-info { grid-template-columns: 1fr; }
}

/* =========================================================
   規約系ページ（プライバシーポリシー等）
   ========================================================= */
.legal { max-width: 800px; margin-inline: auto; }
.legal-intro {
  margin: 0 0 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line);
  line-height: 2.05; color: var(--muted);
}
.legal-item { margin-bottom: 44px; }
.legal-item:last-child { margin-bottom: 0; }
.legal-item h2 {
  font-size: 17px; margin: 0 0 14px; padding-left: 14px;
  border-left: 3px solid var(--brand); line-height: 1.6;
}
.legal-item p { margin: 0 0 14px; line-height: 2.05; }
.legal-item p:last-child { margin-bottom: 0; }
.legal-item ul { margin: 0; padding-left: 22px; }
.legal-item li { margin-bottom: 8px; line-height: 1.9; }
.legal-contact {
  margin-top: 16px; padding: 22px 24px; border-radius: 12px;
  background: var(--bg-soft); font-size: 14px;
}
.legal-contact p { margin: 0 0 6px; line-height: 1.9; }
.legal-contact p:last-child { margin-bottom: 0; }
.legal-contact a { color: var(--brand-dark); text-decoration: underline; }

/* ---------- スクロール表示アニメーション ----------
   JSが有効なときだけ隠す（.js クラスを body に付与）。
   JS無効/読み込み失敗時でも本文が必ず表示されるようにする。 */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 動きを減らす設定の利用者には、アニメーションを無効化する */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- キーボード操作のフォーカス表示 ---------- */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.hero :focus-visible,
.ft :focus-visible { outline-color: #fff; }

/* 本文へ飛ぶスキップリンク（キーボード利用者向け） */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 8px;
  font-size: 13px; transition: top .2s;
}
.skip:focus { top: 0; }

/* ---------- SPメニュー ---------- */
.spmenu {
  position: fixed; inset: 0; z-index: 200; background: var(--navy); color: #fff;
  padding: 24px; display: none; flex-direction: column;
}
.spmenu.open { display: flex; }
.spmenu-top { display: flex; justify-content: flex-end; }
.spmenu-close { background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
.spmenu ul { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 4px; }
.spmenu a { font-size: 20px; padding: 14px 0; display: block; border-bottom: 1px solid rgba(255,255,255,.12); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .trio { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .hd-nav, .hd-cta { display: none; }
  .burger { display: block; }
  .news a, .news .news-item { grid-template-columns: 1fr; gap: 6px; padding: 18px 4px; }
  .news .cat { justify-self: start; padding-inline: 14px; }
  .biz-item .overlay { background: linear-gradient(180deg, rgba(34,31,31,.55), rgba(34,31,31,.9)); padding: 28px; }
}
@media (max-width: 560px) {
  .ft-grid { grid-template-columns: 1fr; }
}

/* ---------- REHAPの強み ---------- */
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.strength {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px;
  transition: border-color .25s, transform .25s;
}
.strength:hover { border-color: var(--brand); transform: translateY(-4px); }
.strength-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 800;
}
.strength h4 { margin: 16px 0 12px; font-size: 16px; line-height: 1.6; }
.strength p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.9; }

/* 2カラム版の料金グリッド */
.price-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }

/* ---------- 代表の経歴 ---------- */
.career { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.career-label { margin: 0 0 10px; font-size: 10px; letter-spacing: .2em; color: var(--brand); font-weight: 700; }
.career ul { list-style: none; margin: 0; padding: 0; }
.career li {
  font-size: 12.5px; color: var(--muted); line-height: 1.9;
  padding-left: 16px; position: relative;
}
.career li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--line);
}
.career li:last-child { color: var(--ink); font-weight: 700; }
.career li:last-child::before { background: var(--brand); }

@media (max-width: 900px) {
  .strength-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .price-grid--2 { grid-template-columns: 1fr; }
}

/* ---------- 背景に舞う折り紙ウサギ（CTA・ページ見出しで使用） ---------- */
.cta { overflow: hidden; }
.rabbits { position: absolute; inset: 0; pointer-events: none; }
.rabbits svg {
  position: absolute; overflow: visible;
  animation: rabbitFloat 14s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}
/* 一羽ずつ位置・大きさ・傾き・間合いを変えて、群れに見えないようにする。
   文字に近いものほど控えめ、外側のものははっきり見せる。 */
.rabbits svg:nth-child(1) { width: 104px; left:  3%; top: 14%; rotate: -14deg; animation-duration: 13s; animation-delay: 0s;    opacity: .95; }
.rabbits svg:nth-child(2) { width:  66px; left: 12%; top: 64%; rotate:   8deg; animation-duration: 17s; animation-delay: -3s;  opacity: .70; }
.rabbits svg:nth-child(3) { width:  46px; left: 26%; top: 20%; rotate: -22deg; animation-duration: 15s; animation-delay: -7s;  opacity: .45; }
.rabbits svg:nth-child(4) { width:  74px; right: 22%; top: 70%; rotate:  16deg; animation-duration: 19s; animation-delay: -5s; opacity: .60; }
.rabbits svg:nth-child(5) { width: 128px; right:  4%; top: 10%; rotate: -10deg; animation-duration: 16s; animation-delay: -9s; opacity: 1;   }
.rabbits svg:nth-child(6) { width:  58px; right: 11%; bottom: 10%; top: auto; rotate: 24deg; animation-duration: 14s; animation-delay: -11s; opacity: .55; }

@keyframes rabbitFloat {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(14px, -18px); }
}

/* 動きを減らす設定では静止させる */
@media (prefers-reduced-motion: reduce) {
  .rabbits svg { animation: none; }
}

/* 画面が狭いときは数を絞って、文字の邪魔をしない */
@media (max-width: 900px) {
  .rabbits svg:nth-child(2),
  .rabbits svg:nth-child(3),
  .rabbits svg:nth-child(4) { display: none; }
  .rabbits svg:nth-child(1) { width: 64px; }
  .rabbits svg:nth-child(5) { width: 78px; }
}

/* ---------- CONTACT（JOIN US と高さ・体裁を揃える） ---------- */
.contact-lead {
  max-width: 720px; margin: 0 auto 36px;
  line-height: 2.1; font-size: 15px; color: var(--muted);
}
/* トップページの締めくくり2セクション（JOIN US / CONTACT）だけ高さを揃える。
   下層ページのCTAは中身に応じた自然な高さにする。 */
#recruit,
#contact {
  min-height: 520px;
  display: grid; align-content: center;
}
@media (max-width: 900px) {
  #recruit, #contact { min-height: 0; }
  .contact-lead { font-size: 14px; line-height: 2; }
}

/* ---------- スパム対策 ---------- */
/* ハニーポット：利用者からは見えないが、自動プログラムには読める状態にする。
   display:none だと無視する自動プログラムがあるため、画面外へ逃がす。 */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* 人間であることの確認 */
.verify-box { margin-top: 28px; }
.verify-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
}
