/*
 * 買取蔵人 モック共通デザイン基盤（2026-08-17）
 * トップで確定した公式ロゴ・配色・ゴシック組版を下層ページへ展開する。
 * 各HTMLのページ固有CSSより後に読み込み、共通仕様を最終確定する。
 */
@import url("brand-official-20260815.css?v=3");
@import url("site-action-texture-20260817.css?v=1");

:root {
  --r2-navy: #112e56;
  --r2-deep: #0e3d72;
  --r2-blue: #1658a0;
  --r2-sky: #1e8fc9;
  --r2-ink: #132c49;
  --r2-copy: #24313f;
  --r2-line: #d8e5f1;
  --r2-pale: #f3f8fc;
  --r2-font: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

html body {
  color: var(--r2-ink);
  font-family: var(--r2-font);
  background: #fff;
}

html body :where(h1, h2, h3, h4, h5, h6),
html body :where(.contact-h1, .process-title, .process-count strong, .process-number strong, .sec-head, .case-brand-panel strong, .voice-company strong, .voice-q .qmark, .demo-band .db-title, .contact-band .cb-title, .ind-name, .demo-apply-h, .cta-box-title, .fch-index, .ofe-number) {
  font-family: var(--r2-font) !important;
}

/* ---------- 全ページ共通ヘッダー ---------- */
.header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(17, 46, 86, .09);
  background: #fff;
  box-shadow: 0 8px 26px -24px rgba(17, 46, 86, .65);
}

.header .logo img {
  content: url("kaitori-logo-transparent-supplied-20260210.png");
  width: auto;
  object-fit: contain;
}

/* フォーム専用ページは、先方確認済みのロゴのみの簡易ヘッダーを使う。 */
.header-min .header-inner {
  padding-right: var(--pad) !important;
  justify-content: flex-start;
}

.header-min .logo:focus-visible {
  outline: 3px solid var(--r2-sky);
  outline-offset: 5px;
}

.nav a {
  position: relative;
  color: var(--r2-navy);
  font-family: var(--r2-font);
  font-weight: 700;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--r2-blue), var(--r2-sky));
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .22s ease;
}

.nav a:hover::after,
.nav a.is-active::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-action-item {
  border-radius: 4px !important;
}

@media (min-width: 1451px) {
  .header,
  .header-inner {
    height: 92px;
    min-height: 92px;
  }

  .header-inner {
    padding: 0 24px 0 30px;
    gap: 22px;
  }

  .header .logo img {
    height: 48px;
  }

  .nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    width: auto;
    height: auto;
    margin-left: 18px;
    gap: clamp(13px, 1.15vw, 25px);
  }

  .nav a {
    font-size: clamp(12px, .78vw, 14px);
  }

  .header-actions {
    position: static;
    flex: 0 0 auto;
    gap: 8px;
  }

  .header-tel-btn {
    padding-inline: 4px 8px;
    transform: none;
  }

  .header-tel-number {
    font-size: 20px;
  }

  .header-tel-label {
    font-size: 11px;
  }

  .header-action-item {
    width: 126px;
    height: 44px;
    font-size: 13.5px;
    transform: none;
  }
}

@media (min-width: 769px) and (max-width: 1450px) {
  .header-inner {
    padding-right: 86px !important;
    padding-left: 22px !important;
    justify-content: flex-start;
  }

  .header .logo img {
    height: 34px;
  }

  .nav {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 30px;
    gap: clamp(10px, 1.15vw, 17px);
    justify-content: flex-end;
  }

  .nav a {
    font-size: clamp(11px, .84vw, 12px);
  }
}

/* ---------- 下層ページ共通ヒーロー ---------- */
.subpage .page-head,
.subpage .fi-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 20px 78px;
  color: var(--r2-navy);
  background:
    linear-gradient(108deg, rgba(241, 248, 253, .98) 0%, rgba(255, 255, 255, .94) 47%, rgba(239, 247, 253, .84) 100%),
    url("background-flow-c-20260817.webp") center / cover no-repeat;
}

.subpage .page-head::after,
.subpage .fi-hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -90px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(30, 143, 201, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(30, 143, 201, .035), 0 0 0 118px rgba(22, 88, 160, .025);
  pointer-events: none;
}

.subpage .page-head .container,
.subpage .fi-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
}

.subpage .page-wm {
  position: absolute;
  top: -18px;
  right: 0;
  margin: 0;
  color: rgba(22, 88, 160, .075);
  font-family: var(--r2-font) !important;
  font-size: clamp(76px, 8vw, 132px);
  font-weight: 900;
  letter-spacing: -.04em;
}

.subpage .page-head h1,
.subpage .fi-h1 {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0;
  color: var(--r2-navy);
  font-size: clamp(40px, 3.2vw, 60px);
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: .015em;
  text-wrap: balance;
}

.subpage .page-head-desc,
.subpage .fi-hero .page-head-desc {
  max-width: 820px;
  margin-top: 22px;
  color: var(--r2-copy);
  font-size: 16px;
  font-weight: 600;
}

.subpage .page-head-desc::before,
.subpage .fi-hero .page-head-desc.fi-lead::before {
  background: linear-gradient(90deg, var(--r2-blue), var(--r2-sky));
}

.subpage .crumb-bar {
  border-top: 1px solid rgba(22, 88, 160, .08);
  border-bottom: 1px solid rgba(22, 88, 160, .11);
  background: #fff;
}

.subpage .crumb {
  color: #718399;
}

.subpage .crumb a {
  color: var(--r2-blue);
}

/* ---------- 下層ページ共通見出し・面 ---------- */
.subpage .sec {
  padding-top: 100px;
  padding-bottom: 100px;
}

.subpage .sec-alt {
  background:
    linear-gradient(rgba(246, 250, 253, .93), rgba(246, 250, 253, .93)),
    url("background-flow-c-20260817.webp") center / cover no-repeat;
}

.subpage section .h2,
.subpage section.case-sec .sec-head,
.subpage .fi-sec h2,
.subpage .svgb .h2 {
  position: relative;
  margin: 0 0 42px;
  padding: 0;
  border: 0;
  color: var(--r2-navy);
  font-family: var(--r2-font) !important;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: .015em;
  text-align: left;
  text-wrap: balance;
}

.subpage section .h2::after,
.subpage section.case-sec .sec-head::after,
.subpage .fi-sec h2::after,
.subpage .svgb .h2::after {
  content: none !important;
  display: none !important;
}

.subpage section h3 {
  color: var(--r2-navy);
}

.subpage .lead,
.subpage section p,
.subpage section li,
.subpage section td {
  color: var(--r2-copy);
}

.subpage .card {
  border-color: var(--r2-line);
  border-radius: 8px;
  box-shadow: 0 16px 38px -32px rgba(17, 46, 86, .5);
}

/* ---------- 乗り換え ---------- */
.switch-page .sw-progress::before,
.switch-page .sw-progress::after {
  content: none !important;
  display: none !important;
}

.switch-page .sw-progress:not(.sw-progress-worry) {
  padding-top: 108px !important;
}

.switch-page .worry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 54px;
  counter-reset: worry;
}

.switch-page .worry-card {
  counter-increment: worry;
  min-height: 94px;
  padding: 27px 8px 27px 56px;
  border: 0 !important;
  border-bottom: 1px solid var(--r2-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--r2-ink);
  font-size: 16px;
}

.switch-page .worry-card::before {
  content: counter(worry, decimal-leading-zero);
  top: 27px;
  left: 0;
  width: 38px;
  height: auto;
  border-radius: 0;
  color: var(--r2-blue);
  font-family: var(--r2-font);
  font-size: 14px;
  line-height: 1.7;
  background: transparent;
  border-top: 2px solid var(--r2-sky);
}

.switch-page .sw-progress-solution .rgrid,
.switch-page .sw-progress-reasons .rgrid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 52px !important;
}

.switch-page .solution-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: 34px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--r2-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.switch-page .solution-card .solution-icon {
  position: static !important;
  top: auto !important;
  left: auto !important;
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 70px;
  height: 70px;
  padding: 15px;
  border: 1px solid rgba(30, 143, 201, .24);
  border-radius: 50%;
  background: #fff;
}

.switch-page .solution-card h3,
.switch-page .solution-card p {
  grid-column: 2;
  margin-left: 0 !important;
}

.switch-page .solution-card h3 {
  align-self: end;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  line-height: 1.5;
}

.switch-page .solution-card p {
  align-self: start;
  margin-top: 0 !important;
}

.switch-page .sw-progress-reasons .solution-card:first-child {
  grid-column: 1 / -1;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 38px 42px !important;
  border-top: 0 !important;
  border-radius: 10px !important;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .96), rgba(236, 247, 253, .9)),
    url("background-flow-c-20260817.webp") center / cover no-repeat !important;
}

.switch-page .sw-progress-reasons .solution-card:first-child .solution-icon {
  width: 84px;
  height: 84px;
}

.switch-page .sw-progress-solution .solution-card:first-child {
  grid-column: 1 / -1;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 40px 42px !important;
  border-top: 0 !important;
  border-radius: 12px !important;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .98), rgba(232, 246, 253, .94)),
    url("background-flow-c-20260817.webp") center / cover no-repeat !important;
  box-shadow: 0 26px 58px -46px rgba(17, 46, 86, .68) !important;
}

.switch-page .sw-progress-solution .solution-card:first-child .solution-icon {
  width: 84px;
  height: 84px;
}

.switch-page .cmp-wrap {
  border-radius: 10px;
  box-shadow: 0 28px 70px -52px rgba(17, 46, 86, .7);
}

.switch-page .cmp-product-mark img {
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 5px;
  background: #fff;
}

/* ---------- 料金・機能 ---------- */
.subpage .fi-hero {
  padding-bottom: 88px;
}

.subpage .fi-price {
  position: relative;
  z-index: 1;
  max-width: 1150px;
  margin-top: 44px;
  border: 1px solid rgba(22, 88, 160, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 70px -50px rgba(17, 46, 86, .58);
}

.subpage .fi-price .num {
  color: var(--r2-blue);
}

.subpage .fi-price li:nth-child(4) {
  white-space: nowrap;
}

@media (min-width: 769px) {
  .subpage .fi-price {
    gap: 46px;
  }

  .subpage .fi-price .num {
    font-size: 70px;
  }

  .subpage .fi-price ul {
    grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1fr);
    column-gap: 36px;
  }
}

.subpage .svg-fgrid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.subpage .svg-fgrid .fi-card {
  min-height: 196px;
  aspect-ratio: auto !important;
  justify-content: center;
  gap: 16px !important;
  padding: 28px 18px !important;
  border: 1px solid var(--r2-line);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f8fbfe);
}

.subpage .svg-fgrid .fi-card img {
  width: 84px !important;
  height: 84px !important;
}

.subpage .svg-fgrid .fi-card span {
  font-size: 17px !important;
}

.subpage .svg-optgrid {
  gap: 20px;
}

.subpage .svg-opt {
  min-height: 198px;
  justify-content: center;
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}

a.svg-opt:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -28px rgba(17, 46, 86, .65);
}

.subpage .svg-opt img {
  width: 76px;
  height: 76px;
}

.subpage .svg-cust {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.subpage .svg-cust .card {
  padding: 38px 36px;
  border: 0;
  border-radius: 10px;
  background: #f5f9fc;
  box-shadow: none;
}

.subpage .svg-cust .card:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
  padding: 52px 48px;
  background:
    linear-gradient(120deg, rgba(14, 61, 114, .96), rgba(14, 100, 150, .9)),
    url("background-flow-a-20260817.webp") center / cover no-repeat;
}

.subpage .svg-cust .card:nth-child(1) h3,
.subpage .svg-cust .card:nth-child(1) p {
  color: #fff;
}

.subpage .svg-cust .card:nth-child(2),
.subpage .svg-cust .card:nth-child(3) {
  grid-column: span 5;
}

.subpage .svg-cust .card:nth-child(4) {
  grid-column: 1 / -1;
  border-left: 4px solid var(--r2-sky);
  background: #fff;
}

.subpage .svg-cust .card h3 {
  margin-bottom: 16px;
  background: none !important;
}

.subpage .svg-cases > .card:nth-child(n + 4) {
  display: none;
}

/* ---------- FAQ ---------- */
.subpage .faq-main .container {
  max-width: 1040px;
}

.subpage .faq-cat {
  margin-top: 104px !important;
}

.subpage .faq-cat:first-child {
  margin-top: 0 !important;
}

.subpage .fqe details {
  margin-bottom: 12px;
  border: 1px solid rgba(22, 88, 160, .13);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px -30px rgba(17, 46, 86, .7);
}

.subpage .fqe details[open] {
  border-color: rgba(30, 143, 201, .34);
  box-shadow: 0 22px 46px -34px rgba(17, 46, 86, .72);
}

.subpage .fqe summary {
  min-height: 76px;
  padding: 18px 24px;
}

.subpage .fqe summary:focus-visible {
  outline: 3px solid rgba(30, 143, 201, .58);
  outline-offset: -3px;
  border-radius: 9px;
}

.subpage .fqe .q,
.subpage .fqe .ab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--r2-font) !important;
  font-size: 15px;
}

.subpage .fqe .qt {
  font-size: 16px;
  font-weight: 750;
}

.subpage .fqe .a {
  padding: 24px 28px 28px;
  background: var(--r2-pale);
}

/* ---------- サポート ---------- */
.support-page .sup-structure {
  position: relative !important;
  width: 100% !important;
  max-width: 860px;
  height: 330px !important;
  margin: 0 auto 48px !important;
}

.support-page .sup-route,
.support-page .sup-route-label,
.support-page .sup-mobile-exchange,
.support-page .sup-mobile-internal {
  display: none !important;
}

.support-page .sup-team-field {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.support-page .sup-team-field::before {
  content: "";
  position: absolute;
  top: 165px;
  left: 24%;
  width: 52%;
  height: 2px;
  background: linear-gradient(90deg, var(--r2-sky), rgba(30, 143, 201, .24), var(--r2-sky));
}

.support-page .sup-flow-card {
  box-sizing: border-box;
  box-shadow: 0 24px 54px -42px rgba(17, 46, 86, .78) !important;
}

.support-page .sup-flow-card.customer {
  top: 55px !important;
  left: 50% !important;
  z-index: 5;
  width: 330px !important;
  height: 220px !important;
  min-height: 220px !important;
  padding: 30px 32px !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 20px !important;
  transform: translateX(-50%);
  border: 2px solid rgba(22, 88, 160, .36) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .98), rgba(234, 246, 253, .95)),
    url("background-flow-c-20260817.webp") center / cover no-repeat !important;
}

.support-page .sup-flow-card.customer .sup-flow-role {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: 0;
}

.support-page .sup-team-field .sup-flow-card {
  top: 99px !important;
  width: 236px !important;
  height: 132px !important;
  min-height: 132px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  padding: 18px 16px !important;
  text-align: center;
  border: 1px solid var(--r2-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.support-page .sup-team-field .sup-flow-card.support {
  left: 0 !important;
}

.support-page .sup-team-field .sup-flow-card.development {
  right: 0 !important;
  left: auto !important;
}

.support-page .sup-team-field .sup-flow-icon {
  width: 50px;
  height: 50px;
}

.support-page .sup-team-field .sup-flow-icon svg {
  width: 28px;
  height: 28px;
}

.support-page .sup-flow-card.customer .sup-flow-title {
  font-size: 30px;
}

.support-page .sup-team-field .sup-flow-title {
  font-size: 18px;
}

.support-page .sup-team-field .sup-flow-sub {
  font-size: 12px !important;
}

.support-page .sup-card-aside {
  display: none !important;
}

.support-page .sup-remote-lead {
  max-width: 100% !important;
  margin: 0 0 22px !important;
  padding: 28px 34px 28px 78px;
  border-left: 4px solid var(--r2-sky);
  border-radius: 8px;
  background: var(--r2-pale);
  color: var(--r2-ink) !important;
  font-size: 17px !important;
  font-weight: 650;
}

.support-page .sup-remote-lead::before {
  content: "↔";
  position: absolute;
  margin: 2px 0 0 -48px;
  color: var(--r2-blue);
  font-family: var(--r2-font);
  font-size: 26px;
  font-weight: 900;
}

.support-page .sup-visual-media {
  border-radius: 10px;
}

/* ---------- 導入フロー・一覧・フォーム ---------- */
.flow-page .process-step {
  border: 0 !important;
  border-left: 4px solid rgba(30, 143, 201, .48) !important;
  border-radius: 0 10px 10px 0 !important;
  background: #fff !important;
  box-shadow: 0 18px 42px -36px rgba(17, 46, 86, .7) !important;
}

.flow-page .process-count strong,
.flow-page .process-number strong {
  color: var(--r2-blue);
  font-weight: 850 !important;
}

.ind-card,
.case-card,
.case-brand-panel {
  border-color: var(--r2-line) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 42px -36px rgba(17, 46, 86, .68) !important;
}

.contact-sec,
.thanks-sec {
  background:
    linear-gradient(rgba(247, 250, 253, .94), rgba(247, 250, 253, .94)),
    url("background-flow-c-20260817.webp") center / cover no-repeat !important;
}

.contact-card,
.thanks-card {
  border-color: var(--r2-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 30px 70px -50px rgba(17, 46, 86, .65) !important;
}

/* CTAブロックは今回再設計しない。書体だけサイト共通へ揃える。 */
.cta-box-title,
.svg-demo h2 {
  font-family: var(--r2-font) !important;
}

.subpage .cta-box-eyebrow {
  color: rgba(255, 255, 255, .72) !important;
}

.subpage .cta-box-text {
  color: #e5effa !important;
}

/* ---------- フッター ---------- */
.ft {
  background-color: var(--r2-deep);
  background-image: linear-gradient(108deg, #0e3d72 0%, #124b88 34%, #1658a0 82%, #1e8fc9 155%);
}

.ft-sns {
  display: none !important;
}

.ft-logo-img {
  content: url("kaitori-logo-transparent-supplied-20260210.png");
  box-sizing: border-box;
  width: 220px;
  height: auto;
  padding: 10px 13px;
  border-radius: 6px;
  background: #fff;
}

.ft-logo-link {
  display: inline-flex;
  border-radius: 6px;
}

.ft-logo-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .72);
  outline-offset: 4px;
}

.ft-company-link {
  color: inherit;
  text-decoration: none;
}

.ft-company-link:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.ft-company-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .72);
  outline-offset: 3px;
}

.ft-links a.ft-corporate-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 12px;
  white-space: nowrap;
}

.ft-external-icon {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

.ft-corporate-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .72);
  outline-offset: 3px;
}

.subpage :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(30, 143, 201, .64);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .subpage .page-head,
  .subpage .fi-hero {
    padding: 62px 20px 58px;
  }

  .subpage .page-wm {
    top: -8px;
    right: 8px;
    font-size: 72px;
  }

  .subpage .page-head h1,
  .subpage .fi-h1 {
    font-size: 38px;
  }

  .subpage .sec {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .switch-page .worry-grid,
  .switch-page .sw-progress-solution .rgrid,
  .switch-page .sw-progress-reasons .rgrid {
    grid-template-columns: 1fr !important;
  }

  .switch-page .sw-progress-reasons .solution-card:first-child,
  .switch-page .sw-progress-solution .solution-card:first-child {
    grid-column: auto;
  }

  .subpage .svg-fgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .subpage .svg-cust .card,
  .subpage .svg-cust .card:nth-child(1),
  .subpage .svg-cust .card:nth-child(2),
  .subpage .svg-cust .card:nth-child(3),
  .subpage .svg-cust .card:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .support-page .sup-structure {
    display: grid;
    height: auto !important;
    gap: 18px;
  }

  .support-page .sup-flow-card.customer {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 180px !important;
    margin: 0 !important;
    transform: none;
    border-radius: 12px !important;
  }

  .support-page .sup-team-field {
    position: relative !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    inset: auto !important;
    height: auto !important;
  }

  .support-page .sup-team-field::before {
    content: none;
  }

  .support-page .sup-team-field .sup-flow-card {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 176px !important;
  }
}

@media (max-width: 600px) {
  .subpage .page-head,
  .subpage .fi-hero {
    padding: 50px 18px 46px;
  }

  .subpage .page-head h1,
  .subpage .fi-h1 {
    font-size: 32px;
  }

  .subpage .page-head-desc,
  .subpage .fi-hero .page-head-desc {
    font-size: 14px;
  }

  .subpage section .h2,
  .subpage section.case-sec .sec-head,
  .subpage .fi-sec h2,
  .subpage .svgb .h2 {
    margin-bottom: 30px;
    padding-top: 0;
    font-size: 29px;
  }

  .subpage .svg-fgrid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .subpage .svg-fgrid .fi-card {
    min-height: 150px;
    padding: 20px 10px !important;
  }

  .subpage .svg-fgrid .fi-card img {
    width: 58px !important;
    height: 58px !important;
  }

  .subpage .svg-fgrid .fi-card span {
    font-size: 14px !important;
  }

  .switch-page .solution-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;
  }

  .switch-page .solution-card .solution-icon {
    width: 58px;
    height: 58px;
    padding: 12px;
  }

  .switch-page .sw-progress-reasons .solution-card:first-child,
  .switch-page .sw-progress-solution .solution-card:first-child {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 28px 22px !important;
  }

  .support-page .sup-team-field {
    grid-template-columns: 1fr;
  }

  .support-page .sup-remote-lead {
    padding: 24px 22px 24px 62px;
    font-size: 15px !important;
  }

  .support-page .sup-remote-lead::before {
    margin-left: -38px;
    font-size: 22px;
  }

  .subpage .fqe summary {
    padding: 15px 16px;
  }

  .subpage .fqe .q,
  .subpage .fqe .ab {
    width: 34px;
    height: 34px;
  }

  .subpage .fqe .qt {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subpage *,
  .subpage *::before,
  .subpage *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 全ページ共通・標準本文 ----------
 * 基準: 乗り換えページ「365日、追加費用なし…」の本文。
 * 見出し、導線、メタ情報、注釈、ページリードは役割別の組版を維持する。
 */
html body {
  --r2-body-copy-size: 17px;
  --r2-body-copy-color: #24313f;
  --r2-body-copy-weight: 500;
  --r2-body-copy-leading: 1.9;
}

html body.subpage :where(
  section:not(.page-head):not(.fi-hero):not(.cta2):not(.cta-box-sec) p:not(:where(
    .eyebrow,
    .cta2-eyebrow,
    .cta2-text,
    .meta,
    .case-meta,
    .brand,
    .who,
    .fi-basic-note,
    .fi-function-kicker,
    .form-consent,
    .ind-benefit,
    .ind-eyebrow,
    .ind-usecase-caption,
    .process-note,
    .shiryo-cap,
    .sign,
    .sub,
    .sup-flow-sub,
    .contact-tel-block,
    .page-head-desc,
    .ft-company
  )),
  section:not(.page-head):not(.fi-hero):not(.cta2):not(.cta-box-sec) td,
  .prose li,
  .ind-list li,
  .fi-price li,
  .fqe .at
),
html body:not(.subpage) :where(
  section[data-sec]:not(.fv4ref):not(.switch-diagnosis-c):not(.cta2) p:not(:where(
    .lead,
    .eyebrow,
    .cta2-eyebrow,
    .cta2-text,
    .meta,
    .case-meta,
    .fv4ref-lead,
    .fv4ref-product-ruby,
    .fv4ref-product-sub,
    .ofe-kicker,
    .ofe-lead,
    .process-note,
    .rc-kick,
    .rr-kick,
    .rr-kicker,
    .switch-diagnosis-c__kicker,
    .switch-diagnosis-c__lead,
    .switch-diagnosis-c__result-copy,
    .switch-diagnosis-c__result-label
  )),
  section[data-sec]:not(.fv4ref):not(.switch-diagnosis-c):not(.cta2) td,
  .htl-body li
) {
  color: var(--r2-body-copy-color) !important;
  font-family: var(--r2-font) !important;
  font-size: var(--r2-body-copy-size) !important;
  font-weight: var(--r2-body-copy-weight) !important;
  line-height: var(--r2-body-copy-leading) !important;
}

/* 後読みの成果セクション専用CSSより標準本文を優先する。 */
html body:not(.subpage) section[data-sec="07 RESULT 導入成果"].results-reference p.rr-body {
  color: var(--r2-body-copy-color) !important;
  font-family: var(--r2-font) !important;
  font-size: var(--r2-body-copy-size) !important;
  font-weight: var(--r2-body-copy-weight) !important;
  line-height: var(--r2-body-copy-leading) !important;
}

/* 写真上・濃色面の本文は、同じサイズと太さのまま反転色を維持する。 */
html body.subpage .cust-sec .svg-cust .card:nth-child(1) p,
html body:not(.subpage) section[data-sec="08 INDUSTRY 業種別"] .ic-overlay p {
  color: #fff !important;
}

@media (max-width: 768px) {
  html body {
    --r2-body-copy-size: 16px;
  }
}

/* WCAG 2.1 AA: 下層ページのパンくずを白地で読み取れる共通色へ統一。 */
html body.subpage .crumb-bar .crumb,
html body.subpage .crumb-bar .crumb a {
  color: #64748b;
}

/* Header phone spacing + H1/breadcrumb axis alignment / 2026-08-29 */
@media (min-width: 1551px) {
  html body > .header:not(.header-min) .header-tel-btn {
    gap: 4px !important;
  }

  html body > .header:not(.header-min) .header-tel-icon {
    font-size: 16px !important;
    transform: translateX(2px);
  }
}

html body.subpage .page-head + .crumb-bar .container {
  width: calc(100% - 40px);
  max-width: 1220px;
}

html body.subpage .fi-hero + .crumb-bar .container {
  width: calc(100% - 40px);
  max-width: 1220px;
  padding-inline: 0;
}

@media (max-width: 600px) {
  html body.subpage .page-head + .crumb-bar .container,
  html body.subpage .fi-hero + .crumb-bar .container {
    width: calc(100% - 36px);
  }
}

/* ==========================================================
   Stage01 mobile lower-page polish / 2026-09-01
   PC and the separately polished top page are intentionally
   excluded. This block is scoped to 768px and below.
   ========================================================== */
html body.subpage.switch-page .cmp-swipe-hint {
  display: none;
}

@media (max-width: 768px) {
  /* Remove the duplicated 18px + 24px horizontal inset in lower-page heroes. */
  html body.subpage .page-head {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body.subpage .page-head > .container,
  html body.subpage .page-head + .crumb-bar .container {
    box-sizing: border-box;
    width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* 100vw included the scrollbar width and produced an 8px horizontal overflow. */
  html body.subpage .fi-vblend-mobile-media {
    width: auto !important;
    margin-left: -24px !important;
    margin-right: -24px !important;
  }

  /* 100vw on the customization background also included the scrollbar width. */
  html body.subpage .cust-story.sec {
    overflow: hidden !important;
  }

  html body.subpage .cust-story.sec::before {
    inset: 0 !important;
    width: 100% !important;
    transform: none !important;
  }

  /* Footer links remain touch targets through the full mobile breakpoint. */
  html body.subpage .ft .ft-links a {
    display: flex !important;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0 !important;
    color: rgba(255, 255, 255, .9) !important;
    font-size: 14px !important;
  }

  html body.subpage .ft .ft-company-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: rgba(255, 255, 255, .9) !important;
  }

  html body.subpage .ft a:focus-visible {
    outline-color: #fff !important;
  }
}

@media (max-width: 640px) {
  /* Pricing/features: show more functions without hiding them in a carousel. */
  html body.subpage .fi-basic-list,
  html body.subpage .fi-option-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
  }

  html body.subpage .fi-basic-list li {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    min-height: 64px !important;
    column-gap: 9px !important;
    padding: 10px 0 !important;
    font-size: 15px !important;
    overflow-wrap: anywhere;
  }

  html body.subpage .fi-basic-list li img {
    width: 30px !important;
    height: 30px !important;
  }

  html body.subpage .fi-option-item {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    min-height: 76px !important;
    column-gap: 8px !important;
    padding: 11px 0 !important;
  }

  html body.subpage .fi-option-item img {
    width: 34px !important;
    height: 34px !important;
  }

  html body.subpage .fi-option-item h3 {
    margin-bottom: 5px !important;
    font-size: 15px !important;
    overflow-wrap: anywhere;
  }

  /* Support table: retain the stacked structure but remove excessive height. */
  html body.subpage .sup-table {
    border: 0 !important;
    box-shadow: none !important;
  }

  html body.subpage .sup-table,
  html body.subpage .sup-table tbody,
  html body.subpage .sup-table tr,
  html body.subpage .sup-table th,
  html body.subpage .sup-table td {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
  }

  html body.subpage .sup-table tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #dce6f1;
    border-radius: 6px;
    background: #fff;
  }

  html body.subpage .sup-table tr:last-child {
    margin-bottom: 0;
  }

  html body.subpage .sup-table th,
  html body.subpage .sup-table td {
    border: 0 !important;
    white-space: normal !important;
  }

  html body.subpage .sup-table th {
    padding: 12px 16px !important;
  }

  html body.subpage .sup-table td {
    padding: 13px 16px 15px !important;
  }

  /* Legal/certification content: use readable type and stack key/value rows. */
  html body.subpage .policy h2 {
    font-size: 22px !important;
  }

  html body.subpage .policy h3 {
    font-size: 18px !important;
  }

  html body.subpage .policy li {
    font-size: 16px !important;
  }

  html body.subpage .policy .sign,
  html body.subpage .policy table.cert {
    font-size: 15px !important;
  }

  html body.subpage .policy table.cert,
  html body.subpage .policy table.cert tbody,
  html body.subpage .policy table.cert tr,
  html body.subpage .policy table.cert th,
  html body.subpage .policy table.cert td {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
  }

  html body.subpage .policy table.cert tr {
    margin-bottom: 12px;
  }

  html body.subpage .policy table.cert th {
    white-space: normal !important;
    border-bottom: 0 !important;
  }

  html body.subpage .policy table.cert td {
    border-top: 0 !important;
  }

  /* Industry cards and the pawn-shop visual. */
  html body.subpage .ind-foot {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 20px !important;
  }

  html body.subpage .ind-name {
    font-size: 19px !important;
  }

  html body.subpage .ind-usecase-visual {
    min-height: 0 !important;
    aspect-ratio: 3 / 2;
  }

  html body.subpage .ind-benefit,
  html body.subpage .ind-usecase-caption {
    font-size: 15px !important;
  }

  /* Preserve the case-study table layout but keep both columns legible. */
  html body.subpage .case-info th,
  html body.subpage .case-info td {
    font-size: 15px !important;
    overflow-wrap: anywhere;
  }

  /* Static mock filters must not pretend to be interactive controls. */
  html body.subpage .case-filter {
    padding: 20px 16px !important;
  }

  html body.subpage .case-filter .cf-row {
    gap: 10px !important;
  }

  html body.subpage .case-filter .cf-label {
    padding-top: 0 !important;
  }

  html body.subpage .case-filter .cf-tags {
    gap: 8px !important;
  }

  html body.subpage .case-filter .cf-tag {
    cursor: default !important;
  }

  html body.subpage .case-filter .cf-tag:hover {
    border-color: #cdd8e4 !important;
    background: #fff !important;
    color: #034c92 !important;
  }

  /* The flow itself is readable; only the excluded 10px note needed correction. */
  html body.subpage.flow-page .process-note {
    font-size: 13px !important;
    line-height: 1.65 !important;
  }
}

@media (max-width: 600px) {
  /* Switch comparison: keep a real comparison table and allow deliberate swiping. */
  html body.subpage.switch-page .cmp-swipe-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #52667c !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
  }

  html body.subpage.switch-page .cmp-swipe-hint::before {
    content: "↔";
    color: #0875c1;
    font-size: 18px;
    line-height: 1;
  }

  html body.subpage.switch-page .cmp-wrap {
    margin: 0 !important;
    padding-top: 32px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #83afd0 #eaf2f7;
  }

  html body.subpage.switch-page .cmp-wrap:focus-visible {
    outline: 3px solid rgba(8, 117, 193, .28);
    outline-offset: 3px;
  }

  html body.subpage.switch-page .cmp-wrap .compare {
    width: 760px !important;
    min-width: 760px !important;
    table-layout: fixed !important;
  }

  html body.subpage.switch-page .cmp-wrap .compare th,
  html body.subpage.switch-page .cmp-wrap .compare td {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  html body.subpage.switch-page .cmp-wrap .compare thead th {
    height: 88px !important;
    padding: 12px 10px !important;
    font-size: 15px !important;
  }

  html body.subpage.switch-page .cmp-item-head strong {
    font-size: 15px !important;
  }

  html body.subpage.switch-page .cmp-product-mark {
    inset: -18px 0 0 !important;
    padding: 16px 12px 10px !important;
  }

  html body.subpage.switch-page .cmp-product-mark::before {
    top: -11px !important;
    padding: 4px 8px !important;
    font-size: 8px !important;
  }

  html body.subpage.switch-page .cmp-product-mark img {
    width: min(132px, 88%) !important;
  }

  html body.subpage.switch-page .cmp-wrap .compare tbody th {
    position: sticky !important;
    left: 0;
    z-index: 5;
    padding: 16px 12px !important;
    background: #fff !important;
    box-shadow: 8px 0 14px -14px rgba(8, 43, 82, .8);
  }

  html body.subpage.switch-page .cmp-wrap .compare thead th:first-child {
    position: sticky !important;
    left: 0;
    z-index: 7;
    background: #fff !important;
  }

  html body.subpage.switch-page .cmp-wrap .compare tbody td {
    padding: 16px 14px !important;
  }

  html body.subpage.switch-page .cmp-wrap .compare tbody td:nth-child(2) {
    padding: 16px 12px 16px 46px !important;
  }

  html body.subpage.switch-page .cmp-wrap .compare tbody td:nth-child(2)::before {
    left: 14px !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 14px !important;
  }

  html body.subpage.switch-page .cmp-wrap .compare tbody tr:first-child td:nth-child(2) {
    font-size: 14px !important;
  }

  /* Lower-page footer: two readable columns, then a full-width final group. */
  html body.subpage .ft .ft-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 18px !important;
  }

  html body.subpage .ft .ft-links > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  html body.subpage .ft .ft-links a {
    display: flex !important;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0 !important;
    font-size: 14px !important;
  }

  html body.subpage .ft .ft-links a.ft-corporate-link {
    white-space: normal !important;
  }
}

@media (max-width: 768px) {
  /* Keep the shared CTA title identical to the top page on mobile. */
  html body section.cta2[data-sec="12 CTA"] #contact-cta-title {
    font-size: clamp(22px, 6vw, 27px);
    line-height: 1.42;
  }

  /* Forms: 16px prevents iOS zoom; every tappable choice reaches 44px. */
  html body.form-platform .form-row input:not([type="radio"]),
  html body.form-platform .form-row textarea,
  html body.form-platform .form-row select {
    font-size: 16px !important;
  }

  html body.form-platform .form-row > label,
  html body.form-platform .form-row > fieldset > legend {
    font-size: 15px !important;
  }

  html body.form-platform .radio {
    min-height: 44px !important;
    font-size: 14px !important;
  }

  html body.form-platform .contact-links a {
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  html body.form-platform .demo-method strong {
    font-size: 15px !important;
  }

  html body.form-platform .demo-method span {
    font-size: 12px !important;
    line-height: 1.7 !important;
  }

  html body.form-platform .ft-min-links a,
  html body.thanks-platform .ft-min-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px !important;
  }
}
