/*
 * Senju Office — white, botanical editorial design.
 * Original template: Dimension by HTML5 UP (html5up.net), CCA 3.0.
 * This stylesheet is maintained directly; assets/sass contains the original template.
 */
@import url("fontawesome-all.min.css");

:root {
  color-scheme: light;
  --ink: #283c37;
  --body: #3f4c47;
  --muted: #64736c;
  --green: #345e4f;
  --green-hover: #244638;
  --line: #dbe3dc;
  --tint: #f4f7f3;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: #fff; color: var(--body); font-family: var(--sans); font-size: 1rem; line-height: 1.95; overflow-wrap: break-word; }
a { color: var(--green); text-underline-offset: .3em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #58776b; outline-offset: 5px; border-radius: 2px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); }
h2 { font-size: clamp(1.75rem, 2.5vw, 2.35rem); line-height: 1.6; letter-spacing: .1em; }
h3 { font-size: 1.6rem; line-height: 1.7; }
h4 { font-size: 1.15rem; line-height: 1.7; font-weight: 600; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.4em; margin: 1rem 0 0; }
li { padding-left: .25rem; }
li + li { margin-top: .45rem; }
li::marker { color: var(--green); }
section[id] { scroll-margin-top: 1rem; }
.container { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 100px; }
.hero > *, .intro-layout > *, .profile > *, .contact-inner > * { min-width: 0; }
.eyebrow { font-family: var(--sans); font-size: .875rem; letter-spacing: .16em; font-weight: 600; color: var(--green); }
.section-heading { margin-bottom: 44px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading::after { content: ""; display: block; width: 42px; height: 2px; background: #819b87; margin-top: 24px; }
.icon::before { font-family: "Font Awesome 5 Free"; font-weight: 400; font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 22px; background: #fff; }
.skip-link:focus { top: 12px; }

/* Navigation remains available without JavaScript, including on narrow screens. */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 4%; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 48px; border: 1px solid #a8b9aa; border-radius: 50% 50% 4px 4px; color: var(--green); font-size: 1.35rem; }
.brand-profession { display: block; font-size: .75rem; line-height: 1.4; letter-spacing: .2em; margin-bottom: 3px; }
.brand-name { display: block; font-family: var(--serif); font-size: 1.35rem; letter-spacing: .08em; line-height: 1.5; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 36px); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-contact { padding: 10px 22px; color: #fff; background: var(--green); }
.site-nav .nav-contact:hover { background: var(--green-hover); text-decoration: none; }

/* Existing blueberry photography anchors the new light visual identity. */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1600px; margin: 0 auto; padding: 42px 4% 54px; gap: 3%; }
.hero-copy { padding-left: max(0px, calc((100vw - 1250px) / 2)); padding-block: 38px; position: relative; z-index: 1; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-copy > .eyebrow::before { content: ""; width: 28px; height: 1px; background: #819b87; }
h1 { font-size: clamp(1.9rem, 2.8vw, 2.85rem); line-height: 1.85; letter-spacing: .035em; }
.hero-description { font-size: 1rem; line-height: 2.1; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 58px; padding: 14px 26px; color: #fff; background: var(--green); text-decoration: none; font-size: 1rem; letter-spacing: .04em; transition: background-color .2s; }
.button:hover { background: var(--green-hover); }
.hero .button { margin-top: 32px; }
.hero-office { font-size: .875rem; margin-top: 23px; color: var(--muted); letter-spacing: .08em; }
.hero-visual { position: relative; isolation: isolate; margin-left: 12px; padding-bottom: 46px; }
.hero-visual::before { content: ""; position: absolute; inset: 30px -12px 20px 24px; background: #edf2e9; border-radius: 180px 8px 8px 8px; z-index: -1; }
.hero-visual img { width: 100%; height: clamp(420px, 39vw, 570px); object-fit: cover; object-position: 48% center; border-radius: 160px 4px 4px 4px; }
.hero-visual figcaption { position: absolute; bottom: 0; right: 14px; color: var(--green); font-family: var(--serif); font-size: 1rem; letter-spacing: .03em; }

/* Office introduction and profile. */
#intro { border-top: 1px solid var(--line); }
.intro-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; }
.concerns { padding-left: 22px; border-left: 2px solid #b2c5b2; line-height: 2.25; color: var(--green); }
.greeting > p { margin-top: 28px; line-height: 2.15; }
.support-summary { align-self: start; background: var(--tint); border-top: 3px solid #9db69f; padding: 28px; }
.support-label { font-weight: 600; color: var(--ink); }
.support-summary ul { margin-top: 8px; margin-bottom: 22px; font-size: 1rem; }
.text-link { display: inline-block; font-size: .875rem; padding-block: 8px; }
.profile { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; border-top: 1px solid var(--line); margin-top: 70px; padding-top: 64px; }
.profile-photo { background: #fafbf9; }
.profile-photo img { width: 100%; }
.profile-content h3 { font-size: 2rem; letter-spacing: .16em; margin: 8px 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.9; }
th, td { text-align: left; vertical-align: top; padding: 17px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; width: 32%; padding-left: 0; color: var(--ink); }
th strong { font-weight: 500; }

/* Services: open, readable content rather than hidden modal panels. */
.services { background: var(--tint); }
.service-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.service-intro h3 { margin-top: 8px; font-size: 2rem; }
.service-intro img { width: 220px; height: 125px; object-fit: cover; border-radius: 3px; }
.will-grid { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); }
.will-type { padding: 36px; }
.will-type + .will-type { border-left: 1px solid var(--line); }
.will-type h4 { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.will-type li + li { margin-top: 16px; }
.will-detail { grid-column: 1 / -1; padding: 28px 36px 32px; border-top: 1px solid var(--line); }
.will-detail ul { columns: 2; column-gap: 50px; }
.will-detail li { break-inside: avoid; }
.other-title { margin-top: 64px; margin-bottom: 24px; }
.other-services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.service-item { padding: 28px 0; border-top: 1px solid #cbd8ce; }
.service-item ul { font-size: 1rem; }
.service-item ul ul { margin-top: 6px; color: var(--muted); }
.service-item:nth-child(2) { grid-column: 2; grid-row: 1 / 4; }
.service-item:last-child { grid-column: 1 / -1; }

/* Consultation flow and fee table. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 0; list-style: none; counter-reset: step; margin: 0 0 36px; }
.steps > li { position: relative; padding: 28px 0 0; border-top: 1px solid #a8bcac; margin: 0; counter-increment: step; }
.steps > li::before { content: "STEP " counter(step, decimal-leading-zero); display: block; color: var(--green); font-size: .875rem; letter-spacing: .12em; margin-bottom: 14px; }
.steps h3 { font-size: 1.5rem; margin-bottom: 16px; }
.steps p, .steps ul, .steps span { font-size: 1rem; }
.steps span { display: block; margin-top: 10px; color: var(--muted); }
.flow-content > span { display: block; padding: 24px 28px; background: var(--tint); font-size: 1rem; }
.fees { display: grid; grid-template-columns: 1fr 2.5fr; gap: 56px; border-top: 1px solid var(--line); margin-top: 72px; padding-top: 64px; }
.fees th { width: 25%; }
.fees tr:first-child th, .fees tr:first-child td { padding-top: 0; }

/* Contact. */
.contact { background: #edf3ee; border-block: 1px solid var(--line); padding-block: 70px; }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; }
.contact h2 { margin: 8px 0 20px; }
.contact p:not(.eyebrow) { font-size: 1rem; }
.contact-action { text-align: center; }
.contact-action .button { width: 100%; max-width: 350px; }
.email-address { display: block; width: fit-content; max-width: 100%; margin: 14px auto 10px; font-size: 1rem; overflow-wrap: anywhere; }
.contact-action p { color: var(--muted); }

/* Motion is a progressive enhancement; no content depends on it to be visible. */
.hero-title-line { display: block; }
.hero-image-frame { overflow: hidden; border-radius: 160px 4px 4px 4px; }
.hero-image-frame img { border-radius: 0; }
.motion-enabled .hero-image-frame img { transform: translateY(var(--hero-shift, 0px)) scale(1.08); }
.scroll-cue { display: flex; align-items: center; gap: 13px; width: fit-content; margin-top: 30px; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .875rem; letter-spacing: .08em; }
.scroll-cue-line { position: relative; display: block; width: 1px; height: 38px; overflow: hidden; background: var(--line); }
.scroll-cue-line::after { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleY(.45); transform-origin: top; }
.motion-enabled .scroll-cue-line::after { animation: scroll-hint 1.8s ease-in-out 2; }
.scroll-cue:hover { color: var(--green); }
.reading-progress { position: fixed; z-index: 30; top: 0; left: 0; width: 100%; height: 3px; background: #648573; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.site-header { transition: box-shadow .35s ease, background-color .35s ease; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 6px 24px rgba(40, 60, 55, .07); }
.site-nav a:not(.nav-contact) { position: relative; }
.site-nav a:not(.nav-contact)::after { content: ""; position: absolute; bottom: 4px; left: 0; right: 0; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.site-nav a:not(.nav-contact):hover { text-decoration: none; }
.site-nav a:not(.nav-contact):is(:hover, :focus-visible, [aria-current])::after { transform: scaleX(1); }
.site-nav .nav-contact[aria-current] { background: var(--green-hover); box-shadow: 0 0 0 3px #c6d6c9; }
.button, .nav-contact { position: relative; overflow: hidden; transition: background-color .25s ease, transform .3s ease, box-shadow .3s ease; }
.button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .15) 50%, transparent 80%); transform: translateX(-120%); pointer-events: none; }
.button .icon { transition: transform .3s ease; }
.button:focus-visible { box-shadow: 0 8px 22px rgba(40, 60, 55, .14); }
.button:active, .nav-contact:active { transform: translateY(1px); }
.motion-enabled .section-heading.is-revealed::after { transform-origin: left; animation: heading-line .9s cubic-bezier(.22, 1, .36, 1) both; }
.profile-photo { overflow: hidden; }
.profile-photo img { transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.support-summary { transition: box-shadow .35s ease, border-color .35s ease; }
.will-type { transition: background-color .35s ease; }
.service-item { position: relative; }
.service-item::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: #71957b; transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.steps > li::after { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; }
.motion-enabled .steps > li.is-revealed::after { animation: heading-line 1.1s cubic-bezier(.22, 1, .36, 1) both; }
.fees tr { transition: background-color .25s ease; }
@keyframes heading-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes scroll-hint {
  0% { transform: translateY(-100%) scaleY(.45); }
  65%, 100% { transform: translateY(100%) scaleY(.45); }
}
@keyframes button-light {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:hover, .nav-contact:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(40, 60, 55, .14); }
  .button:hover::after { animation: button-light .65s ease; }
  .button:hover .icon { transform: rotate(-8deg); }
  .profile-photo:hover img { transform: scale(1.035); }
  .support-summary:hover { border-color: var(--green); box-shadow: 0 12px 32px rgba(40, 60, 55, .06); }
  .will-type:hover { background: #fafcf9; }
  .service-item:hover::before { transform: scaleX(1); }
  .fees tr:hover { background: var(--tint); }
}

@media (min-width: 1600px) { .hero-copy { padding-left: 40px; } }
@media (max-width: 1100px) {
  .site-header { padding-inline: 28px; }
  .site-nav { gap: 18px; }
  .site-nav .nav-contact { padding-inline: 14px; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { display: none; }
  .intro-layout { gap: 36px; grid-template-columns: 1fr 260px; }
  .profile { gap: 40px; }
  .hero-copy { padding-left: 0; }
  h1 { font-size: 2.5vw; }
  .hero-description { font-size: 1rem; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 9rem; }
  .container { width: calc(100% - 48px); }
  .section { padding-block: 64px; }
  .site-header { flex-direction: column; gap: 12px; padding: 14px 24px 10px; }
  .brand { align-self: flex-start; }
  .brand > span:last-child { display: flex; align-items: center; gap: 10px; }
  .brand-profession { margin: 0; }
  .site-nav { justify-content: space-between; width: 100%; gap: 12px; }
  .site-nav a { font-size: .875rem; }
  .site-nav .nav-contact { padding: 6px 12px; }
  .hero { padding: 30px 24px 40px; gap: 24px; }
  .hero-copy { padding-block: 12px; }
  .hero h1 { font-size: clamp(1.35rem, 2.9vw, 1.9rem); }
  .hero-description br { display: none; }
  .hero .button { font-size: .875rem; padding-inline: 16px; }
  .hero-visual { margin-left: 0; padding-bottom: 54px; }
  .hero-visual img { height: 410px; }
  .hero-image-frame { border-top-left-radius: 100px; }
  .hero-visual figcaption { font-size: .875rem; right: 0; left: 0; text-align: center; }
  .intro-layout { grid-template-columns: 1fr; }
  .support-summary { padding: 24px; }
  .support-summary ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
  .support-summary li + li { margin: 0; }
  .profile { grid-template-columns: .7fr 1.3fr; gap: 28px; align-items: start; }
  .profile th, .profile td { padding: 12px 6px; font-size: 1rem; }
  .profile th { width: 36%; }
  .will-type { padding: 26px; }
  .will-detail { padding: 26px; }
  .other-services { column-gap: 32px; }
  .steps { gap: 22px; }
  .fees { grid-template-columns: 1fr; gap: 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .contact-action { text-align: left; }
  .email-address { margin-left: 0; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: relative; padding: 18px 20px 12px; }
  .site-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .site-nav a { justify-content: center; min-height: 44px; border-top: 1px solid var(--line); }
  .site-nav .nav-contact { margin-top: 4px; }
  .brand { align-self: center; margin-bottom: 4px; }
  .brand-name { font-size: 1.2rem; }
  .brand-profession { font-size: .75rem; }
  .container { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; padding: 36px 20px 42px; gap: 30px; }
  .hero-copy { padding: 0; }
  .hero-copy > .eyebrow { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(1.4rem, 5.7vw, 2rem); line-height: 1.85; }
  .hero-description { font-size: 1rem; margin-top: 20px; }
  .hero-description br { display: initial; }
  .hero .button { margin-top: 24px; font-size: 1rem; }
  .hero-office { margin-top: 16px; }
  .hero-visual { margin-right: 12px; padding-bottom: 42px; }
  .hero-visual img { height: 290px; }
  .scroll-cue { margin-top: 18px; }
  .hero-visual figcaption { right: -12px; }
  .section { padding-block: 52px; }
  .section-heading { margin-bottom: 30px; }
  .concerns { padding-left: 14px; line-height: 2.05; }
  .concerns br { display: block; content: ""; margin-block: 12px; }
  .greeting > p br { display: none; }
  .profile { grid-template-columns: 1fr; margin-top: 42px; padding-top: 42px; gap: 24px; }
  .profile-photo { max-width: 280px; width: 80%; margin-inline: auto; }
  .profile th, .profile td { font-size: 1rem; padding-block: 16px; }
  .profile th { width: 36%; }
  .service-intro { align-items: flex-start; flex-direction: column; gap: 20px; }
  .service-intro h3 { font-size: 1.6rem; }
  .service-intro img { width: 100%; height: 160px; object-position: center 55%; }
  .will-grid { grid-template-columns: 1fr; }
  .will-type { padding: 24px 20px; }
  .will-type + .will-type { border-left: 0; border-top: 1px solid var(--line); }
  .will-type br { display: none; }
  .will-detail { padding: 24px 20px; }
  .will-detail ul { columns: 1; }
  .other-title { margin-top: 40px; }
  .other-services { grid-template-columns: 1fr; }
  .service-item:nth-child(2) { grid-column: auto; grid-row: auto; }
  .service-item { padding-block: 24px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps > li { padding-top: 22px; }
  .steps h3 { margin-bottom: 10px; }
  .flow-content > span { padding: 20px; }
  .fees { margin-top: 42px; padding-top: 42px; }
  .fees th { width: 27%; }
  .fees td { padding-right: 0; }
  .contact { padding-block: 44px; }
  .contact p br { display: none; }
  .contact-action .button { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .motion-enabled .hero-image-frame img { transform: none; }
}
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reading-progress, .scroll-cue { display: none; }
  .motion-enabled .hero-image-frame img { transform: none; }
  .site-header { position: static; }
  .site-nav, .skip-link, .hero .button { display: none; }
  .section { padding-block: 24px; }
  .container { width: 100%; }
  .hero { padding-inline: 0; }
  .hero h1 { font-size: 1.5rem; white-space: normal; }
  .hero-visual img { height: 240px; }
  .profile, .fees { margin-top: 24px; padding-top: 24px; }
  .services, .contact { background: #fff; }
  .will-type, .service-item, tr, .steps > li { break-inside: avoid; }
  a { color: inherit; }
}
