/* =========================================
   Design Box / 対応範囲 カテゴリページ・個別サービスページ 共通
   db-service.css  2026-08-31 新設
   対象：/service/creative/ web/ content/ marketing/ global/ coding/ website/
   - 2026-08-28 DesignBox MT 決定「5カテゴリページ＋主力制作物の個別ページ（ハイブリッド）」
     の受け皿。天野さんの構成案（Word）が上がり次第、本文を差し替える前提の仮ページ。
   - 旧WordPress由来の business.css / sublayer.css は読まない（新規ページなので依存を持ち込まない）。
   - 色は newtop.css の CSS変数を参照。見出しは締め色 #16283F、青はリンクのみ、
     CTAオレンジは db-service-cta（db-related.css）だけ。回遊リンクには使わない。
   - 版面は --nt-inner(950px)。padding は .dbs-inner が持つ（他セクションと左端を揃える）。
   - セレクタは .dbs- 接頭辞に閉じ、既存セレクタは再定義しない。
========================================= */

/* 変数はページ全体で参照できるよう body に置くが、
   color / line-height は本文（.dbs-hero / .dbs-sec）側で当てる。
   body に直接当てるとフッター等の共通パーツまで上書きしてしまう。 */
.dbs {
  --dbs-ink: #16283F;
  --dbs-text: #333333;
  --dbs-blue: var(--nt-blue, #004DA0);
  --dbs-sand: #FBF7F0;
  --dbs-sand-deep: #F7F3EA;
  --dbs-border: #E2D9C8;
  --dbs-label: #7E6F52;      /* 白地の小ラベル用。#8A7A5C は白地 4.18 で AA 未達 */
}

.dbs-hero,
.dbs-sec {
  color: var(--dbs-text);
  line-height: 1.85;
}

.dbs-hero *,
.dbs-sec *,
.dbs-hero *::before,
.dbs-hero *::after,
.dbs-sec *::before,
.dbs-sec *::after { box-sizing: border-box; }

.dbs-inner {
  width: 100%;
  max-width: var(--nt-inner, 950px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- パンくず ---- */
/* global.css が素の nav 要素へ旧ヘッダー用の指定（PC: table-cell＋padding 0 10px 0 30px／
   1300px以下: display:none＋position:fixed＋紺背景）を当てているため、パンくずの nav では打ち消す。
   打ち消さないと1300px以下（ノートPC〜スマホ）でパンくずが消える（2026-09-21 本番 /service/web/ 375px で実測） */
.dbs-hero nav {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  position: static;
  float: none;
  background: none;
}
.dbs-crumb {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--dbs-label);
}
.dbs-crumb li + li::before { content: "／"; margin: 0 6px; color: #b8ab92; }
/* WCAG 2.5.8：リンクのタップ領域を高さ24px以上にする（12px×行高1.6＝19pxでは不足）。
   li も同じ min-height・中央揃えにして、リンクと現在地テキストの縦位置をずらさない */
.dbs-crumb li { display: inline-flex; align-items: center; min-height: 24px; }
.dbs-crumb a { display: inline-flex; align-items: center; min-height: 24px; color: var(--dbs-blue); text-decoration: none; }
.dbs-crumb a:hover, .dbs-crumb a:focus-visible { text-decoration: underline; }

/* ---- ヒーロー（サンド地） ---- */
.dbs-hero {
  background: var(--dbs-sand);
  border-bottom: 1px solid var(--dbs-border);
  padding: 40px 0 44px;
}
.dbs-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--dbs-label);
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dbs-hero h1 {
  margin: 0 0 14px;
  color: var(--dbs-ink);
  font-size: 34px;
  line-height: 1.4;
  font-weight: 700;
}
.dbs-hero h1 small {
  display: block;
  margin-top: 6px;
  color: var(--dbs-blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}
.dbs-lead {
  max-width: 760px;
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
}

/* ---- ヒーロー内の要点＋CTA（2026-09-21 coding から導入）----
   見出し → リード → 要点 → CTA を1ブロックに収め、CTAが本文から浮かないようにする。
   CTA色は newtop.css の --nt-cta（白文字 4.59:1）。副ボタンは白地青枠でオレンジを使わない。 */
.dbs-hero-points {
  list-style: none;
  max-width: 760px;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--dbs-ink);
  font-weight: 700;
}
.dbs-hero-points li {
  position: relative;
  padding-left: 26px;
}
.dbs-hero-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .42em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--dbs-blue);
  border-bottom: 2px solid var(--dbs-blue);
  transform: rotate(-45deg);
}
.dbs-hero-cta {
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
/* newtop.css の .nt a{color:inherit} に負けないよう .nt を含めて詳細度を上げる */
.nt .dbs-btn-main,
.nt .dbs-btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 34px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.nt .dbs-btn-main { background: var(--nt-cta, #BF5700); color: #fff; }
.nt .dbs-btn-main:hover { opacity: .88; }
.nt .dbs-btn-sub {
  background: #fff;
  border: 2px solid var(--dbs-blue);
  color: var(--dbs-blue);
  font-size: 15px;
  padding: 10px 26px;
}
.nt .dbs-btn-sub:hover { background: var(--dbs-blue); color: #fff; }
.dbs-btn-main:focus-visible,
.dbs-btn-sub:focus-visible { outline: 2px solid var(--dbs-ink); outline-offset: 2px; }

/* ---- セクション共通 ---- */
.dbs-sec { padding: 52px 0; }
.dbs-sec--sand { background: var(--dbs-sand-deep); }
.dbs-sec h2 {
  margin: 0 0 8px;
  color: var(--dbs-ink);
  font-size: 26px;
  line-height: 1.45;
  font-weight: 700;
}
.dbs-sec-lead { margin: 0 0 28px; font-size: 15px; }
.dbs-sec p { margin: 0 0 1em; }
.dbs-sec p:last-child { margin-bottom: 0; }

/* ---- お悩み 3カラム ---- */
.dbs-pain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dbs-pain li {
  background: #fff;
  border: 1px solid var(--dbs-border);
  border-radius: 8px;
  padding: 20px 20px 18px;
}
.dbs-pain h3 {
  margin: 0 0 8px;
  color: var(--dbs-ink);
  font-size: 16px;
  line-height: 1.5;
}
.dbs-pain p { margin: 0; font-size: 14px; line-height: 1.8; }
/* お悩みが4枚のとき（website）は2×2。3列だと1枚だけ次の行に余る */
.dbs-pain--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* カード群の後ろに置くまとめ文 */
.dbs-sec .dbs-sec-after { margin: 24px 0 0; font-size: 15px; }

/* ---- できること（行リスト） ---- */
.dbs-can {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--dbs-border);
}
.dbs-can > li {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--dbs-border);
}
.dbs-can h3 {
  margin: 0;
  color: var(--dbs-ink);
  font-size: 16px;
  line-height: 1.6;
}
.dbs-can p { margin: 0; font-size: 14px; line-height: 1.8; }
.dbs-can .dbs-can-link {
  align-self: center;
  white-space: nowrap;
  color: var(--dbs-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.dbs-can .dbs-can-link::after { content: " →"; }
.dbs-can .dbs-can-link:hover, .dbs-can .dbs-can-link:focus-visible { text-decoration: underline; }
.dbs-can .dbs-can-note {
  align-self: center;
  white-space: nowrap;
  color: var(--dbs-label);
  font-size: 12px;
}

/* 右端の補足列（リンク／注記）を持たない2列版（2026-09-21 coding） */
.dbs-can--plain > li { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); }

/* ---- 担当の分業体制（2026-09-21 coding）----
   窓口 → 各領域の担当、という役割分担を4枚で見せる。1枚目（窓口）だけ締め色で区別する。 */
.dbs-team {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.dbs-team li {
  background: #fff;
  border: 1px solid var(--dbs-border);
  border-top: 3px solid var(--dbs-blue);
  border-radius: 6px;
  padding: 16px 16px 14px;
}
.dbs-team li:first-child { border-top-color: var(--dbs-ink); }
.dbs-team h3 { margin: 0 0 6px; color: var(--dbs-ink); font-size: 15px; line-height: 1.5; }
.dbs-team p { margin: 0; font-size: 13.5px; line-height: 1.75; }
.dbs-team-role {
  display: block;
  margin-bottom: 4px;
  color: var(--dbs-label);
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---- メリット 2×2 ---- */
.dbs-merit {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dbs-merit li {
  background: #fff;
  border: 1px solid var(--dbs-border);
  border-left: 4px solid var(--dbs-blue);
  border-radius: 6px;
  padding: 18px 20px;
}
.dbs-merit h3 { margin: 0 0 6px; color: var(--dbs-ink); font-size: 16px; line-height: 1.5; }
.dbs-merit p { margin: 0; font-size: 14px; line-height: 1.8; }

/* ---- 進め方 3ステップ ---- */
.dbs-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: dbs-step;
}
.dbs-flow li {
  position: relative;
  background: #fff;
  border: 1px solid var(--dbs-border);
  border-radius: 8px;
  padding: 18px 20px 18px;
  counter-increment: dbs-step;
}
.dbs-flow h3 {
  margin: 0 0 8px;
  color: var(--dbs-ink);
  font-size: 16px;
  line-height: 1.5;
}
.dbs-flow h3::before {
  content: "Step " counter(dbs-step);
  display: block;
  margin-bottom: 4px;
  color: var(--dbs-label);
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}
.dbs-flow p { margin: 0; font-size: 14px; line-height: 1.8; }

/* 順番に進むことが分かる版（2026-09-21 coding）：番号バッジ＋ステップ間の矢印。
   矢印はカードの間（gap）に置くため、gap を矢印の幅ぶん広げる。
   縦積みになる幅での向きの切り替えは、末尾の @media (max-width: 960px) に置く */
.dbs-flow--arrow { gap: 40px; }
.dbs-flow--arrow li { padding-top: 22px; }
.dbs-flow--arrow h3::before {
  content: counter(dbs-step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--dbs-blue);
  color: #fff;
  font-size: 17px;
  letter-spacing: 0;
}
/* 4ステップ版（website）。カード幅を確保するため gap を詰め、矢印の位置もそれに合わせる。
   横並びの幅でだけ効かせる（縦積み時の下向き矢印の指定を上書きしないため） */
@media (min-width: 961px) {
  .dbs-flow--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
  .dbs-flow--4 li { padding-left: 16px; padding-right: 16px; }
  .dbs-flow--4.dbs-flow--arrow li:not(:last-child)::after { right: -21px; width: 10px; height: 10px; }
}
.dbs-flow--arrow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -27px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--dbs-blue);
  border-right: 3px solid var(--dbs-blue);
  transform: translateY(-50%) rotate(45deg);
}

/* ---- 料金の目安 ---- */
.dbs-price {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 20px 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--dbs-border);
  border-radius: 8px;
  padding: 24px 28px;
}
.dbs-price-num {
  margin: 0;
  color: var(--dbs-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.dbs-price-num strong {
  display: block;
  color: var(--dbs-blue);
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 600;
}
.dbs-price-num strong small { font-size: 18px; font-weight: 700; margin-left: 2px; }
.dbs-price-desc { margin: 0; font-size: 14px; line-height: 1.85; }
.dbs-price-desc ul { margin: 8px 0 0; padding-left: 1.2em; }
.dbs-price-desc li { margin: 2px 0; }
.dbs-price-desc a { color: var(--dbs-blue); }
.dbs-price-note { margin: 10px 0 0; font-size: 12px; color: var(--dbs-label); }

/* ---- 対応の範囲・線引き（.dbs-merit を流用しつつ、話題が違うので枠線色を変える）----
   2026-08-31 追加。カテゴリごとの固有情報を増やす改稿にあわせて新設。
   メリット（青の縦罫）と対になる「できないこと」なので、罫はベージュにして
   同じ見た目に見えないようにする。赤系は警告に見えるため使わない。 */
.dbs-merit--limit li { border-left-color: var(--dbs-border); }

/* ---- 時間の目安 ---- */
.dbs-time {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--dbs-border);
}
.dbs-time li {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dbs-border);
  font-size: 14px;
  line-height: 1.8;
}
.dbs-time strong { color: var(--dbs-ink); font-weight: 700; }
.dbs-time-note { margin: 18px 0 0; font-size: 13.5px; line-height: 1.85; }
.dbs-time-note a { color: var(--dbs-blue); }

/* ---- FAQ ---- */
.dbs-faq { margin: 0; }
.dbs-faq dt {
  margin: 22px 0 6px;
  padding-left: 1.9em;
  position: relative;
  color: var(--dbs-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
.dbs-faq dt:first-child { margin-top: 0; }
.dbs-faq dt::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: .05em;
  width: 1.4em;
  height: 1.4em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dbs-ink);
  color: #fff;
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.dbs-faq dd {
  margin: 0;
  padding-left: 1.9em;
  font-size: 14.5px;
  line-height: 1.85;
}

/* ---- 汎用テキストリンク ---- */
/* 2026-08-31 修正: 旧 `.dbs a:not([class])` は body.dbs に付いていたため
   フッターのクラス無しリンク（電話・メール・ナビ・サービス一覧）まで青くしていた
   （実測 #004DA0 on #16283F = 1.82 で判読不能）。本文セクション内に限定する。 */
.dbs-hero a:not([class]),
.dbs-sec a:not([class]) { color: var(--dbs-blue); }

/* ---- レスポンシブ ---- */
@media (max-width: 960px) {
  .dbs-pain, .dbs-flow { grid-template-columns: 1fr; }
  .dbs-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 縦積み時は矢印を下向きにしてカードの下（gap）へ移す */
  .dbs-flow--arrow { gap: 36px; }
  .dbs-flow--arrow li:not(:last-child)::after {
    top: auto;
    bottom: -24px;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}
@media (max-width: 768px) {
  .dbs-inner { padding: 0 16px; }
  .dbs-hero { padding: 28px 0 30px; }
  .dbs-hero h1 { font-size: 26px; }
  .dbs-lead { font-size: 15px; }
  .dbs-sec { padding: 40px 0; }
  .dbs-sec h2 { font-size: 22px; }
  .dbs-merit { grid-template-columns: 1fr; }
  .dbs-team { grid-template-columns: 1fr; }
  .dbs-hero-cta { flex-direction: column; align-items: stretch; }
  .dbs-can > li,
  .dbs-can--plain > li { grid-template-columns: 1fr; gap: 4px; }
  .dbs-time li { grid-template-columns: 1fr; gap: 2px; }
  .dbs-can .dbs-can-link, .dbs-can .dbs-can-note { white-space: normal; justify-self: start; }
  .dbs-price { grid-template-columns: 1fr; padding: 20px 18px; }
  .dbs-price-num strong { font-size: 38px; }
}
