:root {
  color-scheme: light;
  --ink: #30232b;
  --muted: #62565c;
  --wine: #653b52;
  --wine-dark: #472b3c;
  --petal: #ead9df;
  --paper: #faf6f2;
  --white: #fffdfa;
  --line: #e1d1d3;
  --display: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  --body: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
}

:root[lang="en"] {
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; line-height: 1.75; }
a { color: inherit; text-underline-offset: 0.24em; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
figure, p, dl, dd, h1, h2, h3 { margin: 0; }
h1, h2, h3 { text-wrap: pretty; }
:focus-visible { outline: 3px solid #9f647e; outline-offset: 4px; }
html { scroll-padding-top: 5.75rem; }
.shell { width: min(73rem, calc(100% - 5rem)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 8vw, 7.5rem); }

.skip {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--wine-dark);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 5.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.wordmark, .footer p { font-family: var(--display); font-weight: 700; }
.wordmark { display: grid; line-height: 1.35; text-decoration: none; gap: 0.28rem; }
.wordmark strong { font-size: clamp(1rem, 1.7vw, 1.36rem); letter-spacing: 0.055em; }
.wordmark-area { font: 0.78rem var(--body); color: var(--muted); letter-spacing: 0.08em; }
.wordmark-office { display: inline-block; }
.site-header nav, .header-actions { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.site-header nav a, .language {
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 650;
}
.site-header nav a:hover, .language:hover { text-decoration: underline; }
.header-actions { gap: 1rem; }
.language { color: var(--wine); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.45rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  background: var(--wine);
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.button:hover { background: var(--wine-dark); }
.button--header {
  min-height: 2.75rem;
  padding-inline: 1.2rem;
  background: transparent;
  border-color: var(--wine);
  color: var(--wine);
  font-size: 0.875rem;
  white-space: nowrap;
}
.button--header:hover, .button--outline:hover { color: #fff; }
.button--primary { min-width: 12rem; }
.button--small { min-height: 2.75rem; padding-inline: 1rem; font-size: 0.875rem; }
.button--outline { background: transparent; color: var(--wine); border-color: var(--wine); }

.hero { background: var(--paper); overflow: clip; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  padding-block: clamp(3.25rem, 6vw, 5.75rem) clamp(3rem, 5.5vw, 5.25rem);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--wine);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.11em;
}
.kicker::before { content: ""; width: 1.8rem; height: 1px; background: currentColor; flex: none; }
.hero h1 {
  margin-block: 1.5rem 1.5rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.12vw, 3.8rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.014em;
}
.hero h1 span, .contact h2 span { display: block; }
.hero h1 span + span { color: var(--wine); }
.hero-lead { max-width: 30rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.95; }
.hero .button { margin-top: 2rem; }
.hero-note { margin-top: 0.8rem; color: var(--muted); font-size: 0.875rem; }
.hero-portrait { position: relative; isolation: isolate; }
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem 1.6rem 1rem;
  z-index: -1;
  border: 1px solid #c8aeb9;
  border-radius: 0 7.5rem 0 0;
}
.portrait-frame {
  overflow: hidden;
  aspect-ratio: 1.05;
  border-radius: 0 7.5rem 0 0;
  background: #dbcfc7;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-portrait figcaption {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.8rem 0 0;
  color: var(--wine-dark);
}
.hero-portrait figcaption span { color: var(--muted); font-size: 0.875rem; }
.hero-portrait figcaption strong { font: 700 1.35rem var(--display); letter-spacing: 0.06em; }

h2 {
  margin-top: 0.75rem;
  color: var(--ink);
  font: 700 clamp(1.9rem, 3.4vw, 3.25rem)/1.42 var(--display);
  letter-spacing: 0.012em;
}
.section-intro { max-width: 44rem; margin-top: 1rem; color: var(--muted); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.75rem;
  border-block: 1px solid var(--line);
}
.service {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.9rem clamp(1.25rem, 3vw, 2.25rem);
}
.service:first-child { padding-inline-start: 0; }
.service + .service { border-inline-start: 1px solid var(--line); }
.service h3 { margin-top: 1.1rem; font: 700 clamp(1.2rem, 2vw, 1.55rem)/1.45 var(--display); }
.service p { color: var(--muted); margin: 0.7rem 0 1.1rem; }
.service a { margin-top: auto; color: var(--wine); font-weight: 700; text-decoration: none; }
.service a:hover { text-decoration: underline; }
.service-photo { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; border-radius: 0 2rem 0 0; }
.service--photo a + a { margin-top: 0.55rem; font-size: 0.91rem; }
.service--photo a:first-of-type { text-decoration: underline; text-underline-offset: 0.25em; }
.service-mark {
  display: block;
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #f0e4e7;
  color: var(--wine);
}
.service-mark::before, .service-mark::after { content: ""; position: absolute; }
.service-mark--property::before {
  left: 0.9rem;
  top: 1.26rem;
  width: 1.16rem;
  height: 0.82rem;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}
.service-mark--property::after {
  width: 0.99rem;
  height: 0.99rem;
  top: 0.93rem;
  left: 1.02rem;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
}
.service-mark--notification::before {
  width: 1.04rem;
  height: 1.32rem;
  top: 0.84rem;
  left: 0.98rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.service-mark--notification::after {
  width: 0.52rem;
  height: 0.36rem;
  top: 1.26rem;
  left: 1.24rem;
  border-block: 1.5px solid currentColor;
}
.service-mark--license::before {
  width: 1.12rem;
  height: 1.4rem;
  top: 0.76rem;
  left: 0.94rem;
  border: 1.5px solid currentColor;
  border-radius: 0.58rem 0.58rem 1px 1px;
}
.service-mark--license::after {
  width: 0.22rem;
  height: 0.22rem;
  top: 1.54rem;
  right: 1.15rem;
  background: currentColor;
  border-radius: 50%;
}

.area { background: #ecdee4; }
.area-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: 3.75rem;
}
.area h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); }
.area p:not(.kicker) { margin-top: 0.8rem; color: var(--wine-dark); }
.area-links { list-style: none; margin: 0; padding: 0; }
.area-links li + li { border-top: 1px solid #ccb8c3; }
.area-links a { display: block; padding-block: 0.75rem; color: var(--wine-dark); font-weight: 650; }
.practice-feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.practice-feature img { width: 100%; height: auto; border-radius: 0 4rem 0 0; }
.practice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-top: 1.3rem; }
.consultation-flow { background: #eff6f2; }
.flow-overview, .practice-cover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.flow-overview img { aspect-ratio: 2.2; width: 100%; height: auto; object-fit: cover; border-radius: 0 3.25rem 0 0; }
.flow-overview p, .flow-steps p { color: var(--muted); margin-top: 0.65rem; }
.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; list-style: none; counter-reset: step; padding: 0; margin: 2.25rem 0 0; }
.flow-steps li { counter-increment: step; border-top: 1px solid #bccec3; padding-top: 1rem; }
.flow-steps li::before { content: counter(step, decimal-leading-zero); color: #516b5c; font: 1.2rem/1.5 Georgia, serif; }
.flow-steps h3 { margin-top: 0.35rem; font: 700 1.19rem/1.5 var(--display); }
.practice-cover { background: linear-gradient(125deg, #eff6f2, var(--paper)); padding-block: 1.5rem 3rem; }
.back-link { color: var(--wine); font-size: 0.9rem; }
.practice-cover-grid { padding-top: 1.6rem; }
.practice-cover h1 { font: 700 clamp(2.2rem, 4.4vw, 3.8rem)/1.35 var(--display); }
.practice-cover .button { margin-top: 1.5rem; }
.practice-cover img { width: 100%; height: auto; border-radius: 0 4rem 0 0; }
.practice-cover figcaption { color: var(--muted); font-size: 0.78rem; margin-top: 0.35rem; text-align: right; }
.practice-reading { max-width: 49rem; padding-block: 3rem 4.5rem; }
.practice-reading section + section { margin-top: 2.35rem; }
.practice-reading h2 { font-size: clamp(1.55rem, 2.7vw, 2.15rem); }
.practice-reading h3 { margin-top: 1.4rem; font: 700 1.22rem/1.55 var(--display); }
.practice-reading p { margin-top: 0.65rem; }
.prep-box { padding: 1.25rem clamp(1.1rem, 3vw, 2rem); background: #eef4ef; border-left: 3px solid #a3bbad; }
.prep-box h2 { margin: 0; }
.prep-box ul { padding-left: 1.35rem; margin-bottom: 0; }
.practice-source { color: var(--wine); font-size: 0.88rem; padding-block: 1.15rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: start;
}
.rates { border-top: 1px solid var(--line); }
.rate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title amount" "scope amount";
  align-items: center;
  gap: 0.2rem 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.rate-row dt { grid-area: title; font-weight: 750; }
.rate-scope, .fine-print { color: var(--muted); font-size: 0.875rem; }
.rate-scope { grid-area: scope; }
.quote-link { display: block; width: fit-content; color: var(--wine); font-weight: 650; padding-block: 0.45rem; }
.review-example { margin-top: 1.25rem; padding-block: 0.85rem; border-block: 1px solid var(--line); }
.review-example summary { cursor: pointer; color: var(--wine); font-weight: 650; }
.review-example p { margin-block: 0.65rem; }
.review-example a { font-size: 0.875rem; }
.rate-amount { grid-area: amount; display: grid; justify-items: end; align-content: center; gap: 0.15rem; }
.price {
  white-space: nowrap;
  color: var(--wine);
  font: 700 clamp(1.4rem, 2.25vw, 1.95rem)/1.1 Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.tax { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.fine-print { margin-top: 1rem; }

.about { background: var(--paper); }
.profile-intro {
  display: grid;
  grid-template-columns: clamp(6rem, 30%, 9.25rem) 1fr;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  margin-top: 1.2rem;
  color: var(--muted);
}
.profile-intro img { width: 100%; height: auto; border-top-right-radius: 2rem; }
.profile { display: grid; gap: 0.8rem; margin-top: 1.45rem; }
.profile > div { display: grid; grid-template-columns: minmax(7rem, 26%) minmax(0, 1fr); gap: 0.8rem; }
.profile dt { color: var(--wine); font-weight: 700; font-size: 0.875rem; }
.profile dd { color: var(--ink); }
:root[lang="ja"] .postal::before { content: "〒"; }
.faq h3 { font: 700 1.5rem/1.4 var(--display); margin-bottom: 0.75rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.9rem 0;
  font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 0.9rem;
  height: 0.9rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  color: var(--wine);
}
.faq details[open] summary::after { background-size: 100% 1px, 0 0; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

.contact { background: var(--wine-dark); color: #fff9f4; }
.contact .kicker, .contact .section-intro, .contact-label { color: #eedce6; }
.contact h2 { color: inherit; }
.contact-label { margin-top: 2rem; font-size: 0.875rem; font-weight: 650; }
.direct-email {
  display: inline-block;
  overflow-wrap: anywhere;
  margin-top: 0.25rem;
  font: 700 clamp(1.32rem, 2.6vw, 2rem)/1.3 Georgia, serif;
}
.contact-draft { min-width: 0; }
.language-drafts { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.language-drafts a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.contact-draft:has(form:not([hidden])) { background: var(--white); color: var(--ink); padding: clamp(1.25rem, 3.2vw, 2.25rem); }
form { display: grid; }
form label { font-weight: 720; margin-bottom: 0.35rem; font-size: 0.938rem; }
form label span { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
form input, form select, form textarea {
  width: 100%;
  border: 1px solid #cbb9c0;
  border-radius: 0.25rem;
  color: var(--ink);
  background: #fff;
  min-height: 2.85rem;
  padding: 0.6rem 0.65rem;
  margin: 0 0 1rem;
}
form select {
  appearance: none;
  padding-inline-end: 2rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--wine) 50%) right 1rem center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--wine) 50%, transparent 50%) right calc(1rem - 5px) center / 5px 5px no-repeat,
    #fff;
}
form textarea { resize: vertical; }
form ::placeholder { color: #746a6f; }
form button { justify-self: start; }
.form-help, .copy-status { color: var(--muted); font-size: 0.875rem; margin-top: 0.65rem; }
.copy-status:empty { margin: 0; }
.draft-result { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1.15rem; }
.guide-context { color: var(--wine); margin-bottom: 1rem; }
.draft-recipient { display: inline-block; margin-top: 0.5rem; overflow-wrap: anywhere; }
.draft-body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 0.9rem; background: var(--paper); padding: 0.85rem; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.8rem; }

.footer { background: #38232f; color: #f8edf2; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.55rem; }
.footer a { font-size: 0.875rem; white-space: nowrap; }

:root[lang="en"] .wordmark strong { letter-spacing: 0; }
:root[lang="en"] .hero h1 { letter-spacing: -0.035em; font-size: clamp(2.35rem, 4.5vw, 4.2rem); }
:root[lang="en"] .kicker { letter-spacing: 0.065em; }
:root[lang="en"] .profile > div { grid-template-columns: minmax(8rem, 36%) minmax(0, 1fr); }
:root[lang="en"] .hero-portrait figcaption strong { letter-spacing: 0; }

@media (max-width: 59rem) {
  .site-header nav { gap: 1rem; }
  .hero-inner { gap: 2rem; }
  .hero h1 { font-size: clamp(2.05rem, 5.1vw, 3.25rem); }
  :root[lang="en"] .hero h1 { font-size: clamp(2.05rem, 5.05vw, 3.25rem); }
}

@media (max-width: 47rem) {
  .shell { width: calc(100% - 2.5rem); }
  html { scroll-padding-top: 5.15rem; }
  .header-inner { min-height: 4.5rem; gap: 0.65rem; }
  .site-header nav { display: none; }
  .header-actions { gap: 0.55rem; }
  .button--header { padding-inline: 0.65rem; }
  .wordmark strong { letter-spacing: 0.015em; }
  :root[lang="ja"] .wordmark strong { font-size: 0.875rem; letter-spacing: 0; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 2.7rem 2rem;
  }
  .hero h1 { margin-block: 1rem; font-size: clamp(2.05rem, 8.8vw, 3.6rem); }
  :root[lang="en"] .hero h1 { font-size: clamp(2.05rem, 8.8vw, 3.6rem); }
  .hero .button { margin-top: 1.35rem; }
  .hero-portrait { margin-inline-end: 0.65rem; }
  .hero-portrait::before { inset: 0.65rem -0.65rem 1.5rem 0.65rem; }
  .hero-portrait::before, .portrait-frame { border-top-right-radius: 5rem; }
  .service-grid { grid-template-columns: 1fr; margin-top: 2rem; }
  .service, .service:first-child { padding: 1.4rem 0; }
  .service + .service { border-inline-start: 0; border-top: 1px solid var(--line); }
  .area-inner, .split, .practice-feature-inner, .flow-overview, .flow-steps, .practice-cover-grid { grid-template-columns: 1fr; gap: 1.65rem; }
  .area-inner { padding-block: 2.6rem; }
  .section { padding-block: 3.5rem; }
}

@media (max-width: 24rem) {
  .shell { width: calc(100% - 2rem); }
  .wordmark strong { font-size: 0.93rem; }
  .header-actions { gap: 0.45rem; }
  .button--header { padding-inline: 0.5rem; }
  .footer-inner { flex-wrap: wrap; }
}
