/* ==========================================================================
   WA-Q Site Design System — v2 "Enterprise / Carbon-inspired"
   Design language: IBM Carbon Design System の原則を採用し、
   ブランドカラーだけ wa-q.jp（skin-mixgreen）に合わせて適用。
     - フラットな面（レイヤー）＋1pxヘアラインで構成。影は浮遊要素のみ最小限。
     - 角丸は原則なし（0）。グラデーション・装飾図形・ピル形は使わない。
     - 色は役割ベース：背景/レイヤー/テキストはニュートラルグレー、
       緑は操作可能要素（リンク・ボタン・アクセント線）のみ。
   Outermost wrapper is white for clean WordPress embedding.
   ========================================================================== */

:root {
  /* Brand (wa-q.jp skin-mixgreen) */
  --wq-green: #009250;
  --wq-green-hover: #007a43;
  --wq-green-deep: #0e6b3f;
  --wq-amber: #edad0b;
  --wq-amber-dark: #a97e04;

  /* Neutral layers (Carbon-style) */
  --wq-bg: #ffffff;
  --wq-layer-01: #f4f4f4;
  --wq-layer-hover: #e8e8e8;
  --wq-layer-active: #e0e0e0;

  /* Text */
  --wq-text: #161616;
  --wq-text-sub: #525252;
  --wq-text-helper: #6f6f6f;

  /* Borders */
  --wq-border: #e0e0e0;
  --wq-border-strong: #8d8d8d;

  /* Inverse (deep green flat surfaces) */
  --wq-inverse: #0e6b3f;
  --wq-inverse-footer: #173528;

  --wq-shadow-pop: 0 2px 6px rgba(0, 0, 0, .12); /* dropdowns / overlays only */
  --wq-radius: 0;
  --wq-container: 1080px;
  --wq-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Yu Gothic", sans-serif;
}

/* ---------- Base ---------- */
.wq-page {
  background: var(--wq-bg);
  color: var(--wq-text);
  font-family: var(--wq-font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

.wq-page *,
.wq-page *::before,
.wq-page *::after { box-sizing: border-box; }

.wq-page img { max-width: 100%; height: auto; }
.wq-page a { color: var(--wq-green); text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
.wq-page a:hover { color: var(--wq-green-deep); text-decoration: underline; text-underline-offset: 3px; }

.wq-container {
  max-width: var(--wq-container);
  margin: 0 auto;
  padding: 0 24px;
}

.wq-narrow { max-width: 820px; }

/* ---------- Typography ---------- */
.wq-eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--wq-green);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wq-h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--wq-text);
  line-height: 1.45;
  margin: 0 0 14px;
}

.wq-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wq-text);
  margin: 0 0 10px;
  padding-left: 14px;
  border-left: 3px solid var(--wq-green);
}

.wq-lead { font-size: 1rem; color: var(--wq-text-sub); }
.wq-center { text-align: center; }
.wq-mb-0 { margin-bottom: 0; }

.wq-section-head {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--wq-border-strong);
}

/* ---------- Sections ---------- */
.wq-section { padding: 76px 0; }
.wq-section-soft { background: var(--wq-layer-01); }
.wq-section-soft-2 { background: var(--wq-layer-01); }
.wq-section + .wq-section { border-top: 1px solid var(--wq-border); }

/* ---------- Header (preview) ---------- */
.wq-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wq-bg);
  border-bottom: 1px solid var(--wq-border);
}

.wq-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}

.wq-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--wq-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.wq-logo:hover { text-decoration: none; color: var(--wq-text); }
.wq-logo > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.wq-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--wq-green);
  color: #fff;
  font-size: .64rem;
  letter-spacing: .02em;
  white-space: nowrap;
  padding: 0 2px;
}
.wq-logo small { font-size: .66rem; font-weight: 600; color: var(--wq-text-helper); letter-spacing: .06em; }

.wq-nav { white-space: nowrap; }
.wq-nav > ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.wq-nav > ul > li { position: relative; }
.wq-nav > ul > li > a {
  display: block;
  padding: 18px 10px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--wq-text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.wq-nav > ul > li > a:hover {
  background: var(--wq-layer-01);
  color: var(--wq-text);
  text-decoration: none;
  border-bottom-color: var(--wq-green);
}
.wq-nav .has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 6px;
  border-right: 1.5px solid var(--wq-text-sub);
  border-bottom: 1.5px solid var(--wq-text-sub);
  transform: rotate(45deg) translateY(-2px);
}

.wq-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--wq-bg);
  border: 1px solid var(--wq-border);
  box-shadow: var(--wq-shadow-pop);
  padding: 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, visibility .15s;
}
.wq-nav li:hover > .wq-sub,
.wq-nav li:focus-within > .wq-sub,
.wq-sub.wq-open { opacity: 1; visibility: visible; }
.wq-sub a {
  display: block;
  padding: 11px 16px;
  font-size: .84rem;
  color: var(--wq-text);
  border-bottom: 1px solid var(--wq-border);
}
.wq-sub li:last-child > a { border-bottom: none; }
.wq-sub a:hover { background: var(--wq-layer-01); color: var(--wq-text); text-decoration: none; }
.wq-sub .wq-sub-label {
  padding: 10px 16px 4px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--wq-text-helper);
  letter-spacing: .06em;
}

.wq-header-cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 22px;
  background: var(--wq-green);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 600;
}
.wq-header-cta:hover { background: var(--wq-green-hover); text-decoration: none; }

.wq-burger {
  display: none;
  font-family: var(--wq-font);
  width: 44px; height: 44px;
  border: 1px solid var(--wq-border);
  background: var(--wq-bg);
  cursor: pointer;
  padding: 11px;
}
.wq-burger span {
  display: block; height: 2px; margin: 5px 0;
  background: var(--wq-text);
  transition: transform .2s, opacity .2s;
}
.wq-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wq-burger.active span:nth-child(2) { opacity: 0; }
.wq-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (lower pages) ---------- */
.wq-hero {
  background: var(--wq-inverse);
  color: #fff;
  padding: 56px 0 52px;
}
.wq-hero .wq-eyebrow { color: #9fdcbb; }
.wq-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
}
.wq-hero p { margin: 0; max-width: 640px; color: #d8ece0; }

.wq-breadcrumb {
  font-size: .78rem;
  color: #a8d4bc;
  margin-bottom: 20px;
}
.wq-breadcrumb a { color: #d8ece0; }
.wq-breadcrumb a:hover { color: #fff; }
.wq-breadcrumb span { margin: 0 6px; opacity: .7; }

/* ---------- TOP hero ---------- */
.wq-top-hero {
  background: var(--wq-layer-01);
  border-bottom: 1px solid var(--wq-border);
  padding: 104px 0 96px;
}
.wq-top-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  font-weight: 700;
  color: var(--wq-text);
  line-height: 1.4;
  margin: 0 0 22px;
}
.wq-top-hero h1 em { font-style: normal; color: var(--wq-green-deep); }
.wq-top-hero .wq-lead { max-width: 560px; margin-bottom: 34px; }
.wq-top-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.wq-top-hero-badges .wq-tag { background: var(--wq-bg); border-color: var(--wq-border-strong); color: var(--wq-text-sub); }

/* ---------- Buttons ---------- */
.wq-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--wq-font);
  padding: 14px 32px;
  min-height: 48px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.wq-btn:hover { opacity: 1; text-decoration: none; }
.wq-btn:active { transform: translateY(1px); }
.wq-btn-green { background: var(--wq-green); color: #fff !important; }
.wq-btn-green:hover { background: var(--wq-green-hover); color: #fff !important; }
.wq-btn-amber { background: var(--wq-amber); color: #161616 !important; }
.wq-btn-amber:hover { background: #d99d08; color: #161616 !important; }
.wq-btn-outline { border-color: var(--wq-green); color: var(--wq-green-deep); background: var(--wq-bg); }
.wq-btn-outline:hover { background: var(--wq-green); color: #fff !important; }
.wq-btn-white { background: #fff; color: var(--wq-green-deep) !important; }
.wq-btn-white:hover { background: var(--wq-layer-01); }
.wq-btn-ghost-white { border-color: #fff; color: #fff !important; background: transparent; }
.wq-btn-ghost-white:hover { background: rgba(255, 255, 255, .14); }
.wq-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.wq-btn .wq-arrow { transition: transform .15s; }
.wq-btn:hover .wq-arrow { transform: translateX(4px); }

/* ---------- Cards ---------- */
.wq-grid { display: grid; gap: 1px; background: var(--wq-border); border: 1px solid var(--wq-border); }
.wq-grid-2 { grid-template-columns: repeat(2, 1fr); }
.wq-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wq-grid-4 { grid-template-columns: repeat(4, 1fr); }
.wq-grid-6 { grid-template-columns: repeat(6, 1fr); }

.wq-card {
  background: var(--wq-bg);
  padding: 28px 26px;
  transition: background-color .15s;
  position: relative;
  display: flex;
  flex-direction: column;
}
a.wq-card { color: var(--wq-text); }
a.wq-card:hover,
.wq-card.wq-hover:hover {
  background: var(--wq-layer-01);
  opacity: 1;
  text-decoration: none;
}
a.wq-card:hover { box-shadow: inset 0 0 0 1px var(--wq-border-strong); }
.wq-icon { display: block; width: 1em; height: 1em; }

.wq-card-icon {
  display: flex;
  align-items: center;
  color: var(--wq-green);
  font-size: 28px;
  margin-bottom: 18px;
}
.wq-card-icon .wq-icon { width: 1em; height: 1em; }
.wq-card h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; color: var(--wq-text); }
.wq-card p { font-size: .86rem; color: var(--wq-text-sub); margin: 0 0 14px; flex: 1; }
.wq-card .wq-card-link {
  font-size: .84rem;
  font-weight: 600;
  color: var(--wq-green);
}
.wq-card .wq-card-link::after { content: " →"; }

.wq-card-num {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #c6c6c6;
  line-height: 1;
}

/* ---------- Feature rows ---------- */
.wq-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}
.wq-feature + .wq-feature { border-top: 1px solid var(--wq-border); }
.wq-feature-media { order: 0; }
.wq-feature.wq-rev .wq-feature-media { order: 1; }
.wq-feature-visual {
  background: var(--wq-layer-01);
  border: 1px solid var(--wq-border);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wq-green);
}
.wq-feature-visual .wq-icon {
  width: 72px; height: 72px;
  stroke-width: 1.2;
}
.wq-feature ul { margin: 16px 0 0; padding: 0; list-style: none; }
.wq-feature li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: .92rem;
}
.wq-feature li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009250' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Steps / flow ---------- */
.wq-steps { counter-reset: step; display: grid; gap: 0; border: 1px solid var(--wq-border); }
.wq-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  background: var(--wq-bg);
  padding: 24px 28px;
  align-items: start;
  border-bottom: 1px solid var(--wq-border);
}
.wq-step:last-child { border-bottom: none; }
.wq-step::before {
  content: "0" counter(step);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wq-green);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.4;
  border-bottom: 2px solid var(--wq-green);
  padding-bottom: 4px;
}
.wq-step h3 { margin: 0 0 6px; font-size: 1rem; color: var(--wq-text); }
.wq-step p { margin: 0; font-size: .88rem; color: var(--wq-text-sub); }

/* ---------- Table ---------- */
.wq-table-wrap { overflow-x: auto; border: 1px solid var(--wq-border); }
.wq-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wq-bg);
  font-size: .88rem;
  min-width: 560px;
}
.wq-table th {
  background: var(--wq-layer-01);
  color: var(--wq-text);
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--wq-border-strong);
}
.wq-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--wq-border);
  vertical-align: top;
}
.wq-table tr:hover td { background: var(--wq-layer-01); }
.wq-table .wq-rowhead {
  background: var(--wq-layer-01);
  font-weight: 700;
  color: var(--wq-text);
  white-space: nowrap;
}

/* ---------- FAQ (accordion) ---------- */
.wq-faq { border-top: 1px solid var(--wq-border-strong); }
.wq-faq-item { border-bottom: 1px solid var(--wq-border); }
.wq-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 8px;
  background: none;
  border: none;
  font-family: var(--wq-font);
  line-height: inherit;
  font-weight: 600;
  color: var(--wq-text);
  text-align: left;
  cursor: pointer;
  font-size: .96rem;
  transition: background-color .15s;
}
.wq-faq-q:hover { background: var(--wq-layer-01); }
.wq-faq-q .wq-faq-icon {
  margin-left: auto;
  flex: 0 0 auto;
  width: 10px; height: 10px;
  font-size: 0;
  border-right: 2px solid var(--wq-text-sub);
  border-bottom: 2px solid var(--wq-text-sub);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.wq-faq-item.wq-open .wq-faq-icon { transform: rotate(-135deg) translateY(-1px); }
.wq-faq-a {
  display: none;
  padding: 2px 8px 22px 8px;
  font-size: .9rem;
  color: var(--wq-text-sub);
}
.wq-faq-item.wq-open .wq-faq-a { display: block; }
.wq-faq-a::before { content: "A. "; font-weight: 700; color: var(--wq-green); }

/* ---------- Tags / lists ---------- */
.wq-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--wq-bg);
  border: 1px solid var(--wq-border-strong);
  color: var(--wq-text-sub);
}
.wq-tag-amber { border-color: var(--wq-amber); color: var(--wq-amber-dark); }
.wq-checklist { list-style: none; margin: 0; padding: 0; }
.wq-checklist li { position: relative; padding: 8px 0 8px 26px; font-size: .93rem; }
.wq-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009250' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- News list ---------- */
.wq-news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wq-border-strong); }
.wq-news li { border-bottom: 1px solid var(--wq-border); }
.wq-news a {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 8px;
  color: var(--wq-text);
}
.wq-news a:hover { background: var(--wq-layer-01); opacity: 1; text-decoration: none; }
.wq-news time { flex: 0 0 96px; font-size: .82rem; color: var(--wq-text-helper); }
.wq-news .wq-tag { flex: 0 0 auto; }
.wq-news p { margin: 0; font-size: .92rem; }

/* ---------- CTA band ---------- */
.wq-cta {
  background: var(--wq-inverse);
  color: #fff;
  padding: 56px 48px;
  text-align: left;
}
.wq-cta h2 { font-size: 1.5rem; margin: 0 0 12px; font-weight: 700; }
.wq-cta p { margin: 0 0 28px; max-width: 560px; color: #d8ece0; }
.wq-cta .wq-btn-row { position: relative; }
.wq-cta-note { font-size: .78rem; color: #9fdcbb; margin-top: 20px; }

/* ---------- Footer (preview) ---------- */
.wq-footer { background: var(--wq-inverse-footer); color: #b8ccc1; font-size: .84rem; }
.wq-footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.wq-footer h4 { color: #fff; font-size: .82rem; font-weight: 700; margin: 0 0 16px; letter-spacing: .06em; }
.wq-footer ul { list-style: none; margin: 0; padding: 0; }
.wq-footer li { margin-bottom: 10px; }
.wq-footer a { color: #b8ccc1; }
.wq-footer a:hover { color: #fff; }
.wq-footer-brand .wq-logo { color: #fff; margin-bottom: 16px; }
.wq-footer-brand p { margin: 0; line-height: 1.9; }
.wq-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .16);
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.wq-footer-legal a { color: #b9cfc4; font-size: .78rem; text-decoration: none; }
.wq-footer-legal a:hover { color: #fff; }
.wq-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 20px 24px;
  text-align: center;
  font-size: .75rem;
  color: #8fae9d;
}

/* ---------- Forms (Contact Form 7 mapping) ---------- */
.wq-form {
  background: var(--wq-bg);
  border: 1px solid var(--wq-border);
  padding: 40px;
}
.wq-form .wpcf7-form-control-wrap { display: block; }
.wq-form-row { margin-bottom: 26px; }
.wq-form-label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--wq-text);
  margin-bottom: 8px;
}
.wq-form-label .wq-req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: .66rem;
  font-weight: 700;
  background: #da1e28;
  color: #fff;
  vertical-align: 2px;
}
.wq-form-label .wq-opt { background: var(--wq-text-helper); }
.wq-form input[type="text"],
.wq-form input[type="email"],
.wq-form input[type="tel"],
.wq-form input[type="url"],
.wq-form select,
.wq-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--wq-border-strong);
  font: inherit;
  font-size: .94rem;
  background: var(--wq-layer-01);
  color: var(--wq-text);
  transition: border-color .15s, box-shadow .15s;
}
.wq-form input:focus,
.wq-form select:focus,
.wq-form textarea:focus {
  outline: none;
  border-bottom-color: var(--wq-green);
  box-shadow: 0 1px 0 var(--wq-green);
}
.wq-form textarea { min-height: 160px; resize: vertical; }
.wq-form .wq-radio-row,
.wq-form .wq-check-row { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 6px; }
.wq-form .wq-radio-row label,
.wq-form .wq-check-row label { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.wq-form input[type="radio"],
.wq-form input[type="checkbox"] { accent-color: var(--wq-green); width: 16px; height: 16px; }
.wq-form input[type="submit"],
.wq-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--wq-font);
  padding: 14px 32px;
  min-height: 48px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  background: var(--wq-green);
  color: #fff;
  border: 1px solid transparent;
  transition: background-color .15s, transform .05s;
}
.wq-form input[type="submit"]:hover,
.wq-form .wpcf7-submit:hover { background: var(--wq-green-hover); }
.wq-form input[type="submit"]:active,
.wq-form .wpcf7-submit:active { transform: translateY(1px); background: var(--wq-green-deep); }
.wq-form .wpcf7-submit { width: 100%; max-width: 320px; }
.wq-form .wpcf7-acceptance .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.wq-form .wpcf7-spinner { position: absolute; }
.wq-form-submit { text-align: center; margin-top: 12px; }
.wq-form-note { font-size: .8rem; color: var(--wq-text-helper); }

/* ---------- Confirm Plus（送信確認画面） ---------- */
div#wpcf7cpcnf {
  background: var(--wq-bg);
  border: 1px solid var(--wq-border);
  padding: 30px 28px;
  box-sizing: border-box;
}
div#wpcf7cpcnf table {
  border: 1px solid var(--wq-border);
  margin-bottom: 8px;
}
div#wpcf7cpcnf th,
div#wpcf7cpcnf td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--wq-border);
  font-size: .92rem;
  vertical-align: top;
}
div#wpcf7cpcnf th {
  width: 260px;
  background: var(--wq-layer-01);
  border-right: 1px solid var(--wq-border);
}
div#wpcf7cpcnf th p,
div#wpcf7cpcnf td p { margin: 0; font-size: .92rem; }
div#wpcf7cpcnf th p { font-weight: 600; }
div#wpcf7cpcnf tr:last-child th,
div#wpcf7cpcnf tr:last-child td { border-bottom: none; }
div.wpcf7cp-btns { margin-top: 20px !important; gap: 12px !important; justify-content: center; }
button.wpcf7cp-cfm-edit-btn,
button.wpcf7cp-cfm-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wq-font);
  padding: 14px 32px;
  min-height: 48px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: 1px solid var(--wq-green);
  transition: background-color .15s, color .15s, transform .05s;
}
button.wpcf7cp-cfm-edit-btn { background: var(--wq-bg); color: var(--wq-green-deep); }
button.wpcf7cp-cfm-edit-btn:hover { background: var(--wq-layer-01); }
button.wpcf7cp-cfm-submit-btn { background: var(--wq-green); color: #fff; border-color: transparent; }
button.wpcf7cp-cfm-submit-btn:hover { background: var(--wq-green-hover); }
button.wpcf7cp-cfm-edit-btn:active,
button.wpcf7cp-cfm-submit-btn:active { transform: translateY(1px); }
@media (max-width: 600px) {
  div#wpcf7cpcnf { padding: 20px 16px; }
  div.wpcf7cp-btns { flex-direction: column; gap: 10px !important; }
  button.wpcf7cp-cfm-edit-btn, button.wpcf7cp-cfm-submit-btn { width: 100%; }
}

.wq-privacy-box {
  background: var(--wq-layer-01);
  border: 1px solid var(--wq-border);
  padding: 14px 16px;
  font-size: .82rem;
  color: var(--wq-text-sub);
  max-height: 140px;
  overflow-y: auto;
  margin-bottom: 12px;
}

/* ---------- Misc ---------- */
.wq-kv { display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--wq-border-strong); }
.wq-kv > div { padding: 16px 18px; border-bottom: 1px solid var(--wq-border); font-size: .92rem; }
.wq-kv dt { font-weight: 600; color: var(--wq-text); background: var(--wq-layer-01); }
.wq-kv dd { margin: 0; }

.wq-panel {
  background: var(--wq-layer-01);
  border: 1px solid var(--wq-border);
  border-left: 3px solid var(--wq-green);
  padding: 22px 26px;
}
.wq-panel-amber { border-left-color: var(--wq-amber); }

.wq-pagenav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--wq-border); }
.wq-pagenav a {
  display: flex; align-items: center;
  padding: 18px 22px;
  font-weight: 600; font-size: .9rem;
  color: var(--wq-text);
  background: var(--wq-bg);
}
.wq-pagenav a + a { border-left: 1px solid var(--wq-border); }
.wq-pagenav a:hover { background: var(--wq-layer-01); text-decoration: none; }
.wq-pagenav .next { justify-content: flex-end; text-align: right; }

.wq-toc {
  background: var(--wq-layer-01);
  border: 1px solid var(--wq-border);
  padding: 22px 28px;
}
.wq-toc p { margin: 0 0 10px; font-weight: 700; color: var(--wq-text); font-size: .9rem; }
.wq-toc ol { margin: 0; padding-left: 22px; font-size: .88rem; }
.wq-toc a { color: var(--wq-text); }
.wq-toc a:hover { color: var(--wq-green); }

.wq-fade { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.wq-fade.wq-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .wq-fade { opacity: 1; transform: none; transition: none; }
  .wq-page * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .wq-logo small { display: none; }
  .wq-nav > ul > li > a { padding: 18px 7px; font-size: .76rem; }
}
@media (max-width: 1024px) {
  .wq-grid-4, .wq-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .wq-grid-2, .wq-grid-3, .wq-grid-4, .wq-grid-6 { grid-template-columns: 1fr 1fr; }
  .wq-feature { grid-template-columns: 1fr; gap: 24px; }
  .wq-feature.wq-rev .wq-feature-media { order: 0; }
  .wq-footer-main { grid-template-columns: 1fr 1fr; }
  .wq-kv { grid-template-columns: 1fr; }
  .wq-kv dt { border-bottom: none; padding-bottom: 6px; }
  .wq-kv dd { padding-top: 6px; }

  .wq-burger { display: block; }
  .wq-header-cta { display: none; }
  .wq-nav {
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--wq-bg);
    border-bottom: 1px solid var(--wq-border);
    box-shadow: var(--wq-shadow-pop);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    display: none;
  }
  .wq-nav.wq-open { display: block; }
  .wq-nav > ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .wq-nav > ul > li > a { padding: 12px 10px; border-bottom: 1px solid var(--wq-border); }
  .wq-sub {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none;
    padding: 0 0 0 18px;
    display: none;
  }
  .wq-sub.wq-open { display: block; }

}
@media (max-width: 560px) {
  .wq-grid-2, .wq-grid-3, .wq-grid-4, .wq-grid-6 { grid-template-columns: 1fr; }
  .wq-section { padding: 52px 0; }
  .wq-form { padding: 28px 20px; }
  .wq-news a { flex-wrap: wrap; gap: 4px 12px; }
  .wq-pagenav { grid-template-columns: 1fr; }
  .wq-pagenav a + a { border-left: none; border-top: 1px solid var(--wq-border); }
}

/* ============================================================
   LunchBox diagram（PPTX構成図のHTML/CSS再現）
   黄楕円=基本機能 / 赤六角=受注側カスタム / 青六角=発注側カスタム
   ============================================================ */
.wq-lbx { border: 1px solid var(--wq-border-strong); padding: 24px 20px; background: var(--wq-bg); }
.wq-lbx-cols { display: grid; grid-template-columns: 150px 1fr 150px 130px; gap: 18px; align-items: start; }
.wq-lbx-zone { display: flex; flex-direction: column; gap: 10px; }
.wq-lbx-zone-head {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 4px 6px; text-align: center; margin-bottom: 2px;
  border: 1px solid var(--wq-border-strong); background: var(--wq-layer-01);
}
.wq-lbx-zone-head.order { background: #fbe9e9; border-color: #c0392b; color: #922; }
.wq-lbx-zone-head.ship  { background: #e5eef7; border-color: #2e75b6; color: #1f4e79; }
.wq-lbx-zone-head.base  { background: #f7f6d5; border-color: #bfb54a; color: #7a731f; }
.wq-lbx-zone-head.tool  { background: var(--wq-layer-01); color: var(--wq-text-secondary); }

.wq-lbx-hex {
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--wq-border-strong);
  min-height: 52px; display: grid; place-items: center;
}
.wq-lbx-hex > span {
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  width: calc(100% - 3px); min-height: 49px;
  display: grid; place-items: center;
  font-size: .82rem; font-weight: 600; text-align: center; line-height: 1.3;
  padding: 4px 14%;
}
.wq-lbx-hex.order { background: #c0392b; }
.wq-lbx-hex.order > span { background: #fbdbdb; color: #6b1f16; }
.wq-lbx-hex.ship { background: #2e75b6; }
.wq-lbx-hex.ship > span { background: #dceaf6; color: #1f4e79; }

.wq-lbx-core { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; align-content: center; }
.wq-lbx-el {
  border-radius: 50%; background: #efffaa; border: 1px solid #c9c95e;
  aspect-ratio: 2.6 / 1;
  display: grid; place-items: center;
  font-size: .88rem; font-weight: 700; text-align: center; padding: 0 12%;
}
.wq-lbx-link {
  grid-column: 1 / -1; text-align: center;
  font-size: .8rem; font-weight: 700; color: var(--wq-green-deep);
  border-top: 1px dashed var(--wq-border-strong);
  border-bottom: 1px dashed var(--wq-border-strong);
  padding: 6px 0; letter-spacing: .1em;
}
.wq-lbx-tool {
  border: 1px solid var(--wq-border-strong); background: var(--wq-layer-01);
  font-size: .8rem; font-weight: 600; text-align: center;
  padding: 9px 6px;
}
.wq-lbx-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: .78rem; color: var(--wq-text-secondary); }
.wq-lbx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.wq-lbx-legend i { display: inline-block; width: 16px; height: 12px; }
.wq-lbx-legend i.lg-el  { border-radius: 50%; background: #efffaa; border: 1px solid #c9c95e; }
.wq-lbx-legend i.lg-ord { background: #fbdbdb; border: 2px solid #c0392b;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.wq-lbx-legend i.lg-shp { background: #dceaf6; border: 2px solid #2e75b6;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }

@media (max-width: 760px) {
  .wq-lbx-cols { grid-template-columns: 1fr 1fr; }
  .wq-lbx-zone:nth-child(3) { order: 4; }
  .wq-lbx-zone:nth-child(4) { order: 3; }
}

/* ============================================================
   ERP 機能一覧ボックス（Standardモジュール概要図の再現）
   ============================================================ */
.wq-featgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wq-featbox { border: 2px dotted var(--wq-border-strong); padding: 0 0 16px; }
.wq-featbox-head {
  display: inline-block; background: var(--wq-green); color: #fff;
  font-weight: 700; font-size: .95rem; padding: 7px 26px;
  margin: -2px auto 14px; position: relative; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
}
.wq-featbox-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; padding: 0 16px; }
.wq-featbox-cols ul { margin: 0; padding: 0; }
.wq-featbox-cols li { font-size: .83rem; padding: 5px 0 5px 14px; position: relative; list-style: none; line-height: 1.45; }
.wq-featbox-cols li::before { content: "◆"; position: absolute; left: 0; font-size: .6rem; top: 9px; color: var(--wq-text-primary); }
.wq-featbox.wq-featbox-wide { grid-column: 1 / -1; }
.wq-featbox-note { font-size: .78rem; color: var(--wq-text-helper); padding: 10px 16px 0; }
@media (max-width: 720px) { .wq-featgrid { grid-template-columns: 1fr; } .wq-featbox-cols { grid-template-columns: 1fr; } }

/* ============================================================
   記事ページ（コラム・ニュース・セミナー詳細）
   ============================================================ */
.wq-article { max-width: 760px; margin: 0 auto; }
.wq-article-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: .82rem; color: var(--wq-text-helper); margin-bottom: 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--wq-border); }
.wq-article h2 { font-size: 1.3rem; margin: 34px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--wq-green); }
.wq-article h3 { font-size: 1.05rem; margin: 26px 0 10px; }
.wq-article p, .wq-article li { font-size: .95rem; line-height: 1.95; }
.wq-article ul { padding-left: 22px; margin: 10px 0 18px; }
.wq-article ul li { list-style: disc; margin-bottom: 6px; }
.wq-article .wq-article-back { margin-top: 40px; }

/* ロゴ画像（img.wq-logo-mark：実ロゴPNGを使う場合） */
img.wq-logo-mark {
  width: auto;
  height: 34px;
  background: none;
  padding: 0;
  font-size: 0;
  border-radius: 0;
}
.wq-footer img.wq-logo-mark { height: 36px; }

/* カスタムロゴ（メディア登録版: a.custom-logo-link > img.custom-logo） */
.wq-logo-img .custom-logo,
a.custom-logo-link img.custom-logo {
  width: auto;
  height: 34px;
  display: block;
}
.wq-footer .custom-logo-link img.custom-logo { height: 36px; }

/* 会社概要のスキャン可能なサマリ帯 */
.wq-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #d2d5d9;
  border-width: 1px 0 1px 1px;
}
.wq-stat {
  padding: 20px 18px;
  border-right: 1px solid #d2d5d9;
  background: #fff;
}
.wq-stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: #161616;
  line-height: 1.2;
}
.wq-stat-num small { font-size: .8rem; font-weight: 600; }
.wq-stat-label {
  font-size: .75rem;
  color: #525252;
  margin-top: 4px;
}
.wq-linkrow {
  margin-top: 22px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.wq-linkrow a { font-weight: 600; }
.wq-article-sign {
  margin-top: 28px;
  text-align: right;
  font-weight: 700;
}
@media (max-width: 768px) {
  .wq-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .wq-stat:nth-child(2) { border-right: none; }
  .wq-stat:nth-child(-n+2) { border-bottom: 1px solid #d2d5d9; }
}

/* メディア差し替え用構成図（[waq_diagram]） */
.wq-diagram-img { max-width: 100%; height: auto; border: 1px solid #d2d5d9; display: block; }
