:root {
  --navy: #0f2a5a;
  --accent: #2f6fd0;
  --bg: #e8f0fb;
  --ink: #2a3f66;
  --line: #dce6f4;
  --title-bg-page: url("/assets/wp-content/uploads/2026/04/page_title_bg.jpg");
  --title-bg-archive: url("/assets/wp-content/uploads/2026/04/archive_title_bg.jpg");
  --title-bg-category: url("/assets/wp-content/uploads/2026/04/category_title_bg.jpg");
}

html { scroll-behavior: smooth; }

body.lp-page,
body.lp-shell {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.lp-canvas,
.lp-canvas header,
.lp-canvas section,
.lp-canvas footer,
.lp-canvas [style*="width:1440px"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.lp-canvas,
.lp-canvas section,
.lp-canvas footer {
  height: auto !important;
  overflow: visible !important;
}

/* デザイン原稿の固定高さラッパーは内容に合わせて伸縮 */
.lp-canvas > div[style*="width:1440px"] {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.lp-canvas header {
  height: auto !important;
  min-height: 84px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
}

.lp-canvas section,
.lp-shell-footer,
.lp-canvas footer {
  padding-block: clamp(80px, 8vw, 112px) !important;
  padding-inline: clamp(20px, 7vw, 120px) !important;
  justify-content: flex-start !important;
  gap: 32px;
  min-height: 0 !important;
}

#hero {
  padding: 0 !important;
  gap: 0 !important;
}

#badges {
  padding-block: 36px !important;
  gap: 16px !important;
}

.lp-canvas section > div[style*="margin-bottom:44px"] {
  margin-bottom: 8px !important;
}

.lp-canvas section h2 {
  margin-bottom: 0.25em;
}

.lp-canvas section p {
  margin-top: 0;
  margin-bottom: 0;
}

.lp-canvas section div[style*="display:grid"]:empty {
  display: none !important;
}

body.lp-shell .post_content > * + * {
  margin-top: 1.25em;
}

/* 下層ページ・一覧ページのタイトル背景 */
.lp-canvas > header + section[style*="linear-gradient(120deg,#DCE9FA"] {
  background-image: var(--title-bg-page) !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  min-height: 280px !important;
  padding-block: clamp(48px, 8vw, 72px) !important;
}

.lp-canvas > header + section[style*="linear-gradient(120deg,#DCE9FA"] > div[style*="position:absolute"] {
  display: none !important;
}

body.lp-shell #content {
  overflow: hidden;
}

body.lp-shell .l-mainContent__inner > .c-pageTitle:first-child {
  margin: -28px -24px 32px;
  width: calc(100% + 48px);
  padding: clamp(48px, 7vw, 72px) clamp(20px, 5vw, 48px) clamp(40px, 6vw, 56px);
  box-sizing: border-box;
  text-align: left !important;
  background-image: var(--title-bg-page);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  border-radius: 20px 20px 0 0;
}

body.lp-shell #body_wrap.blog .l-mainContent__inner > .c-pageTitle:first-child {
  background-image: var(--title-bg-archive);
}

body.lp-shell #body_wrap.archive.category .l-mainContent__inner > .c-pageTitle:first-child {
  background-image: var(--title-bg-category);
}

body.lp-shell .c-pageTitle .c-pageTitle__inner {
  display: block;
  float: none !important;
  border-bottom: none !important;
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
  font-size: clamp(1.65rem, 4.2vw, 2.25rem) !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  letter-spacing: 0.06em !important;
  line-height: 1.35;
  text-align: left;
}

body.lp-shell .c-pageTitle .c-pageTitle__subTitle {
  display: block;
  margin-top: 0.35em;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #4a5d7c !important;
  letter-spacing: 0.14em !important;
}

body.lp-shell .lp-legacy-page-title,
body.lp-shell .wsp-pages-title {
  display: none !important;
}

.lp-canvas [style*="height:64px"] {
  height: auto !important;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.lp-drawer { display: none; }

.lp-personal {
  background: #081735;
  color: #c9d9f2;
  padding: 28px clamp(20px, 7vw, 120px) 48px;
}

.lp-personal p {
  margin: 0 0 12px;
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: #fff;
  letter-spacing: 0.08em;
}

.lp-personal a {
  display: inline-block;
  margin: 0 18px 10px 0;
  color: #d5e4f8;
  text-decoration: none;
}

.lp-personal a:hover { color: #fff; }

.lp-form {
  background: #fff;
  border-radius: 22px;
  padding: 44px;
  max-width: 760px;
  box-sizing: border-box;
}

.eagle-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eagle-contact-form__title {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
}

.eagle-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eagle-contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.eagle-contact-form label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.eagle-contact-form__req {
  color: #c0392b;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
}

.eagle-contact-form input[type="text"],
.eagle-contact-form input[type="email"],
.eagle-contact-form input[type="tel"],
.eagle-contact-form select,
.eagle-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b7c6de;
  border-radius: 12px;
  padding: 0 16px;
  height: 52px;
  font-size: 16px;
  color: var(--navy);
  font-family: inherit;
  background: #fff;
}

.eagle-contact-form textarea {
  height: 170px;
  padding: 14px 16px;
  resize: vertical;
  min-height: 140px;
}

.eagle-contact-form__agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.eagle-contact-form__agree input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
}

.eagle-contact-form__agree label {
  font-weight: 400;
  color: #4a5d7c;
  line-height: 1.7;
}

.eagle-contact-form__agree a {
  color: var(--navy);
  text-decoration: underline;
}

.eagle-contact-form__submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 62px;
  background: linear-gradient(90deg, #123f86, #1f5bb8);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.eagle-contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lp-tel,
.cta-text-sub.lp-tel {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.contact-form-response { margin: 0; padding: 1em 1.2em; border-radius: 12px; }
.contact-form-response--success { background: #eef8ee; border: 1px solid #8bc34a; color: #2e7d32; }
.contact-form-response--error { background: #fdecea; border: 1px solid #ef9a9a; color: #c62828; }

@media (max-width: 768px) {
  .lp-form { padding: 28px 20px; }
  .eagle-contact-form__row { grid-template-columns: 1fr; }
}

body.lp-shell header,
body.lp-shell footer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
body.lp-shell header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: auto !important;
  background: #fff;
}
body.lp-shell #body_wrap { background: transparent; }
body.lp-shell .l-content,
body.lp-shell #content {
  max-width: 1040px;
  margin: 40px auto 80px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 48px;
  box-sizing: border-box;
}
body.lp-shell .post_content,
body.lp-shell .l-article {
  color: #24324d;
}
body.lp-shell .p-spMenu,
body.lp-shell .l-header,
body.lp-shell .l-fixHeader,
body.lp-shell .p-fixBtnWrap { display: none !important; }

@media (max-width: 960px) {
  html {
    overflow-x: clip;
  }

  body.lp-page,
  body.lp-shell {
    overflow-x: clip;
  }

  body.lp-shell {
    padding-bottom: 88px;
  }

  body.lp-shell #content,
  body.lp-shell .l-content {
    margin: 16px 12px 40px;
    padding: 20px 16px 32px;
    border-radius: 16px;
  }

  body.lp-shell .l-mainContent__inner > .c-pageTitle:first-child {
    margin: -20px -16px 24px;
    width: calc(100% + 32px);
    border-radius: 16px 16px 0 0;
    padding: 40px 16px 36px;
  }

  .lp-canvas > header + section[style*="linear-gradient(120deg,#DCE9FA"] {
    min-height: 220px !important;
    padding-block: 40px !important;
  }

  body.lp-shell .post_content img,
  body.lp-shell .post_content iframe,
  body.lp-shell .post_content video {
    max-width: 100%;
    height: auto;
  }

  body.lp-shell .post_content table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  .lp-canvas > div[style*="overflow:hidden"] {
    overflow: visible !important;
    height: auto !important;
  }

  .lp-canvas section[style*="height:"],
  .lp-canvas footer[style*="height:"] {
    height: auto !important;
    min-height: 0 !important;
  }

  .lp-canvas header nav { display: none !important; }

  .lp-drawer {
    display: block;
    position: relative;
    justify-self: end;
  }

  .lp-drawer summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .lp-drawer summary::-webkit-details-marker { display: none; }

  .lp-drawer[open] {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 16px;
    box-shadow: 0 12px 24px rgba(15, 42, 90, 0.08);
  }

  .lp-drawer a {
    display: block;
    padding: 10px 0;
    color: var(--navy);
    text-decoration: none;
  }

  .lp-canvas header,
  body.lp-shell header {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo menu"
      "cta cta";
    align-items: center;
    gap: 10px 12px;
    padding: 12px 16px !important;
  }

  .lp-canvas header > a[href="/"],
  body.lp-shell header > a[href="/"],
  .lp-canvas header > a[href="https://eagle-law.jp/"],
  body.lp-shell header > a[href="https://eagle-law.jp/"] {
    grid-area: logo;
    min-width: 0;
  }

  .lp-canvas header > a img,
  body.lp-shell header > a img {
    height: 36px !important;
    max-width: min(200px, 52vw);
  }

  .lp-canvas header > .lp-drawer,
  body.lp-shell header > .lp-drawer {
    grid-area: menu;
  }

  .lp-canvas header > div[style*="display:flex"],
  body.lp-shell header > div[style*="display:flex"] {
    grid-area: cta;
    width: 100%;
    display: flex !important;
    gap: 10px !important;
    min-width: 0;
  }

  .lp-canvas header > div[style*="display:flex"] a,
  body.lp-shell header > div[style*="display:flex"] a {
    flex: 1;
    width: auto !important;
    min-width: 0;
    height: 46px !important;
    font-size: 12px !important;
    gap: 8px !important;
    letter-spacing: 0.06em !important;
    padding-inline: 10px !important;
  }

  .lp-canvas header > div[style*="display:flex"] svg,
  body.lp-shell header > div[style*="display:flex"] svg {
    width: 14px;
    height: 14px;
    flex: none;
  }

  #hero {
    height: auto !important;
    min-height: 0 !important;
  }

  #top,
  .lp-canvas [style*="grid-template-columns:601px"] {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  #top > div {
    min-height: 360px;
    position: relative;
  }

  #top > div:nth-child(2) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    min-height: 100px !important;
    padding: 24px 16px !important;
  }

  .lp-canvas [style*="writing-mode:vertical-rl"] {
    writing-mode: horizontal-tb !important;
    font-size: clamp(1.75rem, 9vw, 2.75rem) !important;
  }

  .lp-canvas [style*="grid-template-columns:repeat"],
  .lp-canvas [style*="grid-template-columns: 1fr 1fr"],
  .lp-canvas [style*="grid-template-columns:240px"] {
    grid-template-columns: 1fr !important;
  }

  #top [style*="left:130px"],
  #top [style*="left:110px"] {
    left: 20px !important;
    right: 20px !important;
    max-width: none;
  }

  #top [style*="font-size:58px"] {
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
  }

  #top h1[style*="font-size:28px"] {
    font-size: clamp(1rem, 4.2vw, 1.35rem) !important;
    line-height: 1.65 !important;
  }

  .lp-canvas section,
  .lp-canvas footer,
  body.lp-shell footer {
    padding-block: 56px !important;
    padding-inline: 20px !important;
    gap: 24px !important;
  }

  .lp-canvas > div > header + section,
  .lp-canvas > div > section:first-of-type:not(#hero) {
    padding-block: 48px !important;
    min-height: 0 !important;
  }

  .lp-canvas section > div[style*="position:absolute"][style*="border-radius:50%"],
  .lp-canvas section > div[style*="position:absolute"][style*="border-radius: 50%"] {
    display: none !important;
  }

  .lp-canvas section div[style*="margin-left:-10px"] {
    margin-left: 0 !important;
    flex-wrap: wrap;
  }

  #badges {
    padding-block: 24px !important;
    height: auto !important;
  }

  #badges > div[style*="justify-content:center"] {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  #badges span[style*="height:56px"] {
    height: auto !important;
    min-height: 44px;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  .lp-canvas [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #duo [style*="grid-template-columns:minmax(0,1fr) 96px"] > div:nth-child(2) {
    flex-direction: row !important;
    justify-content: center;
    gap: 16px !important;
    padding: 8px 0 !important;
  }

  #duo [style*="grid-template-columns:minmax(0,1fr) 96px"] > div:nth-child(2) span[style*="height:70px"] {
    width: 48px !important;
    height: 1px !important;
  }

  #duo > div[style*="margin-top:44px"] {
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 28px !important;
  }

  .lp-canvas section > div[style*="justify-content:space-between"][style*="margin-bottom"],
  #duo > div[style*="justify-content:space-between"][style*="margin-bottom"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    margin-bottom: 28px !important;
  }

  .lp-canvas section > div[style*="justify-content:space-between"][style*="margin-bottom"] > p,
  #duo > div[style*="justify-content:space-between"][style*="margin-bottom"] > p {
    max-width: none !important;
  }

  .lp-canvas div[style*="height:330px"],
  .lp-canvas div[style*="height:340px"] {
    height: auto !important;
    min-height: 0 !important;
    padding: 28px 24px !important;
  }

  .lp-canvas h1[style*="font-size:50px"],
  .lp-canvas h1[style*="font-size:58px"] {
    font-size: clamp(1.65rem, 7vw, 2.25rem) !important;
    line-height: 1.35 !important;
  }

  .lp-canvas h2[style*="font-size:40px"],
  .lp-canvas h2[style*="font-size:38px"] {
    font-size: clamp(1.45rem, 5.8vw, 1.9rem) !important;
    line-height: 1.4 !important;
  }

  .lp-canvas div[style*="font-size:36px"] {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important;
    flex-wrap: wrap;
  }

  .lp-canvas section div,
  .lp-canvas section h1,
  .lp-canvas section h2,
  .lp-canvas section h3,
  .lp-canvas section p,
  .lp-canvas section li,
  .lp-canvas footer div,
  .lp-canvas footer p,
  .lp-canvas footer li {
    max-width: 100%;
    min-width: 0;
  }

  .lp-canvas footer > div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }

  .lp-canvas footer > div[style*="justify-content:space-between"] span[style*="font-size:26px"] {
    font-size: clamp(1.25rem, 5vw, 1.6rem) !important;
  }

  .lp-canvas footer > div[style*="border-top:1px"][style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .lp-canvas footer > div[style*="border-top:1px"] span[style*="display:flex"] {
    flex-wrap: wrap;
    gap: 14px !important;
  }

  .lp-canvas footer > div[style*="grid-template-columns:repeat(5"] {
    gap: 24px !important;
    padding-top: 24px !important;
  }

  .lp-canvas img:not([style*="position:absolute"]) {
    max-width: 100%;
    height: auto;
  }

  .lp-canvas header a span,
  body.lp-shell header a span {
    font-size: 14px !important;
    letter-spacing: 0.04em !important;
    white-space: normal !important;
  }

  .lp-canvas a[style*="width:142px"],
  .lp-canvas a[style*="width:166px"],
  .lp-canvas a[style*="width:132px"],
  .lp-canvas a[style*="width:180px"],
  .lp-canvas a[style*="width:200px"] {
    width: auto !important;
    max-width: 100%;
  }
}

.lp-canvas h1,
.lp-canvas h2,
.lp-canvas h3,
.lp-canvas p,
.lp-canvas section li,
.lp-canvas section div,
body.lp-shell .post_content h1,
body.lp-shell .post_content h2,
body.lp-shell .post_content h3,
body.lp-shell .post_content p,
body.lp-shell .post_content li {
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.lp-canvas h1 br,
.lp-canvas h2 br,
.lp-canvas h3 br {
  display: none;
}

#top [style*="letter-spacing:.22em"],
#top [style*="letter-spacing:.42em"],
#top [style*="letter-spacing:.34em"],
#top [style*="letter-spacing:.12em"] {
  letter-spacing: 0.06em !important;
  line-height: 1.45 !important;
}

.lp-map-frame {
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  flex: none;
  width: 100%;
}

iframe.lp-map {
  width: 100%;
  max-width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.lp-canvas footer,
body.lp-shell footer {
  height: auto !important;
  padding-block: 64px !important;
  gap: 40px !important;
}

/* 料金・報酬 / 弁護士紹介：本文の読みやすさ */
#body_wrap.id_288 .l-content,
#body_wrap.id_254 .l-content {
  max-width: 1080px;
}

#body_wrap.id_288 .post_content,
#body_wrap.id_254 .post_content {
  font-size: 16px;
  line-height: 1.9;
  color: #24324d;
}

#body_wrap.id_288 .post_content p,
#body_wrap.id_254 .post_content p {
  margin: 0 0 0.85em;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

#body_wrap.id_288 .post_content > p.has-text-align-center {
  text-align: left !important;
  background: #f4f8fd;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 10px !important;
}

#body_wrap.id_288 .post_content img[alt="ロゴ"] {
  display: none !important;
}

#body_wrap.id_288 .post_content h2,
#body_wrap.id_254 .post_content h2 {
  background: none !important;
  margin: 2.4em 0 0.85em !important;
  padding: 0 0 0.4em !important;
  border: none !important;
  border-bottom: 2px solid #2f6fd0 !important;
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  letter-spacing: 0.04em !important;
  color: #0f2a5a !important;
}

#body_wrap.id_288 .post_content h3,
#body_wrap.id_254 .post_content h3 {
  background: none !important;
  margin: 1.6em 0 0.65em !important;
  padding: 0 0 0 12px !important;
  border: none !important;
  border-left: 4px solid #2f6fd0 !important;
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.03em !important;
  color: #0f2a5a !important;
}

#body_wrap.id_288 .post_content h3::before,
#body_wrap.id_288 .post_content h3::after,
#body_wrap.id_254 .post_content h3::before,
#body_wrap.id_254 .post_content h3::after {
  display: none !important;
}

#body_wrap.id_288 .post_content .wp-block-table {
  margin: 0.4em 0 1.2em;
  overflow-x: auto;
}

#body_wrap.id_288 .post_content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}

#body_wrap.id_288 .post_content th,
#body_wrap.id_288 .post_content td {
  border: 1px solid #d5e2f2 !important;
  padding: 12px 14px !important;
  vertical-align: top;
  background: #fff;
  letter-spacing: 0.01em;
}

#body_wrap.id_288 .post_content th,
#body_wrap.id_288 .post_content tr:first-child td {
  background: #eef4fb !important;
  color: #0f2a5a;
  font-weight: 700;
}

#body_wrap.id_288 .post_content .swl-cell-bg {
  display: none;
}

#body_wrap.id_254 .responsive-profile-box {
  display: grid !important;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center !important;
  gap: 28px;
  width: 100% !important;
  margin: 12px 0 28px !important;
  padding: 20px 24px !important;
  box-sizing: border-box;
  background: #f7fafd !important;
  border: 1px solid #dce6f4;
  border-radius: 16px;
}

#body_wrap.id_254 .responsive-profile-box > div:first-child {
  order: 2;
  background: none !important;
  padding: 0 !important;
}

#body_wrap.id_254 .responsive-profile-box > div:first-child > div {
  background: none !important;
  padding: 0 !important;
  text-align: left !important;
}

#body_wrap.id_254 .responsive-profile-box > div:last-child {
  order: 1;
  width: 168px !important;
  max-width: 168px !important;
  padding: 0 !important;
  background: none !important;
}

#body_wrap.id_254 .responsive-profile-box p {
  margin: 0 !important;
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: #0f2a5a !important;
}

#body_wrap.id_254 .responsive-profile-box img {
  display: block !important;
  width: 168px !important;
  height: 210px !important;
  object-fit: cover;
  object-position: center top;
  margin: 0 !important;
  border-radius: 12px;
}

@media (max-width: 720px) {
  #body_wrap.id_254 .responsive-profile-box {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  #body_wrap.id_254 .responsive-profile-box > div:last-child,
  #body_wrap.id_254 .responsive-profile-box img {
    width: 140px !important;
    max-width: 140px !important;
  }

  #body_wrap.id_254 .responsive-profile-box img {
    height: 176px !important;
  }
}

.lp-canvas footer iframe.lp-map,
body.lp-shell footer iframe.lp-map {
  height: 220px;
}

.lp-contact-banner {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 56px auto 48px;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #0d2f66;
  color: #fff;
  box-sizing: border-box;
}

.lp-contact-banner__photo {
  position: absolute;
  inset: 0 0 0 38%;
  background: url("/assets/wp-content/uploads/2026/04/contact_banner_lawyer.jpg") 72% 18% / cover no-repeat;
}

.lp-contact-banner__panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #12386f 0%, #0c2b58 100%);
  clip-path: polygon(0 0, 64% 0, 50% 100%, 0 100%);
}

.lp-contact-banner__slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(186, 210, 236, 0.55));
  clip-path: polygon(62.2% 0, 67.4% 0, 53.4% 100%, 48.2% 100%);
}

.lp-contact-banner__copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 42px 36px 38px 48px;
  box-sizing: border-box;
}

.lp-contact-banner__label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.82);
}

.lp-contact-banner__label::after {
  content: "";
  width: 72px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.lp-contact-banner__title {
  margin: 0;
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.lp-contact-banner__lead {
  margin: 16px 0 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.lp-contact-banner__tel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lp-contact-banner__tel a {
  color: #fff;
  text-decoration: none;
}

.lp-contact-banner__tel svg {
  flex: none;
}

.lp-contact-banner__hours {
  margin: 8px 0 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.lp-contact-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: #0f2a5a;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.lp-contact-banner__btn:hover {
  background: #e8f0fb;
}

@media (max-width: 800px) {
  .lp-contact-banner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 32px auto 28px;
  }

  .lp-contact-banner__photo {
    position: relative;
    inset: auto;
    order: -1;
    height: 220px;
    background-position: 68% 12%;
  }

  .lp-contact-banner__panel,
  .lp-contact-banner__slash {
    display: none;
  }

  .lp-contact-banner__copy {
    max-width: none;
    padding: 28px 22px 26px;
    background: #0d2f66;
  }
}

.lp-related {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-related__label {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(201, 217, 242, 0.85);
}

.lp-related ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-related a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 68px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  color: #fff;
  box-sizing: border-box;
}

.lp-related a:hover,
.lp-related a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.lp-related a span {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #9ec0ef;
}

.lp-related a strong {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.lp-related a strong::after {
  content: " ↗";
  font-weight: 500;
  font-size: 12px;
}

@media (max-width: 800px) {
  .lp-related ul {
    grid-template-columns: 1fr;
  }
}
