/* Blue Debt Guide Hugo Theme - style.css */

/* =========================================================
   Base
========================================================= */
:root {
  --bdg-blue-900: #06336d;
  --bdg-blue-800: #0d4081;
  --bdg-blue-700: #1f63c5;
  --bdg-blue-600: #3778d8;
  --bdg-blue-500: #5f95e7;
  --bdg-blue-100: #eaf4ff;
  --bdg-blue-050: #f6fbff;
  --bdg-green: #51ad81;
  --bdg-orange: #ff8a20;
  --bdg-purple: #8c64be;
  --bdg-text: #122244;
  --bdg-muted: #5f6d84;
  --bdg-border: #d8e5f6;
  --bdg-bg: #ffffff;
  --bdg-shadow: 0 18px 50px rgba(17, 67, 129, 0.12);
  --bdg-radius-lg: 22px;
  --bdg-radius-md: 14px;
  --bdg-container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bdg-text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.75;
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bdg-blue-700); }
button, input, textarea, select { font: inherit; }

.bdg-container {
  width: min(var(--bdg-container), calc(100% - 48px));
  margin-inline: auto;
}

.bdg-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--bdg-blue-900);
}
.bdg-skip-link:focus { top: 12px; }

/* =========================================================
   Header
========================================================= */
.bdg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dfeaf7;
  backdrop-filter: blur(12px);
}

.bdg-header__inner {
  width: min(1220px, calc(100% - 36px));
  min-height: 82px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.bdg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}
.bdg-brand__mark {
  width: 42px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--bdg-blue-700);
  font-weight: 900;
  font-size: 25px;
  line-height: 1;
  background: linear-gradient(180deg, #fff, #edf6ff);
  border: 3px solid var(--bdg-blue-600);
  border-radius: 12px 12px 18px 18px;
  clip-path: polygon(50% 0, 100% 14%, 100% 70%, 50% 100%, 0 70%, 0 14%);
}
.bdg-brand__text { display: grid; line-height: 1.2; }
.bdg-brand__title {
  color: var(--bdg-blue-900);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.bdg-brand__tagline {
  margin-top: 4px;
  color: var(--bdg-blue-800);
  font-size: 12px;
  font-weight: 700;
}

.bdg-nav { justify-self: center; }
.bdg-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bdg-nav__list a {
  color: #1d2e4b;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.bdg-nav__list a:hover { color: var(--bdg-blue-700); }

.bdg-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--bdg-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.bdg-menu-toggle span:not(.bdg-menu-toggle__label) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--bdg-blue-900);
}
.bdg-menu-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* =========================================================
   Hero
========================================================= */
.bdg-main { overflow: hidden; }
.bdg-hero {
  min-height: 650px;
  background:
    radial-gradient(circle at 88% 22%, rgba(66, 153, 225, 0.15), transparent 26%),
    linear-gradient(90deg, #f8fcff 0%, #f2f9ff 38%, #edf6ff 100%);
  border-bottom: 1px solid #edf4fb;
}
.bdg-hero__inner {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  gap: 26px;
  padding: 54px 0 42px;
}
.bdg-hero__copy { position: relative; z-index: 2; }
.bdg-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--bdg-blue-700);
  font-size: 14px;
  font-weight: 800;
}
.bdg-hero h1 {
  margin: 0;
  color: var(--bdg-blue-900);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.07em;
}
.bdg-hero__lead {
  margin: 24px 0 28px;
  color: #0f2448;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.85;
}

.bdg-hero-facts {
  display: flex;
  gap: 14px;
  margin: 0 0 10px;
}
.bdg-hero-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  padding: 12px;
  text-align: center;
  color: var(--bdg-blue-800);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #c7dcef;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(17, 67, 129, 0.06);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.bdg-hero-fact__num {
  display: block;
  margin-bottom: 4px;
  color: var(--bdg-blue-700);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.bdg-hero__visual {
  position: relative;
  min-height: 520px;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.bdg-hero__image {
  position: absolute;
  top: -22px;
  right: -20px;
  width: min(640px, 100%);
  max-width: none;
  filter: drop-shadow(0 18px 40px rgba(35, 84, 133, 0.12));
}
.bdg-hero__visual::before {
  content: "";
  position: absolute;
  inset: -54px -120px 70px 70px;
  background: radial-gradient(circle at 54% 38%, rgba(255,255,255,0.98), rgba(255,255,255,0.38) 44%, transparent 70%);
  pointer-events: none;
}

.bdg-worry-card {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: min(612px, 100%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid #3b7fe2;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(13, 64, 129, 0.10);
}
.bdg-worry-card__title {
  position: relative;
  width: 330px;
  padding: 10px 18px 12px;
  color: #fff;
  background: #4f8fe6;
  border-radius: 0 0 28px 0;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.bdg-worry-card__body {
  display: grid;
  grid-template-columns: 1fr 136px;
  gap: 16px;
  align-items: end;
  padding: 16px 22px 10px;
}
.bdg-worry-card ul { margin: 0; padding: 0; list-style: none; }
.bdg-worry-card li {
  position: relative;
  padding-left: 34px;
  margin: 0 0 9px;
  color: #1f2f4b;
  font-weight: 800;
}
.bdg-worry-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #6ea1e5;
  border-radius: 50%;
  font-size: 13px;
}
.bdg-worry-card img { width: 126px; justify-self: end; }

/* =========================================================
   Sections
========================================================= */
.bdg-section { padding: 58px 0; }
.bdg-section--about { background: #fff; }
.bdg-section--types { padding-top: 20px; background: #fff; }
.bdg-section-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.bdg-section-head--left { margin: 0; text-align: left; }
.bdg-section-head h2 {
  margin: 0 0 18px;
  color: var(--bdg-blue-900);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.35;
  letter-spacing: 0.06em;
}
.bdg-section-head p { margin: 0; color: #24364f; font-weight: 600; }

.bdg-about {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 30px;
  align-items: center;
}
.bdg-about__illust { width: 228px; justify-self: center; }

.bdg-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bdg-service-grid--4 { grid-template-columns: repeat(4, 1fr); }

.bdg-service-card {
  min-height: 322px;
  padding: 28px 26px 24px;
  background: #fff;
  border: 1px solid #cddceb;
  border-radius: 9px;
  box-shadow: 0 15px 30px rgba(17, 67, 129, 0.06);
}
.bdg-service-card__top {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid #d8e3ee;
}
.bdg-service-card__icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  border-radius: 50%;
}
.bdg-service-card--green .bdg-service-card__icon { background: #96cfb6; }
.bdg-service-card--blue  .bdg-service-card__icon { background: #6da5e7; }
.bdg-service-card--purple .bdg-service-card__icon { background: #9270c4; }
.bdg-service-card--orange .bdg-service-card__icon { background: #f4a245; }
.bdg-service-card h3 { margin: 2px 0 6px; font-size: 29px; line-height: 1.15; }
.bdg-service-card--green  h3 { color: #248c61; }
.bdg-service-card--blue   h3 { color: #2269c8; }
.bdg-service-card--purple h3 { color: #7050a8; }
.bdg-service-card--orange h3 { color: #c06a00; }
.bdg-service-card p { margin: 0; color: #2d3d54; font-weight: 700; line-height: 1.65; }
.bdg-service-card__label {
  display: inline-block;
  margin: 18px 0 12px;
  padding: 5px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 900;
}
.bdg-service-card--green  .bdg-service-card__label { color: #1f8c5e; background: #e7f6ee; }
.bdg-service-card--blue   .bdg-service-card__label { color: #2269c8; background: #edf5ff; }
.bdg-service-card--purple .bdg-service-card__label { color: #6f4da8; background: #f3effa; }
.bdg-service-card--orange .bdg-service-card__label { color: #b05e00; background: #fff4e5; }
.bdg-service-card ul { margin: 0; padding: 0; list-style: none; }
.bdg-service-card li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 28px;
  color: #25334a;
  font-weight: 700;
}
.bdg-service-card li::before { content: "✓"; position: absolute; left: 0; color: var(--bdg-blue-700); font-weight: 900; }
.bdg-service-card--green  li::before { color: #2fa16d; }
.bdg-service-card--purple li::before { color: #7555aa; }
.bdg-service-card--orange li::before { color: #e07800; }

/* =========================================================
   金額別フロー
========================================================= */
.bdg-section--amount { background: linear-gradient(180deg, #f4fbff 0%, #eef8ff 100%); }
.bdg-amount-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bdg-amount-card {
  padding: 28px 24px 24px;
  background: #fff;
  border: 1px solid var(--bdg-border);
  border-radius: 16px;
  box-shadow: var(--bdg-shadow);
  text-align: center;
}
.bdg-amount-card__range { margin-bottom: 4px; color: var(--bdg-blue-900); font-size: 18px; font-weight: 700; }
.bdg-amount-card__range strong { font-size: 32px; font-weight: 900; }
.bdg-amount-card__arrow { margin: 6px 0; color: var(--bdg-blue-500); font-size: 22px; line-height: 1; }
.bdg-amount-card__method {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 900;
}
.bdg-amount-card__method--green  { color: #1f8c5e; background: #e7f6ee; }
.bdg-amount-card__method--blue   { color: #2269c8; background: #edf5ff; }
.bdg-amount-card__method--purple { color: #6f4da8; background: #f3effa; }
.bdg-amount-card__list { margin: 0 0 16px; padding: 0; list-style: none; text-align: left; }
.bdg-amount-card__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: #25334a;
  font-weight: 700;
  font-size: 14px;
}
.bdg-amount-card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--bdg-blue-600); font-weight: 900; }
.bdg-amount-card__note {
  padding: 8px 14px;
  background: var(--bdg-blue-100);
  border-radius: 8px;
  color: var(--bdg-blue-800);
  font-size: 13px;
  font-weight: 800;
}

/* =========================================================
   Flow
========================================================= */
.bdg-section--flow { background: #fff; }
.bdg-flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bdg-flow-list li {
  position: relative;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--bdg-border);
  border-radius: 16px;
  box-shadow: var(--bdg-shadow);
}
.bdg-flow-list__highlight {
  background: linear-gradient(135deg, #edf5ff, #f0f9ff);
  border-color: var(--bdg-blue-500);
  border-width: 2px;
}
.bdg-flow-list__highlight strong { color: var(--bdg-blue-700); }
.bdg-flow-list span { display: inline-block; margin-bottom: 10px; color: var(--bdg-blue-600); font-size: 20px; font-weight: 900; }
.bdg-flow-list strong { display: block; margin-bottom: 6px; color: var(--bdg-blue-900); font-size: 16px; }
.bdg-flow-list p { margin: 0; color: var(--bdg-muted); font-weight: 600; font-size: 14px; }

/* =========================================================
   Cost + 法テラス
========================================================= */
.bdg-section--cost { background: #f7fbff; }
.bdg-cost-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bdg-border);
  border-radius: 18px;
  box-shadow: var(--bdg-shadow);
}
.bdg-cost-box div { padding: 26px; border-right: 1px solid var(--bdg-border); }
.bdg-cost-box div:last-child { border-right: 0; }
.bdg-cost-box strong { display: block; margin-bottom: 8px; color: var(--bdg-blue-900); font-size: 22px; }
.bdg-cost-box span { color: var(--bdg-muted); font-weight: 700; }
.bdg-cost-price { display: block; margin: 6px 0 4px; color: var(--bdg-blue-900); font-size: 22px; font-weight: 900; }

.bdg-legal-aid {
  margin-top: 32px;
  padding: 30px 32px;
  background: linear-gradient(135deg, #f4fbff, #edf8f2);
  border: 1.5px solid #b8ddf5;
  border-radius: 18px;
}
.bdg-legal-aid__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bdg-legal-aid__badge {
  display: inline-block;
  padding: 4px 14px;
  color: #fff;
  background: var(--bdg-blue-700);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.bdg-legal-aid__head h3 { margin: 0; color: var(--bdg-blue-900); font-size: 22px; font-weight: 900; }
.bdg-legal-aid__lead { margin: 0 0 20px; color: #1e3050; font-weight: 600; line-height: 1.8; }
.bdg-legal-aid__table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bdg-border);
  border-radius: 12px;
  margin-bottom: 12px;
}
.bdg-legal-aid__table div { padding: 16px 18px; border-right: 1px solid var(--bdg-border); }
.bdg-legal-aid__table div:last-child { border-right: 0; }
.bdg-legal-aid__table strong { display: block; margin-bottom: 4px; color: var(--bdg-blue-900); font-size: 16px; }
.bdg-legal-aid__table span { color: var(--bdg-muted); font-size: 13px; font-weight: 700; }
.bdg-legal-aid__note { margin: 0; color: var(--bdg-muted); font-size: 13px; font-weight: 600; }

/* =========================================================
   FAQ
========================================================= */
.bdg-section--faq { background: #fff; }
.bdg-faq-list { max-width: 900px; margin-inline: auto; display: grid; gap: 14px; }
.bdg-faq-list details {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bdg-border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 67, 129, 0.05);
}
.bdg-faq-list summary { cursor: pointer; padding: 18px 22px; color: var(--bdg-blue-900); font-weight: 900; }
.bdg-faq-list p { margin: 0; padding: 0 22px 20px; color: #2b3a52; font-weight: 600; }

/* =========================================================
   記事一覧リンク
========================================================= */
.bdg-section--articles-link { background: linear-gradient(180deg, #f4fbff, #eef8ff); }
.bdg-articles-link-box {
  max-width: 700px;
  margin-inline: auto;
  padding: 40px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--bdg-border);
  border-radius: 20px;
  box-shadow: var(--bdg-shadow);
}
.bdg-articles-link-box h2 { margin: 0 0 14px; color: var(--bdg-blue-900); font-size: clamp(22px, 2.5vw, 30px); }
.bdg-articles-link-box p { margin: 0 0 24px; color: #24364f; font-weight: 600; }
.bdg-articles-link-btn {
  display: inline-block;
  padding: 14px 36px;
  color: #fff;
  background: var(--bdg-blue-700);
  border-radius: 99px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.bdg-articles-link-btn:hover { color: #fff; background: var(--bdg-blue-900); }

/* =========================================================
   Page / Posts
========================================================= */
.bdg-page-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #f4fbff, #e9f5ff);
  border-bottom: 1px solid #dbe9f7;
}
.bdg-page-hero h1 {
  margin: 0 0 10px;
  color: var(--bdg-blue-900);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.35;
}
.bdg-page-hero p { margin: 0; color: #34445d; font-weight: 700; }

.bdg-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding: 46px 0 70px;
}
.bdg-single-layout { align-items: start; }

.bdg-post-list { display: grid; gap: 18px; }
.bdg-post-card {
  overflow: hidden;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--bdg-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(17, 67, 129, 0.06);
}
.bdg-post-card--has-thumb {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
}
.bdg-post-card__thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.bdg-post-card__meta,
.bdg-entry__meta { margin: 0 0 8px; color: var(--bdg-muted); font-size: 13px; font-weight: 700; }
.bdg-post-card h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.45; color: var(--bdg-blue-900); }
.bdg-post-card__excerpt { color: #2d3b52; font-weight: 600; }
.bdg-post-card__excerpt p { margin: 0; }

.bdg-entry {
  min-width: 0;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--bdg-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(17, 67, 129, 0.06);
}
.bdg-entry__thumb { margin-bottom: 28px; }
.bdg-entry__thumb img { border-radius: 16px; }
.bdg-entry__content h2 { color: var(--bdg-blue-900); margin-top: 2em; }
.bdg-entry__content h3 { color: var(--bdg-blue-800); margin-top: 1.7em; }
.bdg-entry__content p { margin: 0 0 1.2em; }
.bdg-entry__content a { color: var(--bdg-blue-700); text-decoration: underline; text-underline-offset: 0.18em; }
.bdg-entry__content ul, .bdg-entry__content ol { padding-left: 1.4em; }

.bdg-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--bdg-border);
}
.bdg-post-nav div:last-child { text-align: right; }
.bdg-post-nav a {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--bdg-border);
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
}

.bdg-sidebar { display: grid; gap: 18px; align-self: start; }
.bdg-sidebar-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--bdg-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(17, 67, 129, 0.07);
}
.bdg-sidebar-card h2 { margin: 0 0 12px; color: var(--bdg-blue-900); font-size: 18px; }
.bdg-sidebar-card ul { margin: 0; padding: 0; list-style: none; }
.bdg-sidebar-card li + li { border-top: 1px solid var(--bdg-border); }
.bdg-sidebar-card li a { display: block; padding: 10px 0; font-weight: 800; }

/* =========================================================
   Footer
========================================================= */
.bdg-footer { color: #d8e6f6; background: #082b5a; }
.bdg-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 36px 0;
}
.bdg-footer__brand { margin: 0 0 6px; color: #fff; font-size: 22px; font-weight: 900; }
.bdg-footer__note { max-width: 740px; margin: 0; font-size: 13px; }
.bdg-footer-menu { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.bdg-footer-menu a { color: #fff; font-weight: 800; }
.bdg-copyright {
  margin: 0;
  padding: 14px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1080px) {
  .bdg-header__inner { grid-template-columns: auto auto; gap: 16px; }
  .bdg-brand { min-width: 0; }
  .bdg-menu-toggle { display: block; grid-column: 2; grid-row: 1; }
  .bdg-nav {
    position: fixed;
    top: 82px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--bdg-border);
    border-radius: 16px;
    box-shadow: var(--bdg-shadow);
  }
  .bdg-nav.is-open { display: block; }
  .bdg-nav__list { display: grid; gap: 0; }
  .bdg-nav__list a { display: block; padding: 13px 10px; border-bottom: 1px solid #edf3f9; }
  .bdg-nav__list li:last-child a { border-bottom: 0; }
  .bdg-hero__inner { grid-template-columns: 1fr; padding-top: 42px; }
  .bdg-hero__visual { min-height: 510px; }
  .bdg-hero__image { width: 620px; right: 0; }
  .bdg-worry-card { left: 0; right: auto; }
  .bdg-content-layout { grid-template-columns: 1fr; }
  .bdg-sidebar { grid-template-columns: repeat(2, 1fr); }
  .bdg-service-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .bdg-legal-aid__table { grid-template-columns: repeat(2, 1fr); }
  .bdg-legal-aid__table div:nth-child(2) { border-right: 0; }
  .bdg-legal-aid__table div:nth-child(3),
  .bdg-legal-aid__table div:nth-child(4) { border-top: 1px solid var(--bdg-border); }
}

@media (max-width: 860px) {
  .bdg-container { width: min(100% - 32px, var(--bdg-container)); }
  .bdg-header__inner { width: min(100% - 24px, 1220px); min-height: 70px; }
  .bdg-brand__title { font-size: 20px; }
  .bdg-brand__tagline { font-size: 10px; }
  .bdg-brand__mark { width: 36px; height: 44px; font-size: 21px; }
  .bdg-nav { top: 72px; }
  .bdg-hero { min-height: 0; }
  .bdg-hero__inner { min-height: 0; }
  .bdg-hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .bdg-hero-facts { gap: 8px; }
  .bdg-hero-fact { width: 100px; height: 100px; }
  .bdg-hero-fact__num { font-size: 22px; }
  .bdg-hero__visual { min-height: 460px; }
  .bdg-hero__image { width: 560px; right: -120px; top: -6px; opacity: 0.9; }
  .bdg-worry-card { width: 100%; bottom: 12px; }
  .bdg-worry-card__title { width: 78%; }
  .bdg-worry-card__body { grid-template-columns: 1fr 92px; padding: 14px; }
  .bdg-worry-card li { font-size: 13px; }
  .bdg-worry-card img { width: 90px; }
  .bdg-about { grid-template-columns: 1fr; }
  .bdg-about__illust { order: -1; width: 180px; }
  .bdg-service-grid,
  .bdg-flow-list,
  .bdg-cost-box,
  .bdg-footer__inner,
  .bdg-sidebar { grid-template-columns: 1fr; }
  .bdg-flow-list { grid-template-columns: 1fr; }
  .bdg-cost-box div { border-right: 0; border-bottom: 1px solid var(--bdg-border); }
  .bdg-cost-box div:last-child { border-bottom: 0; }
  .bdg-amount-flow { grid-template-columns: 1fr; }
  .bdg-amount-card { text-align: left; }
  .bdg-amount-card__range,
  .bdg-amount-card__arrow { text-align: center; }
  .bdg-legal-aid { padding: 22px 18px; }
  .bdg-legal-aid__table { grid-template-columns: 1fr; }
  .bdg-legal-aid__table div { border-right: 0; border-bottom: 1px solid var(--bdg-border); }
  .bdg-legal-aid__table div:last-child { border-bottom: 0; }
  .bdg-post-card { grid-template-columns: 1fr; }
  .bdg-footer-menu { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .bdg-section { padding: 46px 0; }
  .bdg-brand__tagline { display: none; }
  .bdg-hero__inner { padding-top: 34px; }
  .bdg-hero__lead { margin: 18px 0 20px; }
  .bdg-service-card { padding: 22px 18px; }
  .bdg-service-card__top { grid-template-columns: 58px 1fr; }
  .bdg-service-card__icon { width: 54px; height: 54px; font-size: 24px; }
  .bdg-service-card h3 { font-size: 24px; }
  .bdg-articles-link-box { padding: 28px 20px; }
  .bdg-entry { padding: 24px 18px; }
  .bdg-post-nav { grid-template-columns: 1fr; }
  .bdg-post-nav div:last-child { text-align: left; }
}
