/* 全ページ共通ヘッダー（ロゴ／代表者・報酬額／初回相談）
   common.css を読み込まないページ（charitable.html など）でも同じ見た目になるよう、必要な指定をここにまとめる。 */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  box-sizing: border-box;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 1rem 20px;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 1px 18px rgba(31, 47, 63, 0.08);
  backdrop-filter: blur(10px);
}
.site-header .header-logo { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.site-header .logo-sub {
  font-family: 'Noto Sans JP', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; margin-bottom: 2px; color: #8b1f2f !important;
}
.site-header .logo-main {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; color: #1c2331 !important;
}
.site-nav { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.site-nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; min-height: 40px; box-sizing: border-box;
  background: #8b1f2f; border: 1px solid #8b1f2f; color: #fff !important;
  font-family: 'Noto Sans JP', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.05em;
  text-decoration: none; white-space: nowrap;
}
.site-nav-cta:hover { background: #691725; }
/* PC幅（1280px以上）のヘッダーは、公益法人ブログ（koeki.atsumi-hiroyuki.jp）と同じ寸法・配置にする。
   ロゴ画像、メニューの文字の大きさと間隔、相談するボタンの大きさ、影なし。スマホ幅はこれまでどおり */
.site-nav-cta { border-radius: 999px; }
.site-nav-links { display: none; list-style: none; margin: 0; padding: 0; }
.site-header .logo-wordmark { display: none; }
@media (min-width: 1280px) {
  .site-header.site-header { justify-content: flex-start; gap: 0; box-shadow: none !important; }
  .site-header .header-logo.has-wordmark .logo-sub, .site-header .header-logo.has-wordmark .logo-main { display: none; }
  .site-header .logo-wordmark { display: block; width: 250px; height: auto; }
  .site-nav { flex: 1; gap: 0; }
  .site-nav-links { display: flex; gap: 32px; margin-left: 51px; }
  .site-nav-links a {
    display: inline-block; padding: 10px 17px; line-height: 24px;
    font-family: Inter, sans-serif; font-size: 18px; font-weight: 400; letter-spacing: 0;
    color: #09152b !important; text-decoration: none;
  }
  .site-nav-links a:hover { color: #8b1f2f !important; }
  .site-nav .site-menu-btn { display: none; }
  .site-nav .site-nav-cta { font-family: Inter, sans-serif; margin-left: auto; box-sizing: border-box; min-width: 150px; height: 57px; min-height: 0; padding: 0 24px; font-size: 16px; line-height: 1; letter-spacing: 0; }
  .site-header.site-header { padding-top: 24px; padding-bottom: 24px; }
}
.site-nav a:focus-visible { outline: 3px solid #8b1f2f; outline-offset: 4px; }
@media (min-width: 768px) {
  .site-header { padding: 1.5rem 4rem; }
  .site-header .logo-sub { font-size: 11px; }
  .site-header .logo-main { font-size: 16px; }
  .site-nav-cta { padding: 12px 22px; }
}
.site-header .logo-main { white-space: nowrap; }
/* 狭い画面では「行政書士」を省いて事務所名を1行に収める */
.site-header .logo-sub-short { display: none; }
/* 狭い画面：肩書は短い表記で文字を大きく、事務所名は「行政書士」を含めて1行に収める */
@media (max-width: 480px) {
  .site-header .logo-sub-full { display: none; }
  .site-header .logo-sub-short { display: inline; white-space: nowrap; font-size: clamp(8.5px, 2.5vw, 11px); letter-spacing: 0; }
  .site-header .logo-sub { font-size: 11px; letter-spacing: 0.02em; }
  .site-header .logo-main { font-size: 13.5px; letter-spacing: 0; }
}
@media (max-width: 380px) {
  .site-header .logo-main { font-size: 12.5px; }
  .site-menu-btn .site-menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-menu-btn { padding-left: 10px !important; padding-right: 10px !important; }
}
/* 英語の事務所名は長いので、狭い画面では2行に折り返す */
.site-header .logo-main.is-en { white-space: normal; line-height: 1.3; }
@media (max-width: 400px) {
  .site-header .logo-main { font-size: 13px; letter-spacing: 0.02em; }
  .site-nav-cta { padding: 8px 12px; font-size: 12px; }
}
/* LP の右側に固定表示する目次が、ヘッダーに重ならないようにする */
@media (min-width: 1200px) {
  .toc-nav {
    top: calc(50% + var(--legal-header-height, 96px) / 2) !important;
    max-height: calc(100vh - var(--legal-header-height, 96px) - 32px);
    overflow-y: auto;
  }
}
/* 申し込みの入口は、PC はヘッダー右上、スマホは画面下の帯に一本化する */
.floating-cta-right, .floating-cta, .floating-contact-actions, .mobile-bottom-bar { display: none !important; }
.site-mobile-bar { display: none; }
@media (max-width: 767px) {
  .site-nav-cta { display: none; }
  .site-mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: #8b1f2f; color: #fff !important; text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.05em;
    box-shadow: 0 -2px 12px rgba(31, 47, 63, 0.15);
  }
  body:has(.site-mobile-bar) { padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
  .site-mobile-bar.is-off { transform: translateY(110%); visibility: hidden; }
}
/* 固定ヘッダーの下に、ページの最初の要素が隠れたり詰まったりしないようにする */
/* パンくず：ページ先頭に置く場合（.is-top）は、固定ヘッダーの下から始める */
.s-breadcrumb { max-width: 1000px !important; margin: 0 auto !important; padding: 1rem 1.25rem 0 !important; font-size: 0.8rem !important; line-height: 1.6; color: #595959 !important; }
.s-breadcrumb a { color: #595959 !important; text-decoration: underline !important; text-underline-offset: 0.2em; }
.s-breadcrumb.is-top { padding-top: calc(var(--legal-header-height, 111px) + 1rem) !important; }
@media (min-width: 768px) { .s-breadcrumb { padding: 1.25rem 3rem 0 !important; font-size: 0.85rem !important; } .s-breadcrumb.is-top { padding-top: calc(var(--legal-header-height, 111px) + 1.25rem) !important; } }
main > .s-breadcrumb.is-top:first-child + * { margin-top: 0 !important; }
.s-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2em 0; }
.s-breadcrumb li + li::before { content: "＞"; margin: 0 0.5em; color: #767676; }
.s-breadcrumb.in-hero { padding: 0 !important; margin: 0 0 1.25rem !important; max-width: none !important; }
@media (max-width: 767px) {
  .s-breadcrumb li { display: none; }
  .s-breadcrumb li:nth-last-child(2) { display: block; }
  .s-breadcrumb li:nth-last-child(2)::before { content: "‹"; margin: 0 0.4em 0 0; }
}
.s-breadcrumb.is-top + main > :first-child, .s-breadcrumb.is-top + main > section:first-child { margin-top: 0 !important; }
.s-breadcrumb.is-top + main > section.s-section:first-child { padding-top: 2rem !important; }
main > style:first-child + .column-container { margin-top: calc(var(--legal-header-height, 111px) + 32px) !important; }
main > .lp-hero:first-child { padding-top: 48px !important; }
.site-mobile-bar + section.hero { padding-top: calc(var(--legal-header-height, 100px) + 64px) !important; }
@media (min-width: 768px) {
  main > .sanctuary-hero { padding-top: 48px !important; padding-bottom: 48px !important; }
}
/* 公益法人支援のページ間リンク（旧・右側メニューの代わり） */
.koueki-related { margin: 3rem 0 1rem; padding: 1.5rem 1.75rem; background: #fcfbf9; border: 1px solid rgba(191,163,126,0.3); border-radius: 4px; }
.koueki-related h2 { font-size: 1.05rem !important; margin: 0 0 0.75rem !important; text-align: left !important; }
.koueki-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.koueki-related a { color: #8b1f2f; text-decoration: underline; font-size: 0.95rem; }
.koueki-related a[aria-current="page"] { color: #1c2331; text-decoration: none; font-weight: 700; pointer-events: none; }
.koueki-layout { display: block !important; }

/* Shared FAQ accordion */
.site-faq-item{border-bottom:1px solid #d4cec4;background:none;padding:0;margin:0;text-align:left}
:not(.site-faq-item)+.site-faq-item,.site-faq-item:first-child{border-top:1px solid #d4cec4}
.site-faq-item>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:20px 0;font-weight:600;font-size:1rem;line-height:1.7;color:#1f2933;font-family:inherit}
.site-faq-item>summary::-webkit-details-marker{display:none}
.site-faq-item>summary::after{content:'＋';color:#8b1f2f;font-weight:400;flex-shrink:0}
.site-faq-item[open]>summary::after{content:'－'}
.site-faq-a{font-size:.92rem;line-height:1.9;color:#515965;padding:0 0 22px}
.site-faq-a p{margin:0 0 .8em}
.site-faq-a p:last-child{margin-bottom:0}
.site-faq-a a{color:#8b1f2f;text-decoration:underline}

/* Shared step list */
.site-steps{list-style:none;padding:0;margin:2rem auto 0;max-width:800px;text-align:left}
.site-steps>li{display:grid;grid-template-columns:3rem 1fr;column-gap:1rem;padding:1.25rem 0;border-top:1px solid #d4cec4}
.site-steps>li:last-child{border-bottom:1px solid #d4cec4}
.site-steps .site-step-no{grid-row:span 2;color:#8b1f2f;font-family:Georgia,serif;font-size:1.5rem;line-height:1.3}
.site-steps h3{grid-column:2;margin:0 0 .35rem;font-size:1.05rem;font-weight:600;line-height:1.6;color:#1f2933;font-family:inherit}
.site-steps p{grid-column:2;margin:0;font-size:.92rem;line-height:1.8;color:#515965}
.phrase{display:inline-block}

/* メニュー（フッターと同じ全メニュー。スマホでは唯一のナビゲーション） */
.site-menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px;
  background: #fff; border: 1px solid #1c2331; color: #1c2331; cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.05em;
}
.site-menu-btn:hover { border-color: #8b1f2f; color: #8b1f2f; }
.site-menu-btn:focus-visible { outline: 3px solid #8b1f2f; outline-offset: 3px; }
.site-menu-icon, .site-menu-icon::before, .site-menu-icon::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative;
}
.site-menu-icon::before, .site-menu-icon::after { content: ''; position: absolute; left: 0; }
.site-menu-icon::before { top: -5px; }
.site-menu-icon::after { top: 5px; }
.site-header.is-menu-open .site-menu-icon { background: transparent; }
.site-header.is-menu-open .site-menu-icon::before { top: 0; transform: rotate(45deg); }
.site-header.is-menu-open .site-menu-icon::after { top: 0; transform: rotate(-45deg); }
.site-menu-panel {
  position: fixed; left: 0; right: 0; top: 72px; z-index: 101;
  max-height: calc(100dvh - 72px); overflow-y: auto;
  background: #fff; border-top: 1px solid #e1ded8; box-shadow: 0 16px 32px rgba(31, 47, 63, 0.12);
}
.site-menu-panel[hidden] { display: none; }
.site-menu-inner {
  max-width: 1000px; margin: 0 auto; padding: 20px 20px 28px;
  display: grid; grid-template-columns: 1fr; gap: 8px 48px;
}
@media (min-width: 768px) { .site-menu-inner { grid-template-columns: 1fr 1fr; padding: 28px 4rem 36px; } }
.site-menu-title {
  margin: 12px 0 4px; font-family: 'Noto Sans JP', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; color: #6b6b6b;
}
.site-menu-group ul { list-style: none; margin: 0; padding: 0; }
.site-menu-group li { border-bottom: 1px solid #ece8e1; }
.site-menu-group a {
  display: block; padding: 12px 0; color: #1c2331 !important; text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif; font-size: 15px; line-height: 1.5;
}
.site-menu-group a:hover { color: #8b1f2f !important; }
.site-menu-group a:focus-visible { outline: 3px solid #8b1f2f; outline-offset: 2px; }
@media (max-width: 400px) { .site-menu-btn { padding: 8px 10px; } }
/* メニュー名は折り返さない。1280〜1439pxでは間隔を詰めて1行に収める */
@media (min-width: 1280px) { .site-nav-links a { white-space: nowrap; } }
@media (min-width: 1280px) and (max-width: 1439px) { .site-nav-links { gap: 8px; margin-left: 28px; } .site-nav-links a { padding-left: 12px; padding-right: 12px; } }
