/* 下層ページ共通。/seminar/ の文字組み・余白・緑を基準にする。 */
body.oji-subpage {
  --oji-brown: #403322;
  --oji-ink: #1f1f1f;
  --oji-muted: #4a4a46;
  --oji-green: #00a455;
  --oji-deep: #0b6b3a;
  --oji-pale: #eef7f1;
  --oji-paper: #fbfaf7;
  --oji-line: #dcdcd6;
  --oji-green-line: #bfe5cf;
  --oji-title: 44px;
  --oji-heading: 30px;
  --oji-section: 88px;
  margin: 0;
  background: #fff;
  color: var(--oji-ink);
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 17px;
  line-height: 2;
}
.oji-subpage *, .oji-subpage *::before, .oji-subpage *::after { box-sizing: border-box; }
.oji-subpage main { overflow-wrap: anywhere; }
.oji-subpage main :where(h1,h2,h3,h4) { color: var(--oji-brown); line-height: 1.5; font-weight: 700; }
.oji-subpage main :where(h1) { font-size: var(--oji-title); line-height: 1.35; letter-spacing: .02em; }
.oji-subpage main :where(h2) { font-size: var(--oji-heading); }
.oji-subpage main :where(h3) { font-size: 22px; }
.oji-subpage main :where(a) { color: var(--oji-deep); text-underline-offset: .2em; }
.oji-subpage :focus-visible { outline: 3px solid var(--oji-deep); outline-offset: 4px; }
.oji-subpage main :where(img) { max-width: 100%; height: auto; }
.oji-subpage main :where(iframe) { max-width: 100%; }
.oji-subpage main :where(input,textarea,button,select) { font: inherit; }
.oji-subpage main :where([id]) { scroll-margin-top: 100px; }
.oji-subpage .page-shell { max-width: 1080px; margin: 0 auto; padding: 64px 24px 88px; }
.oji-subpage .page-title { margin: 0 0 48px; padding-bottom: 32px; border-bottom: 1px solid var(--oji-green-line); }
.oji-subpage .page-list { display: grid; gap: 0; border-top: 2px solid var(--oji-brown); }
.oji-subpage .list-card { display: flex; align-items: flex-start; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--oji-line); color: var(--oji-ink); text-decoration: none; }
.oji-subpage .list-card:hover { background: var(--oji-paper); }
.oji-subpage .list-card > div { min-width: 0; }
.oji-subpage .list-card h2 { margin: 0 0 8px; font-size: 22px; }
.oji-subpage .list-card p { margin: 0; color: var(--oji-muted); font-size: 16px; line-height: 1.9; }
.oji-subpage .list-icon { flex-shrink: 0; width: 52px; height: 52px; background: var(--oji-pale); border-radius: 6px; text-align: center; font-size: 28px; }
.oji-subpage .list-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; color: var(--oji-muted); }
.oji-subpage .list-category { padding: 2px 10px; background: var(--oji-pale); color: var(--oji-deep); font-size: 13px; font-weight: 700; border-radius: 4px; }
.oji-subpage .list-order { color: var(--oji-deep); font-weight: 700; flex-shrink: 0; }
.oji-subpage .list-title { font-size: 19px; font-weight: 700; }
.oji-subpage .news-date { flex: 0 0 150px; color: var(--oji-muted); font-size: 15px; }
.oji-subpage .case-card { display: block; }
/* 長文は一行を広げすぎず、記事と旧固定ページで同じ文字組みにする。 */
.oji-subpage .article { max-width: 888px; margin: 0 auto; padding: 64px 24px 88px; }
.oji-subpage .article__header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--oji-green-line); }
.oji-subpage .article__icon { display: block; font-size: 40px; margin-bottom: 16px; }
.oji-subpage .article__title { margin: 0 0 24px; }
.oji-subpage .article__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--oji-muted); }
.oji-subpage .article__meta time { display: flex; align-items: center; gap: 6px; }
.oji-subpage .article__body h2 { margin: 64px 0 24px; padding: 0 0 16px; border-bottom: 1px solid var(--oji-green-line); }
.oji-subpage .article__body h3 { margin: 40px 0 16px; }
.oji-subpage .article__body h4 { font-size: 19px; margin: 32px 0 12px; }
.oji-subpage .article__body p, .oji-subpage .legacy-content p { margin: 0 0 24px; line-height: 2; }
.oji-subpage .article__body :where(ul,ol), .oji-subpage .legacy-content :where(ul,ol) { margin: 0 0 24px; padding-left: 1.5em; }
.oji-subpage .article__body li { margin-bottom: 8px; }
.oji-subpage .article__body img { border-radius: 6px; margin: 24px 0; }
.oji-subpage .article__body blockquote { margin: 32px 0; padding: 24px; border-left: 4px solid var(--oji-green); background: var(--oji-pale); }
.oji-subpage .article__body blockquote p:last-child { margin-bottom: 0; }
.oji-subpage .article__body pre { overflow-x: auto; padding: 24px; border-radius: 6px; }
.oji-subpage .article__body table, .oji-subpage .legacy-content table, .oji-subpage .achv-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.oji-subpage .article__body :where(th,td), .oji-subpage .legacy-content :where(th,td), .oji-subpage .achv-table :where(th,td) { padding: 16px; text-align: left; vertical-align: top; border: 1px solid var(--oji-line); }
.oji-subpage .article__body th, .oji-subpage .legacy-content th, .oji-subpage .achv-table th { background: var(--oji-pale); color: var(--oji-brown); }
.oji-subpage .article__author { display: flex; align-items: center; gap: 20px; margin-top: 64px; padding: 24px; background: var(--oji-paper); border: 1px solid var(--oji-line); border-radius: 6px; }
.oji-subpage .article__author-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.oji-subpage .article__author-name { margin: 0; font-weight: 700; }
.oji-subpage .article__author-bio { margin: 4px 0 0; color: var(--oji-muted); font-size: 14px; }
.oji-subpage .table-scroll { overflow-x: auto; max-width: 100%; }
/* 旧WordPressのブロック構造を保持するための小さな互換レイアウト。 */
.oji-subpage .legacy-content { max-width: 1080px; margin: auto; padding: 64px 24px 88px; }
.oji-subpage .legacy-content :where(.c-container,.smb-container__body,.smb-section__contents-wrapper) { max-width: 100%; margin-inline: auto; }
.oji-subpage .legacy-content .smb-section { margin: 0 0 64px; }
.oji-subpage .legacy-content .smb-section__header { margin-bottom: 32px; }
.oji-subpage .legacy-content h2 { margin: 48px 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--oji-green-line); background: transparent; }
.oji-subpage .legacy-content h3 { margin: 40px 0 20px; }
.oji-subpage .legacy-content :where(figure) { margin: 24px 0; }
.oji-subpage .legacy-content .company-table td:first-child { width: 24%; background: var(--oji-pale); font-weight: 700; }
.oji-subpage .legacy-content .three-promise .c-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.oji-subpage .legacy-content .smb-panels__item { height: 100%; border: 1px solid var(--oji-green-line); border-radius: 6px; padding: 24px; }
.oji-subpage .legacy-content .smb-panels__item__figure { text-align: center; }
.oji-subpage .legacy-content .smb-panels__item__figure img { max-height: 120px; width: auto; }
.oji-subpage .legacy-content .smb-panels__item__title { font-size: 22px; margin-top: 16px; }
.oji-subpage .legacy-content .smb-media-text .c-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 40px; align-items: start; }
.oji-subpage .legacy-content .smb-media-text .c-row--reverse { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
.oji-subpage .legacy-content .smb-media-text__figure img { border-radius: 6px; }
.oji-subpage .legacy-content .wp-block-columns { display: flex; gap: 32px; }
.oji-subpage .legacy-content .wp-block-column { flex: 1; min-width: 0; }
.oji-subpage .legacy-content .has-text-align-center { text-align: center; }
.oji-subpage .legacy-content .has-text-align-right { text-align: right; }
.oji-subpage .legacy-content .has-accent-color-color { color: var(--oji-deep); }
.oji-subpage .legacy-content .has-background { padding: 24px; background: var(--oji-pale); }
.oji-subpage .legacy-content h2.has-background { padding: 0 0 16px; background: transparent; }
.oji-subpage .office-links { margin-bottom: 48px; }
.oji-subpage .office-links__item { padding: 24px; border-color: var(--oji-green-line); border-radius: 6px; color: var(--oji-ink); }
.oji-subpage .office-links__item strong { color: var(--oji-deep); }
.oji-subpage .office-links__item > span { font-size: 16px; }
/* 実績ページ */
.oji-subpage .achv-hero { padding: 64px 24px 56px; background: #fff; color: var(--oji-ink); border-bottom: 1px solid var(--oji-green-line); text-align: left; }
.oji-subpage .achv-hero > * { max-width: 1032px; margin-inline: auto; }
.oji-subpage .achv-hero__sub { color: var(--oji-deep); opacity: 1; }
.oji-subpage .achv-hero__title { font-size: var(--oji-title); }
.oji-subpage .achv-hero__lead { font-size: 18px; color: var(--oji-muted); }
.oji-subpage .achv-numbers { padding: 48px 24px; background: var(--oji-pale); border: 0; }
.oji-subpage .achv-numbers__inner { max-width: 1032px; }
.oji-subpage .achv-numbers__value { color: var(--oji-deep); }
.oji-subpage .achv-numbers__label { color: var(--oji-muted); font-size: 15px; }
.oji-subpage .achv-section { padding: var(--oji-section) 24px; }
.oji-subpage .achv-section--alt { background: var(--oji-paper); }
.oji-subpage .achv-section__inner { max-width: 1032px; }
.oji-subpage .achv-section__title { font-size: var(--oji-heading); align-items: baseline; margin-bottom: 32px; }
.oji-subpage .achv-section__num { color: var(--oji-deep); background: none; border-radius: 0; font-size: 15px; width: auto; height: auto; }
.oji-subpage .achv-section__summary, .oji-subpage .achv-list li { font-size: 17px; }
.oji-subpage .achv-section__subtitle { font-size: 22px; margin-top: 32px; }
.oji-subpage .achv-section__note { font-size: 15px; color: var(--oji-muted); }
.oji-subpage .achv-section__note a { color: var(--oji-deep); }
.oji-subpage .achv-cta { padding: 64px 24px; background: var(--oji-pale); }
.oji-subpage .achv-cta__btn, .oji-subpage .thanks-link, .oji-subpage .form-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 30px; border: 0; border-radius: 6px; background: var(--oji-deep); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: none; }
/* お問い合わせ（レビュー時の送信停止条件はページ側に保持） */
.oji-subpage .contact-page { max-width: 888px; padding: 64px 24px 88px; }
.oji-subpage .contact-hero { text-align: left; padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--oji-green-line); }
.oji-subpage .contact-hero h1, .oji-subpage .contact-thanks h1 { font-size: var(--oji-title); color: var(--oji-brown); margin: 0 0 24px; }
.oji-subpage .contact-hero p { font-size: 17px; line-height: 2; color: var(--oji-muted); }
.oji-subpage .contact-inner > [role='status'] { padding: 24px; border: 1px solid var(--oji-green-line); border-radius: 6px; background: var(--oji-pale); }
.oji-subpage .form-group label { font-size: 17px; }
.oji-subpage .form-group input, .oji-subpage .form-group textarea { border-radius: 6px; background: #fff; border-color: var(--oji-line); }
.oji-subpage .form-group input:focus, .oji-subpage .form-group textarea:focus { outline: 2px solid var(--oji-deep); outline-offset: 2px; }
.oji-subpage .form-note { background: var(--oji-paper); font-size: 16px; border-radius: 6px; }
.oji-subpage .contact-other { padding-top: 40px; border-color: var(--oji-green-line); }
.oji-subpage .contact-other h3, .oji-subpage .contact-hours { font-size: 15px; color: var(--oji-muted); }
.oji-subpage .contact-tel { color: var(--oji-deep); }
.oji-subpage .contact-thanks { padding: 24px 0; }
@media (max-width: 900px) {
  body.oji-subpage { --oji-title: 32px; --oji-heading: 25px; --oji-section: 60px; font-size: 16px; }
  .oji-subpage .page-shell, .oji-subpage .article, .oji-subpage .legacy-content, .oji-subpage .contact-page { padding-top: 40px; padding-bottom: 60px; }
  .oji-subpage .page-title { margin-bottom: 32px; padding-bottom: 24px; }
  .oji-subpage .article__header { margin-bottom: 32px; }
  .oji-subpage .list-card { gap: 16px; padding: 24px 0; }
  .oji-subpage .list-card h2 { font-size: 20px; }
  .oji-subpage .article__body table { display: block; overflow-x: auto; }
  .oji-subpage .legacy-content .three-promise .c-row, .oji-subpage .legacy-content .smb-media-text .c-row { grid-template-columns: 1fr; gap: 24px; }
  .oji-subpage .legacy-content .wp-block-columns { flex-direction: column; }
  .oji-subpage .achv-hero { padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 600px) {
  .oji-subpage .news-card { flex-direction: column; gap: 8px; }
  .oji-subpage .news-date { flex: auto; }
  .oji-subpage .list-icon { width: 36px; height: 40px; font-size: 22px; }
  .oji-subpage .list-meta { gap: 8px; }
  .oji-subpage .article__author { padding: 20px; gap: 16px; align-items: flex-start; }
  .oji-subpage .article__author-avatar { width: 48px; height: 48px; }
  .oji-subpage .achv-cta__btn, .oji-subpage .thanks-link { width: 100%; }
  .oji-subpage .legacy-content :where(th,td), .oji-subpage .achv-table :where(th,td) { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .oji-subpage *, .oji-subpage *::before, .oji-subpage *::after { scroll-behavior: auto; transition: none; animation: none; } }
