:root {
  /* ----- メイン設定 ----- */
  --lp-content-max: 1024px;
  --lp-text-main: #333;

  /* テンプレート用パレット（色のみ差し替え） */
  --theme-primary: #153e75; /* 基調・見出し帯・リンクなど */
  --theme-highlight-bg: #dff2fc; /* ハイライトボックス背景 */
  --theme-surface-tint: #dff2fc; /* CTA背景 */
  --theme-accent: #c9302c; /* 強調・カテゴリ・ポイント枠など */
  --theme-surface-muted: #e8eaf6; /* FAQなど控えめなセクション背景 */
  --theme-secondary: #5976ba; /* 子見出し・アクセント2 */
  --theme-surface: #fff; /* 純白・反転時のテキスト色 */

  /* ----- 共通設定 ----- */
  --lp-text-muted: #333;
  --lp-text-faint: #999;
  --lp-border-soft: #e8e8e8;
  --lp-shadow-soft: rgba(0, 0, 0, 0.08);
  --lp-shadow-dark: rgba(20, 60, 120, 0.35);
  --lp-hero-bg: rgba(255, 255, 255, 0.8);
  --lp-hero-border: rgba(255, 255, 255, 0.5);
  --lp-marker-highlight: #ff6;
}

.case-study > main .marker {
  background: linear-gradient(transparent 60%, var(--lp-marker-highlight) 60%);
}

.case-study {
  margin: 0;
  background: var(--theme-surface);
}

.case-study > main {
  color: var(--lp-text-main);
  font-size: 1.1rem;
}

.case-study > main p:not(.hero__badge) {
  font-size: clamp(0.94rem, 0.86rem + 0.4vw, 1.1rem);
  line-height: clamp(1.5rem, 1.28rem + 0.85vw, 1.8rem);
  padding: clamp(0.38rem, 1.5vw, 0.5rem) 0;
}

.case-study > main li,
.case-study > main dt,
.case-study > main dd {
  font-size: clamp(0.88rem, 0.78rem + 0.32vw, 1.02rem);
  line-height: clamp(1.42rem, 1.22rem + 0.75vw, 1.68rem);
}

/* ----- メインコンテンツ幅 ----- */
.case-study > main > article {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--lp-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

/* ----- パンくず（サイト全幅・コンテンツ列と別） ----- */
.case-study > main > nav[aria-label="パンくずリスト"] {
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: var(--lp-text-muted);
}

.case-study > main > nav[aria-label="パンくずリスト"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  font-size: 0.85rem;
  margin: 0;
  padding: 0;
  gap: 0.35rem 0;
}

.case-study > main > nav[aria-label="パンくずリスト"] li {
  display: inline-flex;
  align-items: center;
}

.case-study > main > nav[aria-label="パンくずリスト"] li:not(:last-child)::after {
  content: ">";
  margin: 0 0.5rem;
  font-size: 0.85rem;
  color: var(--lp-text-faint);
}

.case-study > main > nav[aria-label="パンくずリスト"] a {
  color: var(--theme-primary);
  font-size: 0.85rem;
  text-decoration: none;
}

.case-study > main > nav[aria-label="パンくずリスト"] a:hover {
  text-decoration: underline;
}

/* ----- ヒーロー ----- */
.case-study .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2rem;
  box-sizing: border-box;
  min-height: clamp(380px, 56vw, 600px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.case-study .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/head_bg.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.case-study .hero::after {
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  margin: clamp(1.75rem, 6.5vw, 5.25rem) auto 0;
  padding: clamp(2.3rem, 4.8vw, 3.3rem) clamp(1.35rem, 3.5vw, 2.75rem);
  box-sizing: border-box;
  text-align: center;
  background: var(--lp-hero-bg);
  background-clip: padding-box;
  border: 15px solid var(--lp-hero-border);
}

.case-study .hero .hero__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--theme-surface);
  width: clamp(120px, 30vw, 180px);
  height: clamp(40px, 12vw, 60px);
  background: var(--theme-primary);
  border-radius: 50%;
  box-shadow: 0 3px 10px var(--lp-shadow-dark);
}

.case-study .hero .article-category {
  display: block;
  margin: 0 0 0.5rem;
  padding: 0;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--theme-accent);
  background: none;
  border-radius: 0;
}

.case-study .hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 3.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--theme-primary);
  letter-spacing: 0.03em;
}

.case-study .hero .article-subtitle {
  margin: 0;
  font-size: clamp(0.88rem, 2.1vw, 2.0rem);
  line-height: 1.65;
  color: var(--theme-primary);
  font-weight: 500;
}

/* ----- 画像 ----- */
.figure-block {
  text-align: center;
}

.figure-block img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 12px var(--lp-shadow-soft);
  border: 1px solid var(--lp-border-soft);
}

/* ----- ポイント ----- */
.case-points {
  margin-top: 3.5rem;
  position: relative;
  border: 5px solid var(--theme-accent);
  border-radius: 15px;
  overflow: visible;
  padding-top: 2.4rem;
}

.case-points__title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.55rem 1.5rem;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 700;
  text-align: center;
  color: var(--theme-surface);
  background: var(--theme-accent);
  display: inline-block;
  white-space: nowrap;
  z-index: 2;
}

.case-points__title::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 13px;
  margin-top: -0.4px;
  background: var(--theme-accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.case-points__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.1rem 1.25rem;
}

.case-points__body ul {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.case-points__body li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5rem;
  line-height: 1.75;
  color: var(--lp-text-main);
}

.case-points__body li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.88em;
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  background: var(--theme-accent);
  transform: translateY(-50%);
}

.case-points__art {
  flex-shrink: 0;
  align-self: flex-end;
  width: clamp(100px, 28vw, 160px);
}

.case-points__art img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 575px) {
  .case-points__body {
    flex-direction: column;
  }

  .case-points__art {
    align-self: center;
    width: 140px;
  }
}

/* ----- セクションマージン ----- */
.case-points,
.pdce-definition,
.lightning-risk,
.facility-analysis,
.mobile-system,
.construction-operation,
.implementation-results {
    margin-bottom: 3.25rem;
}

/* 番号付きセクション見出し（全セクション共通・レスポンシブ） */
.section-title {
  --section-num-size: clamp(2.5rem, 6vw + 1.15rem, 4rem);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  overflow: visible;
  gap: clamp(0.4rem, 2vw, 0.65rem);
  margin: 0 0 clamp(0.85rem, 2.5vw, 1.15rem);
  padding: clamp(0.32rem, 1.2vw, 0.4rem) clamp(0.65rem, 3vw, 1rem) clamp(0.32rem, 1.2vw, 0.4rem)
    calc(var(--section-num-size) + clamp(0.45rem, 2vw, 0.65rem));
  font-size: clamp(1.05rem, 0.82rem + 1.35vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--theme-surface);
  background: var(--theme-primary);
  border: none;
  border-radius: 2px;
}

.section-title .section-num {
  position: absolute;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--section-num-size);
  height: var(--section-num-size);
  padding-bottom: clamp(2px, 0.6vw, 5px);
  font-size: clamp(1.2rem, 0.55rem + 3.1vw, 2rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: var(--theme-primary);
  background: var(--theme-surface);
  border-radius: 50%;
  border: clamp(4px, 0.9vw + 2px, 10px) solid var(--theme-primary);
  margin-top: calc(-0.42 * var(--section-num-size) - 0.35rem);
  margin-bottom: -0.65rem;
  top: 0;
  left: 0;
}

/* ----- セクション 子見出し（全箇所共通・レスポンシブ） ----- */
.subhead {
  --subhead-border: clamp(3px, 0.65vw + 1px, 4px);
  margin: clamp(1.1rem, 2.5vw + 0.5rem, 1.5rem) 0 clamp(0.5rem, 2vw, 0.65rem);
  padding: clamp(0.32rem, 1.5vw, 0.45rem) clamp(0.5rem, 3vw, 0.85rem) clamp(0.32rem, 1.5vw, 0.45rem) 0;
  font-size: clamp(1.02rem, 0.8rem + 1.05vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--theme-secondary);
  border: none;
  border-top: var(--subhead-border) solid var(--theme-secondary);
  border-bottom: var(--subhead-border) solid var(--theme-secondary);
}

.subhead .subhead-num {
  display: inline-block;
  margin-right: clamp(0.28rem, 2vw, 0.45rem);
  padding: clamp(0.26rem, 1.4vw, 0.45rem) clamp(0.55rem, 3.5vw, 1.25rem);
  font-size: clamp(0.86em, 0.74em + 0.85vw, 0.98em);
  font-weight: 700;
  line-height: 1.15;
  vertical-align: baseline;
  background: var(--theme-secondary);
  color: var(--theme-surface);
}

/* ----- ハイライトボックス ----- */
.highlight-box {
  margin: 1rem 0 1.25rem;
  padding: 1.1rem 1.2rem;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.highlight-box ul {
  margin: 0;
}

.highlight-box li {
  margin-bottom: 0.45rem;
  line-height: 1.75;
}

.highlight-box li::marker {
  color: var(--theme-primary);
}

.highlight-bg {
  background: var(--theme-highlight-bg);
}

/* セクション1のリスクリスト */
.risk-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.risk-list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.45rem;
}

.risk-list li:last-child {
  margin-bottom: 0;
}

.risk-list li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.88em;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--theme-primary);
  transform: translateY(-50%);
}

.risk-list dt {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.risk-list dt::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.88em;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--theme-primary);
  transform: translateY(-50%);
}

.risk-list dd {
  margin: 0 0 0.45rem;
  padding-left: 1.4em;
}

.risk-list dd:last-child {
  margin-bottom: 0;
}


/* ----- FAQ ----- */
.case-study > main > aside.faq {
  margin-top: 2rem;
  padding: 2rem 0 2.25rem;
  border: none;
  background: var(--theme-surface-muted);
}

.case-study > main > aside.faq,
.case-study > main > section.cta-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.case-study .faq__inner,
.case-study .cta-section__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--lp-content-max);
  margin-left: auto;
  margin-right: auto;
}

.case-study .faq__inner {
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.case-study > main > aside.faq .faq__inner > h2 {
  margin: 0 0 1.35rem;
  padding-bottom: 0.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

.faq__q {
  position: relative;
  margin: 0 0 0.65rem;
  padding: 0 1.0rem 0.5rem 1.0rem;
  font-size: 1.0rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--theme-primary);
  background: var(--theme-surface);
}

.faq__q::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -19.5px;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--theme-surface);
}

.faq__a {
  margin-bottom: 1.0rem;
  line-height: 1.55;
}

p.faq__a {
  padding-left: 1.0rem;
}

.faq__label {
  display: inline-block;
  margin-right: 0.4rem;
  font-weight: 800;
  font-size: 1.5rem;
  vertical-align: baseline;
}

.faq__label--q {
  color: var(--theme-primary);
}

.faq__label--a {
  color: var(--theme-accent);
}

/* ----- 記事内 CTA ----- */
.case-study > main > section.cta-section {
  padding: 2rem 0;
  background: var(--theme-surface-tint);
  text-align: center;
}

.case-study .cta-section__inner {
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

.case-study > main > section.cta-section .cta-section__inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 2.5vw, 1.85rem);
  color: var(--theme-primary);
}

.case-study > main > section.cta-section .cta-section__inner p {
  margin: 0 0 1rem;
  line-height: 1.85;
  text-align: left;
}

.case-study > main > section.cta-section .cta-section__inner p:last-of-type {
  margin-bottom: 0;
  text-align: center;
}