/* STEP WANGAN-BIZ-8-R3
   WEBSITE × LINE公式 × DPRO 統合訴求
-------------------------------------------------------------- */
.dpro-integration-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(6, 199, 85, .15), transparent 30%),
    linear-gradient(135deg, #080b0f 0%, #101820 54%, #0c1318 100%);
  color: #fff;
}
.dpro-integration-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 38px 38px;
}
.dpro-integration-section .shell { position: relative; z-index: 1; }
.dpro-integration-section .section-head p { color: #aeb9c4; }
.dpro-integration-section h2 { color: #fff; }

.dpro-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.dpro-channel-card {
  position: relative;
  min-height: 215px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  box-shadow: 0 16px 38px rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
}
.dpro-channel-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  background: #f2c515;
}
.dpro-channel-card.line::after { background: #06c755; }
.dpro-channel-card.shop::after { background: #3b82f6; }
.dpro-channel-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .05em;
}
.dpro-channel-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
}
.dpro-channel-card p {
  margin: 0;
  color: #b9c2cb;
  line-height: 1.75;
}
.dpro-channel-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #dce3e8;
  font-size: 13px;
  line-height: 1.8;
}
.dpro-channel-card li::before {
  content: "✓";
  margin-right: 8px;
  color: #f2c515;
  font-weight: 900;
}
.dpro-channel-card.line li::before { color: #06c755; }

.dpro-central-hub {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid rgba(242,197,21,.45);
  background: linear-gradient(120deg, rgba(242,197,21,.13), rgba(255,255,255,.04));
}
.dpro-central-hub .hub-label {
  color: #f2c515;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}
.dpro-central-hub h3 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.18;
}
.dpro-central-hub p {
  margin: 0;
  color: #c1cad2;
  line-height: 1.8;
}
.dpro-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.dpro-record-grid span {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: #eef2f5;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.dpro-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.dpro-value-item {
  padding: 20px;
  background: #fff;
  color: #111827;
}
.dpro-value-item b {
  display: block;
  margin-bottom: 7px;
  font-size: 17px;
}
.dpro-value-item p {
  margin: 0;
  color: #5f6873;
  font-size: 13px;
  line-height: 1.7;
}

.dpro-line-action {
  position: relative;
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 185px;
  text-align: center;
}
.dpro-line-action .line-main { font-weight: 900; }
.dpro-line-action .line-sub {
  font-size: 10px;
  font-weight: 700;
  opacity: .78;
}
.dpro-line-action.is-line-connected {
  border-color: #06c755 !important;
  background: #06c755 !important;
  color: #07150c !important;
}
.dpro-line-action.is-line-pending {
  border-color: rgba(6,199,85,.75) !important;
  background: rgba(6,199,85,.11) !important;
  color: inherit !important;
  cursor: help;
}
.dpro-line-action.is-line-pending::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 999px;
  background: #06c755;
  box-shadow: 0 0 0 5px rgba(6,199,85,.12);
}

.dpro-unified-section {
  background:
    linear-gradient(120deg, rgba(6,199,85,.08), transparent 35%),
    #f4f6f8;
}
.dpro-unified-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 25px;
}
.dpro-unified-flow article {
  position: relative;
  min-height: 178px;
  padding: 19px;
  border: 1px solid #dce1e6;
  background: #fff;
}
.dpro-unified-flow article:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 2;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border: 1px solid #d8dde2;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  text-align: center;
  line-height: 23px;
  font-weight: 900;
}
.dpro-unified-flow span {
  color: #87909a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}
.dpro-unified-flow h3 {
  margin: 10px 0 8px;
  font-size: 17px;
}
.dpro-unified-flow p {
  margin: 0;
  color: #606a75;
  font-size: 13px;
  line-height: 1.7;
}
.dpro-integration-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid #06c755;
  background: rgba(6,199,85,.08);
  color: #334155;
  font-size: 13px;
  line-height: 1.75;
}

.line-integration-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 9999;
  width: min(440px, calc(100% - 32px));
  padding: 15px 18px;
  border: 1px solid rgba(6,199,85,.5);
  background: #0c1412;
  color: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
  transform: translate(-50%, 22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  font-size: 13px;
  line-height: 1.7;
}
.line-integration-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.line-integration-toast b { color: #43df81; }

.mobile-cta.line-four {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.mobile-cta.line-four a {
  min-width: 0;
  padding-left: 5px;
  padding-right: 5px;
  font-size: 11px;
}
.mobile-cta.line-four .mobile-line {
  color: #092a16;
  background: #06c755;
}
.mobile-cta.line-four .mobile-line.is-line-pending {
  color: #d7ffe5;
  background: #173325;
}

@media (max-width: 900px) {
  .dpro-channel-grid,
  .dpro-value-grid { grid-template-columns: 1fr; }
  .dpro-central-hub { grid-template-columns: 1fr; }
  .dpro-unified-flow { grid-template-columns: 1fr; }
  .dpro-unified-flow article:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -18px;
    margin: 0 -13px 0 0;
  }
}
@media (max-width: 520px) {
  .dpro-central-hub { padding: 22px 17px; }
  .dpro-record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dpro-line-action { width: 100%; min-width: 0; }
}


/* STEP WANGAN-BIZ-8-R3
   全ページ見出し・改行・店舗情報表示の再検査
-------------------------------------------------------------- */
:where(h1, h2, h3).audited-heading,
:where(h1, h2, h3).heading-balanced {
  text-wrap: balance;
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;
  hanging-punctuation: allow-end;
}

.audited-heading .heading-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

/* WEBSITE × LINE × DPRO */
.dpro-integration-section .section-head {
  grid-template-columns: minmax(520px, 1.25fr) minmax(300px, .75fr) !important;
  gap: clamp(30px, 5vw, 76px) !important;
  align-items: end !important;
}
.dpro-integration-section .section-head h2 {
  max-width: 760px;
  margin-right: auto;
  font-size: clamp(42px, 4.8vw, 66px) !important;
  line-height: 1.13 !important;
  letter-spacing: -.045em !important;
}
.dpro-central-hub {
  grid-template-columns: minmax(460px, 1.08fr) minmax(0, .92fr) !important;
  gap: clamp(28px, 4vw, 58px) !important;
}
.dpro-central-hub h3 {
  max-width: 540px;
  font-size: clamp(32px, 3.35vw, 46px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.035em;
}

/* Standard business sections */
.business-section .section-head h2 {
  text-wrap: balance;
  line-break: strict;
}
.split-copy h2.heading-split {
  max-width: 11em;
  font-size: clamp(36px, 4vw, 52px) !important;
  line-height: 1.18 !important;
}
.section-head h2.heading-single {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(36px, 4.2vw, 54px) !important;
}
.section-head h2.heading-unified {
  max-width: 720px;
  font-size: clamp(40px, 4.5vw, 60px) !important;
  line-height: 1.14 !important;
}

/* Bottom contact CTA: prevent the final one or two characters from orphaning. */
.cta-band-inner {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: clamp(28px, 4vw, 66px) !important;
  align-items: center !important;
}
.cta-band h2.heading-cta {
  max-width: 820px;
  font-size: clamp(36px, 4.25vw, 55px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.04em !important;
}
.cta-band h2.heading-cta .heading-line:last-child {
  white-space: nowrap;
}

/* Phone numbers should remain readable and never wrap digit by digit. */
a[data-store-phone],
.info-list a[href^="tel:"],
.footer-links a[href^="tel:"] {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

@media (max-width: 1040px) {
  .dpro-integration-section .section-head {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .dpro-integration-section .section-head h2 {
    font-size: clamp(40px, 6.3vw, 58px) !important;
  }
  .dpro-central-hub {
    grid-template-columns: 1fr !important;
  }
  .cta-band-inner {
    grid-template-columns: 1fr !important;
  }
  .cta-band h2.heading-cta {
    max-width: 850px;
  }
}

@media (max-width: 720px) {
  .audited-heading .heading-line {
    max-width: 100%;
  }
  .dpro-integration-section .section-head h2 {
    font-size: clamp(38px, 10.5vw, 50px) !important;
    line-height: 1.15 !important;
  }
  .dpro-central-hub h3 {
    font-size: clamp(30px, 8.4vw, 40px) !important;
  }
  .split-copy h2.heading-split {
    font-size: clamp(34px, 9.2vw, 44px) !important;
  }
  .section-head h2.heading-single {
    font-size: clamp(34px, 9vw, 44px) !important;
  }
  .section-head h2.heading-unified {
    font-size: clamp(36px, 9.8vw, 48px) !important;
  }
  .cta-band h2.heading-cta {
    font-size: clamp(31px, 8.5vw, 42px) !important;
  }
  .cta-band h2.heading-cta .heading-line:last-child {
    width: min(12em, 100%);
    white-space: normal;
    text-wrap: balance;
  }
}

@media (max-width: 430px) {
  .dpro-integration-section .section-head h2 {
    font-size: 39px !important;
  }
  .dpro-central-hub h3 {
    font-size: 33px !important;
  }
  .split-copy h2.heading-split,
  .section-head h2.heading-single {
    font-size: 34px !important;
  }
  .section-head h2.heading-unified {
    font-size: 36px !important;
  }
  .cta-band h2.heading-cta {
    font-size: 31px !important;
  }
}


/* Explicit audited selectors for the two primary R3 headings. */
h2.heading-integration .heading-line,
h3.heading-hub .heading-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}
