/* Detail-page anchor offsets, reading, and touch layout. */
.unified-header-page :is(#comparison-table-heading, #pricing-matrix-heading, #codex-capabilities-title) { scroll-margin-top: 120px; }
.pricing-matrix-heading__mobile,
.pricing-matrix-mobile,
.pricing-explain-heading__mobile,
.pricing-comparison-mobile { display: none; }
@media (max-width: 1279px) {
  .unified-header-page :is(#comparison-table-heading, #pricing-matrix-heading, #codex-capabilities-title) { scroll-margin-top: 96px; }
}

@media (max-width: 767px) {
  .unified-header-page {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .unified-header__inner {
    padding-right: 12px;
    padding-left: 16px;
  }

  .unified-header__brand { font-size: 20px; font-weight: 800; }

  .unified-header__toggle {
    width: 44px;
    height: 44px;
    margin-right: 0;
    touch-action: manipulation;
  }

  .unified-header__toggle span { width: 24px; }
  .unified-header__nav a { min-height: 52px; }
  .unified-header__button { min-height: 52px; }

  .unified-header-page :is(.lp-page, .main) {
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: break-word;
  }

  .unified-header-page :is(.lp-page, .main) p {
    font-size: 16px;
    line-height: 1.8;
  }

  .unified-header-page :is(.lp-page, .main) h2 {
    font-size: clamp(25px, 6.8vw, 30px);
    line-height: 1.5;
    letter-spacing: -0.025em;
  }

  .unified-header-page :is(.lp-page, .main) h3 {
    font-size: 21px;
    line-height: 1.5;
  }

  .unified-header-page :is(.lp-page, .main) h4 {
    font-size: 18px;
    line-height: 1.5;
  }

  .unified-header-page :is(.shared-code-hero, .codex-hero) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    height: auto;
    min-height: 330px;
    padding: 36px 20px;
  }

  .unified-header-page :is(.shared-code-hero, .codex-hero)::before {
    background: linear-gradient(90deg, rgb(255 255 255 / 95%), rgb(255 255 255 / 65%));
  }

  .unified-header-page :is(.shared-code-hero__copy, .codex-hero__copy) {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 480px;
    padding: 0;
    margin: 0 auto;
    transform: none;
  }

  .unified-header-page :is(.shared-code-hero__eyebrow, .codex-hero__eyebrow) {
    font-size: 14px;
    line-height: 1.7;
  }

  .unified-header-page :is(.shared-code-hero__title, .codex-hero__title) {
    margin-top: 8px;
    font-size: clamp(32px, 8.8vw, 42px);
    line-height: 1.35;
  }

  .unified-header-page :is(.shared-code-hero__description, .codex-hero__description) {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.85;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .unified-header-page :is(.shared-code-hero__description, .codex-hero__description) span {
    display: inline;
    word-break: normal;
  }

  .unified-header-page .secondary-hero-workstage {
    display: none;
  }

  .unified-header-page .site-reveal-card,
  .unified-header-page [data-roadmap-sequence].has-sequence-motion .course-roadmap-day__card > * {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .unified-header-page :is(.course-insights__header > p:first-child,
    .course-flow-coded__eyebrow, .usecase-coded-heading > p,
    .usecase-support-results > header > p, .usecase-results-copy > .eyebrow) {
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0.08em;
  }

  .unified-header-page :is(.course-insights__note, .pricing-matrix-note,
    .training-plan-eligibility__note, .contact-consultation__security) {
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
  }

  /* Course content uses the full reading width instead of compressed columns. */
  .unified-header-page .course-insights__list--four-column .course-insight-point__copy > p {
    font-size: 16px;
    line-height: 1.85;
  }

  .unified-header-page .course-insights__list--four-column .course-insight-point__copy h3 {
    font-size: 22px;
    line-height: 1.5;
  }

  .unified-header-page .course-insight-point { padding: 22px 18px; }
  .unified-header-page .course-insight-chart { margin-top: 20px; }
  .unified-header-page .course-chart-detail h4 { font-size: 15px; }
  .unified-header-page .course-chart-detail :is(li, p) { font-size: 14px; line-height: 1.7; }
  .unified-header-page .course-operation-feedback { font-size: 13px; }

  .unified-header-page .course-roadmap { padding: 44px 20px 48px; }
  .unified-header-page .course-roadmap__intro h2 { font-size: clamp(26px, 6.7vw, 34px); line-height: 1.5; letter-spacing: -.035em; }
  .unified-header-page .course-roadmap__intro > p { margin-top: 18px; font-size: 16px; line-height: 1.8; }
  .unified-header-page .course-roadmap__track { gap: 36px; margin-top: 36px; }
  .unified-header-page .course-roadmap-day { padding-left: 42px; }
  .unified-header-page .course-roadmap-day__badge { margin-bottom: 6px; font-size: 18px; }
  .unified-header-page .course-roadmap-day__card h3 { font-size: 22px; line-height: 1.5; }
  .unified-header-page .course-roadmap-day__card > p { font-size: 16px; line-height: 1.8; }
  .unified-header-page .course-roadmap-day__card ul { gap: 12px; margin-top: 18px; }
  .unified-header-page .course-roadmap-day__card li { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; font-size: 16px; line-height: 1.6; }
  .unified-header-page .course-roadmap-day__card li svg { width: 28px; height: 28px; }

  .unified-header-page .course-flow-section { padding: 44px 0 48px; }
  .unified-header-page .course-flow-coded { padding: 0 20px; gap: 28px; }
  .unified-header-page .course-flow-coded__heading::before { width: 52px; height: 4px; margin-bottom: 18px; }
  .unified-header-page .course-flow-coded__heading h2 { font-size: 34px; line-height: 1.4; }
  .unified-header-page .course-flow-coded__heading > p { margin-top: 16px; font-size: 16px; line-height: 1.8; }
  .unified-header-page .course-flow-coded__heading br { display: none; }
  .unified-header-page .course-flow-coded__step { padding-left: 44px; }
  .unified-header-page .course-flow-coded__step:not(:last-child)::before { top: 41px; bottom: -41px; left: 15px; }
  .unified-header-page .course-flow-coded__number { top: 26px; width: 30px; height: 30px; font-size: 18px; }
  .unified-header-page .course-flow-coded__card { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; min-height: 0; padding: 24px 0; }
  .unified-header-page .course-flow-coded__step:first-child .course-flow-coded__card { padding-top: 24px; }
  .unified-header-page .course-flow-coded__icon { grid-row: 1; grid-column: 1; width: 48px; height: 48px; padding: 7px; }
  .unified-header-page .course-flow-coded__copy { display: contents; }
  .unified-header-page .course-flow-coded__copy h3 { grid-row: 1; grid-column: 2; font-size: 21px; line-height: 1.5; }
  .unified-header-page .course-flow-coded__copy > p { grid-row: 2; grid-column: 1 / -1; margin: 0; font-size: 16px; line-height: 1.8; }
  .unified-header-page .course-flow-coded__estimate { grid-row: 3; grid-column: 1 / -1; justify-self: start; gap: 10px; margin-top: 2px; padding: 0; border: 0; }
  .unified-header-page .course-flow-coded__estimate .course-flow-coded__clock { width: 28px; height: 28px; }
  .unified-header-page .course-flow-coded__estimate > span { padding: 8px 14px; border-radius: 14px; }
  .unified-header-page .course-flow-coded__estimate small { font-size: 13px; }
  .unified-header-page .course-flow-coded__estimate strong { font-size: 17px; line-height: 1.5; }
  .unified-header-page .course-flow-coded__support { padding: 24px 20px; }
  .unified-header-page .course-flow-coded__supportLead { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .unified-header-page .course-flow-coded__supportMark { width: 42px; height: 42px; }
  .unified-header-page .course-flow-coded__supportLead h3 { font-size: 22px; line-height: 1.5; }
  .unified-header-page .course-flow-coded__support > p { margin-top: 16px; font-size: 16px; line-height: 1.8; }
  .unified-header-page .course-flow-coded__support ul { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; }
  .unified-header-page .course-flow-coded__support li { grid-template-columns: 56px minmax(0, 1fr); align-content: center; gap: 16px; min-height: 106px; padding: 20px 0; }
  .unified-header-page .course-flow-coded__support li:last-child { padding-bottom: 0; }
  .unified-header-page .course-flow-coded__supportIcon { width: 56px; height: 56px; padding: 9px; }
  .unified-header-page .course-flow-coded__support li strong { font-size: 19px; line-height: 1.5; }
  .unified-header-page .course-flow-coded__support li small { font-size: 16px; line-height: 1.7; }

  .unified-header-page .course-plan-step { width: 100%; padding: 22px 18px; }
  .unified-header-page .course-plan-step-content { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .unified-header-page .course-plan-step-visual img { height: 130px; }
  .unified-header-page .course-plan-step-details { padding: 18px; }
  .unified-header-page .course-plan-step-details li { font-size: 15px; line-height: 1.8; }
  .unified-header-page .course-plan-step-details h4 { font-size: 17px; }
  .unified-header-page .course-support-strip { grid-template-columns: 1fr; }
  .unified-header-page .course-support-strip li { grid-column: 1; }
  .unified-header-page .course-support-strip strong { font-size: 16px; }
  .unified-header-page .course-support-strip small { font-size: 14px; }

  /* Keep comparison tables readable; scroll only the comparison itself. */
  .unified-header-page :is(.pricing-comparison-table-wrap, .codex-compare-table-wrap, .codex-difference-table-wrap) {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .unified-header-page :is(.pricing-matrix-heading, .pricing-explain-heading)::after {
    display: block;
    margin-top: 18px;
    color: #315d9a;
    font-size: 13px;
    font-weight: 700;
    content: "左右にスワイプして比較できます →";
  }

  .unified-header-page .pricing-matrix-section { padding: 44px 16px; }
  .unified-header-page .pricing-matrix-frame { min-width: 900px; }
  .unified-header-page .pricing-matrix-table__label-column { width: 138px; }
  .unified-header-page .pricing-matrix-table :is(th, td) { padding: 16px 14px; font-size: 15px; line-height: 1.7; }
  .unified-header-page .pricing-matrix-table tbody td { text-wrap: balance; }
  .unified-header-page .pricing-matrix-row-label { gap: 8px; font-size: 14px; white-space: normal; }
  .unified-header-page .pricing-matrix-row-label span { white-space: normal; }
  .unified-header-page .pricing-matrix-row-label svg { width: 24px; height: 24px; flex-basis: 24px; }
  .unified-header-page .pricing-matrix-cta { min-height: 48px; font-size: 15px; white-space: normal; }
  .unified-header-page .pricing-matrix-heading { margin-bottom: 18px; }
  .unified-header-page .pricing-matrix-heading__desktop { display: none; }
  .unified-header-page .pricing-matrix-heading__mobile { display: inline; }
  .unified-header-page .pricing-matrix-section.is-mobile-ready .pricing-matrix-heading p,
  .unified-header-page .pricing-matrix-section.is-mobile-ready .pricing-matrix-heading::after,
  .unified-header-page .pricing-matrix-section.is-mobile-ready .pricing-matrix-scroll { display: none; }
  .unified-header-page .pricing-matrix-section.is-mobile-ready .pricing-matrix-mobile {
    display: block;
    max-width: 560px;
    margin: 0 auto;
    font-family: "Noto Sans JP", system-ui, sans-serif;
  }
  .unified-header-page .pricing-matrix-mobile__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .unified-header-page .pricing-matrix-mobile__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 82px;
    padding: 8px 3px;
    border: 1px solid #c9e1fb;
    border-radius: 7px;
    background: #fff;
    color: #0e2340;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
  }
  .unified-header-page .pricing-matrix-mobile__tab[aria-pressed="true"] {
    border: 2px solid #0769df;
    background: #f4f9ff;
    color: #075ed1;
    box-shadow: 0 4px 10px rgb(8 91 202 / 9%);
  }
  .unified-header-page .pricing-matrix-mobile__tab:focus-visible {
    outline: 3px solid #092b50;
    outline-offset: 3px;
  }
  .unified-header-page .pricing-matrix-mobile__tab-name {
    font-size: clamp(12px, 3.6vw, 17px);
    font-weight: 900;
    line-height: 1.3;
    white-space: nowrap;
  }
  .unified-header-page .pricing-matrix-mobile__tab .pricing-matrix-price { color: inherit; }
  .unified-header-page .pricing-matrix-mobile__tab .pricing-matrix-price--consult { color: #0868db; }
  .unified-header-page .pricing-matrix-mobile__tab .pricing-matrix-price strong {
    font-size: clamp(27px, 8vw, 34px);
    letter-spacing: -.05em;
  }
  .unified-header-page .pricing-matrix-mobile__tab .pricing-matrix-price strong small { font-size: .48em; }
  .unified-header-page .pricing-matrix-mobile__tab .pricing-matrix-price > span { font-size: clamp(11px, 3vw, 13px); }
  .unified-header-page .pricing-matrix-mobile__tab .pricing-matrix-price--consult strong { font-size: clamp(20px, 6vw, 26px); }
  .unified-header-page .pricing-matrix-mobile__detail {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #c4def9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgb(24 82 150 / 6%);
  }
  .unified-header-page .pricing-matrix-mobile__head {
    padding: 15px 14px 14px;
    border-bottom: 1px solid #d8e7f8;
  }
  .unified-header-page .pricing-matrix-mobile__title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
  .unified-header-page .pricing-matrix-mobile__head .pricing-matrix-plan-name {
    color: #0868db;
    font-size: clamp(22px, 6.5vw, 29px);
    line-height: 1.25;
  }
  .unified-header-page .pricing-matrix-mobile__head .pricing-matrix-recommend {
    position: static;
    min-height: 0;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.25;
  }
  .unified-header-page .pricing-matrix-mobile__head .pricing-matrix-plan-lead {
    margin-top: 7px;
    font-size: clamp(13px, 3.7vw, 15px);
  }
  .unified-header-page .pricing-matrix-mobile__row {
    display: grid;
    grid-template-columns: 29% minmax(0, 1fr);
    align-items: stretch;
    min-height: 59px;
    padding: 9px 10px;
    border-bottom: 1px solid #d8e7f8;
  }
  .unified-header-page .pricing-matrix-mobile__row .pricing-matrix-row-label {
    gap: 8px;
    align-self: center;
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.4;
    white-space: normal;
  }
  .unified-header-page .pricing-matrix-mobile__row .pricing-matrix-row-label svg {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  .unified-header-page .pricing-matrix-mobile__value {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-left: 10px;
    border-left: 1px solid #d8e7f8;
    color: #11233d;
    font-size: clamp(13px, 3.8vw, 16px);
    font-weight: 750;
    line-height: 1.55;
    text-align: left;
    text-wrap: pretty;
  }
  .unified-header-page .pricing-matrix-mobile__value .pricing-matrix-targets { gap: 5px; }
  .unified-header-page .pricing-matrix-mobile__value .pricing-matrix-targets li {
    padding-left: 22px;
    font-size: clamp(11.5px, 3.2vw, 13px);
    line-height: 1.45;
  }
  .unified-header-page .pricing-matrix-mobile__value .pricing-matrix-targets li::before { width: 16px; height: 16px; }
  .unified-header-page .pricing-matrix-mobile__value .pricing-matrix-text-link {
    margin: 5px 0 0;
    font-size: clamp(12px, 3.4vw, 14px);
    text-align: left;
  }
  .unified-header-page .pricing-matrix-mobile__action { padding: 12px; }
  .unified-header-page .pricing-matrix-mobile__cta {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 52px;
    padding: 11px 34px;
    border-radius: 6px;
    background: linear-gradient(100deg, #0a68df, #0760d6);
    color: #fff;
    font-size: clamp(15px, 4.4vw, 18px);
    font-weight: 850;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
  }
  .unified-header-page .pricing-matrix-mobile__cta::after { position: absolute; right: 14px; content: "→"; font-size: 1.2em; }
  .unified-header-page .pricing-matrix-mobile__cta:focus-visible { outline: 3px solid #092b50; outline-offset: 3px; }
  .unified-header-page .pricing-comparison-table { min-width: 810px; }
  .unified-header-page .pricing-comparison-table :is(th, td) { height: auto; padding: 16px 12px; font-size: 15px; line-height: 1.7; }
  .unified-header-page .pricing-comparison-table thead th:first-child { width: 144px; font-size: 14px; }
  .unified-header-page .pricing-comparison-table thead th:not(:first-child) { width: 222px; }
  .unified-header-page .pricing-comparison-table thead th:first-child {
    position: sticky;
    z-index: 3;
    left: 0;
    background: #f5f9ff;
  }
  .unified-header-page .pricing-comparison-table tbody th {
    position: sticky;
    z-index: 2;
    left: 0;
    background: #f5f9ff;
    box-shadow: 5px 0 12px rgb(23 62 103 / 6%);
    font-size: 14px;
    white-space: normal;
  }
  .unified-header-page .pricing-comparison-table tbody th svg { width: 18px; height: 18px; }
  .unified-header-page .pricing-comparison-table__plan { margin-bottom: 8px; font-size: 17px; }
  .unified-header-page .pricing-comparison-table thead strong { font-size: 16px; }
  .unified-header-page .pricing-comparison-table__recommend { font-size: 12px; }
  .unified-header-page .pricing-comparison-check { width: 22px; height: 22px; font-size: 14px; }

  .unified-header-page .pricing-explain-section { padding: 26px 16px 48px; }
  .unified-header-page .pricing-explain-heading { padding: 0; margin-bottom: 15px; }
  .unified-header-page .pricing-explain-heading__desktop { display: none; }
  .unified-header-page .pricing-explain-heading__mobile { display: inline; }
  .unified-header-page .pricing-explain-heading h2 { font-size: clamp(27px, 7.5vw, 34px); line-height: 1.3; }
  .unified-header-page .pricing-explain-heading h2::after { display: none; }
  .unified-header-page .pricing-explain-heading p {
    margin-top: 6px;
    color: #65758c;
    font-size: clamp(13px, 3.6vw, 15px);
    font-weight: 600;
    line-height: 1.55;
  }
  .unified-header-page .pricing-explain-section.is-mobile-ready .pricing-explain-heading::after,
  .unified-header-page .pricing-explain-section.is-mobile-ready .pricing-comparison-table-wrap { display: none; }
  .unified-header-page .pricing-explain-section.is-mobile-ready .pricing-comparison-mobile {
    display: block;
    max-width: 560px;
    margin: 0 auto;
    font-family: "Noto Sans JP", system-ui, sans-serif;
  }
  .unified-header-page .pricing-comparison-mobile__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 12px;
  }
  .unified-header-page .pricing-comparison-mobile__tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 65px;
    padding: 9px 3px 7px;
    border: 1px solid #c9ddf8;
    border-radius: 5px;
    background: #fff;
    color: #112544;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
  }
  .unified-header-page .pricing-comparison-mobile__tab[aria-pressed="true"] {
    border: 2px solid #0c70e7;
    background: #f5faff;
  }
  .unified-header-page .pricing-comparison-mobile__tab:focus-visible { outline: 3px solid #092b50; outline-offset: 3px; }
  .unified-header-page .pricing-comparison-mobile__tab .pricing-comparison-table__plan {
    margin: 0 0 5px;
    font-size: clamp(12px, 3.7vw, 16px);
    line-height: 1.3;
    white-space: nowrap;
  }
  .unified-header-page .pricing-comparison-mobile__tab strong {
    font-size: clamp(12px, 3.6vw, 15px);
    font-weight: 850;
    line-height: 1.3;
    white-space: nowrap;
  }
  .unified-header-page .pricing-comparison-mobile__tab .pricing-comparison-table__recommend {
    top: -11px;
    min-width: 76px;
    padding: 3px 10px;
    font-size: 11px;
  }
  .unified-header-page .pricing-comparison-mobile__common {
    margin-top: 10px;
    padding: 13px 12px 12px;
    border-radius: 7px;
    background: #eff6fd;
  }
  .unified-header-page .pricing-comparison-mobile__common h3 {
    margin: 0 0 9px;
    color: #0e2647;
    font-size: clamp(15px, 4.2vw, 18px);
    font-weight: 850;
    line-height: 1.4;
  }
  .unified-header-page .pricing-comparison-mobile__common ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
  .unified-header-page .pricing-comparison-mobile__common li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #112544;
    font-size: clamp(12px, 3.6vw, 15px);
    font-weight: 700;
    line-height: 1.45;
  }
  .unified-header-page .pricing-comparison-mobile__check {
    display: grid;
    flex: 0 0 21px;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #35bbc4;
    box-shadow: 0 4px 10px rgb(53 187 196 / 16%);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
  }
  .unified-header-page .pricing-comparison-mobile__detail { margin-top: 10px; }
  .unified-header-page .pricing-comparison-mobile__table {
    width: 100%;
    border: 1px solid #d3e3f6;
    border-collapse: collapse;
    color: #102544;
    table-layout: fixed;
  }
  .unified-header-page .pricing-comparison-mobile__table :is(th, td) {
    width: 50%;
    height: 34px;
    padding: 7px 9px;
    border: 1px solid #d3e3f6;
    font-size: clamp(11px, 3.25vw, 14px);
    font-weight: 750;
    line-height: 1.45;
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
  }
  .unified-header-page .pricing-comparison-mobile__table thead th {
    background: #f0f7ff;
    font-size: clamp(13px, 3.8vw, 16px);
    font-weight: 850;
  }
  .unified-header-page .pricing-comparison-mobile__table thead th:last-child { color: #07878e; text-align: center; }
  .unified-header-page .pricing-comparison-mobile__nowrap { white-space: nowrap; }
  .unified-header-page .pricing-comparison-mobile__table .pricing-comparison-check {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
  .unified-header-page .pricing-comparison-mobile__note {
    margin: 5px 0 0;
    color: #68788f;
    font-size: 12px;
    line-height: 1.5;
  }

  .unified-header-page .pr-mb__plan li { font-size: 15px; line-height: 1.75; }
  .unified-header-page .pr-mb__try { min-height: 44px; font-size: 14px; }
  .unified-header-page .pr-foot p { font-size: 13px; line-height: 1.7; }
  .unified-header-page .pr-sheet__close,
  .unified-header-page .pr-sim__stepper button { width: 44px; height: 44px; }
  .unified-header-page .pr-sim__seg button { min-height: 44px; font-size: 15px; }

  /* Restore live text where the original mobile layout used a shrunken image. */
  .codex-detail-page .codex-field-guide__block--capabilities { padding: 42px 0 48px; }
  .codex-detail-page .codex-field-guide__block--capabilities .codex-field-guide__sectionHeading {
    display: block;
    margin-bottom: 25px;
  }
  .codex-detail-page .codex-field-guide__block--capabilities .codex-field-guide__sectionHeading h3 {
    font-size: clamp(25px, 6.7vw, 32px);
  }
  .codex-detail-page .codex-field-guide__block--capabilities .codex-field-guide__sectionHeading h3::after {
    width: 42px;
    height: 4px;
    margin-top: 13px;
  }
  .codex-detail-page .codex-field-guide__block--capabilities .codex-capability-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    max-width: 560px;
  }
  .codex-detail-page .codex-field-guide__block--capabilities .codex-capability-card {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 128px;
    padding: 9px;
    border: 1px solid #d6e6fb;
    border-radius: 11px;
    box-shadow: 0 7px 20px rgb(37 88 155 / 6%);
  }
  .codex-detail-page .codex-field-guide__block--capabilities .codex-capability-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 741 / 484;
    margin: 0;
    object-fit: cover;
    border-radius: 7px;
  }
  .codex-detail-page .codex-capability-card__copy { min-width: 0; }
  .codex-detail-page .codex-field-guide__block--capabilities .codex-capability-card h4 {
    display: block;
    min-height: 0;
    margin: 0;
    font-size: clamp(12px, 3.45vw, 16px);
    line-height: 1.4;
  }
  .codex-detail-page .codex-field-guide__block--capabilities .codex-capability-card p {
    margin: 8px 0 0;
    font-size: clamp(12px, 3.3vw, 14px);
    line-height: 1.6;
  }
  .codex-detail-page .codex-overview-code { gap: 42px; padding: 36px 0 46px; }
  .codex-detail-page .codex-overview-code__group { width: 100%; max-width: 560px; margin: 0 auto; }
  .codex-detail-page .codex-overview-code__heading { margin-bottom: 20px; }
  .codex-detail-page .codex-overview-code__heading > div { display: block; }
  .codex-detail-page .codex-overview-code__heading span { display: none; }
  .codex-detail-page .codex-overview-code__heading h3 { font-size: clamp(25px, 6.8vw, 32px); line-height: 1.35; }
  .codex-detail-page .codex-overview-code__heading p {
    max-width: 460px;
    margin: 9px auto 0;
    padding: 0 12px;
    font-size: clamp(13px, 3.5vw, 15px);
    line-height: 1.6;
  }
  .codex-detail-page .codex-overview-code__steps { grid-template-columns: 1fr; gap: 10px; }
  .codex-detail-page .codex-overview-code__steps > li {
    display: grid;
    grid-template-columns: clamp(78px, 26vw, 112px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 12px;
    min-height: 116px;
    padding: 12px 13px;
    border-radius: 10px;
  }
  .codex-detail-page .codex-overview-code__steps > li:not(:last-child)::after { display: none; }
  .codex-detail-page .codex-overview-code__steps header {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
  }
  .codex-detail-page .codex-overview-code__steps header span {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .codex-detail-page .codex-overview-code__steps h4 {
    font-size: clamp(15px, 4.1vw, 20px);
    line-height: 1.3;
  }
  .codex-detail-page .codex-overview-code__steps h4 small {
    display: inline;
    margin: 0 0 0 7px;
    font-size: clamp(10px, 2.8vw, 12px);
    white-space: nowrap;
  }
  .codex-detail-page .codex-overview-code__steps > li > div { display: contents; }
  .codex-detail-page .codex-overview-code__steps img {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 100%;
    height: 88px;
    object-fit: contain;
  }
  .codex-detail-page .codex-overview-code__steps p {
    grid-column: 2;
    grid-row: 2;
    margin-top: 7px;
    font-size: clamp(12px, 3.4vw, 14px);
    line-height: 1.55;
  }
  .codex-detail-page .codex-overview-code__surfaces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .codex-detail-page .codex-overview-code__surfaces article {
    min-height: 230px;
    padding: 13px 9px 15px;
    border-radius: 10px;
  }
  .codex-detail-page .codex-overview-code__surfaces h4 {
    font-size: clamp(12px, 3.8vw, 17px);
    line-height: 1.35;
  }
  .codex-detail-page .codex-overview-code__surfaces img {
    height: 92px;
    margin: 8px auto 9px;
  }
  .codex-detail-page .codex-overview-code__surfaces ul { gap: 6px; margin-top: auto; }
  .codex-detail-page .codex-overview-code__surfaces li {
    padding-left: 20px;
    font-size: clamp(11px, 3.2vw, 13px);
    line-height: 1.5;
  }
  .codex-detail-page .codex-overview-code__surfaces li::before {
    top: .1em;
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  .codex-detail-page .codex-field-guide__sectionHeading { display: block; }
  .codex-detail-page .codex-field-guide__sectionHeading > span { display: none; }
  .codex-detail-page .codex-impact-grid article { padding: 22px 18px; }
  .codex-detail-page :is(.codex-compare-table, .codex-difference-table) :is(th, td) { padding: 16px 14px; font-size: 15px; line-height: 1.7; }
  .codex-detail-page :is(.codex-compare-table, .codex-difference-table) tr > :first-child {
    position: sticky;
    z-index: 2;
    left: 0;
    min-width: 112px;
    background: #eef5ff;
    box-shadow: 4px 0 10px rgb(23 62 103 / 6%);
  }
  .codex-detail-page :is(.codex-compare-table-wrap, .codex-difference-table-wrap)::before {
    position: sticky;
    left: 0;
    display: block;
    width: max-content;
    padding: 10px 0;
    color: #315d9a;
    font-size: 13px;
    font-weight: 700;
    content: "左右にスワイプして比較できます →";
  }

  .unified-header-page :is(.codex-tool-comparison__intro, .codex-acceleration__reference, .course-choice-reference)::before {
    position: sticky;
    left: 0;
    display: block;
    width: max-content;
    padding: 10px 12px;
    color: #315d9a;
    font-size: 13px;
    font-weight: 700;
    content: "左右にスワイプして図をご覧いただけます →";
  }

  /* Case descriptions and form controls keep a comfortable reading/tap size. */
  .unified-header-page .usecase-task-card { grid-template-columns: 70px minmax(0, 1fr); gap: 16px; padding: 22px 18px; }
  .unified-header-page .usecase-task-card__icon { width: 70px; height: 70px; }
  .unified-header-page .usecase-task-card__copy h3 { font-size: 20px; }
  .unified-header-page .usecase-task-card__copy p { grid-column: 1 / -1; }
  .unified-header-page .usecase-task-dialog__close { width: 44px; height: 44px; }
  .unified-header-page .usecase-task-dialog__summary { font-size: 16px; line-height: 1.8; }
  .unified-header-page .usecase-task-dialog__details li { font-size: 15px; line-height: 1.8; }
  .unified-header-page .usecase-contact-band__item b { min-height: 48px; font-size: 16px; }
  .unified-header-page .usecase-contact-band__item small { font-size: 14px; line-height: 1.7; }

  .unified-header-page .contact-consultation { padding: 40px 16px; }
  .unified-header-page .contact-consultation__heading { text-align: left; }
  .unified-header-page .contact-step { padding: 22px 16px; }
  .unified-header-page .contact-step__heading { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .unified-header-page .contact-step__icon { width: 44px; height: 44px; }
  .unified-header-page .contact-step__heading h3 { font-size: 20px; }
  .unified-header-page .contact-step__heading p { font-size: 14px; }
  .unified-header-page .contact-purpose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .unified-header-page .contact-purpose-option > span {
    flex-direction: column;
    gap: 8px;
    min-height: 92px;
    padding: 14px 8px;
  }
  .unified-header-page .contact-purpose-option strong { font-size: 16px; }
  .unified-header-page .contact-information-grid { gap: 22px; }
  .unified-header-page .contact-field > span { font-size: 16px; }
  .unified-header-page .contact-field input { min-height: 52px; font-size: 16px; }
  .unified-header-page .contact-consent { align-items: flex-start; min-height: 48px; padding: 12px 0; }
  .unified-header-page .contact-consent input { width: 22px; height: 22px; flex: 0 0 22px; }
  .unified-header-page .contact-consent span { font-size: 15px; line-height: 1.8; }
  .unified-header-page .contact-consultation__submit { min-height: 60px; height: auto; padding: 16px; font-size: 16px; line-height: 1.6; }
  .unified-header-page .contact-consultation__submit svg { flex-shrink: 0; }

  /* The news list and its related links become ordinary, readable content. */
  .unified-header-page .news-board-image-section { padding: 32px 16px 44px; }
  .unified-header-page .news-board-image-section > h2.visually-hidden {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 24px;
    padding: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    text-wrap: balance;
    line-break: strict;
  }
  .unified-header-page .news-board-image-wrap,
  .unified-header-page .news-board-image-frame {
    width: 100%;
    min-width: 0;
    overflow: visible;
  }
  .unified-header-page .news-board-image-frame { display: grid; gap: 12px; }
  .unified-header-page .news-board-image,
  .unified-header-page .news-image-hotspot[href^="#"] { display: none; }
  .unified-header-page .news-live-board {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    padding: 20px 16px;
    overflow: visible;
  }
  .unified-header-page .news-live-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }
  .unified-header-page .news-live-tab { min-height: 44px; gap: 6px; font-size: 14px; padding: 8px; }
  .unified-header-page .news-live-tab:first-child { grid-column: 1 / -1; }
  .unified-header-page .news-live-list,
  .unified-header-page .news-live-board.is-expanded .news-live-list { height: auto; overflow: visible; padding: 0; }
  .unified-header-page .news-live-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px 8px;
    padding: 20px 0;
  }
  .unified-header-page .news-live-row[hidden],
  .unified-header-page .news-live-more[hidden] { display: none; }
  .unified-header-page .news-live-icon { grid-row: 1; width: 36px; height: 44px; }
  .unified-header-page .news-live-icon svg { width: 30px; height: 30px; }
  .unified-header-page .news-live-copy { grid-column: 2 / -1; }
  .unified-header-page .news-live-copy strong { font-size: 16px; line-height: 1.65; }
  .unified-header-page .news-live-copy small { font-size: 14px; line-height: 1.7; }
  .unified-header-page .news-live-badge { grid-column: 2; justify-self: start; min-width: 0; padding: 7px 8px; font-size: 12px; }
  .unified-header-page .news-live-row time { grid-column: 3; font-size: 12px; }
  .unified-header-page .news-live-row i { display: none; }
  .unified-header-page .news-live-more { min-height: 48px; margin-top: 20px; font-size: 16px; }
  .unified-header-page .news-image-hotspot:not([href^="#"]) {
    position: static;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    height: auto;
    padding: 16px;
    color: #145bbb;
    background: #f0f6ff;
    border: 1px solid #d5e5fa;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
  }
  .unified-header-page .news-image-hotspot:not([href^="#"])::after {
    content: attr(aria-label) " →";
  }
  .unified-header-page .news-detail-close { width: 44px; height: 44px; }
  .unified-header-page .news-detail-card { max-height: calc(100dvh - 32px); padding: 28px 20px; overflow-y: auto; }
  .unified-header-page .news-detail-card h3 { padding-right: 32px; }
  .unified-header-page .news-detail-card li { font-size: 15px; line-height: 1.8; }

  .unified-header-page .footer__inner { padding-right: 20px; padding-left: 20px; }
  .codex-detail-page .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .unified-header-page .footer__copyright { font-size: 12px; line-height: 1.7; }
  .unified-header-page .footer__links { font-size: 13px; line-height: 2.4; }
  .unified-header-page .footer__link { display: inline-block; padding: 6px 2px; }
}

@media (max-width: 359px) {
  .unified-header-page .pricing-matrix-mobile__row .pricing-matrix-row-label { gap: 6px; font-size: 11px; }
  .unified-header-page .pricing-matrix-mobile__row .pricing-matrix-row-label svg {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
}
