/*
Theme Name: 大栄工建 DEMO
Theme URI: /web/demo/koumuten/
Author: Web制作デモ
Description: 建設・工務店・設備業向けのデモ用オリジナルテーマ。有効化するだけで全ページとナビゲーションが自動生成されます。掲載情報はすべて架空のものです。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daiei-koken
*/

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  --c-dark:    #1F2933;
  --c-dark-2:  #2E3A45;
  --c-orange:  #E8590C;
  --c-orange-d:#C2410C;
  --c-cream:   #F7F4EF;
  --c-white:   #FFFFFF;
  --c-gray:    #52606D;
  --c-gray-l:  #7B8794;
  --c-line:    #E1DDD5;
  --c-line-d:  #3E4A55;

  --ff-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --w-max: 1120px;
  --w-narrow: 840px;
  --pad-x: 24px;

  --shadow-s: 0 2px 8px rgba(31, 41, 51, .08);
  --shadow-m: 0 8px 24px rgba(31, 41, 51, .12);
  --shadow-l: 0 16px 48px rgba(31, 41, 51, .16);

  --header-h: 76px;
  --admin-bar-h: 0px;
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--admin-bar-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-dark);
  background: var(--c-white);
  overflow-x: hidden;
  font-feature-settings: "palt" 1;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--c-orange); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--c-orange-d); }

h1, h2, h3, h4, h5 {
  margin: 0;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: .02em;
}

p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

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

table { border-collapse: collapse; width: 100%; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Word-break safety for long JP strings / emails */
h1, h2, h3, h4, p, li, td, th, dd, dt, a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ============================================================
   3. Layout helpers
   ============================================================ */
.dk-wrap { width: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: var(--pad-x); }
.dk-wrap--narrow { max-width: var(--w-narrow); }

.dk-section { padding: 96px 0; position: relative; }
.dk-section--tight { padding: 64px 0; }
.dk-section--cream { background: var(--c-cream); }
.dk-section--dark { background: var(--c-dark); color: var(--c-cream); }
.dk-section--dark h2, .dk-section--dark h3 { color: var(--c-white); }

/* Slanted divider between sections */
.dk-slant { position: relative; }
.dk-slant::before {
  content: "";
  position: absolute;
  inset: -40px 0 auto 0;
  height: 40px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ============================================================
   4. Typography blocks
   ============================================================ */
.dk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--c-orange);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.dk-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--c-orange);
}
.dk-section--dark .dk-eyebrow { color: #FDBA74; }
.dk-section--dark .dk-eyebrow::before { background: #FDBA74; }

.dk-h2 {
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 20px;
}
.dk-h3 {
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 700;
  margin-bottom: 12px;
}
.dk-lead {
  font-size: 16px;
  color: var(--c-gray);
  max-width: 62ch;
}
.dk-section--dark .dk-lead { color: #C8CFD6; }

.dk-head { margin-bottom: 48px; }
.dk-head--center { text-align: center; }
.dk-head--center .dk-lead { margin-inline: auto; }
.dk-head--center .dk-eyebrow { justify-content: center; }

/* ============================================================
   5. Buttons
   ============================================================ */
.dk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 2px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
}
.dk-btn:hover { transform: translateY(-2px); }

.dk-btn--primary { background: var(--c-orange); color: #fff; box-shadow: var(--shadow-m); }
.dk-btn--primary:hover { background: var(--c-orange-d); color: #fff; box-shadow: var(--shadow-l); }

.dk-btn--ghost { background: transparent; color: var(--c-white); border: 2px solid rgba(255,255,255,.55); }
.dk-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.dk-btn--dark { background: var(--c-dark); color: #fff; }
.dk-btn--dark:hover { background: var(--c-dark-2); color: #fff; }

.dk-btn--lg { padding: 21px 46px; font-size: 17px; }
.dk-btn--block { width: 100%; }

.dk-btn__sub { display: block; font-size: 12px; font-weight: 500; opacity: .85; }

.dk-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.dk-btns--center { justify-content: center; }

/* ============================================================
   6. Header
   ============================================================ */
/* ヘッダーはドロワー(310)より上に置く。
   ドロワーを開いてもロゴと閉じるボタンが押せるようにするため。 */
.dk-header {
  position: sticky;
  top: 0;
  z-index: 320;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}

/* ログイン中は WP 管理バー（position:fixed）の下に潜り込むため、その分だけ下げる。
   管理バーの高さ: 通常 32px / 782px以下 46px / 600px以下は absolute のため 0 */
body.admin-bar .dk-header { top: 32px; }
body.admin-bar { --admin-bar-h: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .dk-header { top: 46px; }
  body.admin-bar { --admin-bar-h: 46px; }
}
@media screen and (max-width: 600px) {
  body.admin-bar .dk-header { top: 0; }
  body.admin-bar { --admin-bar-h: 0px; }
}
.dk-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  /* 本文(1120px)より広く取る。ロゴ＋ナビ5項目＋電話＋CTAが1行に収まらないため */
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.dk-logo { display: flex; align-items: center; gap: 11px; color: var(--c-dark); flex-shrink: 0; }
.dk-logo:hover { color: var(--c-dark); opacity: .8; }
.dk-logo__mark {
  width: 40px; height: 40px;
  background: var(--c-orange);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 19px;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.dk-logo__name { font-size: 19px; font-weight: 900; line-height: 1.2; letter-spacing: .04em; white-space: nowrap; }
.dk-logo__sub { display: block; font-size: 10px; font-weight: 500; color: var(--c-gray-l); letter-spacing: .12em; white-space: nowrap; }

.dk-nav { margin-left: auto; }
.dk-nav ul { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.dk-nav li { flex-shrink: 0; }
.dk-nav a {
  display: block;
  padding: 10px 13px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-dark);
  position: relative;
  white-space: nowrap;      /* メニュー名を折り返さない */
  overflow-wrap: normal;
  word-break: keep-all;
}
.dk-nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 2px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.dk-nav a:hover { color: var(--c-orange); }
.dk-nav a:hover::after { transform: scaleX(1); }
.dk-nav .current-menu-item > a { color: var(--c-orange); }
.dk-nav .current-menu-item > a::after { transform: scaleX(1); }

.dk-header__cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.dk-header__tel { line-height: 1.25; text-align: right; color: var(--c-dark); }
.dk-header__tel strong { display: block; font-size: 20px; font-weight: 900; letter-spacing: .01em; }
.dk-header__tel span { font-size: 10.5px; color: var(--c-gray-l); }
.dk-header__btn {
  background: var(--c-orange);
  color: #fff;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  white-space: nowrap;
}
.dk-header__btn:hover { background: var(--c-orange-d); color: #fff; }

/* Hamburger */
.dk-burger {
  display: none;
  width: 46px; height: 46px;
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
}
.dk-burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2.5px;
  background: var(--c-dark);
  transition: transform .3s ease, opacity .2s ease;
}
.dk-burger span:nth-child(1) { top: 15px; }
.dk-burger span:nth-child(2) { top: 22px; }
.dk-burger span:nth-child(3) { top: 29px; }
.dk-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dk-burger.is-open span:nth-child(2) { opacity: 0; }
.dk-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.dk-drawer {
  position: fixed;
  inset: var(--admin-bar-h) 0 0 0;
  z-index: 310;
  background: var(--c-dark);
  padding: calc(var(--header-h) + 24px) 24px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.dk-drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dk-drawer ul { display: flex; flex-direction: column; }
.dk-drawer a {
  display: block;
  padding: 18px 4px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid var(--c-line-d);
}
.dk-drawer__foot { margin-top: 32px; display: grid; gap: 12px; }
.dk-drawer__tel {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  padding: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 2px;
}
.dk-drawer__tel small { display: block; font-size: 11px; font-weight: 500; opacity: .7; letter-spacing: .1em; }

/* ============================================================
   7. Hero
   ============================================================ */
.dk-hero {
  position: relative;
  min-height: min(84vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--c-dark);
}
.dk-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: dk-kenburns 18s ease-out forwards;
}
@keyframes dk-kenburns { to { transform: scale(1); } }
.dk-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(31,41,51,.94) 0%, rgba(31,41,51,.80) 45%, rgba(31,41,51,.42) 100%);
}
.dk-hero__inner { position: relative; z-index: 2; width: 100%; padding-block: 72px; }
.dk-hero__tag {
  display: inline-block;
  background: var(--c-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.dk-hero__title {
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: .01em;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.dk-hero__title em { font-style: normal; color: #FDBA74; }
.dk-hero__text {
  font-size: clamp(15px, 1.8vw, 17px);
  max-width: 30em;
  color: #D9E0E6;
  margin-bottom: 34px;
}
.dk-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.dk-hero__fact strong {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 900;
  line-height: 1.05;
}
/* 数字 … 白・特太。カウントアップ用の span は strong の中にあるため、
   ラベル(.dk-hero__fact > span)の指定が効かないよう継承を明示する */
.dk-hero__fact strong span {
  font-size: inherit;
  color: #fff;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
/* 単位 … 一回り小さく、金色 */
.dk-hero__fact strong small {
  font-size: .5em;
  font-weight: 700;
  color: #FDBA74;
  letter-spacing: .02em;
}
.dk-hero__fact > span {
  display: block;
  font-size: 12.5px;
  color: #B9C2CA;
  letter-spacing: .06em;
  margin-top: 6px;
}

/* SCROLL は右端に逃がす。中央だとヒーロー下部の実績数字と重なるため */
.dk-scroll {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(255,255,255,.7);
  writing-mode: vertical-rl;
  padding-bottom: 46px;
}
.dk-scroll::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 38px;
  margin-left: -.5px;
  background: rgba(255,255,255,.4);
  overflow: hidden;
}
.dk-scroll::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  margin-left: -.5px;
  width: 1px; height: 38px;
  background: #FDBA74;
  transform-origin: top;
  animation: dk-scrollline 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes dk-scrollline {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Page hero (sub pages) */
.dk-phero {
  position: relative;
  background: var(--c-dark);
  color: #fff;
  padding: 76px 0 64px;
  overflow: hidden;
}
.dk-phero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .34;
}
.dk-phero::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 140px; height: 5px;
  background: var(--c-orange);
}
.dk-phero__inner { position: relative; z-index: 2; }
.dk-phero__en { font-size: 12px; letter-spacing: .24em; color: #FDBA74; font-weight: 700; display: block; margin-bottom: 8px; }
.dk-phero__title { font-size: clamp(27px, 5vw, 42px); font-weight: 900; }
.dk-phero__text { margin-top: 14px; color: #C8CFD6; font-size: 15px; max-width: 56ch; }

/* Breadcrumb */
.dk-crumb { background: var(--c-cream); border-bottom: 1px solid var(--c-line); }
.dk-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; font-size: 12.5px; color: var(--c-gray); }
.dk-crumb a { color: var(--c-gray); }
.dk-crumb a:hover { color: var(--c-orange); }
.dk-crumb li + li::before { content: "›"; margin-right: 8px; color: var(--c-gray-l); }

/* ============================================================
   8. Grids & cards
   ============================================================ */
.dk-grid { display: grid; gap: 28px; }
.dk-grid--2 { grid-template-columns: repeat(2, 1fr); }
.dk-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dk-grid--4 { grid-template-columns: repeat(4, 1fr); }

.dk-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.dk-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: transparent; }
.dk-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--c-cream); overflow: hidden; }
.dk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dk-card:hover .dk-card__media img { transform: scale(1.05); }
.dk-card__tag {
  position: absolute; top: 0; left: 0;
  background: var(--c-dark);
  color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  padding: 6px 14px;
}
.dk-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.dk-card__title { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.dk-card__text { font-size: 14px; color: var(--c-gray); line-height: 1.85; margin-bottom: 14px; }
.dk-card__meta {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--c-line);
  font-size: 12.5px; color: var(--c-gray-l);
}
.dk-card__price { color: var(--c-orange); font-weight: 700; font-size: 14px; }

/* Problem cards */
.dk-prob {
  background: #fff;
  border-top: 4px solid var(--c-orange);
  padding: 32px 26px;
  box-shadow: var(--shadow-s);
  position: relative;
}
.dk-prob__num {
  position: absolute; top: -2px; right: 18px;
  font-size: 58px; font-weight: 900;
  color: rgba(232,89,12,.10);
  line-height: 1;
}
.dk-prob__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; position: relative; }
.dk-prob__text { font-size: 14px; color: var(--c-gray); }

/* Reason blocks */
.dk-reason { display: flex; gap: 20px; align-items: flex-start; }
.dk-reason__no {
  flex-shrink: 0;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--c-orange);
  color: #fff;
  font-weight: 900; font-size: 20px;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}
.dk-reason__title { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.dk-reason__text { font-size: 14.5px; color: var(--c-gray); }

/* Feature / split */
.dk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.dk-split--rev > *:first-child { order: 2; }
.dk-split__media { position: relative; }
.dk-split__media img { width: 100%; border-radius: 2px; }
.dk-split__media::after {
  content: "";
  position: absolute;
  left: -16px; bottom: -16px;
  width: 96px; height: 96px;
  border-left: 5px solid var(--c-orange);
  border-bottom: 5px solid var(--c-orange);
  z-index: -1;
}

/* Stats strip */
.dk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-line-d); }
.dk-stats__item { background: var(--c-dark); padding: 32px 18px; text-align: center; }
/* ヒーローの実績数字と同じ配色ルール：数字＝白、単位＝金 */
.dk-stats__num { font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: #fff; line-height: 1.1; }
.dk-stats__num span { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dk-stats__num small { font-size: .5em; margin-left: 3px; color: #FDBA74; font-weight: 700; }
.dk-stats__label { font-size: 12.5px; color: #B9C2CA; letter-spacing: .06em; margin-top: 8px; }

/* ============================================================
   9. Price table
   ============================================================ */
.dk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dk-table { min-width: 560px; background: #fff; }
.dk-table th, .dk-table td { padding: 17px 18px; border: 1px solid var(--c-line); font-size: 14.5px; text-align: left; vertical-align: middle; }
.dk-table thead th { background: var(--c-dark); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .04em; border-color: var(--c-dark-2); }
.dk-table tbody th { background: var(--c-cream); font-weight: 700; width: 32%; }
.dk-table .dk-price { color: var(--c-orange); font-weight: 900; font-size: 17px; white-space: nowrap; }
.dk-table .dk-price small { font-size: 11.5px; font-weight: 500; color: var(--c-gray-l); margin-left: 2px; }
.dk-note { font-size: 12.5px; color: var(--c-gray-l); margin-top: 14px; }

/* Info table (company profile) */
.dk-info th, .dk-info td { padding: 18px 4px; border-bottom: 1px solid var(--c-line); font-size: 14.5px; text-align: left; vertical-align: top; }
.dk-info th { width: 30%; font-weight: 700; color: var(--c-dark); white-space: nowrap; }
.dk-info td { color: var(--c-gray); }

/* ============================================================
   10. Timeline (flow)
   ============================================================ */
.dk-flow { position: relative; padding-left: 62px; }
.dk-flow::before {
  content: "";
  position: absolute;
  left: 25px; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--c-line);
}
.dk-flow__item { position: relative; padding-bottom: 42px; }
.dk-flow__item:last-child { padding-bottom: 0; }
.dk-flow__no {
  position: absolute;
  left: -62px; top: 0;
  width: 52px; height: 52px;
  background: var(--c-orange);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 17px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--c-orange);
}
.dk-flow__title { font-size: 19px; font-weight: 700; margin-bottom: 8px; padding-top: 10px; }
.dk-flow__text { font-size: 14.5px; color: var(--c-gray); }
.dk-flow__badge {
  display: inline-block;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  color: var(--c-gray);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  margin-top: 10px;
}

/* ============================================================
   11. Voice / testimonial
   ============================================================ */
.dk-voice {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 30px 28px;
  position: relative;
}
.dk-voice::before {
  content: "“";
  position: absolute; top: 4px; right: 22px;
  font-size: 70px; line-height: 1;
  color: rgba(232,89,12,.14);
  font-family: Georgia, serif;
}
.dk-voice__stars { color: #F59E0B; font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.dk-voice__title { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; }
.dk-voice__text { font-size: 14px; color: var(--c-gray); line-height: 1.9; }
.dk-voice__by { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--c-line); font-size: 12.5px; color: var(--c-gray-l); }

/* ============================================================
   12. FAQ accordion
   ============================================================ */
.dk-faq { border-top: 1px solid var(--c-line); }
.dk-faq__item { border-bottom: 1px solid var(--c-line); }
.dk-faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 44px 22px 0;
  text-align: left;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--c-dark);
  position: relative;
  line-height: 1.7;
}
.dk-faq__q::before {
  content: "Q";
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: var(--c-dark);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 900;
  margin-top: 1px;
}
.dk-faq__q::after {
  content: "";
  position: absolute;
  right: 8px; top: 32px;
  width: 13px; height: 13px;
  border-right: 2.5px solid var(--c-orange);
  border-bottom: 2.5px solid var(--c-orange);
  transform: rotate(45deg);
  transition: transform .3s ease;
}
.dk-faq__item.is-open .dk-faq__q::after { transform: rotate(-135deg); }
.dk-faq__q:hover { color: var(--c-orange); }

.dk-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.dk-faq__item.is-open .dk-faq__a { grid-template-rows: 1fr; }
.dk-faq__inner { overflow: hidden; }
.dk-faq__body {
  display: flex;
  gap: 14px;
  padding: 0 0 24px;
  font-size: 14.5px;
  color: var(--c-gray);
  line-height: 1.95;
}
.dk-faq__body::before {
  content: "A";
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: var(--c-orange);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 900;
}
.dk-faq__body > div { flex: 1; padding-top: 2px; }

/* ============================================================
   13. Works filter tabs
   ============================================================ */
.dk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.dk-tab {
  padding: 10px 22px;
  border: 1.5px solid var(--c-line);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-gray);
  border-radius: 2px;
  transition: all .2s ease;
}
.dk-tab:hover { border-color: var(--c-orange); color: var(--c-orange); }
.dk-tab.is-active { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }

.dk-card.is-hidden { display: none; }

/* Before / After */
.dk-ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.dk-ba__col { position: relative; }
.dk-ba__col img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.dk-ba__label {
  position: absolute; left: 0; top: 0;
  font-size: 11.5px; font-weight: 900; letter-spacing: .1em;
  padding: 5px 12px;
  color: #fff;
}
.dk-ba__col--b .dk-ba__label { background: var(--c-gray); }
.dk-ba__col--a .dk-ba__label { background: var(--c-orange); }
.dk-ba__arrow { color: var(--c-orange); font-size: 22px; font-weight: 900; }

/* ============================================================
   14. Contact form
   ============================================================ */
.dk-form { display: grid; gap: 22px; }
.dk-field label { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.dk-req {
  display: inline-block;
  background: var(--c-orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}
.dk-any {
  display: inline-block;
  background: var(--c-line);
  color: var(--c-gray);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}
.dk-field input[type="text"],
.dk-field input[type="email"],
.dk-field input[type="tel"],
.dk-field select,
.dk-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--c-dark);
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: 2px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dk-field textarea { min-height: 160px; resize: vertical; line-height: 1.8; }
.dk-field input:focus, .dk-field select:focus, .dk-field textarea:focus {
  outline: none;
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(232,89,12,.14);
}
.dk-radios { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.dk-radios label { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 14.5px; margin-bottom: 0; cursor: pointer; }
.dk-form__note {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  padding: 18px 20px;
  font-size: 13px;
  color: var(--c-gray);
}

/* Contact split */
.dk-contact-side { display: grid; gap: 18px; }
.dk-contact-box {
  background: var(--c-dark);
  color: #fff;
  padding: 28px 24px;
  text-align: center;
}
.dk-contact-box__label { font-size: 12.5px; letter-spacing: .1em; color: #B9C2CA; }
.dk-contact-box__tel { font-size: clamp(26px, 4vw, 33px); font-weight: 900; color: #fff; display: block; margin: 6px 0 4px; letter-spacing: .01em; }
.dk-contact-box__tel:hover { color: #FDBA74; }
.dk-contact-box__time { font-size: 12.5px; color: #B9C2CA; }

/* ============================================================
   15. CTA band
   ============================================================ */
.dk-cta {
  position: relative;
  background: var(--c-orange);
  color: #fff;
  padding: 72px 0;
  overflow: hidden;
}
.dk-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px);
}
.dk-cta__inner { position: relative; z-index: 2; text-align: center; }
.dk-cta__title { font-size: clamp(23px, 4vw, 34px); font-weight: 900; margin-bottom: 12px; }
.dk-cta__text { font-size: 15px; color: rgba(255,255,255,.92); margin-bottom: 30px; }
.dk-cta .dk-btn--dark { box-shadow: var(--shadow-m); }
.dk-cta__tel {
  display: inline-flex; flex-direction: column;
  color: #fff; font-size: 30px; font-weight: 900; line-height: 1.2;
}
.dk-cta__tel small { font-size: 12px; font-weight: 500; opacity: .9; }
.dk-cta__tel:hover { color: #fff; opacity: .85; }

/* ============================================================
   16. Footer
   ============================================================ */
.dk-footer { background: var(--c-dark); color: #B9C2CA; padding: 64px 0 0; font-size: 14px; }
.dk-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.dk-footer .dk-logo__name { color: #fff; }
.dk-footer__addr { margin-top: 18px; line-height: 1.9; font-size: 13.5px; }
.dk-footer__tel { color: #fff; font-size: 22px; font-weight: 900; display: inline-block; margin-top: 12px; }
.dk-footer__tel:hover { color: #FDBA74; }
.dk-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line-d); }
.dk-footer ul li { margin-bottom: 10px; }
.dk-footer a { color: #B9C2CA; font-size: 13.5px; }
.dk-footer a:hover { color: #FDBA74; }
.dk-footer__bottom {
  border-top: 1px solid var(--c-line-d);
  padding: 20px 0 26px;
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  justify-content: space-between; align-items: center;
  font-size: 12px;
}
.dk-demo-note {
  background: rgba(232,89,12,.14);
  border: 1px solid rgba(232,89,12,.4);
  color: #FDBA74;
  padding: 10px 16px;
  font-size: 12px;
  text-align: center;
  margin-bottom: 20px;
  border-radius: 2px;
}

/* ============================================================
   17. Mobile fixed CTA bar
   ============================================================ */
.dk-fixbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  background: rgba(31,41,51,.97);
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,.22);
}
.dk-fixbar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dk-fixbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 11px 6px;
  font-size: 14px; font-weight: 700;
  border-radius: 2px;
  line-height: 1.3;
}
.dk-fixbar__tel { background: #fff; color: var(--c-dark); }
.dk-fixbar__tel:hover { color: var(--c-dark); }
.dk-fixbar__cta { background: var(--c-orange); color: #fff; }
.dk-fixbar__cta:hover { color: #fff; }
.dk-fixbar small { font-size: 10px; font-weight: 500; opacity: .75; }

/* ============================================================
   18. Scroll reveal
   ============================================================ */
.dk-rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.dk-rv.is-in { opacity: 1; transform: none; }
.dk-rv[data-d="1"] { transition-delay: .08s; }
.dk-rv[data-d="2"] { transition-delay: .16s; }
.dk-rv[data-d="3"] { transition-delay: .24s; }
.dk-rv[data-d="4"] { transition-delay: .32s; }
.dk-rv[data-d="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .dk-rv { opacity: 1; transform: none; transition: none; }
  .dk-hero__bg { animation: none; transform: none; }
  .dk-scroll::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   19. Responsive
   IMPORTANT: base display rules must not appear after these
   ============================================================ */
/* 1180px以下：電話番号を隠してナビの横幅を確保 */
@media (max-width: 1180px) {
  .dk-header__tel { display: none; }
  .dk-nav a { padding: 10px 10px; font-size: 14px; }
}

/* 1100px以下：さらに詰める */
@media (max-width: 1100px) {
  /* 実績数字が右端まで届くようになるため、SCROLL 表示はここで打ち切る */
  .dk-scroll { display: none; }
  .dk-nav a { padding: 10px 7px; font-size: 13px; }
  .dk-nav a::after { left: 7px; right: 7px; }
  .dk-logo__name { font-size: 17px; }
  .dk-header__btn { padding: 11px 16px; font-size: 13px; }
  .dk-header__inner { gap: 14px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .dk-nav, .dk-header__cta { display: none; }
  .dk-burger { display: block; }
  .dk-fixbar { display: block; }
  body { padding-bottom: 74px; }

  .dk-section { padding: 66px 0; }
  .dk-section--tight { padding: 48px 0; }
  .dk-head { margin-bottom: 34px; }

  .dk-grid--3, .dk-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .dk-split { grid-template-columns: 1fr; gap: 32px; }
  .dk-split--rev > *:first-child { order: 0; }
  .dk-footer__top { grid-template-columns: 1fr 1fr; }
  .dk-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --pad-x: 18px; }
  body { font-size: 15.5px; }

  .dk-section { padding: 52px 0; }
  .dk-section--tight { padding: 40px 0; }

  .dk-hero { min-height: auto; }
  .dk-hero__inner { padding-block: 56px 76px; }
  .dk-hero__bg::after { background: linear-gradient(180deg, rgba(31,41,51,.90) 0%, rgba(31,41,51,.82) 100%); }
  .dk-hero__facts { gap: 18px 28px; }
  .dk-hero__fact { min-width: 44%; }
  .dk-scroll { display: none; }

  .dk-phero { padding: 48px 0 40px; }

  .dk-grid { gap: 18px; }
  .dk-grid--2, .dk-grid--3, .dk-grid--4 { grid-template-columns: 1fr; }
  .dk-footer__top { grid-template-columns: 1fr; gap: 30px; }

  .dk-btn { width: 100%; padding: 16px 20px; }
  .dk-btns { gap: 12px; }
  .dk-btn--lg { padding: 18px 24px; font-size: 16px; }

  .dk-flow { padding-left: 48px; }
  .dk-flow::before { left: 19px; }
  .dk-flow__no { left: -48px; width: 42px; height: 42px; font-size: 14px; }
  .dk-flow__title { padding-top: 6px; font-size: 17px; }

  .dk-card__body { padding: 18px; }
  .dk-prob { padding: 26px 20px; }
  .dk-voice { padding: 24px 20px; }

  .dk-ba { grid-template-columns: 1fr; gap: 10px; }
  .dk-ba__arrow { transform: rotate(90deg); text-align: center; }

  .dk-info th, .dk-info td { display: block; width: 100%; }
  .dk-info th { border-bottom: none; padding-bottom: 4px; }
  .dk-info td { padding-top: 0; }

  .dk-faq__q { font-size: 15.5px; padding-right: 34px; }
  .dk-faq__q::after { top: 30px; width: 11px; height: 11px; }

  .dk-cta { padding: 52px 0; }
  .dk-footer__bottom { flex-direction: column; text-align: center; }
}
