/* 公式サイト共通の枠（ヘッダー・PC/スマホメニュー・フッター・固定CTA）。/price から切り出した */
.oc-page {
  --ink: #0d0d0d;
  --red: #fa2d25;
  --line: #cfcfcf;
  background: #e9e9e9;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  min-height: 100vh;
  padding-top: 72px;
  letter-spacing: 0;
}
.oc-chrome :is(h1,h2,h3,p) {
  margin: 0;
}
.oc-chrome a {
  text-decoration: none;
  color: inherit;
}
.oc-chrome img {
  display: block;
  max-width: 100%;
}
.oc-chrome :is(a,summary):focus-visible {
  outline: 3px solid #5369f1;
  outline-offset: 4px;
}
.oc-main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.oc-mobileHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  inset: 0 0 auto;
  height: 72px;
  padding: 0 15px;
  background: #fff;
  z-index: 20;
}
.oc-mobileHeader img {
  width: 130px;
  height: auto;
}
.oc-mobileHeader > div {
  display: flex;
  align-items: center;
  gap: 24px;
}
.oc-mobileHeader .oc-headerRequest {
  display: grid;
  place-items: center;
  width: 120px;
  height: 40px;
  border: 1px solid #fe2f18;
  border-radius: 1px;
  color: #e60012;
  font-size: 14px;
  font-weight: 500;
}
.oc-menuToggle {
  border: 0;
  padding: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  display: grid;
  align-content: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}
.oc-menuToggle span {
  height: 3px;
  background: var(--ink);
}
.oc-mobileMenu {
  position: fixed;
  inset: 0;
  margin: 0;
  border: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: auto;
  background: #fff;
  color: var(--ink);
}
body:has(.oc-mobileMenu[open]) {
  overflow: hidden;
}
.oc-menuHeader {
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 16px 24px;
  margin-bottom: 32px;
}
.oc-mobileMenu .oc-menuHeader img {
  width: 136px;
  height: 48px;
  object-fit: contain;
}
.oc-menuClose {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d91c16;
  color: #fff;
  font: 36px/1 Arial, sans-serif;
  cursor: pointer;
}
.oc-menuColumns {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 20px 30px;
}
.oc-menuColumn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}
.oc-mobileMenu .oc-menuHeading {
  border-left: 6px solid #d91c16;
  padding-left: 8px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
}
.oc-menuCourses,.oc-menuCourseLinks {
  display: grid;
  gap: 10px;
}
.oc-menuCourseLinks {
  gap: 8px;
}
.oc-menuCourseLinks a {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
}
.oc-menuCourseLinks span {
  width: 24px;
  font-size: 24px;
  line-height: 1;
  text-align: center;
}
.oc-menuSoukenLead {
  align-self: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}
@media (min-width: 541px) {
  .oc-menuHeader { padding: 16px 48px; margin-bottom: 40px; }
  .oc-menuColumns { flex-direction: row; justify-content: center; gap: 48px; }
}
@media (max-width: 374px) {
  .oc-mobileMenu .oc-menuHeading { font-size: 18px; }
}
.oc-desktopHeader {
  display: none;
}
.oc-stickyConsult {
  position: fixed;
  inset: auto 0 0;
  z-index: 19;
  background: rgb(255 255 255 / 80%);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}
.oc-stickyConsult a,.oc-stickyConsult picture {
  display: flex;
  justify-content: center;
  width: 100%;
}
.oc-stickyConsult img {
  width: 90%;
  height: auto;
  aspect-ratio: 828 / 262;
  object-fit: contain;
}
@media (max-width: 599px) {
  .oc-page .oc-footer {
    padding-bottom: max(150px, calc(48px + 31.7vw + env(safe-area-inset-bottom)));
  }
}
@media (min-width: 600px) and (max-width: 840px) {
  .oc-stickyConsult {
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  }
  .oc-stickyConsult img {
    aspect-ratio: 1520 / 262;
  }
  .oc-page .oc-footer {
    padding-bottom: max(140px, calc(32px + 15.6vw + env(safe-area-inset-bottom)));
  }
}
.oc-footer a {
  transition: color 200ms ease;
}
.oc-mobileMenu nav a {
  transition: transform 200ms ease;
}
@media (hover: hover) {
  .oc-page .oc-footer a:not(.oc-footerActions a):hover {
    color: #c02924;
  }
  .oc-mobileMenu nav a:hover {
    transform: translateX(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .oc-footer a,.oc-mobileMenu nav a {
    transition: none;
  }
}
.oc-footer {
  display: flex;
  flex-direction: column;
  gap: 52px;
  padding: 64px 5% 102px;
  background: #fff;
}
.oc-footerContact {
  display: grid;
  gap: 24px;
}
.oc-footer h2 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.4;
}
.oc-footer p,.oc-footer a {
  font-size: 16px;
  line-height: 1.4;
}
.oc-footer nav {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.oc-socialLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 700;
}
.oc-socialLinks a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 6px 2px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
}
.oc-socialLinks img {
  width: 18px;
  height: auto;
}
.oc-footer .oc-phone {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.oc-footerActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}
.oc-footerActions a {
  border: 2px solid #fe2f18;
  border-radius: 2px;
  color: #fe2f18;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  text-align: center;
  font-weight: 700;
}
.oc-footerActions a + a {
  background: #fe2f18;
  color: #fff;
}
.oc-footer .oc-footerNav {
  gap: 20px;
  margin-top: 0;
}
.oc-footerColumn > a, .oc-footerColumn > div > :first-child {
  border-left: 3px solid #fe2f18;
  padding-left: 4px;
  font-size: 16px;
  font-weight: 700;
}
.oc-footerColumn {
  display: grid;
  align-content: start;
  gap: 20px;
}
.oc-footerColumn > div {
  display: grid;
  gap: 8px;
}
.oc-footerColumn > div > a:not(:first-child) {
  padding-left: 7px;
  font-size: 16px;
}
.oc-footer .oc-legalLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 0;
}
.oc-footer .oc-legalLinks a {
  font-size: 12px;
  font-weight: 400;
}
.oc-footerLegal {
  display: grid;
  gap: 12px;
}
.oc-footer .oc-copyright {
  text-align: center;
  font-size: 10px;
  font-weight: 400;
}
@media (min-width: 531px) {
  .oc-page {
    padding-top: 84px;
    background: #fa2d25 url("oc/bg.webp") center / cover fixed;
  }
  .oc-main {
    width: 540px;
    max-width: 100%;
    background: #e9e9e9;
    box-shadow: 0 0 45px rgb(0 0 0 / 15%);
  }
  .oc-mobileHeader { height: 84px; padding: 0 24px; }
  .oc-mobileHeader img { width: 160px; }
  .oc-mobileHeader .oc-headerRequest { display: none; }
  .oc-mobileMenu nav { top: 84px; max-height: calc(100dvh - 84px); }
  .oc-footer { padding-top: 96px; padding-bottom: 32px; }
  .oc-footer .oc-footerNav { order: -1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; margin-bottom: 24px; }
  .oc-footerColumn { gap: 24px; }
  .oc-footerColumn > div { gap: 12px; }
  .oc-footerContact { gap: 28px; }
  .oc-socialLinks { flex-direction: column; align-items: flex-start; }
  .oc-footerActions { grid-template-columns: minmax(0,240px); }
  .oc-footer .oc-phone { font-size: 20px; }
  .oc-footerLegal { gap: 24px; }
  .oc-footer .oc-copyright { font-size: 12px; }
}
@media (max-width: 374px) {
  .oc-mobileHeader img { width: 90px; }
}
@media (min-width: 841px) {
  .oc-stickyConsult { display: none; }
  .oc-footer h2 { font-size: 40px; }
  .oc-socialLinks { flex-direction: row; gap: 20px; }
  .oc-footerActions { grid-template-columns: minmax(0,280px); }
  .oc-footerActions a { font-size: 20px; }
}
/* PC（992px以上）はトップと同じ横並びメニューのヘッダーにし、本文を画面幅いっぱいに使う（2026-10-23 國生さん指示）。 */
@media (min-width: 992px) {
  .oc-page {
    --official-header-height: 84px;
    padding-top: var(--official-header-height);
    background: #e9e9e9;
  }
  .oc-mobileHeader { display: none; }
  .oc-main {
    width: 100%;
    max-width: none;
    background: transparent;
    box-shadow: none;
  }
  .oc-desktopHeader {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--official-header-height);
    padding-inline: 40px;
    background: #fff;
    border-bottom: 1px solid rgb(8 15 51 / 8%);
  }
  .oc-desktopLogo { flex: 0 0 auto; }
  .oc-desktopLogo img { display: block; width: 160px; height: auto; }
  .oc-desktopHeaderNav { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
  .oc-desktopHeaderNav a { display: block; padding-block: 10px; color: #080f33; }
  .oc-desktopHeaderCourses { position: relative; }
  .oc-desktopHeaderCourses > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 2px 3px 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
  .oc-desktopHeaderCourseMenu { position: absolute; top: 100%; left: 50%; display: none; min-width: 220px; padding: 8px 0; border: 1px solid rgb(8 15 51 / 12%); border-radius: 4px; background: #fff; box-shadow: 0 8px 24px rgb(8 15 51 / 12%); transform: translateX(-50%); }
  .oc-desktopHeaderCourseMenu a { padding: 10px 20px; font-weight: 500; }
  .oc-desktopHeaderCourses:is(:hover,:focus-within) .oc-desktopHeaderCourseMenu { display: block; }
  .oc-desktopHeaderActions { display: flex; flex-shrink: 0; gap: 12px; }
  /* 値はトップ（_components/home/home.oc-module.oc-css の .oc-headerActions）と同じ。行の高さ1.7でボタン高さ45pxにそろう */
  .oc-desktopHeaderActions a { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 8px 20px; border: 1px solid #d91c16; color: #d91c16; font-size: 14px; font-weight: 700; line-height: 1.7; white-space: nowrap; }
  .oc-page .oc-desktopHeaderActions .oc-desktopHeaderConsult { background: #d91c16; color: #fff; }
  /* フッターはトップと同じく、左に連絡先・右に2列のメニューを中央の最大幅で並べる。 */
  .oc-page .oc-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    column-gap: 80px;
    row-gap: 56px;
    padding: 96px max(40px, calc((100% - 1120px) / 2)) 40px;
  }
  .oc-footerContact { grid-column: 1; grid-row: 1; align-content: start; }
  .oc-footer .oc-footerNav { grid-column: 2; grid-row: 1; order: 0; margin-bottom: 0; }
  .oc-footerLegal { grid-column: 1 / -1; }
  .oc-footer h2 { white-space: nowrap; font-size: clamp(32px, 2.8vw, 40px); }
}
/* 992〜1279pxは1行に収まらないため、ロゴとボタンの下の2段目にメニューを並べる。 */
@media (min-width: 992px) and (max-width: 1279px) {
  .oc-page { --official-header-height: 120px; }
  .oc-desktopHeader { flex-wrap: wrap; align-content: center; row-gap: 2px; }
  .oc-desktopLogo { order: 1; }
  .oc-desktopHeaderActions { order: 2; gap: 24px; margin-left: auto; }
  .oc-desktopHeaderActions a { min-width: 200px; font-size: 16px; }
  .oc-desktopHeaderNav { order: 3; justify-content: center; gap: 24px; width: 100%; margin-left: 0; border-top: 1px solid rgb(8 15 51 / 8%); }
  .oc-desktopHeaderNav a { padding-block: 8px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .oc-desktopHeader { padding-inline: 24px; gap: 16px; }
  .oc-desktopHeaderNav { gap: 10px; }
}
@media (min-width: 1600px) {
  .oc-desktopHeaderNav { gap: clamp(18px, 1.6vw, 28px); font-size: 14px; }
  .oc-desktopHeaderActions a { min-width: 160px; font-size: 16px; }
}
@media (hover: hover) {
  .oc-page .oc-desktopHeaderNav a:hover { color: #d91c16; }
  .oc-page .oc-desktopHeaderActions a:hover { opacity: .8; }
}

/* 見本用の追加：記事本文は従来の書体・白背景のまま */
.oc-main{container:ocmain/inline-size}
.oc-page .art{background:#fff;font:400 16px/1.85 -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#18263c}
.oc-page aside{top:calc(var(--official-header-height,84px) + 16px)}
.oc-chrome a:hover{text-decoration:none}
.oc-footer nav{padding:0}
html{scroll-padding-top:88px!important}@media(min-width:992px){html{scroll-padding-top:104px!important}}@media(min-width:992px) and (max-width:1279px){html{scroll-padding-top:140px!important}}
.sample-bar{background:#fff8d6;border:1px solid #e3d48a;font:500 14px/1.7 "Noto Sans JP",sans-serif;color:#3b3412;padding:10px 16px}
.sample-bar .wrap{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.sample-bar a{color:#174fc6;font-weight:700}
.sample-bar a[aria-current]{color:#3b3412;text-decoration:none;background:#fff;border:1px solid #c9b965;border-radius:4px;padding:0 6px}
