/* ============================================================
   サービスの下層ページ（/services/web/。2026-11-01 新設）
   色・文字はテーマの変数（main.css の :root）を使う。新しい色は足さない
   ============================================================ */

.svc { --ng: #E72A83; /* 「入口」の札（お知らせの日付と同じ明るいマゼンタ） */ }

/* ---------- HERO ---------- */
.svc-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate; /* 背景の写真を、この枠の中の一番下に置く */
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}
.svc-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center 40%;
  opacity: 0.5;
}
.svc-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,9,17,0.95) 0%, rgba(5,9,17,0.8) 45%, rgba(5,9,17,0.35) 100%);
}
.svc-hero .back-link { display: flex; width: fit-content; margin-bottom: 36px; }
.svc-hero .section-eyebrow { display: flex; }
.svc-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.25;
}
.svc-hero__catch {
  margin-top: 12px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--acc-light);
}
.svc-hero__lead {
  margin-top: 20px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-2);
}
.svc-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.svc-toc a {
  font-size: 13px;
  padding: 8px 16px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(5,9,17,0.5);
  transition: color .3s, border-color .3s;
}
.svc-toc a:hover { color: var(--text); border-color: var(--acc); }

/* ---------- セクション共通 ---------- */
.svc-sec { padding: 120px 0; scroll-margin-top: 60px; }
.svc-sec--alt { background: rgba(8,13,26,0.80); }
.svc-sec .section-header { margin-bottom: 48px; }
.svc-sec .section-header .section-desc { max-width: 680px; }
.svc-em { color: var(--acc-light); }
.svc-sub { font-size: 18px; font-weight: 700; margin-bottom: 20px; text-wrap: balance; }
.svc-ref { margin-left: 4px; font-size: 12px; color: var(--text-2); text-decoration: underline; }

/* ---------- 制作の考え方（4つの点） ---------- */
.svc-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-point {
  position: relative;
  padding: 32px 24px 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
}
.svc-point__num {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; color: var(--text-3);
}
.svc-point__icon {
  width: 44px; height: 44px; margin-bottom: 20px;
  fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.svc-point__icon .fill { fill: var(--acc); }
.svc-point h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.svc-point p { font-size: 14px; line-height: 1.8; color: var(--text-2); }

/* ---------- 価格（体制の比べ） ---------- */
.svc-team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-team__col {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.svc-team__col--hw { border-color: var(--border-acc); background: var(--acc-glow-2); box-shadow: 0 0 40px -18px var(--acc-glow); }
.svc-team__label {
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-2); margin-bottom: 24px;
}
.svc-team__col--hw .svc-team__label { color: var(--acc-light); }
.svc-team__note { margin-top: 24px; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.svc-team__small { margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--text-2); }

.svc-chain { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.svc-chain li, .svc-chain__fork span {
  position: relative;
  font-size: 12px;
  padding: 7px 9px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text-2);
}
.svc-chain li + li { margin-left: 14px; }
/* 行き（→）は上、お返事（←・青）は下。一人ずつ順に戻る */
.svc-chain li + li::before, .svc-chain li + li::after,
.svc-chain__fork span::before, .svc-chain__fork span::after {
  position: absolute; left: -16px; font-size: 12px; line-height: 1;
}
.svc-chain li + li::before, .svc-chain__fork span::before { content: "→"; top: calc(50% - 10px); color: var(--text-3); }
.svc-chain li + li::after, .svc-chain__fork span::after { content: "←"; top: calc(50% + 1px); color: var(--blue); }
/* ディレクターから、デザイナーとエンジニアへ並行に分かれる */
.svc-chain li.svc-chain__fork { padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; margin-left: 30px; }
.svc-chain li.svc-chain__fork::before { content: ""; left: -36px; top: 50%; width: 14px; height: 1px; background: var(--text-3); }
.svc-chain li.svc-chain__fork::after { content: ""; left: -22px; top: calc((100% - 8px) / 4); bottom: calc((100% - 8px) / 4); width: 1px; background: var(--text-3); }
.svc-chain__you { color: var(--text) !important; border-color: var(--text-3) !important; }
.svc-loop { position: relative; display: inline-block; padding-bottom: 28px; }
.svc-loop__back {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  font-size: 11px; white-space: nowrap; color: var(--blue);
}

.svc-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; }
.svc-direct__you {
  font-size: 13px; padding: 8px 12px;
  border: 1px solid var(--text-3); border-radius: var(--radius); color: var(--text);
}
/* お客様と、往復の矢印2本で直接つながる */
.svc-direct__link {
  width: 56px; height: 14px; margin: 0 10px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.svc-direct__link i { position: relative; display: block; height: 2px; }
.svc-direct__link i:first-child { background: linear-gradient(90deg, var(--blue), var(--acc)); margin-right: 4px; }
.svc-direct__link i:last-child { background: linear-gradient(90deg, var(--blue), var(--acc)); margin-left: 4px; }
.svc-direct__link i::after { content: ""; position: absolute; top: -4px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.svc-direct__link i:first-child::after { right: -6px; border-left: 7px solid var(--acc); }
.svc-direct__link i:last-child::after { left: -6px; border-right: 7px solid var(--blue); }
.svc-direct__me {
  display: inline-flex; flex-direction: column;
  font-size: 15px; font-weight: 700;
  padding: 10px 16px;
  border: 1px solid var(--acc); border-radius: var(--radius);
  color: var(--text); background: var(--acc-glow-2);
}
.svc-direct__me small { font-size: 11px; font-weight: 400; color: var(--text-2); margin-top: 2px; }
.svc-direct__ai {
  margin-left: 12px;
  font-size: 12px; padding: 6px 12px;
  border: 1px dashed var(--blue); border-radius: 999px; color: var(--blue);
}

/* ---------- 脱WordPress ---------- */
#datsu-wp .dom-band { margin-top: 0; margin-bottom: 56px; }
.svc-wp-head { max-width: 860px; }
.svc-sec .svc-wp-head .section-desc { max-width: 860px; }

.svc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 72px; }
.svc-arch {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.svc-arch--new { border-color: rgba(56,189,248,0.35); background: var(--blue-glow-2); }
.svc-arch__title { font-size: 16px; font-weight: 700; margin-bottom: 24px; }
.svc-arch--wp .svc-arch__title { color: var(--text-2); }
.svc-arch--new .svc-arch__title { color: var(--blue); }
.svc-arch__flow { display: flex; align-items: center; gap: 12px; }
.svc-node--visitor {
  flex: 0 0 auto;
  font-size: 12px; text-align: center; line-height: 1.5;
  padding: 10px 12px;
  border: 1px solid var(--border-2); border-radius: var(--radius); color: var(--text-2);
}
.svc-node--visitor small { font-size: 10.5px; color: var(--ng); }
.svc-arrow {
  flex: 0 0 28px; height: 1px; background: var(--text-3); position: relative;
}
.svc-arrow::after {
  content: ""; position: absolute; right: -1px; top: -4px;
  border: 4.5px solid transparent; border-left: 7px solid var(--text-3); border-right: 0;
}
.svc-server {
  flex: 1 1 auto;
  padding: 16px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: rgba(5,9,17,0.6);
}
.svc-server__name { font-size: 11px; letter-spacing: .08em; color: var(--text-3); margin-bottom: 10px; }
.svc-server ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.svc-server li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13px; padding: 8px 10px;
  border-radius: var(--radius); background: var(--surface-2); color: var(--text);
}
.svc-server li em {
  font-style: normal; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  color: #fff; background: var(--ng);
}
.svc-server li.ok { background: rgba(56,189,248,0.14); color: var(--text); font-weight: 700; }
.svc-server li.none { background: transparent; border: 1px dashed var(--border-2); color: var(--text-3); }
.svc-server li.none span { text-decoration: line-through; }
.svc-server li.none em { background: transparent; color: var(--blue); border: 1px solid rgba(56,189,248,0.5); }
.svc-arch__note { margin-top: 20px; font-size: 13px; line-height: 1.8; color: var(--text-2); }

.svc-editor { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-top: 14px; }
.svc-editor__box {
  font-size: 12px; padding: 8px 12px;
  border: 1px dashed var(--border-2); border-radius: var(--radius); color: var(--text-2);
}
.svc-editor__arrow { font-size: 11px; color: var(--text-3); }
.svc-editor__arrow::before { content: "↑ "; color: var(--blue); }

/* 鍵とドア */
.svc-metaphor { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 20px; margin-bottom: 72px; }
.svc-metaphor__card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.svc-metaphor__card--hw { border-color: var(--border-acc); background: var(--acc-glow-2); }
.svc-metaphor__card svg {
  width: 56px; height: 56px; margin-bottom: 18px;
  fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.svc-metaphor__card svg .fill { fill: var(--text-2); }
.svc-metaphor__card--hw svg { stroke: var(--acc); }
.svc-metaphor__card--hw svg .fill { fill: var(--acc); }
.svc-metaphor__card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.svc-metaphor__card p { font-size: 14px; line-height: 1.8; color: var(--text-2); }
.svc-metaphor__vs { align-self: center; font-size: 24px; color: var(--acc); }
.svc-metaphor__vs--or { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }

/* 変わらないこと */
.svc-keep { margin-bottom: 72px; }
.svc-checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-checks li {
  position: relative;
  padding: 20px 20px 20px 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 14px; line-height: 1.8; color: var(--text-2);
}
.svc-checks li::before {
  content: ""; position: absolute; left: 20px; top: 22px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.svc-checks strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; }

/* 向いているサイト */
/* PHP とは？の説明（ITにくわしくない人向け） */
.svc-explain { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }
.svc-explain__col { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 48px; padding: 32px 40px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.svc-explain__q { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--blue); }
.svc-explain__col p { font-size: 14px; line-height: 1.8; color: var(--text-2); }
.svc-explain__col p + p { margin-top: 14px; }
.svc-explain__fig { display: block; width: 100%; max-width: 240px; height: auto; fill: none; stroke: var(--text-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-explain__fig .b { stroke: var(--blue); }
.svc-explain__fig .a { stroke: var(--acc); }
.svc-explain__fig .dash { stroke-dasharray: 3 5; }
.svc-explain__fig .dot { fill: var(--text-2); stroke: none; }
.svc-explain br.pc { display: inline; }
@media (max-width: 1024px) { .svc-explain__col { grid-template-columns: 200px 1fr; gap: 32px; padding: 28px; } }
@media (max-width: 768px) { .svc-explain br.pc { display: none; } .svc-explain__col { grid-template-columns: 1fr; gap: 20px; } .svc-explain__fig { max-width: 200px; } }
.svc-explain__eg { padding: 14px 16px; border-left: 2px solid var(--acc); background: var(--acc-glow-2); }
.svc-explain__eg span { display: block; font-size: 12px; font-weight: 700; color: var(--acc-light); margin-bottom: 4px; }
.svc-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-fit__col {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.svc-fit__col h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.svc-fit__col--yes h3 { color: var(--blue); }
.svc-fit__col--no h3 { color: var(--text-2); }
.svc-fit__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.svc-fit__col li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.svc-fit__col--yes li::before { content: "◯"; position: absolute; left: 0; color: var(--blue); }
.svc-fit__col--no li::before { content: "△"; position: absolute; left: 0; color: var(--text-3); }
.svc-fit__col p { margin-top: 16px; font-size: 13px; color: var(--text-2); }

/* ---------- リニューアルとあわせて ---------- */
.svc-sum { display: flex; align-items: stretch; gap: 16px; margin-bottom: 32px; }
.svc-sum__item {
  flex: 1 1 0;
  display: flex; align-items: center; gap: 16px;
  padding: 24px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.svc-sum__item svg {
  flex: 0 0 40px; width: 40px; height: 40px;
  fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.svc-sum__item span { display: flex; flex-direction: column; font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.4; }
.svc-sum__item small { margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--text-2); }
.svc-sum__item--result {
  justify-content: center; text-align: center;
  border-color: var(--acc);
  background: linear-gradient(135deg, rgba(216,24,114,0.22), rgba(56,189,248,0.10));
  box-shadow: 0 0 40px -14px var(--acc-glow);
}
.svc-sum__item--result span { font-size: 20px; }
.svc-sum__op { align-self: center; font-size: 28px; font-weight: 700; color: var(--acc); }

.svc-timing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-timing__card {
  position: relative;
  padding: 36px 28px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.svc-timing__num {
  position: absolute; top: -10px; right: 12px;
  font-family: var(--font-display); font-size: 88px; font-weight: 700; line-height: 1;
  color: rgba(216,24,114,0.12);
}
.svc-timing__card h3 { position: relative; font-size: 18px; font-weight: 700; margin-bottom: 12px; text-wrap: balance; }
.svc-timing__card p { position: relative; font-size: 14px; line-height: 1.9; color: var(--text-2); }
.svc-renewal-cta { margin-top: 40px; text-align: center; }

/* 流れ（トップの flow__track をそのまま使う。下の余白だけ詰める） */
.svc .flow__track { margin-bottom: 0; }

/* ---------- 事例の数字 ---------- */
.svc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.svc-stat__num {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--acc-light), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc-stat__num--txt { font-family: var(--font-body); font-size: 40px; padding: 8px 0; }
.svc-stat__label { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.svc-stats__note { margin-top: 16px; font-size: 12px; color: var(--text-2); }

/* ---------- よくある質問 ---------- */
.svc-faq { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.svc-faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.svc-faq summary {
  position: relative;
  list-style: none;
  padding: 20px 56px 20px 52px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
}
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::before {
  content: "Q"; position: absolute; left: 20px; top: 18px;
  font-family: var(--font-display); font-size: 16px; color: var(--acc);
}
.svc-faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--text-2); transition: transform .3s;
}
.svc-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.svc-faq details p { padding: 0 24px 22px 52px; font-size: 14px; line-height: 1.9; color: var(--text-2); }

/* ---------- CTA ---------- */
.svc-cta { padding: 100px 0 140px; text-align: center; border-top: 1px solid var(--border); }
.svc-cta__lead { font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; line-height: 1.7; margin-bottom: 32px; }

/* ---------- スマホ・タブレット ---------- */
@media (max-width: 1024px) {
  .svc-points { grid-template-columns: 1fr 1fr; }
  .svc-stats { grid-template-columns: 1fr 1fr; }
  /* 制作会社の体制は縦に並べる（横だと折り返して矢印が行の頭に来るため。タブレットの幅から） */
  .svc-chain { flex-direction: column; align-items: flex-start; gap: 0; }
  .svc-chain li + li { margin-left: 0; margin-top: 18px; }
  .svc-chain li + li::before { content: "↓"; left: 14px; top: -15px; }
  .svc-chain li + li::after { content: "↑"; left: 30px; top: -15px; }
  .svc-chain { align-items: stretch; min-width: 184px; }
  .svc-chain li.svc-chain__fork { display: grid; grid-template-columns: 1fr 1fr; margin: 34px 0 0; }
  .svc-chain__fork span { text-align: center; }
  .svc-chain li.svc-chain__fork::before { left: 50%; top: -34px; width: 1px; height: 14px; }
  .svc-chain li.svc-chain__fork::after { left: calc((100% - 8px) / 4); right: calc((100% - 8px) / 4); top: -20px; bottom: auto; width: auto; height: 1px; }
  .svc-chain__fork span::before { content: "↓"; left: calc(50% - 14px); top: -16px; }
  .svc-chain__fork span::after { content: "↑"; left: calc(50% + 2px); top: -16px; }
  .svc-chain li { text-align: center; }
  .svc-loop { padding: 0; }
  .svc-loop__back { left: 100%; top: 50%; bottom: auto; transform: translateY(-50%); width: auto; margin-left: 14px; white-space: nowrap; line-height: 1.6; }
  .svc-loop__back span { display: block; }
}
@media (max-width: 768px) {
  .svc-hero { padding: 60px 0 48px; }
  .svc-sec { padding: 80px 0; }
  .svc-team, .svc-compare, .svc-fit, .svc-checks, .svc-timing, .svc-explain { grid-template-columns: 1fr; }
  .svc-sum { flex-direction: column; gap: 8px; }
  .svc-sum__op { font-size: 22px; line-height: 1; }
  .svc-metaphor { grid-template-columns: 1fr; }
  .svc-metaphor__vs { transform: rotate(90deg); justify-self: center; }
  .svc-metaphor__vs--or { transform: none; }
  .svc-arch { padding: 22px 18px; }
  .svc-arch__flow { flex-direction: column; align-items: stretch; }
  .svc-arrow { flex: 0 0 22px; width: 1px; height: 22px; align-self: center; }
  .svc-arrow::after { right: auto; left: -4px; top: auto; bottom: -1px; border: 4.5px solid transparent; border-top: 7px solid var(--text-3); border-bottom: 0; }
  .svc-cta { padding: 72px 0 100px; }
  .svc-sub { font-size: 16px; }
  .svc-direct { flex-direction: column; align-items: flex-start; gap: 0; }
  .svc-direct__link { width: 14px; height: 34px; margin: 8px 0 8px 22px; flex-direction: row; }
  .svc-direct__link i { width: 2px; height: auto; }
  .svc-direct__link i:first-child { background: linear-gradient(180deg, var(--blue), var(--acc)); margin: 0 0 4px; }
  .svc-direct__link i:last-child { background: linear-gradient(180deg, var(--blue), var(--acc)); margin: 4px 0 0; }
  .svc-direct__link i::after { top: auto; left: -4px; right: auto; border: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
  .svc-direct__link i:first-child::after { bottom: -6px; right: auto; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--acc); }
  .svc-direct__link i:last-child::after { top: -6px; left: -4px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid var(--blue); }
  .svc-direct__ai { margin-left: 0; margin-top: 10px; }
}
@media (max-width: 480px) {
  .svc-points { grid-template-columns: 1fr; }
  .svc-stat__num { font-size: 44px; }
  .svc-stat__num--txt { font-size: 32px; }
}
