/* =========================================================
   スマートwork ポートフォリオHP  共通スタイル
   ・色は「色の設定」だけを変えれば、全体が切り替わります
   ・文字サイズと余白は「サイズの設定」でまとめて管理しています
   ========================================================= */

/* ---------- 色の設定（赤パターン） ---------- */
:root {
  --bg: #ffffff;          /* 基本の背景 */
  --bg-soft: #fbf3f1;     /* 区切り用のうすい背景 */
  --bg-cream: #faf6f0;    /* 区切り用のクリーム背景 */
  --main: #bf0000;        /* メインの色（楽天のクリムゾンレッド） */
  --main-soft: #f7e4e1;   /* メインの色のうすい版 */
  --accent: #bf0000;      /* 「前へ。」や数字など、ポイントの色 */
  --band: #6b3a28;        /* 実績の帯の色（こげ茶） */
  --text: #4a2a1e;        /* 文字の色（濃い茶） */
  --text-sub: #6e554b;    /* 説明文の色 */
  --line: #ecdcd5;        /* 線・枠の色 */
  --laurel: #ecd3b0;      /* 実績の月桂樹（うすいベージュ） */
  --kpi-bg: #fdeee7;      /* 実績の主役の丸 */
}

/* ---------- 色の設定（青パターン） ---------- */
body.theme-blue {
  --bg: #ffffff;
  --bg-soft: #f1f6fb;
  --bg-cream: #f7f9fc;
  --main: #2f6db3;
  --main-soft: #e3edf8;
  --accent: #bf0000;
  --band: #1f3a5f;
  --text: #1f3550;
  --text-sub: #4b5f76;
  --line: #d9e4f0;
  --laurel: #cddbeb;
  --kpi-bg: #e8f0f9;
}

/* ---------- サイズの設定（パソコン） ---------- */
:root {
  /* 文字サイズ */
  --fs-h1: 60px;          /* キャッチコピー */
  --fs-h2: 36px;          /* セクション見出し */
  --fs-h3: 21px;          /* 小見出し */
  --fs-emph: 23px;        /* 強調したい一文（お悩みの受け、実績のリード） */
  --fs-lead: 20px;        /* サブコピー */
  --fs-body: 18px;        /* 本文（読みやすさ重視で大きめ） */
  --fs-small: 16px;       /* 補足の本文 */
  --fs-note: 14px;        /* 注釈 */
  --lh-body: 1.8;         /* 本文の行間 */
  --lh-head: 1.45;        /* 見出しの行間 */

  /* 余白 */
  --sp-section: 88px;     /* セクションの上下 */
  --sp-head: 14px;        /* 見出しと本文の間 */
  --sp-block: 36px;       /* 見出しブロックと中身の間 */
  --sp-gap: 18px;         /* カード同士のすき間 */
  --sp-card: 26px;        /* カードの内側 */
  --side: 40px;           /* ページ左右の余白 */
  --max: 1080px;          /* コンテンツの最大幅 */
  --radius: 16px;         /* カードの角の丸み */
}

/* ---------- サイズの設定（スマホ） ---------- */
@media (max-width: 600px) {
  :root {
    --fs-h1: 38px;
    --fs-h2: 26px;
    --fs-h3: 19px;
    --fs-emph: 20px;
    --fs-lead: 17px;
    --fs-body: 17px;
    --fs-small: 15px;
    --fs-note: 14px;

    --sp-section: 60px;
    --sp-head: 12px;
    --sp-block: 32px;
    --sp-gap: 16px;
    --sp-card: 24px;
    --side: 18px;
  }
}

/* ---------- 基本 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-weight: 800;
  line-height: var(--lh-head);
  margin: 0;
  text-wrap: balance;     /* 1文字だけ次の行に落ちないよう、行の長さをそろえる */
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* 改行させたくないまとまり */
.nb { display: inline-block; }

.inner {
  max-width: calc(var(--max) + var(--side) * 2);
  margin: 0 auto;
  padding: 0 var(--side);
}

.section { padding: var(--sp-section) 0; }
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--bg-cream); }

/* 見出しの上の小さなラベル */
.label {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.6;
  color: var(--main);
  background: var(--main-soft);
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: var(--sp-head);
  letter-spacing: 0.08em;
}

/* 見出しそのものをラベルの形にしたもの（お悩みの見出し） */
.label--heading {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
  letter-spacing: 0.04em;
  padding: 8px 32px;
  margin-bottom: 0;
}

/* 同じ系統の色の枠の上でも読みやすいよう、文字に少し白フチをつける */
:root {
  --white-edge: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
                1.5px 1.5px #fff, -1.5px 1.5px #fff, 1.5px -1.5px #fff, -1.5px -1.5px #fff;
}
.label--heading,
.kpi-pill { text-shadow: var(--white-edge); }

.section-head { text-align: center; margin-bottom: var(--sp-block); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--text-sub); margin-top: var(--sp-head); }

/* 確認中の項目（依頼主の返事待ち） */
.pending {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: var(--sp-card);
  color: var(--text-sub);
  font-size: var(--fs-small);
  text-align: center;
  background: var(--bg);
}

/* ---------- ヘッダー ---------- */
.header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;     /* 左に名前、右に目次 */
  height: 64px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--main);                 /* 赤版は赤、青版は青 */
  text-decoration: none;
}
.logo small {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: var(--fs-note);
  font-weight: 700;
  color: var(--main);                 /* 名前と同じ色 */
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: var(--fs-small);
  color: var(--text-sub);
  text-decoration: none;
}
.nav a:hover { color: var(--main); }

/* 中くらいの画面幅では、トップのキャッチを少し小さくして、途中で切れないようにする */
@media (min-width: 901px) and (max-width: 1180px) {
  .fv .fv-catch { font-size: 4.6vw; }
}

/* パソコンでは、ヘッダーを画面の上に固定する */
@media (min-width: 901px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  /* 目次から飛んだとき、見出しがヘッダーに隠れないようにする */
  main [id] { scroll-margin-top: 64px; }
}


/* ---------- 1. ファーストビュー ---------- */
.fv {
  position: relative;
  overflow: hidden;
  padding: calc(var(--sp-section) * 1.1) 0;
  background: var(--bg-soft);
}
.fv-inner > * { min-width: 0; }     /* 中身が横にはみ出さないようにする */
.fv-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.fv-tag {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--main);
  background: var(--bg);
  border: 1.5px solid var(--main);
  border-radius: 999px;
  padding: 6px 20px;
}
.fv-catch {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-top: 24px;
}
.fv-catch em {
  font-style: normal;
  color: var(--accent);
}
.fv-sub {
  margin-top: 24px;
  font-size: var(--fs-lead);
  color: var(--text-sub);
  line-height: var(--lh-body);
}
.fv-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 170px));
  gap: 14px;
  margin-top: 32px;
}
.fv-stat {
  background: var(--bg);
  border-radius: 14px;
  border-top: 4px solid var(--main);
  padding: 14px 18px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.fv-stat b {
  display: block;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.3;
  color: var(--accent);
}
.fv-stat > span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-note);
  line-height: 1.5;
  color: var(--text-sub);
}

/* トップの名前とアイコン */
.fv-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}
.fv-brand .fv-brand-icon { width: 150px; height: 150px; }
.fv-brand p {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.4;
}
.fv-brand small {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 500;
  color: var(--text-sub);
}
body.fv-center .fv-brand { justify-content: center; }

/* スポットライト版：検索結果のイメージ */
.search-mock {
  max-width: 480px;
  margin-left: auto;
  background: var(--bg);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 8px 8px 14px;
  font-size: var(--fs-small);
}
.search-bar svg { width: 16px; height: 16px; color: var(--text-sub); flex-shrink: 0; }
.search-bar b {
  margin-left: auto;
  background: var(--main);
  color: #fff;
  font-size: var(--fs-note);
  padding: 4px 12px;
  border-radius: 6px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.tile {
  aspect-ratio: 3 / 4;
  background: #f6f5f4;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.75;
}
.tile i { flex: 1; background: #eeecea; border-radius: 8px; }
.tile > span { height: 6px; background: #ebe9e7; border-radius: 3px; }
.tile > span:last-child { width: 60%; }
.tile--hit {                         /* 光が当たっている「あなたの商品」 */
  position: relative;
  z-index: 2;
  opacity: 1;
  background: var(--bg);
  border: 2.5px solid var(--main);
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(255, 214, 90, 0.5), 0 0 40px 14px rgba(255, 214, 90, 0.45);
}
.tile--hit i {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  background: var(--main-soft);
  color: var(--main);
  font-style: normal;
  font-weight: 900;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
  padding: 4px;
}
.tile--hit > span { background: var(--main-soft); }
.tile--hit em {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--main);
  color: #fff;
  font-style: normal;
  font-weight: 900;
  font-size: var(--fs-note);
  padding: 4px 14px;
  border-radius: 999px;
}

/* 真ん中版：うしろの商品タイル（ふだんは隠す） */
.fv-bg { display: none; }

/* ---------- トップ：真ん中版（center.html / center-blue.html） ---------- */
body.fv-center .fv { background: var(--bg); }
body.fv-center .fv-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
body.fv-center .fv-visual { display: none; }
body.fv-center .fv-stats { justify-content: center; }
body.fv-center .fv-catch em {        /* 2行目にうすいマーカー */
  background: linear-gradient(transparent 62%, var(--main-soft) 62%);
  padding: 0 4px;
}
body.fv-center .fv-bg {
  display: grid;
  position: absolute;
  inset: 32px;
  z-index: 0;
  grid-template-columns: repeat(7, 1fr);   /* パソコン：横7列 */
  grid-template-rows: repeat(3, 1fr);      /* 縦はトップの高さにぴったり3段 */
  gap: 20px;
}
body.fv-center .bg-tile:nth-child(n+22) { display: none; }   /* 7列×3段＝21個だけ見せる */
.bg-tile { background: #f7f6f5; border-radius: 16px; opacity: 0.8; }
.bg-tile--tint { background: var(--main-soft); opacity: 0.45; }

/* 丸いアイコン枠（自己紹介で使用） */
.icon-frame {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--main);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: var(--fs-note);
  color: var(--text-sub);
  text-align: center;
  line-height: 1.4;
}
.icon-frame { overflow: hidden; }   /* 丸の外にはみ出さないようにする */
.icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;              /* 画像を丸く切り抜く */
}

/* ---------- 2. お悩み ---------- */
.worries {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.worries li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border-radius: 14px;
  padding: 16px var(--sp-card);
  font-weight: 500;
  border: 1px solid var(--line);
}
.check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--main-soft);
  color: var(--main);
  display: grid;
  place-items: center;
}
.answer {
  max-width: 760px;
  margin: var(--sp-block) auto 0;
  text-align: center;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-weight: 700;
  font-size: var(--fs-emph);
  line-height: var(--lh-body);
  text-wrap: balance;
}
.answer em { font-style: normal; color: var(--accent); }

/* ---------- 3. 実績 ---------- */
.results-lead {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-weight: 700;
  font-size: var(--fs-emph);
  line-height: var(--lh-head);
  color: var(--text) !important;
  text-wrap: balance;
}
.awards {                            /* 左に「3社担当中」を大きく、右にほかの3つ */
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.award {                             /* 上に説明、下に月桂樹と数字 */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.award-label {                       /* 「楽天店舗の運用代行」など。一番伝えたいので大きく太く */
  font-weight: 900;
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
  color: var(--text);
  margin-bottom: 6px;
}
.award-core {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 200 / 160;           /* 丸く包む月桂樹 */
  display: grid;
  place-items: center;
}
.award-laurel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--main);
  opacity: 0.45;                     /* 中の実績が主役になるよう、うすめに */
}
.award-text {
  position: relative;
  top: -6%;                           /* 月桂樹の葉先が上に伸びている分、少し上げて見た目の真ん中に */
  text-align: center;
  line-height: 1.3;
}
.award-text small {                  /* 「担当中」「継続中」 */
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text);
}
.award-text b {
  display: block;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-weight: 900;
  font-size: 58px;
  line-height: 1.1;
  color: var(--accent);
  margin: 2px 0;
}
.note-mark {
  font-size: 0.8em;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
}
.award-text b span { font-size: 24px; color: var(--text); margin-left: 2px; }
.award-text b.award-word { font-size: 42px; padding: 6px 0; }
/* 主役：3社担当中 */
.award--main {                       /* 黄色い丸いメダル */
  grid-row: 1 / 4;
  justify-self: center;
  justify-content: center;
  width: 400px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #ffe896;
  padding: 24px;
}
.award--main .award-label { margin-bottom: 0; }
.award--main .award-label { font-size: 26px; }
.award--main .award-core { max-width: 340px; }
.award--main .award-text b { font-size: 120px; }
.award--main .award-text b span { font-size: 44px; }
.award--main .award-text small { font-size: 22px; }
/* ほかの3つ：小さい月桂樹＋右に説明 */
.award--sub {
  flex-direction: row;
  gap: 20px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.award--sub .award-core { width: 150px; max-width: none; flex-shrink: 0; }
.award--sub .award-label { order: 2; text-align: left; margin: 0; font-size: 20px; }
.award--sub .award-text b { font-size: 44px; }
.award--sub .award-text b span { font-size: 20px; }
.award--sub .award-text b.award-word { font-size: 32px; padding: 0; }
.award--sub .award-text small { font-size: 15px; }
/* 受賞カードの中の説明と注意書き */
.award--sub .award-info { order: 2; text-align: left; }
.award-note {
  margin-top: 4px;
  font-size: var(--fs-note);
  line-height: 1.6;
  color: var(--text-sub);
}
.award-note em { font-style: normal; font-weight: 900; color: var(--accent); white-space: nowrap; }   /* 「上位1％」を赤字に */
.awards-note {
  text-align: center;
  font-size: var(--fs-note);
  color: var(--text-sub);
  margin-top: var(--sp-head);
}
.voice { margin-top: calc(var(--sp-block) * 1.5); }

/* お客様の声 */
.voice-title {
  text-align: center;
  font-size: var(--fs-h3);
}
.voice-lead {
  text-align: center;
  color: var(--text-sub);
  margin-top: 8px;
}
.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-gap);
  margin-top: 24px;
}
.voice-card {
  position: relative;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px var(--sp-card) var(--sp-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
}
.voice-card::before {              /* 左上の引用符 */
  content: "“";
  position: absolute;
  top: 4px;
  left: 18px;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-size: 48px;
  line-height: 1;
  color: var(--main);
  opacity: 0.35;
}
.voice-card p {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: var(--lh-body);
}
.voice-card > span {
  font-size: var(--fs-small);
  color: var(--text-sub);
  text-align: right;
}
.voice-card > span::before { content: "― "; }

/* ---------- 3. 実績（ACHIEVEMENTS） ---------- */
.results-head .eyebrow {               /* 「── ACHIEVEMENTS ──」 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--main);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.35em;
  line-height: 1.4;
}
.results-head .eyebrow::before,
.results-head .eyebrow::after {
  content: "";
  width: 64px;
  height: 2px;
  background: var(--main);
}
.results-title {
  font-size: calc(var(--fs-h2) * 1.5);
  letter-spacing: 0.12em;
  line-height: 1.3;
  margin: 6px 0 10px;
}
.achv {                                /* 3つの実績を横に並べる */
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;   /* 1つ目（3社担当中）を広く */
  align-items: end;
  max-width: 58em;                     /* 文字の大きさに合わせて広がる */
  margin: 0 auto;
}
.achv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
.achv-item + .achv-item { border-left: 1px solid var(--line); }   /* 間のうすい区切り線 */
.achv-icon svg { display: block; width: 6em; height: 5em; }
.achv-body {                           /* 月桂樹で包む部分 */
  position: relative;
  width: 100%;
  max-width: 17em;
  margin-top: -0.4em;
  padding: 2.2em 2em 1.6em;
  text-align: center;
}
.achv-laurel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--laurel);
  z-index: 0;
}
.achv-body p { position: relative; z-index: 1; }
.achv-item--main { font-size: 1.25em; }          /* 1つ目は全体をひと回り大きく */
.achv-item--main .achv-body::before {            /* うしろに黄色い丸 */
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 13em;
  height: 13em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffe896;
}
.achv-item--main .achv-num { font-size: 5.2em; }
.achv-label {
  min-height: 2.8em;                   /* 2行になっても数字の高さがそろうように */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 900;
  font-size: 1.1em;
  line-height: 1.4;
}
.achv-num {
  font-weight: 900;
  font-size: 4.6em;
  line-height: 1.05;
  color: var(--accent);
  margin-top: 0.05em;
}
.achv-num span { font-size: 0.48em; color: var(--text); margin-left: 2px; }
.achv-sub { font-weight: 900; font-size: 1.25em; line-height: 1.4; }

/* 月間優良ショップの帯 */
.achv-ribbon {
  max-width: 58em;
  margin: 2.4em auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4em;
  padding: 1em 4em;
  background: var(--main);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 50%, 100% 100%, 0 100%, 22px 50%);
}
.achv-ribbon-main { display: flex; align-items: center; gap: 0.6em; flex-shrink: 0; }
.achv-trophy { width: 2em; height: 2em; flex-shrink: 0; }
.achv-ribbon-title { font-weight: 900; font-size: 1.45em; letter-spacing: 0.05em; white-space: nowrap; }
.achv-ribbon-badge {
  background: #fff;
  color: var(--main);
  font-weight: 900;
  font-size: 1.45em;
  line-height: 1.3;
  padding: 0.1em 0.5em;
  white-space: nowrap;
}
.achv-ribbon-note {
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  padding-left: 1.2em;
  font-size: var(--fs-small);
  line-height: 1.6;
}
.achv-ribbon-note b { font-weight: 900; }

/* ---------- 3. 実績（左に主役、右にほかの実績） ---------- */
.kpi {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3em;
  align-items: center;
  max-width: 62em;
  margin: 0 auto;
}
.kpi-main {                            /* うすい色の大きな丸 */
  width: 100%;
  max-width: 26em;
  aspect-ratio: 1 / 1.06;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--kpi-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1em;
}
.kpi-main--img {                       /* 主役は、いただいた画像をそのまま使う */
  aspect-ratio: auto;
  background: none;
  border-radius: 0;
  padding: 0;
  max-width: 28em;
}
.kpi-main--img img { display: block; width: 100%; height: auto; }
.kpi-main-icon svg { display: block; width: 7.4em; height: 5.4em; }
.kpi-main-label { position: relative; font-weight: 900; font-size: 1.9em; line-height: 1.3; margin-top: 0.2em; }
.kpi-main-num-wrap { position: relative; width: 100%; display: flex; justify-content: center; }
.kpi-laurel {                          /* 「3社」の左右から、説明の横まで伸びる月桂樹 */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -5.2em;
  bottom: -1em;
  width: 17em;
  height: auto;
  color: var(--main);
  opacity: 0.3;
  pointer-events: none;
}
.kpi-main-label, .kpi-main-ribbon { z-index: 1; }
.kpi-side { font-size: 1.08em; }
.kpi-main-num {
  position: relative;
  font-weight: 900;
  font-size: 7em;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.kpi-main-num span { font-size: 0.62em; }
.kpi-main-ribbon {                     /* 赤い帯「担当中」 */
  position: relative;
  margin-top: 0.1em;
  background: var(--main);
  color: #fff;
  font-weight: 900;
  font-size: 1.8em;
  letter-spacing: 0.12em;
  line-height: 1.5;
  padding: 0.1em 1.6em;
  clip-path: polygon(0 0, 100% 0, 93% 50%, 100% 100%, 0 100%, 7% 50%);
}
.kpi-list { display: grid; }
.kpi-row {
  display: grid;
  grid-template-columns: 5em 1fr auto;
  align-items: center;
  gap: 1em;
  padding: 1em 0;
}
.kpi-row + .kpi-row { border-top: 1px solid var(--line); }
.kpi-icon svg { display: block; width: 5em; height: 4.2em; }
.kpi-label { font-weight: 900; font-size: 1.4em; line-height: 1.35; }
.kpi-label .nb { white-space: nowrap; }
.kpi-pill {                            /* 「3年 継続中」などの丸い枠 */
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3em;
  min-width: 7.4em;
  background: var(--main-soft);
  border-radius: 999px;
  padding: 0.25em 1em;
  font-weight: 900;
  font-size: 1.2em;
  white-space: nowrap;
}
.kpi-pill b { font-size: 2em; line-height: 1.2; color: var(--accent); }
.kpi-pill b span { font-size: 0.62em; }
.kpi-pill--word b { font-size: 1.6em; }
.kpi-note {                            /* 赤い枠の注意書き */
  margin-top: 1.2em;
  border: 2px solid var(--main);
  border-radius: 2em;
  padding: 0.8em 1.6em;
  text-align: center;
  font-weight: 700;
  line-height: 1.6;
}
.kpi-note em {
  font-style: normal;
  font-weight: 900;
  font-size: 1.5em;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- 4. お任せいただけること ---------- */
.service-table {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
}
.service-row dt {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-weight: 800;
  font-size: var(--fs-h3);
  line-height: var(--lh-body);
  color: var(--main);
}
.service-row dd { margin: 0; color: var(--text-sub); }
.outside {
  max-width: 880px;
  margin: 24px auto 0;
  background: var(--bg-cream);
  border-radius: var(--radius);
  padding: 20px var(--sp-card);
}
.outside b { margin-right: 16px; }
.outside span { color: var(--text-sub); margin-right: 20px; white-space: nowrap; }

/* ---------- 5. 制作実績 ---------- */
.works-group + .works-group { margin-top: 48px; }
.works-group h3 {
  font-size: var(--fs-h3);
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--main);
  line-height: 1.3;
}
.works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-gap);
}
.works--lp { grid-template-columns: repeat(2, 1fr); }
.work {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.work-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-cream);
  display: grid;
  place-items: center;
  color: var(--text-sub);
  font-size: var(--fs-note);
  border-bottom: 1px solid var(--line);
}
.work-img--square { aspect-ratio: 1 / 1; }
.work-img { position: relative; overflow: hidden; }
.work-img img {                      /* 制作物の画像（枠の大きさに合わせる） */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works--banner { grid-template-columns: repeat(2, 1fr); }
.work-img--banner { aspect-ratio: 1080 / 500; padding: 12px; }
.work-img--banner img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }    /* バナーは文字が切れないよう全体を見せる */
.work-img--lp img { object-position: top; }       /* LPは上の部分を見せる */
.work-img--lp { aspect-ratio: 16 / 10; }
.work-text { padding: 18px 20px 22px; }
.work-text h4 { font-size: 19px; text-wrap: wrap; }
.work-text p { font-size: var(--fs-small); color: var(--text-sub); margin-top: 6px; line-height: 1.7; }
.work-text p span span { color: var(--main); font-weight: 700; }

/* LPのカード（押すと全体を表示） */
.work--lp {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.work--lp:hover { border-color: var(--main); }
.work--lp:focus-visible { outline: 3px solid var(--main); outline-offset: 3px; }
.work-text .work-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--main);
  font-weight: 700;
  font-size: 18px;                    /* 目立つように大きめ */
}
.work-hint svg { width: 20px; height: 20px; flex-shrink: 0; }

/* LPの全体を表示する窓 */
.lp-modal {
  width: min(560px, 92vw);
  max-height: 90vh;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.lp-modal[open] { display: flex; flex-direction: column; }
.lp-modal::backdrop { background: rgba(0, 0, 0, 0.65); }
.lp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: var(--fs-small);
}
.lp-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--main-soft);
  color: var(--main);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lp-modal-body { overflow-y: auto; }      /* 窓の中でLPを縦にスクロールして見る */
.lp-modal-body img { display: block; width: 100%; height: auto; }

/* ---------- 6. 3つの強み ---------- */
.strengths { display: grid; gap: var(--sp-gap); }
.strength {
  background: var(--bg);
  border-radius: 20px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 330px 1fr;   /* 見出しが途中で切れない幅 */
  gap: var(--sp-block);
  border: 1px solid var(--line);
}
.strength-no {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--main);
  letter-spacing: 0.15em;
}
.strength h3 { font-size: 26px; margin: 6px 0 var(--sp-head); }
.strength-lead { color: var(--text-sub); }
.strength-items { display: grid; gap: 16px; }
.strength-items li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
}
.line-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--main-soft);
  color: var(--main);
  display: grid;
  place-items: center;
}
.line-icon svg { width: 26px; height: 26px; }
.strength-items div > b { display: block; font-size: 19px; line-height: 1.5; }
.strength-items div > span { display: block; font-size: var(--fs-small); color: var(--text-sub); line-height: 1.7; }
.safety {
  grid-column: 1 / -1;
  background: var(--bg-cream);
  border-radius: var(--radius);
  padding: 22px var(--sp-card);
}
.safety h4 { margin: 0 0 8px; font-size: 19px; }
.safety ul { display: grid; gap: 4px; font-size: var(--fs-small); color: var(--text-sub); }
.safety li::before { content: "・"; color: var(--main); }

/* ---------- 7. 自己紹介 ---------- */
.profile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}
.profile .icon-frame { width: 180px; height: 180px; font-size: var(--fs-small); }
.profile-name { font-size: 28px; }
.profile-role { color: var(--text-sub); font-size: var(--fs-small); margin: 4px 0 20px; }
.profile-text p + p { margin-top: var(--sp-head); }
.policy {
  margin-top: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: var(--sp-card);
}
.policy h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.policy ul { display: grid; gap: 8px; }
.policy li { display: flex; gap: 12px; }
.policy li .check { width: 22px; height: 22px; margin-top: 4px; }
.profile .pending { margin-top: 20px; text-align: left; }

/* ---------- ご依頼後の流れ ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-gap);
}
.flow li {
  background: var(--bg);
  border-radius: 20px;
  padding: 28px var(--sp-card);
  text-align: center;
  border: 1px solid var(--line);
}
.flow p.flow-step { text-align: center; margin-bottom: 10px; }   /* STEPの枠は真ん中に */
.flow-step span {                    /* STEPの四角い枠（塗りつぶし） */
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--main);
  color: #fff;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.12em;
}
.flow h3 { font-size: 26px; margin: 4px 0 var(--sp-head); }
.flow p { color: var(--text-sub); text-align: left; }

/* ---------- 締め（ボタンなし） ---------- */
.consult-part { margin-top: calc(var(--sp-section) * 0.8); }   /* ご相談の流れコーナーの中の区切り */
.closing { text-align: center; }
.closing-box {
  max-width: 840px;
  margin: 0 auto;
  background: var(--bg-soft);
  border-radius: 24px;
  padding: 48px 40px;
}
.closing h2 { font-size: var(--fs-h2); }
.closing h2 em { font-style: normal; color: var(--accent); }
.closing p { margin-top: var(--sp-head); color: var(--text-sub); }
.closing .closing-lead {                         /* 「つくり手のこだわりを、楽天で選ばれる理由に。」 */
  margin-top: calc(var(--sp-head) * 1.4);
  font-weight: 900;
  font-size: var(--fs-emph);
  color: var(--text);
}
.closing-note {
  margin-top: 28px !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text) !important;
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  text-align: center;
  font-size: var(--fs-note);
  color: var(--text-sub);
}

/* =========================================================
   大きい画面（幅1281px以上）
   1280pxまでは今の大きさのまま。それより広い画面では、
   画面の広さに合わせて、幅・文字・カード・余白を少しずつ大きくする
   ========================================================= */
@media (min-width: 1281px) {
  :root {
    --max: clamp(1080px, 84vw, 1440px);     /* コンテンツの幅（最大1440px） */
    --fs-h1: clamp(60px, 4.69vw, 78px);    /* キャッチコピー */
    --fs-h2: clamp(36px, 2.81vw, 46px);      /* セクション見出し */
    --fs-h3: clamp(21px, 1.64vw, 25px);    /* 小見出し */
    --fs-emph: clamp(23px, 1.8vw, 28px);
    --fs-lead: clamp(20px, 1.56vw, 24px);
    --fs-body: clamp(18px, 1.406vw, 20px);  /* 本文（最大20px） */
    --fs-small: clamp(16px, 1.25vw, 18px);
    --fs-note: clamp(14px, 1.094vw, 16px);
    --sp-section: clamp(88px, 6.875vw, 120px);
    --sp-block: clamp(36px, 2.8vw, 48px);
    --sp-gap: clamp(18px, 1.4vw, 26px);
    --sp-card: clamp(26px, 2.03vw, 34px);
  }
  /* 中身の幅を、文字の大きさに合わせて広げる */
  .worries, .answer { max-width: 47.5em; }
  .service-table, .outside { max-width: 55em; }
  .service-row { grid-template-columns: 11.25em 1fr; }
  .profile { max-width: 57.5em; grid-template-columns: 11.25em 1fr; }
  .profile .icon-frame { width: 11.25em; height: 11.25em; }
  .closing-box { max-width: 52.5em; }
  .search-mock { max-width: 30em; }
  .fv-brand .fv-brand-icon { width: 9em; height: 9em; }
  .strength { grid-template-columns: 21em 1fr; }
  .line-icon { width: 3em; height: 3em; }
  .line-icon svg { width: 1.6em; height: 1.6em; }
  .strength-items li { grid-template-columns: 3em 1fr; }
  /* 小見出しや数字も、文字の大きさに合わせて大きくする */
  .logo { font-size: calc(var(--fs-h3) * 1.16); }
  .strength h3, .flow h3 { font-size: calc(var(--fs-h3) * 1.26); }
  .profile-name { font-size: calc(var(--fs-h3) * 1.37); }
  .work-text h4 { font-size: calc(var(--fs-h3) * 0.9); }
  .strength-items div > b, .safety h4 { font-size: calc(var(--fs-body) * 1.06); }
  .voice-card p { font-size: calc(var(--fs-body) * 1.06); }
  .work-text .work-hint { font-size: var(--fs-body); }
  .flow-step span { font-size: calc(var(--fs-body) * 1.12); }
  .award-label { font-size: calc(var(--fs-body) * 1.12); }
  .award-core { max-width: 280px; }
  .award-text b { font-size: calc(var(--fs-h2) * 1.6); }
  .award-text b span { font-size: calc(var(--fs-h2) * 0.66); }
  .award-text b.award-word { font-size: calc(var(--fs-h2) * 1.16); }
  .awards { max-width: 62em; }
  .award--main .award-label { font-size: calc(var(--fs-body) * 1.4); }
  .award--main { width: 26em; }
  .award--main .award-core { max-width: 19em; }
  .award--main .award-text b { font-size: calc(var(--fs-h2) * 3.3); }
  .award--main .award-text b span { font-size: calc(var(--fs-h2) * 1.2); }
  .award--main .award-text small { font-size: calc(var(--fs-body) * 1.2); }
  .award--sub .award-core { width: 170px; }
  .award--sub .award-label { font-size: calc(var(--fs-body) * 1.12); }
  .award--sub .award-text b { font-size: calc(var(--fs-h2) * 1.25); }
  .award--sub .award-text b span { font-size: calc(var(--fs-h2) * 0.55); }
  .award--sub .award-text b.award-word { font-size: calc(var(--fs-h2) * 0.9); }
  .fv-brand p { font-size: calc(var(--fs-h3) * 1.55); }
  .fv-brand small { font-size: calc(var(--fs-body) * 1.05); }
}

/* =========================================================
   タブレット
   ========================================================= */
@media (max-width: 900px) {
  .kpi { grid-template-columns: 1fr; gap: 2em; max-width: 560px; }
  .achv { grid-template-columns: 1fr; max-width: 420px; }
  .achv-item--main { font-size: 1.12em; }            /* 3つの実績を縦に並べる */
  .achv-item { padding: 1.6em 0; }
  .achv-item + .achv-item { border-left: none; border-top: 1px solid var(--line); }
  .achv-ribbon { flex-direction: column; gap: 0.6em; padding: 1.2em 2.4em; text-align: center; }
  .achv-ribbon-note { border-left: none; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.6); padding-top: 0.6em; }
  .header { display: none; }         /* スマホでは目次を出さないので、ヘッダーごと隠す */
  .fv-inner { grid-template-columns: 1fr; gap: 48px; }
  .search-mock { margin: 0 auto; max-width: 400px; }
  body.fv-center .fv-bg { grid-template-columns: repeat(5, 1fr); }   /* タブレット：横5列×3段 */
  body.fv-center .bg-tile:nth-child(n+16) { display: none; }
  .nav { display: none; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .strength { grid-template-columns: 1fr; gap: 24px; padding: 32px var(--sp-card); }
  .awards { grid-template-columns: 1fr; max-width: 560px; gap: 16px; }   /* 主役の下に3つを並べる */
  .award--main { grid-row: auto; margin-bottom: 8px; width: 340px; }
}

/* =========================================================
   スマホ（サイズの値は上の「サイズの設定（スマホ）」で切り替え）
   ========================================================= */
@media (max-width: 600px) {
  .logo small { display: none; }
  .fv-tag { padding: 5px 14px; }
  .fv-catch { margin-top: 20px; }
  .fv-sub { margin-top: 18px; }
  .fv-brand { gap: 14px; margin-top: 24px; }
  .fv-brand .fv-brand-icon { width: 112px; height: 112px; }
  .fv-brand p { font-size: 25px; padding-left: 14px; }
  .fv-brand small { font-size: 16px; }
  .fv-catch { font-size: min(var(--fs-h1), 9vw); }
  .fv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  body.fv-center .fv-catch em { padding: 0; }
  .fv-stat { padding: 10px 10px 12px; border-radius: 12px; }
  .fv-stat b { font-size: 19px; }
  .search-mock { padding: 14px; border-radius: 20px; }
  .tiles { gap: 10px; }
  .tile--hit i { font-size: 13px; }
  body.fv-center .fv-bg { inset: 16px; grid-template-columns: repeat(3, 1fr); gap: 12px; }   /* スマホ：横3列×3段 */
  body.fv-center .bg-tile:nth-child(n+10) { display: none; }
  .section-head h2.label--heading { padding: 8px 20px; border-radius: 20px; }
  .worries li { padding: 14px 18px; gap: 12px; }
  .answer { text-align: left; }
  .award-label { font-size: 16px; }
  .award-core { max-width: 170px; }
  .award-text b { font-size: 40px; }
  .award-text b span { font-size: 16px; }
  .award-text b.award-word { font-size: 28px; }
  .award--main .award-label { font-size: 20px; }
  .kpi-main { font-size: 0.8em; }
  .kpi-side { font-size: 0.86em; }
  .kpi-row { grid-template-columns: 4em 1fr auto; gap: 0.7em; }
  .kpi-icon svg { width: 4em; height: 3.4em; }
  .kpi-pill { min-width: 0; padding: 0.2em 0.8em; }
  .kpi-note { padding: 0.8em 1em; border-radius: 1.4em; }
  .achv-body { padding-top: 1.2em; margin-top: -0.8em; }
  .achv-ribbon { padding: 1.1em 1.4em; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%); }
  .achv-ribbon-title, .achv-ribbon-badge { font-size: 1.2em; }
  .achv-trophy { width: 1.6em; height: 1.6em; }
  .award--main { width: min(300px, 86vw); padding: 16px; }
  .award--main .award-core { max-width: 230px; }
  .award--main .award-text b { font-size: 88px; }
  .award--main .award-text b span { font-size: 32px; }
  .award--main .award-text small { font-size: 18px; }
  .award--sub { gap: 12px; padding: 8px 14px; }
  .award--sub .award-core { width: 110px; }
  .award--sub .award-label { font-size: 16px; }
  .award--sub .award-text b { font-size: 34px; }
  .award--sub .award-text b span { font-size: 15px; }
  .award--sub .award-text b.award-word { font-size: 24px; }
  .service-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 4px; }
  .works { gap: 12px; }
  .works--lp { grid-template-columns: 1fr; }
  .works--banner { grid-template-columns: 1fr; }
  .work-img--banner { aspect-ratio: auto; }       /* スマホではバナーの形に合わせる */
  .work-img--banner img { position: static; width: 100%; height: auto; }
  .work-text { padding: 14px 14px 16px; }
  .work-text h4 { font-size: 15px; }
  .strength h3 { font-size: 23px; }
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .profile .icon-frame { width: 140px; height: 140px; margin: 0 auto; }
  .profile-name { font-size: 24px; text-align: center; }
  .profile-role { text-align: center; }
  .flow { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
  .voice-card p { font-size: 17px; }
  .flow h3 { font-size: 23px; }
  .closing-box { padding: 36px 20px; border-radius: 20px; }
  .closing-note { text-align: left; }
}

/* =========================================================
   パソコン（幅1180px以上）：「3つの強み」のカード3枚を横に並べる
   （それより狭いと1枚が細くなりすぎるので、今までの並び）
   ========================================================= */
@media (min-width: 1180px) {
  .strengths { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .strength {
    grid-template-columns: 1fr;          /* カードの中は、見出し → 項目 の縦並び */
    align-content: start;
    gap: 20px;
    padding: 32px 28px;
  }
  .strength h3 { font-size: calc(var(--fs-h3) * 1.1); }
  .strength-lead { font-size: var(--fs-small); }
  .safety { padding: 18px 20px; }
}

/* 横並びのとき：3枚のカードで「見出し」「説明文」「小項目」の高さ（開始位置）を揃える */
@media (min-width: 1180px) {
  .strengths { row-gap: 0; }
  .strength {
    grid-row: span 4;                    /* 見出し／説明文／小項目／安心ボックス の4段 */
    grid-template-rows: subgrid;         /* 段の高さを3枚で共有する */
    row-gap: 20px;
    align-content: stretch;
  }
  .strength > div:first-child { display: contents; }
  .strength h3 { margin: 0; align-self: start; }
  .strength-lead { margin: 0; align-self: start; }
  .strength-items { align-self: start; }
}
.strength-body { display: contents; }   /* スマホ・タブレットでは今までどおりの並び */
@media (min-width: 1180px) {
  .strength { grid-row: span 3; }       /* 見出し／説明文／小項目（＋安心ボックス）の3段 */
  .strength-body { display: grid; gap: 20px; align-self: start; }
}
/* 説明文は見出しのすぐ下に（①③を②の高さに合わせない）。小項目の開始位置だけ3枚で揃える */
@media (min-width: 1180px) {
  .strength { grid-row: span 2; }       /* 見出し＋説明文／小項目 の2段 */
  .strength > div:first-child { display: grid; gap: 20px; align-content: start; }
}
