:root {
  color-scheme: light;
  --sky: #87ceeb;
  --blue: #2c5aa0;
  --text: #696969;
  --ink: #333333;
  --link: #0f54c4;
  --paper: #fdfdfd;
  --pale: #f3f9fc;
  --line: rgb(105 105 105 / 19%);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --header-height: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--text); background: var(--paper); font: 400 17px/1.9 var(--font); letter-spacing: .025em; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--link); text-underline-offset: 5px; }
a, button { transition: color 150ms, background-color 150ms, border-color 150ms; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, h4, p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
section[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--sky); color: var(--ink); }
.container { width: min(100% - 80px, 1120px); margin-inline: auto; }
.section-space { padding-block: 100px; }
.quiet-space { padding-block: 80px; }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { color: var(--blue); font-size: 34px; font-weight: 600; line-height: 1.55; letter-spacing: .025em; }
.section-english { margin-top: 9px; color: var(--blue); font-size: 13px; font-weight: 400; line-height: 1.6; letter-spacing: .08em; }
.heading-firm { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 400; letter-spacing: .06em; }

/* ヘッダーは1つだけを追従表示。 */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; width: 286px; flex-shrink: 0; }
.brand img { width: 100%; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; }
.menu-toggle { display: none; }

/* FVのみ、既存バナー3組をフェード表示。画像全体と元の比率を維持。 */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero { background: var(--paper); }
.hero-slider { position: relative; max-width: 1949px; margin-inline: auto; }
.hero-slides { display: grid; aspect-ratio: 1949 / 663; }
.hero-slide { grid-area: 1 / 1; min-width: 0; opacity: 0; pointer-events: none; transition: opacity 1000ms ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide picture, .hero-slide img { display: block; width: 100%; height: 100%; }
.hero-slide img { object-fit: contain; }

/* 業務は区分ごとに整列し、箱の装飾を加えない。 */
.service-category { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 48px; }
.category-heading h3 { color: var(--blue); font-size: 21px; font-weight: 500; line-height: 1.85; }
.category-heading .section-english { margin-top: 12px; }
.business-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.service-item { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: start; gap: 16px; padding-block: 28px 32px; border-top: 1px solid var(--line); }
.service-item h4 { margin-bottom: 14px; color: var(--blue); font-size: 18px; font-weight: 500; line-height: 1.7; letter-spacing: 0; }
.service-icon { width: 80px; aspect-ratio: 1; object-fit: contain; }
.service-item ul { font-size: 15px; line-height: 1.95; letter-spacing: 0; }
.service-item li { position: relative; padding-left: 13px; }
.service-item li::before { position: absolute; left: 0; top: .89em; width: 4px; height: 4px; border-radius: 50%; background: var(--sky); content: ""; }
.individual-category { margin-top: 34px; padding-top: 38px; border-top: 1px solid var(--line); }
.inheritance-item { padding: 0; border: 0; }
.inheritance-item > div { width: 100%; }
.inheritance-list { display: grid; grid-template-columns: 1.45fr 1fr; column-gap: 24px; }
.inheritance-list li:first-child { grid-column: 1 / -1; }

/* 料金の条件は、金額と同じまとまりの中で表示。 */
.pricing { background: var(--blue); }
.pricing .section-heading h2, .pricing .section-english, .price-notes { color: var(--paper); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.price-item { padding: 32px; background: var(--paper); }
.price-heading { display: flex; align-items: center; gap: 16px; min-height: 40px; margin-bottom: 25px; }
.price-heading img { width: 36px; height: 36px; object-fit: contain; }
.price-heading h3 { color: var(--blue); font-size: 18px; font-weight: 500; line-height: 1.65; }
.price-value { color: var(--blue); font-size: 36px; font-weight: 500; line-height: 1.5; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-unit { font-size: 19px; font-weight: 400; }
.price-words { padding-top: 4px; font-size: 23px; line-height: 1.85; }
.price-number { padding-inline: 4px; font-size: 32px; }
.price-alternative { display: flex; gap: 12px; align-items: baseline; margin-top: 7px; color: var(--blue); font-size: 16px; }
.price-alternative > [lang] { color: var(--text); font-size: 13px; }
.mobile-rate { display: none; }
.price-notes { margin-top: 40px; font-size: 14px; line-height: 1.9; }

/* FAQは全回答を常時表示。 */
.faq-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 28px; }
.faq-list > div { padding-block: 28px 30px; border-bottom: 1px solid var(--line); }
.faq-list > div:first-child { padding-top: 0; }
.faq-list dt, .faq-list dd { position: relative; min-height: 36px; padding-left: 52px; }
.faq-list dt { margin-bottom: 20px; color: var(--blue); font-size: 18px; font-weight: 500; line-height: 1.8; }
.faq-list dd { font-size: 16px; line-height: 1.95; }
.faq-label { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--text); color: var(--text); font: 400 16px/1 Arial, sans-serif; letter-spacing: 0; }
.faq-list dt .faq-label { background: var(--text); color: var(--paper); }

.access { background: var(--pale); }
.access-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 64px; }
.access-photo img { width: 100%; height: auto; }
.access-info { padding-top: 2px; font-size: 15px; line-height: 1.95; }
.access-info address { color: var(--ink); font-size: 17px; font-style: normal; font-weight: 500; line-height: 1.85; }
.postal-code { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 400; color: var(--text); }
.access-directions { margin-top: 22px; }
.access-directions p + p { margin-top: 12px; }
.office-hours { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; padding-block: 18px; border-block: 1px solid var(--line); }
.visit-note { margin-top: 22px; font-size: 14px; }
.visit-note-title { margin-bottom: 8px; color: var(--blue); font-weight: 500; }

.site-footer { padding-block: 60px 8px; color: var(--ink); text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; }
.footer-nav a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 10px; color: var(--ink); font-size: 13px; text-decoration: none; white-space: nowrap; }
.footer-nav a::before, .footer-nav a::after { position: absolute; top: 50%; height: 20px; border-left: 1px solid currentColor; content: ""; transform: translateY(-50%); }
.footer-nav a::before { left: 0; }
.footer-nav a::after { right: -1px; }
.footer-nav a:hover { color: var(--link); text-decoration: underline; }
.footer-copyright { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .02em; }

/* プライバシーポリシーは本文の読み幅を抑え、共通の配色と書体で表示。 */
.privacy-page { width: min(100% - 80px, 900px); margin-inline: auto; }
.privacy-title { margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--blue); font-size: 34px; font-weight: 600; line-height: 1.55; }
.privacy-content h2 { margin-block: 48px 20px; padding-left: 16px; border-left: 2px solid var(--blue); color: var(--blue); font-size: 22px; font-weight: 500; line-height: 1.7; }
.privacy-content p + p { margin-top: 20px; }
.privacy-home { display: inline-flex; align-items: center; min-height: 44px; margin-top: 40px; font-size: 15px; }

@media (min-width: 960px) and (max-width: 1199px) {
  .brand { width: 250px; }
  .site-nav { gap: 24px; }
  .service-category { grid-template-columns: 195px minmax(0, 1fr); gap: 32px; }
  .business-grid { column-gap: 28px; }
  .service-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .service-icon { width: 64px; }
  .price-item { padding-inline: 24px; }
  .faq-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 32px; }
  .access-layout { gap: 40px; }
}

@media (max-width: 959px) {
  :root { --header-height: 76px; }
  .header-inner { flex-wrap: wrap; gap: 0 20px; }
  .brand { width: 260px; }
  .menu-toggle { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 76px; min-height: 44px; margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--blue); }
  .menu-label { font-size: 11px; line-height: 1.5; letter-spacing: .06em; }
  .menu-symbol { position: relative; display: block; width: 20px; height: 16px; }
  .menu-symbol span { position: absolute; right: 0; width: 20px; height: 1px; background: currentColor; }
  .menu-symbol span:first-child { top: 4px; }
  .menu-symbol span:last-child { top: 11px; }
  .menu-toggle[aria-expanded="true"] .menu-symbol span:first-child { top: 8px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-symbol span:last-child { top: 8px; transform: rotate(-45deg); }
  .site-nav { width: 100%; display: grid; gap: 0; padding-bottom: 18px; }
  .site-nav a { padding-block: 10px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .js-enabled .site-nav { position: absolute; left: 0; top: 100%; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; padding: 12px 40px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .js-enabled .site-nav:not(.is-open) { display: none; }
  .hero-slides { aspect-ratio: 716 / 919; }
  .section-space { padding-block: 80px; }
  .quiet-space { padding-block: 64px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: 30px; }
  .service-category { grid-template-columns: 1fr; gap: 28px; }
  .category-heading h3 { font-size: 20px; }
  .category-heading h3 br { display: none; }
  .category-heading .section-english { margin-top: 6px; }
  .service-item { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .service-icon { width: 64px; }
  .individual-category { margin-top: 14px; padding-top: 32px; }
  .inheritance-list { grid-template-columns: 1fr 1fr; }
  .price-grid { gap: 16px; }
  .price-item { padding: 28px 20px; }
  .price-heading { gap: 12px; margin-bottom: 22px; align-items: flex-start; }
  .price-heading img { width: 30px; height: 30px; }
  .price-heading h3 { font-size: 16px; }
  .price-value { font-size: clamp(24px, 3.3vw, 29px); }
  .price-unit { font-size: 15px; }
  .price-words { font-size: 19px; padding-top: 0; }
  .price-number { font-size: 27px; }
  .price-alternative { gap: 4px 8px; flex-wrap: wrap; font-size: 14px; }
  .desktop-rate { display: none; }
  .mobile-rate { display: inline; }
  .faq-layout { grid-template-columns: 1fr; gap: 0; }
  .faq-list > div:first-child { padding-top: 26px; border-top: 1px solid var(--line); }
  .access-layout { gap: 32px; grid-template-columns: .8fr 1.2fr; }
  .access-info address { font-size: 16px; }
}

@media (max-width: 699px) {
  .price-grid { grid-template-columns: 1fr; gap: 20px; }
  .price-item { padding: 28px; }
  .price-heading { align-items: center; margin-bottom: 14px; }
  .price-heading img { width: 32px; height: 32px; }
  .price-heading h3 { font-size: 18px; }
  .price-value { font-size: 30px; }
  .price-unit { font-size: 18px; }
  .price-words { font-size: 24px; line-height: 1.85; }
  .price-number { font-size: 28px; }
  .price-alternative { margin-top: 4px; font-size: 16px; }
  .price-notes { margin-top: 32px; }
  .access-layout { grid-template-columns: 1fr; }
  .access-photo { max-width: 480px; }
}

@media (max-width: 599px) {
  :root { --header-height: 72px; }
  body { font-size: 16px; letter-spacing: .02em; }
  .container { width: calc(100% - 48px); }
  .privacy-page { width: calc(100% - 48px); }
  .privacy-title { margin-bottom: 30px; font-size: 26px; }
  .privacy-content h2 { margin-top: 36px; padding-left: 12px; font-size: 20px; }
  .brand { width: min(235px, calc(100% - 94px)); }
  .header-inner { gap: 0 12px; }
  .js-enabled .site-nav { padding-inline: 24px; }
  .section-space { padding-block: 60px; }
  .quiet-space { padding-block: 52px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 26px; line-height: 1.6; letter-spacing: 0; }
  .section-english { margin-top: 7px; font-size: 12px; }
  .heading-firm { margin-bottom: 8px; font-size: 14px; }
  .service-category { gap: 24px; }
  .category-heading h3 { font-size: 19px; }
  .business-grid { grid-template-columns: 1fr; }
  .service-item { padding-block: 24px; gap: 16px; }
  .service-item h4 { margin-bottom: 10px; font-size: 18px; }
  .service-item ul { font-size: 15px; }
  .individual-category { margin-top: 6px; padding-top: 28px; }
  .inheritance-item { padding: 0; }
  .inheritance-list { grid-template-columns: 1fr; }
  .inheritance-list li:first-child { grid-column: auto; }
  .faq-list dt { font-size: 17px; }
  .faq-list dd { font-size: 16px; }
  .faq-list > div { padding-block: 24px; }
  .access-layout { gap: 28px; }
  .access-info { font-size: 15px; }
  .access-info address { font-size: 16px; }
  .office-hours { display: block; }
  .visit-note br { display: none; }
}

@media (max-width: 959px) {
  html:not(.js-enabled) .site-header { position: static; }
}

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