/* =========================================================
  Base / Tokens
========================================================= */
:root {
  --color-bg: #f8f8f4;
  --color-surface: #ffffff;
  --color-text: #1e2a38;
  --color-muted: #66727f;
  --color-green: #557f38;
  --color-green-dark: #2f5f3a;
  --color-green-soft: #eef5ea;
  --color-gold: #b8944d;
  --color-gold-soft: #f4eddf;
  --color-line: #dfe7dd;
  --shadow-sm: 0 8px 24px rgba(31, 49, 37, 0.08);
  --shadow-md: 0 16px 48px rgba(31, 49, 37, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --container: 1120px;
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

body.is-menu-open {
  overflow: hidden;
}

.sp-only {
  display:none;
}

.pc-only {
  display:block;
}


img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(85, 127, 56, 0.4);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--color-green-dark);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.narrow {
  max-width: 880px;
}

/* =========================================================
  Buttons / Links
========================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.button::after,
.text-link::after,
.practice-card span:last-child::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.button:hover,
.text-link:hover,
.practice-card:hover span:last-child {
  color: inherit;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.button:hover::after,
.text-link:hover::after,
.practice-card:hover span:last-child::after {
  transform: translateX(3px);
}

.button--green {
  background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
  color: #fff;
}

.button--outline {
  border-color: var(--color-green-dark);
  background: #fff;
  color: var(--color-green-dark);
}

.button--white {
  border-color: rgba(255, 255, 255, 0.5);
  background: #fff;
  color: var(--color-green-dark);
}

.button--line {
  border-color: #cfe4c8;
  background: #fff;
  color: var(--color-green-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: var(--color-green-dark);
  font-weight: 700;
}

/* =========================================================
  Header / Navigation
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(223, 231, 221, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), 1240px);
  min-height: var(--header-height);
  margin-inline: auto;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header__logo img {
  width: 220px;
  height: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.site-header__nav a {
  position: relative;
  padding: 8px 0;
}

.site-header__nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--color-green);
  content: "";
  transition: transform 0.25s ease;
}

.site-header__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-green-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.site-header__tel::before {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.32 1.77.59 2.61a2 2 0 0 1-.45 2.11L8 9.69a16 16 0 0 0 6.31 6.31l1.25-1.25a2 2 0 0 1 2.11-.45c.84.27 1.71.47 2.61.59A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.32 1.77.59 2.61a2 2 0 0 1-.45 2.11L8 9.69a16 16 0 0 0 6.31 6.31l1.25-1.25a2 2 0 0 1 2.11-.45c.84.27 1.71.47 2.61.59A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.menu-button {
  position: relative;
  display: none;
  width: 52px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-green-dark);
}

.menu-button span {
  position: absolute;
  left: 14px;
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, transform 0.25s ease;
}

.menu-button span:nth-child(1) {
  top: 15px;
}

.menu-button span:nth-child(2) {
  display: none;
}

.menu-button span:nth-child(3) {
  top: 23px;
  left: 20px;
  width: 18px;
}

.menu-button::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  color: currentColor;
  content: "MENU";
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.menu-button.is-open span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.menu-button.is-open span:nth-child(3) {
  top: 20px;
  left: 14px;
  width: 24px;
  transform: rotate(-45deg);
}

.menu-button.is-open::after {
  content: "CLOSE";
}

.mobile-nav {
  display: none;
}

/* =========================================================
  Hero
========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 248, 244, 0.42) 0%, rgba(248, 248, 244, 0.22) 38%, rgba(248, 248, 244, 0.06) 68%, rgba(248, 248, 244, 0) 100%),
    url("img/hero.jpg") center center / cover no-repeat;
}

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(calc(100% - 96px), 1240px);
  min-height: 640px;
  margin-inline: auto;
  padding: 82px 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 610px);
  padding: 42px 0;
}

.hero h1 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.28;
  letter-spacing: 0.03em;
}

.hero__text {
  max-width: 520px;
  margin: 24px 0 0;
  color: #314052;
  font-weight: 600;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 14px;
  color: var(--color-text);
}

.hero-badge::before {
  position: absolute;
  top: 0.45em;
  bottom: 0.35em;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--color-gold);
  content: "";
}

.hero-badge__inner {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  text-align: left;
}

.hero-badge strong,
.hero-badge small {
  display: block;
}

.hero-badge strong {
  color: #6d5525;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.hero-badge small {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* =========================================================
  Section Headings
========================================================= */
.section {
  padding: 88px 0;
}

.section--soft {
  background: #f1f5ef;
}

.section--line {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: #fff;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--color-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading--center {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.section-heading--wide {
  max-width: 880px;
}

.section-heading h2,
.strength-lead h2,
.cta-band h2,
.cta-panel h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.42;
  letter-spacing: 0.02em;
}

.section-heading p,
.strength-lead p,
.cta-panel p {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-weight: 500;
}

/* =========================================================
  Strength
========================================================= */
.strength-section {
  background: var(--color-surface);
}

.strength-lead {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.strength-list {
  position: relative;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1320px, calc(100vw - 48px));
  transform: translateX(-50%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, #fbfcfa);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.strength-item {
  padding: 36px 28px;
  text-align: center;
}

.strength-item + .strength-item {
  border-left: 1px solid var(--color-line);
}

.icon-circle {
  display: inline-grid;
  width: auto;
  height: auto;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--color-green-dark);
}

.icon-circle svg,
.practice-card__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-circle svg {
  width: 42px;
  height: 42px;
}

.strength-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.strength-item p {
  margin: 0;
  color: var(--color-muted);
}

/* =========================================================
  Practice Cards
========================================================= */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.practice-card {
  display: grid;
  justify-items: center;
  min-height: 250px;
  padding: 34px 30px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(31, 49, 37, 0.04);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.practice-card:hover {
  transform: translateY(-4px);
  border-color: #c6d9bc;
  box-shadow: var(--shadow-sm);
}

.practice-card__icon {
  display: inline-grid;
  width: auto;
  height: auto;
  place-items: center;
  margin-inline: auto;
  margin-bottom: 24px;
  color: var(--color-green-dark);
}

.practice-card__icon svg {
  width: 44px;
  height: 44px;
}

.practice-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.practice-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.practice-card span:last-child {
  align-self: end;
  justify-self: center;
  margin-top: 24px;
  color: var(--color-green-dark);
  font-size: 14px;
  font-weight: 700;
}

/* =========================================================
  Lawyers / News
========================================================= */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 48px;
}

.lawyer-mini-list {
  display: grid;
  gap: 16px;
}

.lawyer-mini {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
}

.lawyer-mini img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: center center;
}

.lawyer-mini p,
.lawyer-mini h3,
.lawyer-mini span {
  margin: 0;
}

.lawyer-mini p,
.lawyer-mini span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
}

.lawyer-mini h3 {
  margin: 4px 0;
  font-size: 22px;
}

.lawyer-summary .text-link {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
}

.lawyer-summary .section-heading,
.news-summary .section-heading {
  text-align: center;
}

.lawyer-summary .section-heading p,
.news-summary .section-heading p {
  margin-inline: auto;
}

.news-list {
  display: grid;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.news-list a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--color-line);
  transition: background-color 0.25s ease;
}

.news-list a:last-child {
  border-bottom: 0;
}

.news-list a:hover {
  background: var(--color-green-soft);
}

.news-list time {
  color: var(--color-green-dark);
  font-weight: 700;
}

/* =========================================================
  Flow
========================================================= */
.flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: transparent;
  overflow: visible;
}

.flow-list li {
  position: relative;
  padding: 32px 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 49, 37, 0.04);
  text-align: center;
}

.flow-list li + li {
  border-left: 1px solid var(--color-line);
}

.flow-list span,
.vertical-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--color-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.flow-list h3,
.flow-list p {
  margin: 0;
}

.flow-list h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.flow-list p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* =========================================================
  CTA / Footer
========================================================= */
.cta-band {
  padding: 58px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: linear-gradient(135deg, #ffffff 0%, #f1f7ee 100%);
  color: var(--color-text);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.cta-band p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-panel {
  padding: 72px 0;
  background: var(--color-green-soft);
}

.cta-panel__inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 820px;
  text-align: center;
}

.cta-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-panel--practice,
.cta-panel--lawyers,
.cta-panel--cases,
.cta-panel--fee {
  background: linear-gradient(135deg, #f7faf4 0%, #edf5e8 100%);
  color: var(--color-text);
}

.cta-panel--practice .cta-panel__inner,
.cta-panel--lawyers .cta-panel__inner,
.cta-panel--cases .cta-panel__inner,
.cta-panel--fee .cta-panel__inner {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.08fr);
  align-items: center;
  justify-items: stretch;
  gap: 0;
  max-width: var(--container);
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  text-align: left;
  overflow: hidden;
}

.cta-panel__content {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: clamp(28px, 4vw, 54px);
}

.cta-panel--practice p,
.cta-panel--lawyers p,
.cta-panel--cases p,
.cta-panel--fee p {
  color: var(--color-muted);
}

.cta-panel--practice .cta-panel__buttons,
.cta-panel--lawyers .cta-panel__buttons,
.cta-panel--cases .cta-panel__buttons,
.cta-panel--fee .cta-panel__buttons {
  justify-content: flex-start;
}

.cta-panel__media {
  height: auto;
  min-height: 0;
  margin: 0;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
}

.cta-panel__media img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
}

.site-footer {
  position: relative;
  padding: 92px 0 50px;
  background: linear-gradient(135deg, var(--color-green-dark), #23462f);
  color: rgba(255, 255, 255, 0.94);
}

.footer-top {
  position: absolute;
  top: -28px;
  right: max(40px, calc((100vw - var(--container)) / 2));
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-green);
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(31, 49, 37, 0.22);
}

.site-footer__identity {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer__brand {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer__identity p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__identity p a {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: start;
  justify-content: center;
  gap: clamp(70px, 10vw, 150px);
}

.site-footer__links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links ul {
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-footer__links a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.site-footer__links a::before {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid rgba(255, 255, 255, 0.82);
  content: "";
}

.site-footer p,
.site-footer ul {
  margin: 0;
}

.site-footer a {
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .site-footer__copy {
  margin: 112px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  text-align: center;
}

/* =========================================================
  Page Hero / Breadcrumb
========================================================= */
.page-hero {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 248, 244, 0.96) 0%, rgba(248, 248, 244, 0.86) 46%, rgba(248, 248, 244, 0.3) 100%),
    url("img/office_hero.jpg") right center / auto 100% no-repeat;
}

.page-hero--practice,
.page-hero--cases,
.page-hero--fee,
.page-hero--office,
.page-hero--contact,
.page-hero--inheritance,
.page-hero--practice-detail {
  min-height: 320px;
  border-bottom: 1px solid var(--color-line);
  background:
    radial-gradient(circle at 82% 18%, rgba(85, 127, 56, 0.09) 0, transparent 32%),
    linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
}

.page-hero--lawyers {
  min-height: 320px;
  border-bottom: 1px solid var(--color-line);
  background:
    radial-gradient(circle at 82% 18%, rgba(85, 127, 56, 0.09) 0, transparent 32%),
    linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
}

.page-hero__inner {
  display: grid;
  align-content: center;
  min-height: 380px;
  padding: 56px 0;
}

.page-hero__body {
  display: grid;
  gap: 0;
  justify-items: center;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.page-hero--practice .page-hero__inner,
.page-hero--lawyers .page-hero__inner,
.page-hero--cases .page-hero__inner,
.page-hero--fee .page-hero__inner,
.page-hero--office .page-hero__inner,
.page-hero--contact .page-hero__inner,
.page-hero--inheritance .page-hero__inner,
.page-hero--practice-detail .page-hero__inner {
  justify-items: center;
  min-height: 320px;
  text-align: center;
}

.page-hero--simple .page-hero__inner {
  align-content: start;
  grid-template-rows: auto auto auto;
  justify-items: stretch;
  padding-top: 46px;
  text-align: left;
}

.page-hero--simple .page-hero__inner--breadcrumb-left {
  align-content: start;
  grid-template-rows: auto 1fr;
  justify-items: stretch;
  padding-top: 46px;
  text-align: left;
}

.page-hero--simple .breadcrumb {
  justify-self: start;
  width: 100%;
  margin-bottom: 30px;
  text-align: left;
}

.page-hero--simple .page-hero__inner > h1,
.page-hero--simple .page-hero__inner > p:last-child {
  justify-self: center;
  text-align: center;
}

.page-hero--simple .page-hero__body {
  justify-self: center;
  text-align: center;
}

.page-hero__inner--breadcrumb-left .breadcrumb {
  justify-self: start;
  width: 100%;
  margin-bottom: 30px;
  text-align: left;
}

.page-hero__inner--breadcrumb-left .page-hero__body {
  align-self: center;
  justify-self: center;
  width: min(100%, 760px);
}

.breadcrumb {
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--color-green-dark);
}

.page-hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.25;
}

.page-hero--simple h1::after {
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 24px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--color-green);
  content: "";
}

.page-hero--simple p:last-child {
  margin-inline: auto;
}

.page-hero p:last-child {
  max-width: 600px;
  margin: 18px 0 0;
  color: #314052;
  font-weight: 600;
}

/* =========================================================
  Detail / Lower Page Components
========================================================= */
.detail-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.detail-card,
.support-grid article,
.case-card,
.contact-method,
.contact-form,
.legal-page article {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 49, 37, 0.04);
}

.detail-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.detail-card h3,
.support-grid h3,
.case-card h2,
.case-card h3,
.contact-form h2,
.contact-method h2 {
  margin: 0 0 12px;
}

.detail-card p,
.detail-card li,
.support-grid p,
.case-card dd,
.contact-form p,
.contact-method p {
  color: var(--color-muted);
}

.detail-card ul {
  display: grid;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  padding-left: 1.2em;
  text-align: left;
}

.detail-card .text-link {
  align-self: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
}

.split-layout,
.office-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.practice-detail-intro {
  align-items: start;
}

.practice-detail-intro--single {
  display: grid;
  gap: 36px;
}

.practice-detail-intro--single .section-heading {
  margin-bottom: 0;
}

.practice-detail-intro--single .section-heading p {
  max-width: 760px;
}

.rounded-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.practice-detail-visual {
  margin: 0;
}

.practice-detail-visual .rounded-image {
  aspect-ratio: 16 / 10;
  object-position: center center;
}

.practice-detail-visual figcaption {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.office-photo {
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 0;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center center;
  box-shadow: var(--shadow-sm);
}

.office-access {
  background: var(--color-bg);
}

.office-access .office-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: start;
}

.office-layout__content {
  display: grid;
  align-content: start;
  gap: 24px;
}

.office-layout__content .info-table {
  margin-bottom: 0;
}

.office-layout__media {
  display: grid;
  gap: 22px;
}

.map-card,
.office-photo-card,
.visit-note {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.map-card,
.office-photo-card {
  margin: 0;
}

.map-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
}

.map-card figcaption,
.office-photo-card figcaption {
  margin: 0;
  padding: 14px 18px 16px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.office-photo-card img {
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.visit-note {
  padding: 24px;
}

.visit-note h3 {
  margin: 0 0 14px;
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
}

.visit-note ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.visit-note li {
  position: relative;
  padding-left: 22px;
  color: var(--color-muted);
  font-weight: 700;
  line-height: 1.8;
}

.visit-note li::before {
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-green);
  content: "";
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 18px 14px 54px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 700;
  line-height: 1.7;
  box-shadow: 0 8px 22px rgba(31, 49, 37, 0.035);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.check-list li:hover {
  border-color: rgba(85, 127, 56, 0.42);
  box-shadow: 0 12px 28px rgba(31, 49, 37, 0.07);
  transform: translateY(-2px);
}

.check-list li::before {
  position: absolute;
  top: 50%;
  left: 16px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-green-soft);
  color: var(--color-green);
  content: "✓";
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-50%);
}

.check-list--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 860px);
  margin-inline: auto;
}

.detail-note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.detail-note-grid article {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: stretch;
  justify-items: center;
  gap: 0;
  min-height: 318px;
  padding: 36px 32px 34px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 49, 37, 0.05);
  text-align: center;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.detail-note-grid article:hover {
  border-color: rgba(85, 127, 56, 0.42);
  box-shadow: 0 16px 34px rgba(31, 49, 37, 0.08);
  transform: translateY(-3px);
}

.detail-note-grid article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-green), rgba(85, 127, 56, 0.22));
  content: "";
}

.detail-note-grid span {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  margin-inline: auto;
  place-items: center;
  border-radius: 999px;
  background: var(--color-green-soft);
  color: var(--color-green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(85, 127, 56, 0.08);
}

.detail-note-grid__label {
  margin: 0 0 8px;
  color: var(--color-green-dark);
  font-size: 13px;
  font-weight: 800;
}

.detail-note-grid h3 {
  width: 100%;
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

.detail-note-grid p {
  width: 100%;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.9;
  text-align: left;
}

.detail-note-grid p.detail-note-grid__label {
  margin: 0 0 8px;
  color: var(--color-green-dark);
  text-align: center;
}

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

.support-grid article {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  min-height: 188px;
  padding: 30px 24px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.support-grid article:hover {
  border-color: rgba(85, 127, 56, 0.42);
  box-shadow: 0 14px 30px rgba(31, 49, 37, 0.07);
  transform: translateY(-3px);
}

.support-grid h3 {
  position: relative;
  width: 100%;
  margin: 0;
  padding-bottom: 0;
  border-bottom: 0;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

.support-grid p {
  margin: 0;
  line-height: 1.85;
  text-align: left;
}

.vertical-flow {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.vertical-flow li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 112px;
  padding: 24px 28px;
  border: 1px solid var(--color-line);
  border-left: 4px solid rgba(85, 127, 56, 0.34);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 49, 37, 0.035);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.vertical-flow li:hover {
  border-color: rgba(85, 127, 56, 0.42);
  box-shadow: 0 14px 30px rgba(31, 49, 37, 0.07);
  transform: translateY(-2px);
}

.vertical-flow span {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0;
  align-self: center;
  justify-self: center;
  place-items: center;
  line-height: 1;
}

.vertical-flow li > div {
  display: grid;
  align-self: center;
  min-width: 0;
}

.vertical-flow h3,
.vertical-flow p {
  margin: 0;
}

.vertical-flow h3 {
  margin-bottom: 6px;
}

.vertical-flow p {
  color: var(--color-muted);
}

.cta-panel--detail {
  background: linear-gradient(135deg, #f7faf4 0%, #edf5e8 100%);
}

.cta-panel--detail .cta-panel__inner {
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.16fr);
  align-items: center;
  justify-items: stretch;
  gap: 0;
  max-width: var(--container);
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cta-panel--detail .cta-panel__content {
  max-width: 680px;
  justify-items: start;
  padding: clamp(28px, 4vw, 54px);
  text-align: left;
}

.cta-panel--detail .cta-panel__buttons {
  justify-content: flex-start;
}

.cta-panel--detail .cta-panel__media {
  min-height: 420px;
}

.cta-panel--detail .cta-panel__media img {
  min-height: 420px;
  object-position: 38% center;
}

.cta-panel--practice .cta-panel__media,
.cta-panel--lawyers .cta-panel__media,
.cta-panel--cases .cta-panel__media,
.cta-panel--fee .cta-panel__media {
  align-self: center;
  height: auto;
  min-height: 0;
  aspect-ratio: 1717 / 916;
}

.cta-panel--practice .cta-panel__media img,
.cta-panel--lawyers .cta-panel__media img,
.cta-panel--cases .cta-panel__media img,
.cta-panel--fee .cta-panel__media img {
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.cta-panel--detail .cta-panel__media {
  align-self: center;
  height: auto;
  min-height: 0;
  aspect-ratio: 1672 / 941;
}

.cta-panel--detail .cta-panel__media img {
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-weight: 700;
  text-align: left;
}

.faq-item button::after {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  color: var(--color-green-dark);
  content: "";
}

.faq-item.is-open button::after {
  background-size: 14px 2px, 0 0;
}

.faq-item div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-item.is-open div {
  grid-template-rows: 1fr;
}

.faq-item p {
  min-height: 0;
  margin: 0;
  padding: 0 24px 0;
  overflow: hidden;
  color: var(--color-muted);
}

.faq-item.is-open p {
  padding-bottom: 20px;
}

/* =========================================================
  Lawyer / Case / Fee / Office / Contact
========================================================= */
.lawyer-profile-list {
  display: grid;
  gap: 40px;
}

.lawyer-profile {
  display: grid;
  grid-template-columns: minmax(380px, 440px) 1fr;
  gap: 42px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.lawyer-profile--reverse {
  grid-template-columns: 1fr minmax(380px, 440px);
}

.lawyer-profile--reverse img {
  order: 2;
}

.lawyer-profile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center top;
}

.role {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--color-green-soft);
  color: var(--color-green-dark);
  font-size: 13px;
  font-weight: 700;
}

.lawyer-profile h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 38px;
}

.license {
  color: var(--color-green-dark);
  font-weight: 700;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.profile-list div,
.info-table div {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.profile-list dt,
.info-table dt {
  font-weight: 700;
}

.profile-list dd,
.info-table dd {
  margin: 0;
  color: var(--color-muted);
}

.case-archive {
  background: var(--color-bg);
}

.case-archive__meta {
  display: flex;
  justify-content: flex-end;
  margin: -12px 0 18px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.case-archive__meta p {
  margin: 0;
}

.case-list {
  display: grid;
  gap: 18px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 22px 34px;
  align-items: start;
  padding: 28px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.case-card__head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.case-card span {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--color-green-soft);
  color: var(--color-green-dark);
  font-size: 12px;
  font-weight: 700;
}

.case-card time {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.case-card h3 {
  align-self: center;
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.55;
}

.case-card > p {
  grid-column: 1;
  max-width: 760px;
  margin: 0;
  color: var(--color-muted);
}

.case-card dl {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 9px 18px;
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: #f7faf4;
}

.case-card dt {
  color: var(--color-green-dark);
  font-weight: 700;
}

.case-card dd {
  margin: 0;
}

.case-note {
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
}

.fee-section {
  background:
    linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
}

.fee-heading {
  margin-bottom: 32px;
}

.fee-highlight {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  padding: 30px 38px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.fee-highlight h2,
.fee-highlight p,
.fee-highlight span {
  margin: 0;
}

.fee-highlight strong {
  color: var(--color-green-dark);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(36px, 4.4vw, 48px);
  line-height: 1;
}

.fee-highlight h2 {
  font-size: 22px;
}

.fee-highlight p {
  text-align: center;
}

.fee-highlight span {
  justify-self: end;
  color: var(--color-muted);
  font-weight: 700;
  line-height: 1.8;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.fee-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.fee-table th,
.fee-table td {
  padding: 20px 22px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.85;
}

.fee-table thead th {
  background: var(--color-green-soft);
  color: var(--color-green-dark);
}

.fee-table tbody th {
  width: 180px;
  background: #fbfcfa;
  color: var(--color-text);
}

.fee-table tbody tr:hover th,
.fee-table tbody tr:hover td {
  background: #fbfdf9;
}

.fee-table tbody tr:last-child th,
.fee-table tbody tr:last-child td {
  border-bottom: 0;
}

.note {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.info-table {
  display: grid;
  margin: 0 0 28px;
  border-top: 1px solid var(--color-line);
}

.info-table div {
  border-bottom: 1px solid var(--color-line);
}

.info-table dt,
.info-table dd {
  padding: 16px;
}

.info-table dt {
  background: var(--color-green-soft);
  color: var(--color-green-dark);
}

.contact-layout {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}

.contact-side {
  display: grid;
  gap: 18px;
}

.contact-method,
.contact-form {
  padding: 28px;
}

.contact-form {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.contact-method--note {
  background: linear-gradient(180deg, #fff 0%, var(--color-green-soft) 100%);
}

.contact-method a[href^="tel"] {
  display: inline-block;
  margin: 4px 0 8px;
  color: var(--color-green-dark);
  font-size: 32px;
  font-weight: 700;
}

.contact-method .button,
.contact-form > .button {
  display: flex;
  justify-content: center;
  width: fit-content;
  min-width: 180px;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.form-grid label,
.privacy-check {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.form-grid label.wide {
  grid-column: 1 / -1;
}

.form-grid span {
  display: inline-flex;
  width: fit-content;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff1ef;
  color: #b44a3a;
  font-size: 11px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7e0d3;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  padding: 14px;
  resize: vertical;
}

.privacy-check {
  display: flex;
  align-items: center;
  margin: 22px 0;
  color: var(--color-muted);
  font-weight: 500;
}

.privacy-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-height: 20px;
}

.privacy-check a {
  color: var(--color-green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-message {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #cfe0c6;
  border-radius: var(--radius-sm);
  background: var(--color-green-soft);
  color: var(--color-green-dark);
  font-weight: 700;
}

.form-demo-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--color-gold);
  background: var(--color-gold-soft);
  color: #5f4b24;
  font-size: 14px;
}

.form-demo-note strong {
  font-weight: 700;
}

.site-footer .site-footer__demo-note {
  width: min(calc(100% - 48px), var(--container));
  margin: 64px auto 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  text-align: center;
}

.site-footer .site-footer__demo-note + .site-footer__copy {
  margin-top: 14px;
}

.legal-page h1 {
  margin: 0 0 24px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(36px, 5vw, 56px);
  text-align: center;
}

.legal-page > .container > p {
  margin-bottom: 34px;
  color: var(--color-muted);
  text-align: center;
}

.legal-page article {
  padding: 30px;
  margin-top: 18px;
}

.legal-page article h2 {
  margin: 0 0 12px;
}

.legal-page article p {
  margin: 0;
  color: var(--color-muted);
}

/* =========================================================
  Responsive
========================================================= */
@media (max-width: 1240px) {
  .site-header__nav,
  .site-header__actions {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 99;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-bottom: 1px solid var(--color-line);
    background: #fff;
    box-shadow: 0 18px 34px rgba(30, 42, 56, 0.12);
    transition: max-height 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
  }

  .mobile-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    visibility: visible;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 14px 24px;
    border-top: 1px solid var(--color-line);
    font-weight: 700;
  }

  .mobile-nav a::after {
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    border-top: 1px solid var(--color-green-dark);
    border-right: 1px solid var(--color-green-dark);
    content: "";
  }

  .mobile-nav a:last-child {
    background: var(--color-green-soft);
    color: var(--color-green-dark);
  }
}

@media (max-width: 1080px) {

  .hero__inner,
  .strength-lead,
  .two-column,
  .split-layout,
  .office-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
  }

  .office-access .office-layout {
    grid-template-columns: 1fr;
  }

  .practice-grid,
  .detail-card-grid,
  .detail-note-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-list li + li {
    border-left: 1px solid var(--color-line);
    border-top: 1px solid var(--color-line);
  }

  .site-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lawyer-profile,
  .lawyer-profile--reverse {
    grid-template-columns: 320px 1fr;
  }

  .lawyer-profile--reverse img {
    order: initial;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 118px;
  }

  body {
    padding-bottom: 0;
    font-size: 15px;
  }
  
  .sp-only {
    display: block;
  }

  .pc-only {
    display: none;
  }

  .container,
  .hero__inner {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
  }

  .site-header__logo {
    margin-left: 16px;
  }

  .site-header__logo img {
    width: 180px;
    height: auto;
  }

  .menu-button {
    margin-right: 12px;
  }

  .site-header__actions {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
    background: #1b2f4d;
    color: #fff;
  }

  .site-header__actions::before {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    color: #e5c98e;
    content: "ご相談はこちら";
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
  }

  .site-header__actions .button {
    display: none;
  }

  .site-header__tel {
    gap: 7px;
    min-height: 44px;
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.04em;
  }

  .site-header__tel::before {
    width: 16px;
    height: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(248, 248, 244, 0.04) 0%, rgba(248, 248, 244, 0.3) 34%, rgba(248, 248, 244, 0.96) 62%, rgba(248, 248, 244, 1) 100%),
      url("img/practice-detail-main.jpg") center top / 100% auto no-repeat;
  }

  .hero__inner {
    display: block;
    gap: 28px;
    min-height: auto;
    /* Mobile hero image is 1672 x 941; keep copy safely below it. */
    padding: calc(56.28vw + 32px) 0 56px;
    text-align: center;
  }

  .hero__content {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(27px, 7.1vw, 31px);
    line-height: 1.45;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .sp-only {
    display: block;
  }

  .section-heading h2,
  .strength-lead h2,
  .page-hero h1,
  .cta-band h2,
  .cta-panel h2 {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .section-heading h2,
  .strength-lead h2,
  .cta-band h2,
  .cta-panel h2 {
    font-size: clamp(25px, 6.8vw, 30px);
  }

  .hero__text {
    margin-inline: auto;
    max-width: 330px;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .hero__badges {
    display: flex;
    justify-content: center;
    gap: 12px 18px;
    width: 100%;
    margin-top: 18px;
  }

  .hero-badge {
    width: auto;
    min-width: 0;
  }

  .hero-badge__inner {
    justify-content: center;
  }

  .hero-badge strong {
    font-size: 14px;
  }

  .hero-badge small {
    font-size: 10px;
  }

  .section-heading,
  .section-heading--center {
    text-align: center;
  }

  .strength-list {
    left: auto;
    grid-template-columns: 1fr;
    width: 100%;
    transform: none;
  }

  .strength-item + .strength-item {
    border-top: 1px solid var(--color-line);
    border-left: 0;
  }

  .strength-item {
    text-align: center;
  }

  .icon-circle {
    margin-inline: auto;
  }

  .practice-grid,
  .detail-card-grid,
  .detail-note-grid,
  .support-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .check-list--grid {
    grid-template-columns: 1fr;
  }

  .practice-detail-visual figcaption {
    text-align: center;
  }

  .detail-note-grid article {
    min-height: auto;
    padding: 30px 24px;
    text-align: center;
  }

  .support-grid article {
    min-height: auto;
    padding: 28px 24px;
  }

  .vertical-flow li {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    min-height: auto;
    padding: 24px 20px;
    border-top: 4px solid rgba(85, 127, 56, 0.34);
    border-left: 1px solid var(--color-line);
    text-align: center;
  }

  .vertical-flow span {
    width: 38px;
    height: 38px;
  }

  .vertical-flow li > div {
    justify-items: center;
  }

  .vertical-flow p {
    max-width: 31em;
    margin-inline: auto;
    text-align: left;
  }

  .practice-card {
    min-height: auto;
    text-align: center;
  }

  .practice-card__icon {
    margin-inline: auto;
  }

  .lawyer-mini {
    grid-template-columns: 144px 1fr;
    gap: 16px;
    padding: 18px;
    text-align: left;
  }

  .news-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .flow-list li {
    text-align: center;
  }

  .flow-list span,
  .vertical-flow span {
    margin-inline: auto;
  }

  .cta-band__inner {
    display: grid;
    text-align: center;
  }

  .cta-band__buttons {
    display: grid;
  }

  .site-footer {
    padding: 68px 0;
  }

  .site-footer__identity {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    text-align: center;
  }

  .site-footer__identity p {
    display: grid;
    justify-content: center;
    gap: 2px;
  }

  .site-footer__brand {
    justify-self: center;
    text-align: center;
  }

  .site-footer .site-footer__copy {
    margin-top: 48px;
  }

  .footer-top {
    right: 20px;
    width: 62px;
    height: 62px;
    font-size: 16px;
  }

  .site-footer__links {
    grid-template-columns: 1fr;
    gap: 26px;
    justify-items: center;
    text-align: left;
  }

  .site-footer__links ul {
    width: min(100%, 220px);
    justify-items: start;
  }

  .page-hero,
  .page-hero__inner {
    min-height: 300px;
  }

  .page-hero {
    background-position: center, center top;
    background-size: auto, auto 100%;
  }

  .page-hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248, 248, 244, 0.72) 0%, rgba(248, 248, 244, 0.94) 74%, rgba(248, 248, 244, 1) 100%);
    content: "";
  }

  .page-hero--simple::before {
    content: none;
  }

  .page-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
  }

  .page-hero--simple .page-hero__inner--breadcrumb-left {
    padding-top: 34px;
  }

  .page-hero__inner--breadcrumb-left .breadcrumb {
    margin-bottom: 26px;
  }

  .cta-panel__buttons {
    display: grid;
    width: 100%;
    max-width: 320px;
  }

  .cta-panel--practice .cta-panel__inner,
  .cta-panel--lawyers .cta-panel__inner,
  .cta-panel--cases .cta-panel__inner,
  .cta-panel--fee .cta-panel__inner,
  .cta-panel--detail .cta-panel__inner {
    grid-template-columns: 1fr;
    padding: 12px;
    text-align: center;
  }

  .cta-panel__content {
    justify-items: center;
    padding: 30px 18px 22px;
  }

  .cta-panel--detail .cta-panel__content {
    justify-items: center;
    padding: 30px 18px 22px;
    text-align: center;
  }

  .cta-panel--practice .cta-panel__buttons,
  .cta-panel--lawyers .cta-panel__buttons,
  .cta-panel--cases .cta-panel__buttons,
  .cta-panel--fee .cta-panel__buttons,
  .cta-panel--detail .cta-panel__buttons {
    justify-content: center;
  }

  .split-layout,
  .office-layout,
  .contact-layout {
    gap: 32px;
  }

  .office-layout__content {
    gap: 20px;
  }

  .map-card figcaption,
  .office-photo-card figcaption {
    text-align: center;
  }

  .lawyer-profile,
  .lawyer-profile--reverse {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .lawyer-profile img,
  .office-photo,
  .rounded-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .lawyer-profile h2 {
    font-size: 31px;
  }

  .profile-list div,
  .info-table div,
  .case-card,
  .case-card dl {
    grid-template-columns: 1fr;
  }

  .case-archive__meta {
    justify-content: center;
    margin-top: -6px;
    text-align: center;
  }

  .case-card {
    gap: 14px;
  }

  .case-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .case-card__head span {
    order: 2;
    margin-left: auto;
  }

  .case-card__head time {
    order: 1;
  }

  .detail-card > h3,
  .detail-card > p {
    text-align: center;
  }

  .case-card > p {
    grid-column: auto;
    margin: 0;
  }

  .case-card dl {
    grid-column: auto;
    grid-row: auto;
    padding: 18px;
  }

  .case-card,
  .detail-card,
  .contact-form,
  .contact-method {
    padding: 22px;
  }

  .fee-highlight {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 26px 20px;
  }

  .fee-highlight span {
    justify-self: center;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .fee-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .fee-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .fee-table,
  .fee-table tbody,
  .fee-table tr,
  .fee-table th,
  .fee-table td {
    display: block;
    width: 100%;
  }

  .fee-table tbody {
    display: grid;
    gap: 16px;
  }

  .fee-table tbody tr {
    overflow: hidden;
    padding: 0 20px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
  }

  .fee-table tbody th,
  .fee-table tbody tr:hover th {
    width: auto;
    margin: 0 -20px 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-green-soft);
    color: var(--color-green-dark);
    font-size: 17px;
  }

  .fee-table tbody td,
  .fee-table tbody tr:hover td {
    display: grid;
    grid-template-columns: minmax(76px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-line);
    background: #fff;
    font-size: 15px;
    line-height: 1.7;
  }

  .fee-table tbody td:last-child {
    border-bottom: 0;
  }

  .fee-table tbody td::before {
    color: var(--color-green-dark);
    font-size: 13px;
    font-weight: 700;
  }

  .fee-table tbody td:nth-child(2)::before {
    content: "着手金";
  }

  .fee-table tbody td:nth-child(3)::before {
    content: "報酬金";
  }

  .fee-table tbody td:nth-child(4)::before {
    content: "備考";
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .contact-method a[href^="tel"] {
    font-size: 28px;
  }

  .contact-method {
    text-align: center;
  }

  .contact-form > h2,
  .lawyer-profile > div > h2,
  .lawyer-profile > div > .license {
    text-align: center;
  }

  .lawyer-profile > div > .role {
    display: flex;
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  .site-header__inner {
    width: 100%;
  }

  .site-header__logo img {
    width: 170px;
    height: auto;
  }

  .site-header__actions {
    gap: 9px;
    padding-inline: 12px;
  }

  .site-header__actions::before {
    padding-right: 9px;
    font-size: 10px;
  }

  .site-header__tel {
    font-size: 15px;
  }

  .container,
  .hero__inner {
    width: calc(100% - 28px);
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
