:root {
  --color-navy: #17324d;
  --color-navy-dark: #0e2438;
  --color-blue-soft: #eaf1f6;
  --color-gold: #a98547;
  --color-gold-text: #89682f;
  --color-beige: #f5f0e7;
  --color-text: #26343f;
  --color-muted: #5f6d78;
  --color-border: #d8e0e6;
  --color-white: #fff;
  --shadow-soft: 0 0.75rem 2rem rgba(14, 36, 56, 0.09);
}

html { scroll-behavior: smooth; }
body {
  color: var(--color-text);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
}
a { color: #174f7a; text-underline-offset: 0.2em; }
a:hover { color: var(--color-navy-dark); }
:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 5px #17324d; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 2000; padding: .65rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }
.text-navy { color: var(--color-navy) !important; }
.text-gold { color: var(--color-gold) !important; }
.bg-soft { background: var(--color-blue-soft); }
.bg-beige { background: var(--color-beige); }
.section-space { padding: 4.5rem 0; }
.section-heading { margin-bottom: 2.25rem; text-align: center; }
.section-heading .eyebrow, .eyebrow { color: var(--color-gold-text); font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-heading h2 { color: var(--color-navy); font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 700; }

/* ===== Header / navigation (common component) ===== */
.site-header { background: rgba(255,255,255,.98); border-bottom: 1px solid var(--color-border); }
.utility-bar { background: var(--color-navy-dark); color: #fff; font-size: .88rem; }
.brand-mark { color: var(--color-navy); font-size: clamp(1rem, 2vw, 1.28rem); font-weight: 700; letter-spacing: .04em; }
.brand-mark small { color: var(--color-muted); display: block; font-size: .66rem; font-weight: 500; letter-spacing: .08em; }
.navbar-nav .nav-link { color: var(--color-text); font-weight: 600; padding-inline: .8rem !important; }
.navbar-nav .nav-link.active { color: var(--color-navy); text-decoration: underline; text-decoration-color: var(--color-gold); text-decoration-thickness: 3px; text-underline-offset: .45rem; }
.no-js-nav { background: var(--color-blue-soft); border-bottom: 1px solid var(--color-border); display: none; }
.no-js-nav ul { list-style: none; margin: 0; padding: .75rem 0; }
.no-js-nav a { align-items: center; color: var(--color-navy); display: flex; font-weight: 700; min-height: 44px; text-decoration: none; }
.no-js-nav a:hover, .no-js-nav a:focus-visible { color: var(--color-navy-dark); text-decoration: underline; text-underline-offset: .2rem; }
.phone-link { color: #fff; font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.utility-bar .phone-link:hover,
.utility-bar .phone-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.btn-primary-custom { background: var(--color-navy); border: 2px solid var(--color-navy); color: #fff; font-weight: 700; padding: .72rem 1.35rem; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn-primary-custom:hover, .btn-primary-custom:focus, .btn-primary-custom.active { background: var(--color-navy-dark); border-color: var(--color-navy-dark); color: #fff; }
.btn-primary-custom:hover { background-color: #0e2438; border-color: #0e2438; color: #ffffff; transform: translateY(-2px); }
.btn-primary-custom:hover:not(:focus-visible) { box-shadow: 0 6px 16px rgba(14, 36, 56, .28); }
.btn-primary-custom.active[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--color-gold); }
.btn-primary-custom.active[aria-current="page"]:hover:not(:focus-visible) { box-shadow: inset 0 -3px 0 var(--color-gold), 0 6px 16px rgba(14, 36, 56, .28); }
.btn-primary-custom.active[aria-current="page"]:focus-visible { box-shadow: inset 0 -3px 0 var(--color-gold), 0 0 0 5px #17324d; }
.btn-gold { background: var(--color-gold-text); border: 2px solid var(--color-gold-text); color: #fff; font-weight: 700; padding: .85rem 1.5rem; }
.btn-gold:hover, .btn-gold:focus { background: #654c26; border-color: #654c26; color: #fff; }
body:not(.home-page) .btn-gold, .home-page .cta-band .btn-gold { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
body:not(.home-page) .btn-gold:hover, .home-page .cta-band .btn-gold:hover { background-color: #654c26; border-color: #654c26; color: #ffffff; transform: translateY(-2px); }
body:not(.home-page) .btn-gold:hover:not(:focus-visible), .home-page .cta-band .btn-gold:hover:not(:focus-visible) { box-shadow: 0 6px 16px rgba(101, 76, 38, .30); }
.btn-primary-custom:active, body:not(.home-page) .btn-gold:active, .home-page .cta-band .btn-gold:active { transform: translateY(0); }

.hero-placeholder { align-items: center; border: 1px solid rgba(255,255,255,.42); display: flex; min-height: 310px; justify-content: center; padding: 2rem; text-align: center; }

/* ===== Cards / content ===== */
.service-card, .feature-card, .blog-card { background: #fff; border: 1px solid var(--color-border); border-radius: .35rem; height: 100%; padding: 1.6rem; position: relative; transition: box-shadow .2s ease, transform .2s ease; }
.service-card:hover, .blog-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.services-overview .services-overview-description { line-height: 1.8; margin-inline: auto; max-width: 30rem; text-wrap: balance; }
.services-overview .service-card { text-align: left; }
.services-overview.services-reveal-ready .services-reveal-heading,
.services-overview.services-reveal-ready .services-reveal-card {
  opacity: 0;
  transform: translateY(18px);
}
.services-overview.services-reveal-ready .services-reveal-heading {
  transition: opacity .7s ease, transform .7s ease;
}
.services-overview.services-reveal-ready .services-reveal-card {
  transition: opacity .6s ease var(--services-reveal-delay, 0s), transform .6s ease var(--services-reveal-delay, 0s);
}
.services-overview.services-reveal-ready .services-reveal-heading.is-revealed,
.services-overview.services-reveal-ready .services-reveal-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.icon-tile { align-items: center; background: var(--color-beige); border-radius: 50%; color: var(--color-navy); display: inline-flex; font-size: 1.45rem; height: 3.5rem; justify-content: center; width: 3.5rem; }
.concern-list { list-style: none; margin: 0; padding: 0; }
.concern-list li { background: #fff; border-left: 4px solid var(--color-gold); box-shadow: 0 .25rem 1rem rgba(14,36,56,.06); font-weight: 600; margin-bottom: .85rem; padding: 1rem 1.1rem; }
.flow-number { align-items: center; background: var(--color-navy); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 2.8rem; font-weight: 700; height: 2.8rem; justify-content: center; }
.profile-placeholder, .office-placeholder, .map-placeholder { align-items: center; background: linear-gradient(135deg, #e7ecef, #f5f0e7); border: 2px dashed #94a2ad; color: var(--color-muted); display: flex; justify-content: center; padding: 2rem; text-align: center; }
.profile-placeholder, .office-placeholder { border-radius: .35rem; min-height: 280px; }
.map-placeholder { min-height: 280px; }
.date-label { color: var(--color-muted); font-size: .9rem; }
.category-label { background: var(--color-blue-soft); color: var(--color-navy); font-size: .78rem; font-weight: 700; padding: .2rem .55rem; }
.cta-band { background: var(--color-navy); color: #fff; }
.cta-band a:not(.btn) { color: #fff; }

/* ===== 下層ページ共通 / 事務所紹介 ===== */
.page-hero { background: linear-gradient(120deg, var(--color-navy-dark), var(--color-navy)); color: #fff; padding: 3.75rem 0; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
.page-hero p:last-child { font-size: 1.05rem; }
.breadcrumb-wrap { background: var(--color-blue-soft); border-bottom: 1px solid var(--color-border); padding: .75rem 0; }
.breadcrumb { font-size: .9rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--color-muted); }
.overview-list > div, .profile-details > div { border-bottom: 1px solid var(--color-border); display: grid; gap: 1rem; grid-template-columns: 9rem 1fr; padding: .8rem 0; }
.overview-list > div:first-child, .profile-details > div:first-child { border-top: 1px solid var(--color-border); }
.overview-list dt, .profile-details dt { color: var(--color-navy); font-weight: 700; }
.overview-list dd, .profile-details dd { margin-bottom: 0; }
.profile-name { border-left: 3px solid var(--color-gold); color: var(--color-navy); font-size: 1.25rem; font-weight: 700; margin: 1.25rem 0; padding-left: 1rem; }
.profile-name span { color: var(--color-muted); font-size: .9rem; font-weight: 500; }
.policy-card { border-top: 3px solid var(--color-gold); box-shadow: var(--shadow-soft); height: 100%; padding: 1.75rem; }
.policy-card h3 { color: var(--color-navy); font-size: 1.2rem; font-weight: 700; margin: .6rem 0; }
.policy-card p { margin-bottom: 0; }
.policy-number { color: var(--color-gold-text); font-size: .85rem; font-weight: 700; letter-spacing: .12em; }
.about-access p { margin-left: auto; margin-right: auto; max-width: 42rem; }

/* ===== 業務案内 ===== */
.service-anchor-nav ul { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.service-anchor-nav a { align-items: center; background: #fff; border: 1px solid var(--color-border); display: flex; font-weight: 700; min-height: 3.5rem; padding: .75rem 1rem; text-decoration: none; }
.service-anchor-nav a::after { color: var(--color-gold); content: "↓"; margin-left: auto; padding-left: .75rem; }
.service-anchor-nav a:hover { border-color: var(--color-gold); }
.legal-note { background: var(--color-beige); border-left: 4px solid var(--color-gold); padding: 1.25rem 1.5rem; }
.legal-note h3 { color: var(--color-navy); font-size: 1.05rem; font-weight: 700; }
.legal-note p { margin-bottom: 0; }
.service-anchor-target { scroll-margin-top: 9rem; }
.service-detail-card { background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--color-gold); height: 100%; padding: 1.6rem; }
.service-detail-card h3 { color: var(--color-navy); font-size: 1.3rem; font-weight: 700; line-height: 1.5; margin-bottom: .8rem; }
.service-detail-number { color: var(--color-gold-text); font-size: .82rem; font-weight: 700; letter-spacing: .12em; margin-bottom: .35rem; }
.service-detail-card dl { margin-bottom: 0; }
.service-detail-card dt { color: var(--color-navy); font-size: .9rem; margin-top: .75rem; }
.service-detail-card dd { margin-bottom: 0; }
.service-caution { background: var(--color-beige); border-radius: .2rem; font-size: .9rem; margin: 1rem 0 0; padding: .8rem; }
.service-process { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.service-process li { border: 1px solid var(--color-border); display: flex; gap: 1rem; padding: 1.25rem; }
.service-process li > span { align-items: center; background: var(--color-navy); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 2.5rem; font-weight: 700; height: 2.5rem; justify-content: center; }
.service-process h3 { color: var(--color-navy); font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.service-process p { margin-bottom: 0; }
.service-flow-note { background: var(--color-blue-soft); margin: 1.5rem 0 0; padding: 1rem; text-align: center; }

/* ===== お問い合わせ ===== */
.contact-info-card { background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--color-gold); height: 100%; padding: 1.6rem; }
.contact-info-card h3 { color: var(--color-navy); font-size: 1.3rem; font-weight: 700; }
.contact-info-icon { color: var(--color-gold); display: block; height: 2rem; margin-bottom: .75rem; width: 2rem; }
.contact-phone { color: var(--color-navy); font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.contact-guidance-box { background: #fff; border-left: 4px solid var(--color-gold); box-shadow: var(--shadow-soft); margin: 0 auto; max-width: 54rem; padding: 1.5rem; }
.demo-form-notice { background: #fff3cd; border: 1px solid #e4ce85; color: #4b3b08; margin: 0 auto 1.5rem; max-width: 54rem; padding: 1rem 1.25rem; }
.contact-form-card { background: #fff; border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); margin: 0 auto; max-width: 54rem; padding: 2rem; }
.contact-caution { background: var(--color-beige); border: 1px solid #dfd3bf; margin-left: auto; margin-right: auto; max-width: 54rem; padding: 1.5rem; }
.contact-caution h3 { color: var(--color-navy); font-size: 1.15rem; font-weight: 700; }
.contact-caution li + li { margin-top: .5rem; }

/* ===== よくある質問 ===== */
.faq-anchor-guide { color: var(--color-muted); font-size: .9rem; margin-bottom: 1rem; text-align: center; }
.faq-anchor-nav ul { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.faq-anchor-nav a { align-items: center; background: #fff; border: 1px solid var(--color-border); display: flex; font-weight: 700; min-height: 3.5rem; padding: .75rem 1rem; text-decoration: none; }
.faq-anchor-nav a::after { color: var(--color-gold); content: "↓"; margin-left: auto; padding-left: .75rem; }
.faq-anchor-nav a:hover, .faq-anchor-nav a:focus-visible { border-color: var(--color-gold); }
.faq-section { scroll-margin-top: 9rem; }
.faq-section + .faq-section { margin-top: 3rem; }
.faq-section-title { border-left: 4px solid var(--color-gold); color: var(--color-navy); font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; padding-left: 1rem; }
.faq-accordion .accordion-item { border-color: var(--color-border); }
.faq-accordion .accordion-collapse.collapse:not(.show) { display: block; }
.faq-collapse-enhanced .faq-accordion .accordion-collapse.collapse:not(.show) { display: none; }
.faq-accordion .accordion-button { align-items: center; color: var(--color-navy); font-weight: 700; line-height: 1.6; min-height: 3.5rem; padding: 1rem 3.25rem 1rem 1.25rem; }
.faq-question-mark { align-items: center; background: var(--color-navy); border-radius: 50%; color: var(--color-white); display: inline-flex; flex: 0 0 2rem; font-size: .9rem; font-weight: 700; height: 2rem; justify-content: center; margin-right: .85rem; width: 2rem; }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--color-blue-soft); box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--color-border); color: var(--color-navy-dark); }
.faq-accordion .accordion-button:focus { border-color: var(--color-gold); box-shadow: 0 0 0 .2rem rgba(169, 133, 71, .25); }
.faq-accordion .accordion-body { background: #fff; padding: 1.25rem; }
.faq-answer { align-items: flex-start; display: flex; gap: .85rem; }
.faq-answer-mark { align-items: center; border: 2px solid var(--color-gold); border-radius: 50%; color: var(--color-gold); display: inline-flex; flex: 0 0 2rem; font-size: .9rem; font-weight: 700; height: 2rem; justify-content: center; width: 2rem; }
.faq-note { background: var(--color-beige); border-left: 4px solid var(--color-gold); margin-top: 3rem; padding: 1.25rem 1.5rem; }
.faq-note h3 { color: var(--color-navy); font-size: 1.1rem; font-weight: 700; }
.faq-cta-phone { align-items: center; display: inline-flex; gap: .5rem; }
.faq-cta-phone-icon { color: var(--color-gold); flex: 0 0 auto; height: 1.25rem; width: 1.25rem; }

/* ===== お知らせ ===== */
.news-category-guide { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; list-style: none; margin: 0; padding: 0; }
.news-category-guide li { background: var(--color-blue-soft); border: 1px solid var(--color-border); border-radius: .25rem; color: var(--color-navy); font-size: .88rem; font-weight: 700; padding: .45rem .8rem; }
.news-list-title { color: var(--color-navy); font-size: 1.65rem; font-weight: 700; margin-bottom: 1.75rem; text-align: center; }
.news-card { background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--color-gold); display: flex; flex-direction: column; height: 100%; padding: 1.5rem; transition: box-shadow .2s ease, transform .2s ease; }
.news-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.news-card-image-link { aspect-ratio: 16 / 9; display: block; overflow: hidden; }
.news-card-image { display: block; height: 100%; object-fit: cover; width: 100%; }
.news-meta { align-items: center; display: flex; flex-wrap: wrap; gap: .55rem .75rem; margin-bottom: .9rem; }
.news-meta time { color: var(--color-muted); font-size: .9rem; }
.news-card h3 { color: var(--color-navy); font-size: 1.2rem; font-weight: 700; line-height: 1.6; margin-bottom: .75rem; overflow-wrap: break-word; }
.news-card h3 a { color: inherit; text-decoration-color: var(--color-gold); text-decoration-thickness: 1px; text-underline-offset: .2rem; }
.news-card h3 a:hover { color: var(--color-navy-dark); text-decoration-thickness: 2px; }
.news-card > p { display: -webkit-box; margin-bottom: 1rem; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-read-more { align-items: center; align-self: flex-start; color: var(--color-navy); display: inline-flex; font-weight: 700; gap: .45rem; margin-top: auto; min-height: 44px; text-underline-offset: .2rem; }
.news-read-more:hover { color: #806332; }
.category-office { background: var(--color-navy); color: #fff; }
.category-inheritance { background: #eee3cf; color: #59451f; }
.category-real-estate { background: #dcebf2; color: #17324d; }
.category-corporate { background: #e3e7ea; color: #243d53; }
.category-other { background: #eeeae2; color: #243d53; }
.news-pagination { margin-top: 3rem; }
.news-pagination .page-link { border-color: var(--color-border); color: var(--color-navy); min-width: 2.75rem; text-align: center; }
.news-pagination .page-item.active .page-link { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.news-pagination .page-item.disabled .page-link { background: #eef0f2; color: #687681; }
.news-demo-note { background: var(--color-beige); border-left: 4px solid var(--color-gold); font-size: .9rem; margin: 2.5rem auto 0; max-width: 54rem; padding: 1rem 1.25rem; }
.news-cta-phone { align-items: center; display: inline-flex; gap: .5rem; }
.news-cta-phone-icon { color: var(--color-gold); flex: 0 0 auto; height: 1.25rem; width: 1.25rem; }

/* ===== お知らせ詳細 ===== */
.news-detail > .container { max-width: 54rem; }
.news-detail-header { border-bottom: 1px solid var(--color-border); margin-bottom: 2rem; padding-bottom: 1.5rem; }
.news-detail-meta { align-items: center; display: flex; flex-wrap: wrap; gap: .55rem .75rem; margin-bottom: 1rem; }
.news-detail-meta time { color: var(--color-muted); font-size: .9rem; }
.news-detail-title { color: var(--color-navy); font-size: clamp(1.65rem, 4vw, 2.15rem); font-weight: 700; line-height: 1.5; margin: 0; overflow-wrap: break-word; }
.news-detail-image-wrap { margin-left: auto; margin-right: auto; max-width: 48rem; text-align: center; }
.news-detail-image { display: block; height: auto; margin: 0 auto; max-height: 40rem; max-width: 100%; object-fit: contain; width: auto; }
.news-detail-body p { margin-bottom: 1.5rem; }
.news-detail-body h3 { color: var(--color-navy); font-size: 1.2rem; font-weight: 700; line-height: 1.5; }
.news-detail-schedule { background: var(--color-beige); border-left: 4px solid var(--color-gold); margin: 2rem 0; padding: 1.5rem; }
.news-detail-schedule h3 { margin-bottom: 1rem; }
.news-detail-schedule dl { margin: 0; }
.news-detail-schedule dl > div { border-top: 1px solid rgba(23,50,77,.16); display: grid; gap: 1rem; grid-template-columns: 9rem minmax(0, 1fr); padding: .85rem 0; }
.news-detail-schedule dl > div:last-child { padding-bottom: 0; }
.news-detail-schedule dt { color: var(--color-navy); font-weight: 700; }
.news-detail-schedule dd { margin: 0; overflow-wrap: break-word; }
.news-detail-contact { background: var(--color-blue-soft); margin-top: 2.25rem; padding: 1.5rem; }
.news-detail-contact h3 { margin-bottom: .65rem; }
.news-detail-contact p { margin-bottom: 1rem; }
.news-back-link { align-items: center; color: var(--color-navy); display: inline-flex; font-weight: 700; gap: .35rem; margin-top: 2.25rem; min-height: 44px; text-underline-offset: .2rem; }
.news-back-link:hover { color: #806332; }

/* ===== プライバシーポリシー ===== */
.privacy-content { margin: 0 auto; max-width: 54rem; }
.privacy-intro { border-bottom: 1px solid var(--color-border); margin-bottom: 2.25rem; padding-bottom: 1.5rem; }
.privacy-section + .privacy-section { border-top: 1px solid var(--color-border); margin-top: 2rem; padding-top: 2rem; }
.privacy-section h3 { color: var(--color-navy); font-size: 1.25rem; font-weight: 700; line-height: 1.55; margin-bottom: .85rem; }
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-list { margin-bottom: 0; padding-left: 1.4rem; }
.privacy-list li + li { margin-top: .35rem; }
.privacy-contact { background: var(--color-blue-soft); border-left: 4px solid var(--color-gold); font-style: normal; line-height: 1.9; margin: 0; padding: 1.25rem 1.5rem; }
.privacy-date { color: var(--color-muted); margin: 2.25rem 0 0; text-align: right; }

/* ===== サイトマップ ===== */
.sitemap-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 54rem; }
.sitemap-card { background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--color-gold); padding: 1.5rem; }
.sitemap-card h3 { color: var(--color-navy); font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; }
.sitemap-list { list-style: none; margin: 0; padding: 0; }
.sitemap-list li + li { border-top: 1px solid var(--color-border); }
.sitemap-list a { align-items: center; color: var(--color-navy); display: flex; min-height: 44px; padding: .35rem 0; text-underline-offset: .2rem; }
.sitemap-list a::after { color: var(--color-gold); content: "→"; margin-left: auto; padding-left: .75rem; }

/* ===== Footer (common component) ===== */
.site-footer { background: var(--color-navy-dark); color: #e7edf2; padding: 3.5rem 0 1.25rem; }
.site-footer a { color: #fff; }
.footer-nav { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: .4rem; }
.demo-notice { background: #fff3cd; color: #4b3b08; font-weight: 700; padding: .65rem; text-align: center; }
.page-top-button {
  align-items: center;
  background: var(--color-navy);
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  bottom: 20px;
  box-shadow: 0 6px 18px rgba(12, 38, 61, .32);
  color: var(--color-white);
  cursor: pointer;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 20px;
  width: 48px;
  z-index: 1000;
}
.page-top-button[hidden] { display: none; }
.page-top-button:hover { background: var(--color-navy-dark); }
.page-top-button:active { box-shadow: 0 2px 6px rgba(12, 38, 61, .25); }
.page-top-button svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 24px;
}

@media (max-width: 991.98px) {
  .navbar-collapse { border-top: 1px solid var(--color-border); margin-top: .8rem; padding: 1rem 0; }
  .navbar-nav .nav-link { padding-block: .7rem; }
  .bootstrap-unavailable .navbar-toggler { display: none; }
  .bootstrap-unavailable #mainNav.collapse { display: block; }
  .no-js-nav { display: block; }
  .no-js-nav ul { display: grid; gap: 0 .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-top-button { bottom: 20px; right: 20px; }
  .section-space { padding: 3.5rem 0; }
  .service-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .home-page .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}
@media (max-width: 575.98px) {
  /* ===== スマートフォン全体の余白・文字・タップ領域 ===== */
  body { font-size: 1rem; line-height: 1.75; overflow-x: clip; }
  .container { --bs-gutter-x: 2.5rem; }
  .home-page .row.g-5 {
    --bs-gutter-x: 2.5rem;
  }
  .section-space { padding: 3rem 0; }
  .section-heading { margin-bottom: 1.75rem; }
  .section-heading .eyebrow, .eyebrow { letter-spacing: .12em; margin-bottom: .35rem !important; }
  .section-heading h2 { font-size: clamp(1.55rem, 7vw, 1.9rem); line-height: 1.45; text-wrap: balance; }
  .section-heading p { margin-left: auto; margin-right: auto; max-width: 34rem; }
  .section-heading > p:not(.eyebrow),
  .cta-band h2 + p,
  [aria-labelledby="faq-link-title"] h2 + p,
  .about-access h2 + p { text-align: left; }
  .btn { align-items: center; display: inline-flex; justify-content: center; min-height: 48px; }

  /* ヘッダー：ロゴとメニューを窮屈にせず、リンクを押しやすくします。 */
  .home-page .navbar > .container { padding-bottom: .4rem !important; padding-top: .4rem !important; }
  .home-page .brand-mark { font-size: .94rem; line-height: 1.35; margin-right: .45rem; }
  .home-page .brand-mark small { font-size: .55rem; letter-spacing: .045em; margin-top: .05rem; }
  .navbar-toggler { min-height: 44px; min-width: 44px; padding: .45rem; }
  .home-page .navbar-toggler { padding: .35rem; }
  .no-js-nav ul { grid-template-columns: 1fr; }
  .navbar-nav .nav-link { align-items: center; display: flex; min-height: 48px; padding-inline: .5rem !important; }
  .navbar-nav .nav-link.active { text-underline-offset: .35rem; }
  .navbar-collapse .btn-primary-custom { margin-top: .5rem; width: 100%; }

  .hero-placeholder { min-height: 190px; }

  /* カード・リスト：余白と高さを揃えて読みやすくします。 */
  .service-card, .feature-card, .blog-card { padding: 1.25rem; }
  .services-overview .services-overview-description { line-height: 1.7; max-width: 20rem; text-align: left; text-wrap: pretty; }
  .service-card h3, .feature-card h3, .blog-card h3 { line-height: 1.55; margin-bottom: .65rem; }
  .service-card p, .feature-card p, .blog-card p { margin-bottom: .85rem; }
  .feature-card h3 + p { text-align: left; }
  .icon-tile { font-size: 1.2rem; height: 3rem; width: 3rem; }
  .concern-list li { line-height: 1.65; margin-bottom: .75rem; padding: .9rem 1rem; }
  .concern-list li:last-child { margin-bottom: 0; }

  /* 相談の流れ：番号・見出し・説明の間隔を一定にします。 */
  [aria-labelledby="flow-title"] .row.g-4 { --bs-gutter-y: 0; }
  [aria-labelledby="flow-title"] .row.g-4 > div { border-bottom: 1px solid rgba(23, 50, 77, .16); padding-bottom: 1.25rem; padding-top: 1.25rem; }
  [aria-labelledby="flow-title"] .row.g-4 > div:first-child { padding-top: 0; }
  [aria-labelledby="flow-title"] .row.g-4 > div:last-child { border-bottom: 0; padding-bottom: 0; }
  [aria-labelledby="flow-title"] h3 { margin-bottom: .35rem; }
  [aria-labelledby="flow-title"] p { margin-bottom: 0; }
  .flow-number { flex-basis: 2.65rem; height: 2.65rem; width: 2.65rem; }

  /* 挨拶・ブログ・FAQ導線 */
  .profile-placeholder, .office-placeholder { min-height: 220px; padding: 1.5rem; }
  .blog-card .d-flex { margin-bottom: .8rem !important; }
  [aria-labelledby="faq-link-title"] p { margin-left: auto; margin-right: auto; max-width: 34rem; }
  [aria-labelledby="faq-link-title"] .btn { width: 100%; }

  /* アクセス：項目間の境界を設け、地図との余白を統一します。 */
  [aria-labelledby="access-title"] dl { margin-bottom: .75rem; }
  [aria-labelledby="access-title"] dt,
  [aria-labelledby="access-title"] dd { border-bottom: 1px solid rgba(23, 50, 77, .13); margin-bottom: 0; padding-bottom: .7rem; padding-top: .7rem; }
  [aria-labelledby="access-title"] dt { font-size: .94rem; }
  .map-placeholder { min-height: 210px; padding: 1.5rem; }

  /* CTA：ボタンを縦に揃え、周囲に十分な余白を取ります。 */
  .cta-band.section-space { padding: 3.25rem 0; }
  .cta-band h2 { font-size: clamp(1.55rem, 7vw, 1.9rem); line-height: 1.5; text-wrap: balance; }
  .cta-band .btn { width: 100%; }

  /* フッター：狭い2列を避け、リンクのタップ領域を確保します。 */
  .site-footer { padding: 2.75rem 0 1.25rem; }
  .site-footer .col-6 { width: 100%; }
  .site-footer p { margin-bottom: .75rem; }
  .footer-nav { margin-bottom: 0; }
  .footer-nav li { margin-bottom: 0; }
  .footer-nav a { align-items: center; display: inline-flex; min-height: 44px; }
  .demo-notice { font-size: .88rem; line-height: 1.65; padding: .75rem 1.25rem; }
  .page-top-button {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    height: 44px;
    right: calc(20px + env(safe-area-inset-right, 0px));
    width: 44px;
  }
  .page-top-button svg { height: 20px; width: 20px; }

  /* 下層ページ・事務所紹介 */
  .page-hero { padding: 2.75rem 0; }
  .page-hero h1 { font-size: 1.85rem; }
  .page-hero p:last-child { font-size: 1rem; text-wrap: balance; }
  .breadcrumb-wrap { padding: .65rem 0; }
  .overview-list > div, .profile-details > div { gap: .25rem; grid-template-columns: 1fr; padding: .75rem 0; }
  .profile-name span { display: block; margin-top: .15rem; }
  .policy-card { padding: 1.35rem; }
  .about-access .btn { width: 100%; }

  /* 業務案内 */
  .service-anchor-nav ul, .service-process { grid-template-columns: 1fr; }
  .service-anchor-nav a { min-height: 48px; padding: .7rem .9rem; }
  .legal-note { padding: 1rem; }
  .service-anchor-target { scroll-margin-top: 6rem; }
  .service-detail-card { padding: 1.25rem; }
  .service-detail-card h3 { font-size: 1.18rem; overflow-wrap: break-word; word-break: normal; }
  .service-process { gap: .75rem; }
  .service-process li { padding: 1rem; }
  .service-price-guide .btn { width: 100%; }
  .service-flow-note { text-align: left; }

  /* お問い合わせ */
  .contact-info-card, .contact-guidance-box, .contact-form-card, .contact-caution { padding: 1.25rem; }

  /* よくある質問 */
  .faq-anchor-guide { text-wrap: balance; }
  .faq-anchor-nav ul { grid-template-columns: 1fr; }
  .faq-anchor-nav a { min-height: 48px; padding: .7rem .9rem; }
  .faq-section { scroll-margin-top: 6rem; }
  .faq-section + .faq-section { margin-top: 2.5rem; }
  .faq-section-title { font-size: 1.22rem; line-height: 1.5; }
  .faq-accordion .accordion-button { min-height: 48px; padding: .9rem 3rem .9rem 1rem; }
  .faq-accordion .accordion-body { padding: 1rem; }
  .faq-question-mark, .faq-answer-mark { flex-basis: 1.8rem; height: 1.8rem; width: 1.8rem; }
  .faq-answer { gap: .7rem; }
  .faq-cta-phone { justify-content: center; max-width: 100%; }
  .faq-note { padding: 1rem; }

  /* お知らせ */
  .news-category-guide { gap: .5rem; }
  .news-category-guide li { font-size: .82rem; padding: .4rem .6rem; }
  .news-list-title { font-size: 1.45rem; margin-bottom: 1.5rem; }
  .news-card { padding: 1.25rem; }
  .news-card h3 { font-size: 1.12rem; line-height: 1.55; text-wrap: pretty; }
  .blog-card h3 { text-wrap: balance; }
  .news-pagination { margin-top: 2.5rem; }
  .news-pagination .page-link { font-size: .9rem; min-width: 2.25rem; padding: .45rem .55rem; }
  .news-demo-note { padding: 1rem; }
  .news-cta-phone { justify-content: center; max-width: 100%; }

  /* お知らせ詳細 */
  .news-detail-header { margin-bottom: 1.5rem; padding-bottom: 1.25rem; }
  .news-detail-title { font-size: 1.55rem; }
  .news-detail-schedule, .news-detail-contact { padding: 1.25rem; }
  .news-detail-schedule dl > div { gap: .25rem; grid-template-columns: 1fr; }
  .news-detail-contact .btn { width: 100%; }

  /* プライバシーポリシー */
  .privacy-intro { margin-bottom: 1.75rem; }
  .privacy-section + .privacy-section { margin-top: 1.75rem; padding-top: 1.75rem; }
  .privacy-section h3 { font-size: 1.12rem; overflow-wrap: break-word; }
  .privacy-contact { padding: 1rem; }
  .privacy-date { text-align: left; }

  /* サイトマップ */
  .sitemap-grid { grid-template-columns: 1fr; }
  .sitemap-card { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .services-overview.services-reveal-ready .services-reveal-heading,
  .services-overview.services-reveal-ready .services-reveal-card {
    opacity: 1;
    transform: none;
  }
}

/* ===== 404エラーページ ===== */
.error-page { align-items: center; background: var(--color-blue-soft); display: flex; min-height: 38rem; padding: 5rem 0; }
.error-content { margin: 0 auto; max-width: 52rem; text-align: center; }
.error-code { color: var(--color-gold); font-size: clamp(4.5rem, 12vw, 7.5rem); font-weight: 700; letter-spacing: .04em; line-height: 1; margin: 0 0 1rem; }
.error-content h1 { color: var(--color-navy); font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.error-message { margin: 0 auto; max-width: 42rem; }
.error-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.error-actions .btn { min-width: 13rem; }
.error-links { border-top: 1px solid var(--color-border); margin-top: 3rem; padding-top: 2rem; }
.error-links h2 { color: var(--color-navy); font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem; }
.error-links ul { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.error-link-card { align-items: center; background: #fff; border: 1px solid var(--color-border); color: var(--color-navy); display: flex; font-weight: 700; justify-content: center; min-height: 52px; padding: .65rem 1rem; text-decoration: none; }
.error-link-card:hover, .error-link-card:focus-visible { border-color: var(--color-gold); color: var(--color-navy-dark); text-decoration: underline; text-underline-offset: .2rem; }

@media (max-width: 575.98px) {
  .error-page { min-height: 0; padding: 3.5rem 0; }
  .error-code { font-size: 4.5rem; }
  .error-message br { display: none; }
  .error-actions { flex-direction: column; }
  .error-actions .btn { min-width: 0; width: 100%; }
  .error-links { margin-top: 2.5rem; }
  .error-links ul { grid-template-columns: 1fr; }
}

/* ===== 共通コンテンツ画像 ===== */
.content-photo {
  border: 1px solid var(--color-border);
  border-radius: .35rem;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
