:root {
  --navy: #102c38;
  --navy-deep: #091f29;
  --navy-light: #1c4654;
  --gold: #c69b57;
  --gold-light: #e1c18d;
  --ivory: #f7f4ed;
  --paper: #fdfcf8;
  --ink: #203039;
  --muted: #68767b;
  --line: #dfe3df;
  --white: #fff;
  --sans: "Noto Sans JP", sans-serif;
  --serif: "Noto Serif JP", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--white); transition: .3s ease; }
.site-header.scrolled { color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 8px 30px rgba(9,31,41,.08); backdrop-filter: blur(12px); }
.header-inner { width: min(1500px, calc(100% - 24px)); min-height: 88px; margin: auto; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 50px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 4px 3px;
  flex: none;
  overflow: hidden;
  color: transparent;
  background: rgba(9, 31, 41, .94);
  border: 1px solid var(--gold-light);
  box-shadow: inset 0 0 0 3px rgba(225, 193, 141, .12);
}
.brand-mark::before {
  content: "相続\A窓口";
  white-space: pre;
  position: relative;
  z-index: 2;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .08em;
  text-align: center;
}
.brand-mark::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 50%;
  width: 17px;
  height: 17px;
  border-top: 1px solid var(--gold-light);
  border-left: 1px solid var(--gold-light);
  transform: translateX(-50%) rotate(45deg);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { font-family: var(--serif); font-size: 17px; letter-spacing: .055em; }
.brand-copy small { margin-top: 2px; font-size: 9px; letter-spacing: .16em; opacity: .72; }
.global-nav { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1vw, 16px); margin-left: auto; }
.global-nav a { position: relative; font-size: 12px; font-weight: 500; letter-spacing: .03em; white-space: nowrap; }
.global-nav a::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 0; height: 1px; background: var(--gold); transition: width .2s ease; }
.global-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.header-phone span { font-size: 10px; opacity: .75; }
.header-phone strong { font-size: 16px; letter-spacing: .04em; white-space: nowrap; }
.button { min-height: 54px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid transparent; font-size: 14px; font-weight: 600; letter-spacing: .05em; transition: .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-accent { color: var(--navy-deep); background: var(--gold-light); }
.button-accent:hover { background: #efd3a2; box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.48); }
.button-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.button-small { min-height: 44px; padding-inline: 18px; font-size: 12px; }
.button-large { min-width: 300px; min-height: 72px; }
.menu-button, .mobile-nav { display: none; }

.hero { min-height: 780px; height: 96vh; max-height: 920px; position: relative; display: flex; align-items: center; color: var(--white); background: var(--navy-deep) url("assets/hero-family.png") center/cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,34,.98) 0%, rgba(8,31,40,.92) 35%, rgba(8,31,40,.38) 64%, rgba(8,31,40,.05) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, rgba(5,20,26,.38)); }
.hero-shade { position: absolute; width: 520px; height: 520px; left: -190px; top: 150px; border: 1px solid rgba(223,188,133,.14); border-radius: 50%; }
.hero-shade::after { content: ""; position: absolute; inset: 55px; border: 1px solid rgba(223,188,133,.1); border-radius: inherit; }
.hero-content { position: relative; z-index: 2; padding-top: 65px; }
.hero-copy { max-width: 690px; }
.eyebrow { margin: 0 0 19px; color: var(--gold); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold-light); }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(44px, 5.15vw, 74px); font-weight: 500; line-height: 1.38; letter-spacing: .04em; text-shadow: 0 2px 24px rgba(0,0,0,.22); }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-lead { margin: 28px 0 32px; font-size: 16px; line-height: 2; letter-spacing: .04em; color: rgba(255,255,255,.86); }
.hero-buttons { display: flex; gap: 12px; }
.hero-note { display: flex; gap: 24px; margin-top: 25px; color: rgba(255,255,255,.72); font-size: 12px; }
.hero-note span::before { content: "✓"; margin-right: 7px; color: var(--gold-light); }
.hero-scroll { position: absolute; z-index: 3; bottom: 38px; left: 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 8px; letter-spacing: .25em; writing-mode: vertical-rl; color: rgba(255,255,255,.65); }
.hero-scroll span { width: 1px; height: 50px; background: linear-gradient(var(--gold-light), transparent); }

.trust-strip { position: relative; z-index: 5; color: var(--white); background: var(--navy); }
.trust-grid { min-height: 116px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-grid > div { min-height: 58px; padding: 0 30px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.14); }
.trust-grid > div:first-child { border-left: 1px solid rgba(255,255,255,.14); }
.trust-grid strong { color: var(--gold-light); font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .05em; }
.trust-grid span { margin-top: 3px; font-size: 11px; color: rgba(255,255,255,.66); }

.section { padding: 120px 0; }
.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: start; }
.section-heading h2, .section-title h2, .strengths-copy h2, .profile-copy h2, .faq h2, .contact h2 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 3.5vw, 50px); font-weight: 600; line-height: 1.55; letter-spacing: .03em; }
.intro-copy { padding-top: 27px; }
.intro-copy p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 38px; margin-top: 14px; padding-bottom: 7px; border-bottom: 1px solid var(--gold); color: var(--navy); font-size: 13px; font-weight: 600; }
.text-link span { color: var(--gold); transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }

.services { background: var(--ivory); }
.section-title { margin-bottom: 58px; }
.section-title.centered { text-align: center; }
.section-title > p:last-child { max-width: 660px; margin: 18px auto 0; color: var(--muted); font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d8d6ce; border-left: 1px solid #d8d6ce; }
.service-card { min-height: 400px; position: relative; padding: 44px 30px 34px; display: flex; flex-direction: column; background: rgba(255,255,255,.35); border-right: 1px solid #d8d6ce; border-bottom: 1px solid #d8d6ce; transition: .3s ease; overflow: hidden; }
.service-card:hover, .service-card.featured { color: var(--white); background: var(--navy); transform: translateY(-8px); box-shadow: 0 22px 45px rgba(15,44,56,.15); }
.service-number { position: absolute; top: 20px; right: 22px; color: var(--gold); font-family: var(--serif); font-size: 11px; letter-spacing: .12em; }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; color: var(--gold); border: 1px solid currentColor; }
.service-icon svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 29px 0 16px; font-family: var(--serif); font-size: 20px; }
.service-card p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.service-card:hover p, .service-card.featured p { color: rgba(255,255,255,.7); }
.service-card a { display: flex; gap: 25px; align-items: center; margin-top: auto; color: var(--gold-light); font-size: 12px; font-weight: 600; }

.strengths { color: var(--white); background: var(--navy-deep); }
.strengths-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 100px; align-items: center; }
.strengths-visual { min-height: 600px; position: relative; background: linear-gradient(rgba(10,34,43,.12), rgba(10,34,43,.25)), url("assets/family-existing.jpg") center/cover; }
.strengths-visual::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.22); }
.quote-card { position: absolute; right: -45px; bottom: -45px; width: 375px; padding: 34px 38px; color: var(--navy); background: var(--gold-light); }
.quote-card p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 2; }
.quote-card strong { font-size: 20px; }
.quote-mark { position: absolute; top: -20px; left: 22px; color: var(--white); font-family: Georgia, serif; font-size: 72px; }
.strengths-copy h2 { margin-bottom: 45px; }
.strength-item { display: grid; grid-template-columns: 42px 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.15); }
.strength-item:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.strength-item > span { color: var(--gold); font-family: var(--serif); font-size: 12px; }
.strength-item h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 18px; }
.strength-item p { margin: 0; color: rgba(255,255,255,.62); font-size: 13px; }

.profile { background: var(--paper); }
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 100px; align-items: center; }
.profile-photo-wrap { width: 320px; position: relative; padding: 0 0 45px 28px; }
.profile-photo-wrap::before { content: ""; position: absolute; left: 0; top: 38px; width: 82%; height: 88%; background: var(--navy); }
.profile-photo-frame { position: relative; aspect-ratio: 4/4.5; overflow: hidden; background: #ddd; }
.profile-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.82) contrast(1.02); }
.profile-caption { position: absolute; right: -18px; bottom: 0; width: 210px; padding: 18px 22px; display: flex; flex-direction: column; color: var(--navy); background: var(--gold-light); }
.profile-caption span { font-size: 10px; letter-spacing: .15em; }
.profile-caption strong { font-family: var(--serif); font-size: 23px; letter-spacing: .1em; }
.profile-caption small { font-size: 9px; letter-spacing: .28em; }
.profile-copy > p:not(.eyebrow) { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.qualifications { display: flex; flex-wrap: wrap; gap: 8px; margin: 27px 0 10px; }
.qualifications span { padding: 7px 13px; border: 1px solid var(--line); color: var(--navy); font-size: 10px; font-weight: 600; background: var(--white); }

.flow { background: var(--ivory); }
.flow-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; counter-reset: item; }
.flow-list li { position: relative; padding: 38px 32px; text-align: center; border-right: 1px solid #d8d6ce; }
.flow-list li:first-child { border-left: 1px solid #d8d6ce; }
.flow-list li > span { position: absolute; top: 5px; left: 16px; color: var(--gold); font-family: var(--serif); font-size: 11px; }
.flow-list li:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; right: -12px; top: 76px; color: var(--gold); }
.flow-symbol { width: 70px; height: 70px; margin: 0 auto 21px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; font-family: var(--serif); font-size: 20px; }
.flow-list h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 18px; }
.flow-list p { margin: 0; color: var(--muted); font-size: 12px; }

.columns-preview { background: var(--paper); }
.columns-heading { margin-bottom: 48px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.columns-heading h2, .category-intro h2 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 3.5vw, 50px); line-height: 1.5; }
.columns-heading > div > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 14px; }
.column-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.column-card { background: var(--white); border: 1px solid var(--line); transition: .25s ease; }
.column-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,44,56,.1); }
.column-image { height: 230px; position: relative; display: block; overflow: hidden; background: #ddd; }
.column-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.column-card:hover .column-image img { transform: scale(1.035); }
.column-image span { position: absolute; left: 0; bottom: 0; padding: 8px 14px; color: var(--white); background: var(--navy); font-size: 10px; }
.column-card-copy { min-height: 205px; padding: 25px 25px 22px; display: flex; flex-direction: column; }
.column-card time, .archive-card time { color: #8a9598; font-size: 10px; letter-spacing: .08em; }
.column-card h3 { margin: 10px 0 20px; font-family: var(--serif); font-size: 17px; line-height: 1.75; }
.column-more { display: inline-flex; align-items: center; gap: 25px; margin-top: auto; color: var(--gold); font-size: 11px; font-weight: 700; }

.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 95px; }
.faq-intro { max-width: 320px; margin-top: 25px; color: var(--muted); font-size: 13px; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { padding: 25px 45px 25px 0; position: relative; display: flex; align-items: center; gap: 18px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 15px; font-weight: 600; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 4px; color: var(--gold); font-family: var(--sans); font-size: 23px; font-weight: 300; }
.accordion details[open] summary::after { content: "−"; }
.accordion summary span { color: var(--gold); font-family: var(--serif); font-size: 20px; }
.accordion details p { margin: -4px 30px 24px 38px; padding-left: 22px; color: var(--muted); border-left: 1px solid var(--gold-light); font-size: 13px; }

.contact { padding: 110px 0; position: relative; color: var(--white); text-align: center; background: var(--navy) linear-gradient(135deg, rgba(198,155,87,.06), transparent 55%); overflow: hidden; }
.contact::before, .contact::after { content: ""; position: absolute; border: 1px solid rgba(225,193,141,.11); border-radius: 50%; }
.contact::before { width: 520px; height: 520px; left: -220px; top: -250px; }
.contact::after { width: 380px; height: 380px; right: -140px; bottom: -230px; }
.contact-inner { position: relative; z-index: 2; }
.contact h2 { font-size: clamp(34px, 4vw, 54px); }
.contact-inner > p:not(.eyebrow) { margin: 20px 0 40px; color: rgba(255,255,255,.66); font-size: 14px; }
.contact-options { display: flex; align-items: center; justify-content: center; gap: 55px; }
.contact-phone { display: flex; flex-direction: column; text-align: left; line-height: 1.35; }
.contact-phone span { font-size: 11px; color: var(--gold-light); }
.contact-phone strong { font-family: var(--serif); font-size: 34px; letter-spacing: .05em; }
.contact-phone small { color: rgba(255,255,255,.55); font-size: 10px; }

.site-footer { padding: 70px 0 20px; color: rgba(255,255,255,.76); background: #071921; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.site-header.scrolled .brand-mark { background: var(--navy-deep); }
.footer-brand .brand-mark { background: var(--navy-deep); }
.footer-grid p { margin: 25px 0 0; font-size: 11px; line-height: 2; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 45px; align-content: start; font-size: 12px; }
.footer-links a { padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 55px; padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.09); font-size: 9px; color: rgba(255,255,255,.42); }
.floating-contact { position: fixed; z-index: 50; right: 20px; bottom: 20px; width: 76px; height: 76px; display: none; place-items: center; color: var(--navy); background: var(--gold-light); border-radius: 50%; box-shadow: 0 8px 30px rgba(0,0,0,.22); font-size: 11px; font-weight: 700; }

.subpage { padding-top: 88px; }
.subpage .site-header { color: var(--ink); background: rgba(255,255,255,.97); box-shadow: 0 8px 30px rgba(9,31,41,.08); }
.global-nav .current { color: var(--gold); }
.page-hero { padding: 105px 0 90px; color: var(--white); background: var(--navy-deep) linear-gradient(115deg, rgba(198,155,87,.11), transparent 55%); }
.page-hero.compact { padding: 78px 0 62px; }
.page-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 5vw, 62px); font-weight: 600; letter-spacing: .04em; }
.page-hero p:last-child { margin: 20px 0 0; color: rgba(255,255,255,.68); font-size: 14px; }
.breadcrumbs { padding-top: 18px; display: flex; gap: 10px; color: #8b9496; font-size: 10px; }
.breadcrumbs a:hover { color: var(--gold); }
.category-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 40px; }
.category-intro > p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 80px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-card { min-height: 108px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: var(--ink); background: var(--white); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; transition: .2s ease; }
.category-card span { font-family: var(--serif); font-size: 13px; font-weight: 600; }
.category-card strong { margin-top: 5px; color: var(--gold); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.category-card:hover, .category-card.active { color: var(--white); background: var(--navy); }
.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 65px; align-items: start; }
.archive-count { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: right; }
.archive-count strong { color: var(--navy); font-family: var(--serif); font-size: 25px; }
.archive-card { padding: 32px 0; display: grid; grid-template-columns: 290px 1fr; gap: 32px; border-bottom: 1px solid var(--line); }
.archive-card[hidden] { display: none; }
.archive-image { height: 185px; overflow: hidden; background: #ddd; }
.archive-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.archive-card:hover .archive-image img { transform: scale(1.035); }
.article-category { display: inline-block; margin-right: 13px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.archive-card h2 { margin: 11px 0 8px; font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.archive-card p { margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.archive-aside { position: sticky; top: 120px; }
.aside-profile { padding: 28px 22px; text-align: center; background: var(--ivory); }
.aside-profile img { width: 105px; height: 105px; margin: 0 auto 16px; object-fit: cover; border-radius: 50%; }
.aside-profile p { margin: 0; color: var(--gold); font-size: 9px; }
.aside-profile h3 { margin: 4px 0 7px; font-family: var(--serif); font-size: 17px; }
.aside-profile span { color: var(--muted); font-size: 10px; }
.aside-cta { margin-top: 20px; padding: 27px 22px; color: var(--white); background: var(--navy); }
.aside-cta p { margin: 0 0 18px; font-family: var(--serif); font-size: 15px; line-height: 1.8; }
.aside-cta span { display: block; margin: -9px 0 19px; color: rgba(255,255,255,.62); font-size: 10px; }
.aside-cta .button { width: 100%; min-height: 48px; padding-inline: 10px; font-size: 11px; }

.article-header { padding: 70px 0 58px; background: var(--ivory); text-align: center; }
.narrow { max-width: 850px; }
.article-header .breadcrumbs { justify-content: center; padding: 0 0 34px; }
.article-header h1 { max-width: 780px; margin: 15px auto 20px; font-family: var(--serif); font-size: clamp(30px, 3.8vw, 47px); font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.article-meta { display: flex; justify-content: center; gap: 25px; color: var(--muted); font-size: 10px; }
.article-section { padding: 68px 0 110px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 240px; justify-content: center; gap: 60px; align-items: start; }
.article-main-image { width: 100%; height: auto; max-height: 470px; margin: 0 auto 40px; object-fit: contain; background: var(--ivory); }
.article-body > p { margin: 15px 0; color: #48585e; font-size: 15px; line-height: 2.05; }
.article-body .article-lead { margin: 35px 0; color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 2.1; }
.article-index { margin: 45px 0 55px; padding: 28px 34px; background: var(--ivory); border-top: 2px solid var(--gold); }
.article-index strong { font-family: var(--serif); }
.article-index ol { margin: 15px 0 0; padding-left: 23px; color: var(--navy); font-size: 13px; }
.article-index a { border-bottom: 1px solid #c8d0cd; }
.article-body h2 { margin: 58px 0 22px; padding: 15px 18px; color: var(--navy); background: #eef2ef; border-left: 4px solid var(--gold); font-family: var(--serif); font-size: 22px; font-weight: 600; }
.comparison-table { display: grid; grid-template-columns: 1fr 1fr; margin: 35px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.comparison-table > div { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.comparison-table strong { padding: 15px; color: var(--white); background: var(--navy-light); text-align: center; font-family: var(--serif); }
.comparison-table span { padding: 11px 15px; border-bottom: 1px solid var(--line); font-size: 12px; text-align: center; }
.article-note { margin: 35px 0; padding: 23px 27px; border-left: 3px solid var(--gold); background: #fbf5e9; }
.article-note strong { color: #8a652c; font-family: var(--serif); }
.article-note p { margin: 7px 0 0; font-size: 13px; }
.article-disclaimer { padding: 15px; background: #f1f2ef; font-size: 10px !important; }
.article-author { margin-top: 60px; padding: 28px; display: grid; grid-template-columns: 100px 1fr; gap: 25px; align-items: center; border: 1px solid var(--line); }
.article-author img { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; }
.article-author span { color: var(--gold); font-size: 9px; }
.article-author h3 { margin: 2px 0 6px; font-family: var(--serif); }
.article-author p { margin: 0; color: var(--muted); font-size: 11px; }
.article-nav { margin-top: 35px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--navy); font-size: 11px; font-weight: 600; }
.article-aside { position: sticky; top: 120px; }
.article-aside .aside-cta { margin-top: 0; }
.article-aside .aside-profile { margin-bottom: 20px; }
.aside-links { margin-top: 25px; padding: 22px; border: 1px solid var(--line); }
.aside-links h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 15px; }
.aside-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }

.content-layout { display: grid; grid-template-columns: minmax(0, 820px) 260px; justify-content: center; gap: 70px; align-items: start; }
.content-aside { position: sticky; top: 120px; }
.content-title { margin: 0 0 25px; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.55; }
.legacy-content { min-width: 0; color: #46565c; font-size: 15px; line-height: 2.05; overflow-wrap: anywhere; }
.legacy-content > :first-child { margin-top: 0; }
.legacy-content h1, .legacy-content h2, .legacy-content h3, .legacy-content h4, .legacy-content h5 { color: var(--ink); font-family: var(--serif); line-height: 1.65; overflow-wrap: anywhere; }
.legacy-content h2 { margin: 58px 0 22px; padding: 15px 18px; color: var(--navy); background: #eef2ef; border-left: 4px solid var(--gold); font-size: 22px; }
.legacy-content h3 { margin: 42px 0 17px; padding: 0 0 10px 13px; border-bottom: 1px solid #d8ddd9; border-left: 2px solid var(--gold); font-size: 19px; }
.legacy-content h4 { margin: 30px 0 12px; color: var(--navy-light); font-size: 16px; }
.legacy-content h5 { margin: 25px 0 10px; font-size: 15px; }
.legacy-content p { margin: 13px 0; }
.legacy-content p:empty { display: none; }
.legacy-content a { color: #17637d; text-decoration: underline; text-underline-offset: 3px; }
.legacy-content img { width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.legacy-content figure { width: 100%; max-width: 100%; margin: 34px auto; text-align: center; }
.legacy-content figure img { max-height: 560px; object-fit: contain; }
.legacy-content .wp-block-table { overflow-x: auto; text-align: left; }
.legacy-content table { width: 100%; min-width: 560px; margin: 0; border-collapse: collapse; font-size: 12px; line-height: 1.7; }
.legacy-content th, .legacy-content td { padding: 11px; border: 1px solid var(--line); vertical-align: top; }
.legacy-content th { background: var(--ivory); }
.legacy-content ul, .legacy-content ol { margin: 18px 0; padding-left: 1.5em; }
.legacy-content li { margin: 7px 0; }
.legacy-content strong { color: #253d47; font-weight: 700; }
.legacy-content .bold-blue, .legacy-content .blue { color: #165e75; font-weight: 700; }
.legacy-content .bold-red { color: #9a463e; font-weight: 700; }
.legacy-content blockquote { margin: 30px 0; padding: 20px 24px; background: var(--ivory); border-left: 3px solid var(--gold); }
.legacy-content .wp-block-button__link { display: inline-flex; padding: 11px 20px; color: var(--white); background: var(--navy); text-decoration: none; }
.legacy-content .has-text-align-center { text-align: center; }
.legacy-content .has-text-align-right { text-align: right; }
.legacy-content .has-medium-font-size { font-size: 16px; }
.legacy-content .has-large-font-size { font-size: 20px; line-height: 1.7; }
.article-body > .article-main-image + h2 { display: none; }
.migrated-page .wp-block-table table td:first-child { width: 38%; color: var(--navy); background: #faf8f2; }
.migrated-page .wp-block-table table td:nth-child(2) { background: var(--white); }
.blogcard-wrap { margin: 18px 0 30px; display: block; color: inherit !important; border: 1px solid var(--line); text-decoration: none !important; transition: .2s ease; }
.blogcard-wrap:hover { border-color: var(--gold); box-shadow: 0 10px 25px rgba(15,44,56,.08); transform: translateY(-2px); }
.blogcard { min-height: 120px; position: relative; padding: 18px; display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 20px; align-items: center; }
.blogcard-thumbnail { width: 135px !important; height: 82px; margin: 0 !important; overflow: hidden; background: var(--ivory); }
.blogcard-thumbnail img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; }
.blogcard-content { min-width: 0; }
.blogcard-title { color: var(--navy); font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.blogcard-snippet { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.blogcard-footer { grid-column: 2; margin-top: -10px; color: #8a9496; font-size: 9px; }
.blogcard-site { display: flex; align-items: center; gap: 6px; }
.blogcard-domain { overflow-wrap: anywhere; }
.blogcard-favicon { width: 16px; height: 16px; }
.blogcard-favicon img { width: 16px !important; height: 16px !important; margin: 0 !important; }
.blogcard-label { display: none; }
.legacy-content > .has-large-font-size:has(+ figure) { margin-top: 38px; padding: 15px 18px; background: var(--ivory); border-left: 3px solid var(--gold); }
.legacy-content > .has-large-font-size:has(+ figure) a { color: var(--navy); font-family: var(--serif); font-weight: 700; }
.legacy-content > .has-large-font-size + figure img { max-width: 360px; max-height: 520px; box-shadow: 0 14px 35px rgba(9,31,41,.13); }
.legacy-content .page_item, .legacy-content .cat-item { margin: 7px 0; }
.law-schedule { margin: 28px 0 42px; border-top: 1px solid var(--line); }
.law-schedule h4 { margin: 0 !important; padding: 15px 18px; color: var(--white) !important; background: var(--navy); font-family: var(--serif); font-size: 15px !important; }
.law-schedule dl { margin: 0; }
.law-schedule dl > div { display: grid; grid-template-columns: minmax(0, 1fr) 170px; align-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.law-schedule dt { padding: 16px 18px; display: flex; align-items: flex-start; gap: 13px; line-height: 1.75; }
.law-schedule dt span { width: 27px; height: 27px; display: inline-grid; place-items: center; flex: none; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; font-family: var(--serif); font-size: 9px; }
.law-schedule dd { height: 100%; margin: 0; padding: 16px 18px; display: flex; align-items: center; justify-content: center; color: var(--navy); background: var(--ivory); border-left: 1px solid var(--line); font-weight: 700; white-space: nowrap; }
.contact-page-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.contact-page-grid > div > p { color: var(--muted); font-size: 14px; }
.contact-info-card { margin-top: 35px; padding: 25px; display: flex; flex-direction: column; color: var(--white); background: var(--navy); }
.contact-info-card span { color: var(--gold-light); font-size: 10px; }
.contact-info-card a { font-family: var(--serif); font-size: 30px; }
.contact-info-card small { color: rgba(255,255,255,.6); font-size: 9px; }
.consultation-form { padding: 38px; background: var(--ivory); }
.consultation-form label { margin-bottom: 22px; display: flex; flex-direction: column; color: var(--ink); font-size: 12px; font-weight: 600; }
.consultation-form label span { margin-left: 7px; display: inline; color: #a74d43; font-size: 9px; }
.consultation-form input, .consultation-form select, .consultation-form textarea { width: 100%; margin-top: 7px; padding: 13px; color: var(--ink); background: var(--white); border: 1px solid #ccd3d0; border-radius: 0; font: inherit; font-weight: 400; }
.consultation-form textarea { resize: vertical; }
.form-note { color: var(--muted); font-size: 10px; }
.consultation-form .button { margin-top: 10px; border: 0; cursor: pointer; }
.form-narrow { max-width: 760px; }
.empty-state { max-width: 760px; margin: auto; padding: 75px; text-align: center; background: var(--ivory); border: 1px solid var(--line); }
.empty-state > span { color: var(--gold); font-size: 10px; letter-spacing: .25em; }
.empty-state h2 { margin: 15px 0 20px; font-family: var(--serif); font-size: 32px; line-height: 1.6; }
.empty-state p { margin-bottom: 28px; color: var(--muted); font-size: 13px; }

@media (max-width: 1320px) {
  .global-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-button { width: 42px; height: 42px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 5px; color: inherit; background: transparent; border: 0; cursor: pointer; }
  .menu-button span:not(.sr-only) { width: 100%; height: 1px; background: currentColor; transition: .2s; }
  .mobile-nav { position: absolute; inset: 88px 0 auto; padding: 22px 24px; flex-direction: column; color: var(--ink); background: var(--white); box-shadow: 0 20px 35px rgba(0,0,0,.12); }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .service-card { padding-inline: 22px; }
}

@media (max-width: 900px) {
  .section { padding: 90px 0; }
  .hero { height: auto; min-height: 760px; background-position: 67% center; }
  .hero::before { background: linear-gradient(90deg, rgba(6,26,34,.96) 0%, rgba(8,31,40,.82) 55%, rgba(8,31,40,.22) 100%); }
  .hero-copy { max-width: 580px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); padding-block: 20px; }
  .trust-grid > div { padding: 18px 25px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .intro-grid, .strengths-grid, .profile-grid, .faq-grid { grid-template-columns: 1fr; gap: 55px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .column-card-grid { grid-template-columns: repeat(2, 1fr); }
  .column-card:last-child { display: none; }
  .strengths-visual { width: 85%; min-height: 520px; }
  .profile-photo-wrap { width: min(320px, 82%); }
  .flow-list { grid-template-columns: repeat(2, 1fr); gap: 25px 0; }
  .flow-list li:nth-child(3) { border-left: 1px solid #d8d6ce; }
  .flow-list li:nth-child(2)::after { display: none; }
  .contact-options { gap: 30px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-layout, .article-layout { grid-template-columns: 1fr; }
  .content-layout, .contact-page-grid { grid-template-columns: 1fr; }
  .archive-aside, .article-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .content-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .aside-cta { margin-top: 0; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 560px); }
  .header-inner { width: calc(100% - 28px); min-height: 72px; }
  .brand { gap: 9px; }
  .brand-mark { width: 42px; height: 42px; padding: 12px 3px 2px; }
  .brand-mark::before { font-size: 8.5px; line-height: 1.05; }
  .brand-mark::after { top: 6px; width: 14px; height: 14px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 8px; }
  .header-actions { display: none; }
  .mobile-nav { top: 72px; }
  .hero { min-height: 730px; background-position: 69% center; }
  .hero::before { background: linear-gradient(90deg, rgba(6,26,34,.97), rgba(8,31,40,.74)); }
  .hero-content { padding-top: 65px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 14px; }
  .hero-lead br { display: none; }
  .hero-buttons { flex-direction: column; align-items: stretch; max-width: 340px; }
  .hero-note { flex-direction: column; gap: 4px; }
  .hero-scroll { display: none; }
  .trust-grid { width: 100%; grid-template-columns: 1fr 1fr; }
  .trust-grid > div { min-height: 82px; padding: 12px 16px; border-left: 0 !important; }
  .trust-grid strong { font-size: 15px; }
  .trust-grid span { font-size: 9px; line-height: 1.5; }
  .section { padding: 72px 0; }
  .section-heading h2, .section-title h2, .strengths-copy h2, .profile-copy h2, .faq h2, .contact h2 { font-size: 29px; }
  .intro-grid { gap: 25px; }
  .intro-copy { padding-top: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 340px; }
  .columns-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .column-card-grid { grid-template-columns: 1fr; }
  .column-card:last-child { display: block; }
  .column-image { height: 215px; }
  .strengths-grid { gap: 80px; }
  .strengths-visual { width: calc(100% - 20px); min-height: 440px; background-position: 72% center; }
  .quote-card { right: -20px; bottom: -50px; width: 92%; padding: 28px; }
  .quote-card p { font-size: 14px; }
  .quote-card strong { font-size: 16px; }
  .profile-photo-wrap { width: min(280px, calc(100% - 30px)); padding-left: 18px; }
  .profile-caption { right: -20px; width: 195px; padding: 15px 18px; }
  .profile-copy h2 br { display: none; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-list li, .flow-list li:nth-child(3) { border-left: 1px solid #d8d6ce; }
  .flow-list li::after { display: none; }
  .faq-grid { gap: 25px; }
  .accordion summary { font-size: 14px; line-height: 1.65; }
  .contact { padding: 82px 0 105px; }
  .contact-options { flex-direction: column; }
  .contact-phone { text-align: center; }
  .contact-phone strong { font-size: 30px; }
  .button-large { min-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { gap: 10px 25px; }
  .floating-contact { display: grid; }
  .subpage { padding-top: 72px; }
  .page-hero { padding: 75px 0 65px; }
  .category-intro { grid-template-columns: 1fr; gap: 15px; }
  .category-grid { grid-template-columns: 1fr; margin-bottom: 50px; }
  .category-card { min-height: 82px; }
  .archive-card { grid-template-columns: 1fr; gap: 18px; }
  .archive-image { height: 210px; }
  .archive-aside, .article-aside { grid-template-columns: 1fr; }
  .article-header { padding: 55px 0 45px; }
  .article-header h1 br { display: none; }
  .article-section { padding: 45px 0 80px; }
  .article-main-image { max-height: 330px; margin-bottom: 30px; }
  .article-body h2 { margin-top: 45px; font-size: 19px; }
  .comparison-table { grid-template-columns: 1fr; }
  .article-author { grid-template-columns: 75px 1fr; padding: 20px; gap: 17px; }
  .article-author img { width: 75px; height: 75px; }
  .content-aside { grid-template-columns: 1fr; }
  .legacy-content { font-size: 14px; line-height: 2; }
  .legacy-content h2 { margin-top: 45px; padding: 12px 13px; font-size: 19px; }
  .legacy-content h3 { margin-top: 34px; padding-left: 10px; font-size: 17px; }
  .legacy-content h4 { font-size: 15px; }
  .legacy-content figure { margin: 27px auto; }
  .legacy-content figure img { max-height: 390px; }
  .law-schedule dl > div { grid-template-columns: 1fr; }
  .law-schedule dd { justify-content: flex-start; border-top: 1px solid var(--line); border-left: 0; }
  .legacy-content .has-large-font-size { font-size: 17px; }
  .blogcard { grid-template-columns: 92px minmax(0, 1fr); gap: 13px; padding: 13px; }
  .blogcard-thumbnail { width: 92px !important; height: 68px; }
  .blogcard-title { font-size: 13px; }
  .blogcard-snippet { display: none; }
  .blogcard-footer { grid-column: 2; margin-top: -5px; }
  .legacy-content > .has-large-font-size + figure img { max-width: 260px; }
  .consultation-form { padding: 25px 18px; }
  .empty-state { padding: 45px 20px; }
  .empty-state h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* WordPress / Contact Form 7 integration */
.consultation-form-live .wpcf7 { margin: 0; }
.consultation-form-live .wpcf7-form > p { margin: 0; }
.consultation-form-live .wpcf7-form-control-wrap { display: block; }
.consultation-form-live .wpcf7 input[type="submit"] {
  min-width: 280px;
  min-height: 62px;
  margin-top: 10px;
  padding: 0 28px;
  color: var(--navy-deep);
  background: var(--gold-light);
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
}
.consultation-form-live .wpcf7-response-output { margin: 22px 0 0; }
.consultation-form-live .wpcf7-not-valid-tip { margin-top: 5px; color: #a74d43; font-size: 11px; }
@media (max-width: 640px) {
  .consultation-form-live .wpcf7 input[type="submit"] { width: 100%; min-width: 0; }
}
