/* Top page and public-interest consultation guide. */
.consultation-page, .consultation-guide { color: #1c2331; line-height: 1.75; }
.practice-container { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.practice-section { padding-block: 64px; }
.practice-label { color: #8b1f2f; font-size: .85rem; font-weight: 700; margin: 0 0 16px; letter-spacing: .08em; }
.consultation-page h1, .consultation-page h2, .consultation-page h3, .consultation-guide h2, .consultation-guide h3 { font-family: 'Noto Serif JP', serif; letter-spacing: .035em; }
.consultation-page h1 { font-size: clamp(1.9rem, 3vw, 2.25rem); line-height: 1.6; font-weight: 600; margin: 0 0 24px; }
/* 見出し・ラベルは文節の途中で改行しない（phrase 単位で折り返す） */
.consultation-page .phrase { display: inline-block; }
.consultation-page h1, .consultation-page h2, .practice-lead, .practice-intro, .practice-card > p { word-break: auto-phrase; }
.consultation-page h2, .consultation-guide h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.6; margin: 0 0 24px; font-weight: 600; }
.consultation-page h3, .consultation-guide h3 { font-size: 1.15rem; line-height: 1.7; font-weight: 600; }
.consultation-page p, .consultation-guide p { margin-bottom: 20px; }
.consultation-page a, .consultation-guide a { text-underline-offset: .3em; }
.consultation-page a:focus-visible, .consultation-guide a:focus-visible { outline: 3px solid #8b1f2f; outline-offset: 5px; }
.consultation-page [id], .consultation-guide [id], #requirements, #process { scroll-margin-top: calc(var(--legal-header-height, 100px) + 24px); }
.practice-hero { background: #f2efe9; padding: 64px 0; }
.practice-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.practice-proof { margin: -8px 0 20px; padding-left: 14px; border-left: 3px solid #8b1f2f; font-weight: 700; font-size: 1.02rem; color: #1c2331; line-height: 1.7; }
.practice-lead { font-size: 1rem; color: #424855; line-height: 1.8; text-wrap: pretty; }
.practice-actions { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin-top: 28px; }
.practice-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 15px 24px; background: #8b1f2f; color: #fff !important; border: 1px solid #8b1f2f; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 500; min-height: 52px; }
.practice-button:hover { background: #691725; }
.practice-text-link { display: inline-block; color: #8b1f2f; font-size: .92rem; font-weight: 600; text-decoration: underline; padding-block: 8px; }
.practice-caption { font-size: .8rem; color: #59606a; margin-top: 16px; }
.practice-hero-visual { margin: 0; }
.practice-hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 62%; }
.practice-portrait { margin: 0; background: #fff; }
.practice-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 68% center; }
.practice-portrait figcaption { padding: 16px 24px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.practice-portrait figcaption span { font-size: .75rem; color: #59606a; }
.practice-portrait figcaption strong { font-size: 1.1rem; }
.practice-portrait figcaption a { flex-basis: 100%; color: #8b1f2f; font-size: .8rem; }
.practice-intro { max-width: 760px; color: #555d65; font-size: .95rem; text-wrap: pretty; }
.practice-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.practice-cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.practice-card { padding: 28px 24px; border-top: 3px solid #8b1f2f; background: #fff; display: flex; flex-direction: column; box-shadow: 0 3px 16px #1c233108; }
.practice-card .practice-card-label { font-size: .75rem; color: #626772; margin-bottom: 10px; }
.practice-card h3 { margin: 0 0 20px; }
.practice-card > p:not(.practice-card-label), .practice-card li { font-size: .87rem; text-wrap: pretty; }
.practice-card ul { list-style: disc; padding-left: 1.2em; margin: 0 0 24px; }
.practice-card li + li { margin-top: 8px; }
.practice-card > a { margin-top: auto; }
.practice-card-links { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.practice-other { margin-top: 36px; padding-top: 24px; border-top: 1px solid #d8d4ce; }
.practice-other h3 { margin: 0 0 8px; }
.practice-other p { font-size: .9rem; margin-bottom: 8px; }
.practice-other .practice-actions { margin-top: 0; }
.practice-tint { background: #f0eee9; }
.practice-brand { border-bottom: 1px solid #d8d4ce; }
.practice-profile-photo { display: block; width: 160px; height: 160px; object-fit: cover; object-position: 68% 30%; border-radius: 50%; margin-bottom: 24px; }
.practice-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.practice-profile-grid p { font-size: .95rem; }
.practice-profile-grid .practice-name { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
.practice-name span { font-size: .85rem; margin-left: 12px; font-weight: 400; }
.practice-profile-grid .practice-credential { font-size: .85rem; color: #8b1f2f; }
.practice-evidence { background: #fff; padding: 32px; }
.practice-evidence h3 { margin: 0 0 20px; }
.practice-evidence dl, .practice-engagement dl { margin: 0; }
.practice-evidence dl > div + div, .practice-engagement dl > div + div { border-top: 1px solid #e1ded8; margin-top: 20px; padding-top: 20px; }
.practice-evidence dt, .practice-engagement dt, .practice-service-list dt { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.practice-evidence dd, .practice-engagement dd, .practice-service-list dd { margin: 0; font-size: .88rem; color: #515965; }
.practice-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; list-style: none; padding: 0; margin: 36px 0; }
.practice-steps li { border-top: 1px solid #d4cec4; padding-top: 20px; }
.practice-steps li > span { color: #8b1f2f; font-size: 1.5rem; font-family: Georgia, serif; }
.practice-steps h3 { margin: 10px 0 16px; }
.practice-steps p { font-size: .9rem; color: #515965; }
.practice-note { padding: 20px 24px; background: #f0eee9; font-size: .85rem; }
.practice-note a, .practice-engagement a { color: #8b1f2f; text-decoration: underline; }
.practice-reading { border-top: 1px solid #d4cec4; margin-top: 28px; }
.practice-reading > a { display: grid; grid-template-columns: 140px 1fr 24px; gap: 24px; align-items: baseline; color: #1c2331; border-bottom: 1px solid #d4cec4; padding: 24px 0; text-decoration: none; }
.practice-reading > a:hover strong { text-decoration: underline; }
.practice-reading span { font-size: .85rem; color: #8b1f2f; }
.practice-reading strong { font-size: 1rem; font-weight: 500; }
.practice-faq-list { border-top: 1px solid #d4cec4; margin-top: 28px; max-width: 860px; }
.practice-faq-list details { border-bottom: 1px solid #d4cec4; }
.practice-faq-list 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; }
.practice-faq-list summary::-webkit-details-marker { display: none; }
.practice-faq-list summary::after { content: '＋'; color: #8b1f2f; font-weight: 400; flex-shrink: 0; }
.practice-faq-list details[open] summary::after { content: '－'; }
.practice-faq-list details p { font-size: .92rem; color: #515965; margin: 0 0 22px; }
.practice-faq-list details a { color: #8b1f2f; text-decoration: underline; }
.practice-contact { text-align: center; }
.practice-contact > p:not(.practice-label):not(.practice-caption) { font-size: 1rem; margin-bottom: 28px; }
.consultation-guide { padding: 48px 24px; }
.practice-service-list { display: grid; gap: 28px; margin: 32px 0; }
.practice-service-list article { border-left: 3px solid #8b1f2f; padding: 4px 0 4px 24px; }
.practice-service-list h3 { margin: 0 0 12px; }
.practice-service-list p { font-size: .95rem; }
.practice-service-list dl { margin: 0; }
.practice-service-list dt:not(:first-child) { margin-top: 14px; }
.practice-engagement { margin-top: 36px; padding: 28px; background: #fff; border: 1px solid #ded9d0; }
.practice-engagement h3 { margin: 0 0 24px; }
@media (min-width: 768px) and (max-width: 1100px) {
  .practice-hero-grid { gap: 30px; }
  .practice-cards { gap: 16px; }
  .practice-card { padding: 24px 18px; }
}
@media (max-width: 767px) {
  .practice-container { width: calc(100% - 40px); }
  .practice-section { padding-block: 40px; }
  .practice-hero { padding: 36px 0; }
  .practice-hero-grid, .practice-profile-grid, .practice-cards, .practice-steps { grid-template-columns: 1fr; gap: 28px; }
  .practice-hero-grid { gap: 32px; }
  .practice-hero h1 { font-size: clamp(1.3rem, 5.5vw, 1.85rem); }
  .practice-hero h1 .wide-only { display: initial; }
  .wide-only { display: none; }
  .practice-actions { gap: 12px 20px; }
  .practice-portrait img { aspect-ratio: 4 / 3; }
  .practice-hero-visual { display: none; }
  .practice-card { padding: 24px; }
  .practice-evidence, .practice-engagement { padding: 24px; }
  .practice-reading > a { grid-template-columns: 1fr 24px; gap: 8px; }
  .practice-reading > a > span:first-child { grid-column: 1 / -1; }
  .practice-button { max-width: 100%; }
  .practice-contact h2 { font-size: 1.5rem; }
  .consultation-guide { padding: 40px 20px; }
  .practice-service-list article { padding-left: 16px; }
}
/* コラム一覧：カード全体をリンクにする */
.column-list article { position: relative; }
.column-list h3 a { color: inherit; text-decoration: none; }
.column-list h3 a::after { content: ""; position: absolute; inset: 0; }
.column-list article:hover h3 a, .column-list h3 a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.column-list h3 a:focus-visible { outline: none; }
.column-list article:focus-within { outline: 2px solid #8b1f2f; outline-offset: 4px; }
.column-list .column-more { display: inline-block; margin-top: 4px; font-size: .9rem; font-weight: 600; color: #8b1f2f; }
/* コラム記事 */
.practice-column { max-width: 760px; }
.practice-column-meta { font-size: .82rem; color: #6b717b; margin-bottom: 36px; }
.practice-column h2 { margin-top: 48px; }
.practice-column h3 { margin: 32px 0 10px; }
.practice-column > p { font-size: .98rem; }
.practice-column .practice-actions { margin-top: 40px; }
/* 開閉式のよくある質問（/koueki） */
details.s-faq-item > summary { cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
details.s-faq-item > summary::-webkit-details-marker { display: none; }
details.s-faq-item > summary::after { content: '＋'; position: absolute; right: 0; top: 0; color: #8b1f2f; font-weight: 400; }
details.s-faq-item[open] > summary::after { content: '－'; }
details.s-faq-item[open] > .s-faq-a { margin-top: 1rem; }
@media (min-width: 900px) {
  .practice-service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}
.practice-column ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1.4em; font-size: .98rem; line-height: 1.9; color: #3d4450; }
.practice-column ul li { margin-bottom: .2em; }
.practice-column .column-refs { font-size: .88rem; }
.practice-column .column-refs a { color: #8b1f2f; text-decoration: underline; }
.practice-column blockquote { margin: 0 0 1.2em; padding: .8rem 1.1rem; border-left: 3px solid #8b1f2f; background: #fff; color: #3d4450; font-size: .95rem; line-height: 1.9; }
/* コラム冒頭の「この記事の要点」 */
.practice-column .column-summary { margin: 0 0 2.2em; padding: 1.2rem 1.5rem; background: #fff; border: 1px solid rgba(139,31,47,0.25); border-radius: 4px; }
.practice-column .column-summary p { margin: 0 0 .4em; font-weight: 700; font-size: .95rem; color: #8b1f2f; }
.practice-column .column-summary ul { margin: 0; }
.practice-column table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .92rem; line-height: 1.7; }
.practice-column th, .practice-column td { border: 1px solid #d9d3c8; padding: .55rem .7rem; text-align: left; vertical-align: top; }
.practice-column thead th { background: #f4f1ec; }
.practice-column .table-scroll { overflow-x: auto; }
.practice-column tbody th { white-space: nowrap; }
/* トップのコラム欄：前の「主な相談分野」と区切る */
.home-column { border-top: 1px solid #d4cec4; }

/* トップページ：最初の画面の「お任せいただけること」と、状況別の「任せられること／得られること」 */
.home-proof-sub { display: block; margin-top: 4px; font-size: .88rem; font-weight: 500; color: #515965; }
.home-tasks-title { margin: 8px 0 8px; font-size: .85rem; font-weight: 700; color: #8b1f2f; letter-spacing: .06em; }
.home-tasks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.home-tasks li { position: relative; padding-left: 26px; font-size: .95rem; font-weight: 600; color: #1c2331; }
.home-tasks li::before { content: ''; position: absolute; left: 4px; top: .5em; width: 11px; height: 6px; border-left: 2px solid #8b1f2f; border-bottom: 2px solid #8b1f2f; transform: rotate(-45deg); }
.home-offer dl { margin: 0 0 20px; }
.home-offer dt { font-size: .78rem; font-weight: 700; color: #8b1f2f; letter-spacing: .04em; margin-top: 14px; }
.home-offer dt:first-child { margin-top: 0; }
.home-offer dd { margin: 4px 0 0; font-size: .87rem; color: #424855; text-wrap: pretty; }
.home-first { margin-top: 40px; border-top: 3px solid #8b1f2f; }
.home-first p { font-size: .9rem; color: #515965; margin: 20px 0; }
/* トップページ：実績の数字の帯 */
.home-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 40px 0 0; padding-top: 28px; border-top: 1px solid #d4cec4; }
.home-facts > div { padding: 0 28px; border-left: 1px solid #d4cec4; }
.home-facts > div:first-child { padding-left: 0; border-left: 0; }
.home-facts dt { font-family: 'Noto Serif JP', serif; font-size: 2.3rem; line-height: 1.2; font-weight: 600; color: #8b1f2f; letter-spacing: .02em; }
.home-facts dt small { font-size: .45em; margin-left: .25em; font-weight: 600; letter-spacing: .06em; }
.home-facts dd { margin: 8px 0 0; font-size: .85rem; line-height: 1.6; color: #424855; }
/* トップページ：業務カードの目印 */
.home-offer-icon { width: 32px; height: 32px; color: #8b1f2f; margin-bottom: 16px; flex-shrink: 0; }
@media (max-width: 767px) {
  .home-facts { grid-template-columns: 1fr; margin-top: 32px; padding-top: 8px; }
  .home-facts > div { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-left: 0; border-top: 1px solid #e1ded8; }
  .home-facts > div:first-child { border-top: 0; }
  .home-facts dt { font-size: 1.55rem; }
  .home-facts dd { margin: 0; }
}
/* 背景色つきの区画が続くときは、境目に線を引く */
.consultation-page .practice-tint + .practice-tint { border-top: 1px solid #ddd6cb; }
/* カード5枚：PC幅は上段3枚・下段2枚を横幅いっぱいに並べる */
.practice-cards--five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.practice-cards--five > * { grid-column: span 2; }
.practice-cards--five > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1100px) {
  .practice-cards--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-cards--five > *, .practice-cards--five > :nth-child(n+4) { grid-column: auto; }
  .practice-cards--five > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .practice-cards--five { grid-template-columns: 1fr; }
  .practice-cards--five > :last-child { grid-column: auto; }
}
/* トップの写真：正方形の枠で、代表が中央に来るように合わせる */
.home-hero-photo img { object-position: 81% 40%; }
/* 肩書きの下の説明も、文節の途中で折り返さない */
.home-proof-sub { word-break: auto-phrase; }
/* 運営支援顧問：プランの比較表 */
.plan-table-wrap { overflow-x: auto; margin-top: 24px; background: #fff; }
.plan-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9rem; line-height: 1.6; }
.plan-table th, .plan-table td { padding: 14px 16px; border-bottom: 1px solid #e1ded8; text-align: center; vertical-align: middle; }
.plan-table thead th { background: #8b1f2f; color: #fff; font-weight: 600; letter-spacing: .04em; }
.plan-table thead th:first-child { background: #fff; }
.plan-table tbody th { text-align: left; font-weight: 600; color: #1c2331; white-space: nowrap; background: #faf8f4; }
.plan-table td.plan-price { font-family: 'Noto Serif JP', serif; font-size: 1.15rem; font-weight: 600; color: #8b1f2f; }
.plan-notes { font-size: .88rem; color: #515965; margin: 16px 0 0; padding-left: 1.2em; list-style: disc; }
.plan-notes li { margin-bottom: 6px; line-height: 1.7; }
.plan-why { margin: 20px 0 0; }
.plan-why + .plan-why { margin-top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) { .plan-table th, .plan-table td { padding: 10px 8px; font-size: .82rem; } .plan-table td.plan-price { font-size: 1rem; } }
@media (max-width: 767px) {
  .plan-table { min-width: 0; table-layout: fixed; }
  .plan-table thead th:first-child, .plan-table tbody th { width: 26%; }
  .plan-table tbody th { white-space: normal; font-size: .78rem; }
  .plan-table th, .plan-table td { padding: 10px 6px; font-size: .78rem; }
  .plan-table td.plan-price { font-size: .92rem; }
  .plan-table thead th { font-size: .78rem; letter-spacing: 0; }
}

/* トップ：写真を横幅いっぱいに敷き、見出しとボタンだけを重ねる */
.home-hero { padding: 0 0 56px; }
.home-hero-photo { position: relative; min-height: clamp(520px, 72vh, 680px); display: flex; align-items: center; overflow: hidden; background: #3a2c24; }
.home-hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.home-hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(22,18,16,.82) 0%, rgba(22,18,16,.66) 40%, rgba(22,18,16,.12) 68%, rgba(22,18,16,0) 100%); }
.home-hero-overlay { position: relative; z-index: 2; padding-block: 56px; }
.home-hero-overlay h1 { color: #fff; max-width: 15em; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.home-hero .home-hero-overlay .practice-proof { color: #fff; border-left-color: #d9a3ad; max-width: 26em; margin: 0 0 28px; }
.home-hero-overlay .practice-button { background: #8b1f2f; border-color: #b4505f; }
.home-hero-body { padding-top: 32px; }
.home-hero-body .practice-lead { margin: 0; }
.home-hero-overlay .practice-caption { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.home-hero-overlay .practice-caption .practice-text-link { font-size: .88rem; color: #fff; text-decoration-color: #d9a3ad; }
@media (max-width: 767px) {
  .home-hero { padding: 0 0 32px; }
  .home-hero-photo { min-height: min(125vw, 640px); align-items: flex-end; }
  .home-hero-photo > img { object-position: 30% 50%; }
  .home-hero-photo::before { background: linear-gradient(0deg, rgba(22,18,16,.9) 0%, rgba(22,18,16,.8) 50%, rgba(22,18,16,.62) 75%, rgba(22,18,16,.55) 100%); }
  .home-hero-overlay { padding-block: 24px 28px; }
  .home-hero-overlay .practice-button { width: 100%; }
  .home-hero-body { padding-top: 24px; }
}

/* 定期提出書類セルフチェックキットへの案内枠 */
.kit-band { margin: 40px 0 0; padding: 24px 28px; background: #fff; border: 1px solid #d4cec4; border-left: 4px solid #8b1f2f; }
.kit-band p { margin: 0 0 8px; }
.kit-band-label { color: #8b1f2f; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.kit-band-title { font-family: 'Noto Serif JP', serif; font-size: 1.15rem; font-weight: 600; }
.kit-band p:not([class]) { font-size: .92rem; color: #424855; }
@media (max-width: 767px) { .kit-band { padding: 20px; } }

.home-diff { margin: 32px 0 0; padding: 22px 26px; background: #fff; border: 1px solid #d4cec4; border-left: 4px solid #8b1f2f; }
.home-diff-title { margin: 0 0 10px; font-weight: 700; color: var(--text); }
.home-diff ul { margin: 0; padding-left: 1.2rem; list-style: disc; line-height: 1.9; }
.home-diff li + li { margin-top: 4px; }
@media (max-width: 767px) { .home-diff { padding: 18px 18px; } }
