/**
 * 要 ～KANAME～ リニューアル用スタイル
 * 元データ: cms/wp-content/themes/pxp-cms/制作データ.xd
 * アートボード: TOP (1280 x 16548)
 *
 * /products/kaname/ 用。既存の kaname.css に加えて読み込む。
 *
 * 使い方: 改修HTML側に .km-renewal をルートへ付与してから各 .km-* を使う
 */

/* --------------------------------------------------------------------------
   Design tokens (from XD)
   -------------------------------------------------------------------------- */
.km-renewal {
  --km-blue: #0068b5;
  --km-blue-dark: #005559;
  --km-blue-light: #d3edfb;
  --km-green: #009043;
  --km-green-dark: #005758;
  --km-orange: #f18d00;
  --km-orange-strong: #e85512;
  --km-red: #b81c22;
  --km-red-deep: #820f15;
  --km-gold: #be922f;
  --km-gold-light: #eacd76;
  --km-cream: #fffded;
  --km-gray: #707070;
  --km-gray-light: #f0f0f0;
  --km-border: #d8d8d8;
  --km-black: #000000;
  --km-white: #ffffff;

  --km-font: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Noto Sans JP",
    "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --km-fs-xs: 12px;
  --km-fs-sm: 15px;
  --km-fs-base: 18px;
  --km-fs-md: 20px;
  --km-fs-lg: 25px;
  --km-fs-xl: 30px;
  --km-fs-2xl: 34px;
  --km-fs-3xl: 35px;
  --km-fs-hero: 62px;

  --km-content: 1080px;
  --km-content-wide: 1200px;
  --km-radius: 8px;
  --km-radius-pill: 100vh;
  --km-section-y: 80px;

  color: var(--km-black);
  font-family: var(--km-font);
  font-size: var(--km-fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.km-renewal *,
.km-renewal *::before,
.km-renewal *::after {
  box-sizing: border-box;
}

.km-renewal img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.km-container {
  width: min(100% - 40px, var(--km-content));
  margin-inline: auto;
}

.km-container--wide {
  width: min(100% - 40px, var(--km-content-wide));
}

.km-section {
  padding-block: var(--km-section-y);
}

.km-section--blue {
  background: var(--km-blue-light);
}

.km-section--gray {
  background: var(--km-gray-light);
}

.km-section--cream {
  background: var(--km-cream);
}

.km-section__lead {
  margin: 0 0 12px;
  color: var(--km-blue);
  font-size: var(--km-fs-md);
  font-weight: 700;
  text-align: center;
}

.km-section__title {
  margin: 0 0 40px;
  color: var(--km-black);
  font-size: var(--km-fs-2xl);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.km-section__title--blue {
  color: var(--km-blue);
}

.km-section__text {
  margin: 0 auto 32px;
  max-width: 920px;
  color: var(--km-black);
  font-size: var(--km-fs-base);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Buttons / CTA
   -------------------------------------------------------------------------- */
.km-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 14px 36px;
  border: none;
  border-radius: var(--km-radius-pill);
  color: var(--km-white);
  font-family: inherit;
  font-size: var(--km-fs-md);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.km-btn:hover {
  opacity: 0.88;
  text-decoration: none;
  color: var(--km-white);
}

.km-btn--blue {
  background: linear-gradient(90deg, #00a0e9 0%, var(--km-blue) 50%, #00a0e9 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  transition: background-position 0.6s ease, opacity 0.2s ease;
}

.km-btn--blue:hover {
  background-position: 100% 0;
  opacity: 1;
}

.km-btn--green {
  background: linear-gradient(90deg, var(--km-green) 0%, var(--km-green-dark) 50%, var(--km-green) 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  transition: background-position 0.6s ease, opacity 0.2s ease;
}

.km-btn--green:hover {
  background-position: 100% 0;
  opacity: 1;
}

.km-btn--orange {
  background: var(--km-orange);
  box-shadow: 0 4px 10px rgba(241, 141, 0, 0.28);
}

.km-btn--block {
  width: 100%;
}

.km-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
}

/* --------------------------------------------------------------------------
   Hero / main-visual (Figma: トップ背景 1280x548 + トップ右 425x460)
   products.css の .main-visual img { width:100% } を上書きする
   -------------------------------------------------------------------------- */
.km-renewal .main-visual.km-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  height: 548px;
  min-height: 548px;
}

.km-renewal .main-visual.km-hero .km-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #fff;
  background-image: url("/cms/wp-content/themes/pxp-cms/images/kaname/mv_bg.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 772px 548px;
  pointer-events: none;
}

.km-renewal .main-visual.km-hero .km-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 520px 425px;
  justify-content: space-between;
  align-items: center;
  column-gap: 40px;
  box-sizing: border-box;
  width: 1120px;
  max-width: calc(100% - 40px);
  height: 100%;
  min-height: 548px;
  margin: 0 auto;
  padding: 50px 0 40px;
}

.km-renewal .main-visual.km-hero .km-hero__content {
  width: 520px;
  max-width: 100%;
}

.km-renewal .main-visual.km-hero .km-hero__label {
  display: inline-block;
  margin: 0 0 22px;
  padding: 0 0 8px;
  border-bottom: 1px solid #707070;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.km-renewal .main-visual.km-hero .km-hero__title {
  margin: 0 0 14px;
  padding: 0;
  color: #000;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.29;
  letter-spacing: 0.02em;
}

.km-renewal .main-visual.km-hero .km-hero__text {
  margin: 0 0 14px;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
}

.km-renewal .main-visual.km-hero .km-hero__checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.km-renewal .main-visual.km-hero .km-hero__checks li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

/* products.css .main-visual img { width:100% } 対策 */
.km-renewal .main-visual.km-hero img.km-hero__check-icon,
.km-renewal .main-visual.km-hero .km-hero__check-icon {
  display: block;
  flex-shrink: 0;
  width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  margin: 0;
}

.km-renewal .main-visual.km-hero .km-hero__check-icon--white {
  display: none !important;
}

.km-renewal .main-visual.km-hero .km-hero__cta {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 380px;
  max-width: 100%;
  height: 62px;
  min-height: 62px;
  padding: 0 56px 0 24px;
  border-radius: 100vh;
  background: #f18d00;
  box-shadow: 0 4px 10px rgba(241, 141, 0, 0.28);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.km-renewal .main-visual.km-hero .km-hero__cta:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
}

.km-renewal .main-visual.km-hero .km-hero__cta-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

.km-renewal .main-visual.km-hero .km-hero__cta-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 10px;
  border-color: transparent transparent transparent #f18d00;
  transform: translate(-40%, -50%);
}

.km-renewal .main-visual.km-hero .km-hero__visual {
  position: relative;
  justify-self: end;
  width: 425px;
  max-width: 100%;
}

.km-renewal .main-visual.km-hero img.km-hero__visual-img,
.km-renewal .main-visual.km-hero .km-hero__visual-img {
  display: block;
  width: 425px !important;
  max-width: 100% !important;
  height: auto !important;
}

#top_contents .km-hero__content .km-hero__text,
#top_contents .km-hero__content .km-hero__checks {
  font-size: 18px;
}

@media screen and (max-width: 1200px) {
  .km-renewal .main-visual.km-hero {
    height: auto;
    min-height: 0;
  }

  .km-renewal .main-visual.km-hero .km-hero__bg {
    background-size: auto 100%;
    background-position: right center;
  }

  .km-renewal .main-visual.km-hero .km-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    width: calc(100% - 40px);
    min-height: 0;
    height: auto;
    padding: 40px 0;
  }

  .km-renewal .main-visual.km-hero .km-hero__content {
    width: auto;
  }

  .km-renewal .main-visual.km-hero .km-hero__title {
    font-size: 40px;
  }

  .km-renewal .main-visual.km-hero .km-hero__visual {
    width: min(100%, 380px);
  }

  .km-renewal .main-visual.km-hero img.km-hero__visual-img,
  .km-renewal .main-visual.km-hero .km-hero__visual-img {
    width: 100% !important;
  }
}

@media screen and (max-width: 834px) {
  .km-renewal .main-visual.km-hero {
    height: auto;
    min-height: 0;
  }

  .km-renewal .main-visual.km-hero .km-hero__bg {
    background-size: cover;
    background-position: 70% center;
  }

  .km-renewal .main-visual.km-hero .km-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    width: calc(100% - 32px);
    padding: 28px 0 36px;
  }

  /* SP: 画像を上、テキストを下（DOM順 content→visual を order で入れ替え） */
  .km-renewal .main-visual.km-hero .km-hero__visual {
    order: 2;
    justify-self: center;
    width: min(100%, 320px);
  }

  .km-renewal .main-visual.km-hero .km-hero__content {
    order: 1;
    width: 100%;
    color: #fff;
  }

  .km-renewal .main-visual.km-hero .km-hero__label {
    font-size: 14px;
    margin-bottom: 14px;
    color: #fff;
    border-bottom-color: #fff;
    padding: 0 0 4px;
    border-bottom: 1px solid #fff;
  }

  .km-renewal .main-visual.km-hero .km-hero__title {
    font-size: 26px;
    margin-bottom: 14px;
    color: #fff;
  }

  .km-renewal .main-visual.km-hero .km-hero__text {
    color: #fff;
  }

  .km-renewal .main-visual.km-hero .km-hero__text br {
    display: none;
  }

  .km-renewal .main-visual.km-hero .km-hero__checks li {
    color: #fff;
  }

  .km-renewal .main-visual.km-hero .km-hero__cta {
    width: 100%;
    font-size: 18px;
  }

  .km-renewal .main-visual.km-hero img.km-hero__check-icon,
  .km-renewal .main-visual.km-hero .km-hero__check-icon {
    width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
  }

  .km-renewal .main-visual.km-hero .km-hero__check-icon--blue {
    display: none !important;
  }

  .km-renewal .main-visual.km-hero .km-hero__check-icon--white {
    display: block !important;
  }
}

/* --------------------------------------------------------------------------
   Local nav (in-page)
   -------------------------------------------------------------------------- */
.km-local-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--km-blue);
}

.km-local-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.km-local-nav a {
  display: block;
  padding: 14px 18px;
  color: var(--km-white);
  font-size: var(--km-fs-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.km-local-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--km-white);
}

/* --------------------------------------------------------------------------
   Pain points (お悩み)
   -------------------------------------------------------------------------- */
.km-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.km-pain-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  border: 1px solid var(--km-border);
  border-radius: var(--km-radius);
  background: var(--km-white);
  text-align: center;
}

.km-pain-card__icon {
  width: 64px;
  height: 64px;
}

.km-pain-card__text {
  margin: 0;
  color: var(--km-black);
  font-size: var(--km-fs-base);
  font-weight: 700;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Contact band
   -------------------------------------------------------------------------- */
.km-contact-band {
  padding: 48px 20px;
  background: var(--km-gray-light);
}

.km-contact-band__title {
  margin: 0 0 28px;
  font-size: var(--km-fs-2xl);
  font-weight: 700;
  text-align: center;
}

.km-contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 344px));
  justify-content: center;
  gap: 40px;
}

.km-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.km-contact-card__icon {
  width: 100px;
}

.km-contact-card__ttl {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.km-contact-card--doc .km-contact-card__ttl {
  color: var(--km-green);
}

.km-contact-card--tel .km-contact-card__ttl {
  color: #1d2088;
}

.km-contact-card__text {
  margin: 0;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Reason / feature blocks
   -------------------------------------------------------------------------- */
.km-reason {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 72px;
}

.km-reason:first-of-type {
  margin-top: 0;
}

.km-reason--reverse {
  direction: rtl;
}

.km-reason--reverse > * {
  direction: ltr;
}

.km-reason__title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
  font-size: 1.4em;
  font-weight: 700;
}

.km-reason__text {
  margin: 0;
  font-size: 1.05em;
  line-height: 2;
}

.km-reason__figure {
  margin: 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */
.km-compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--km-white);
}

.km-compare th,
.km-compare td {
  padding: 16px 14px;
  border: 1px solid var(--km-border);
  font-size: var(--km-fs-base);
  line-height: 1.6;
  vertical-align: middle;
}

.km-compare thead th {
  background: var(--km-blue);
  color: var(--km-white);
  font-weight: 700;
  text-align: center;
}

.km-compare thead th.km-compare__th-kaname {
  background: #004d8c;
}

.km-compare tbody th {
  width: 18%;
  background: var(--km-gray-light);
  font-weight: 700;
  text-align: left;
}

.km-compare__td-kaname {
  background: #f3f9fd;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Function grid
   -------------------------------------------------------------------------- */
.km-func-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.km-func-card {
  padding: 28px 22px;
  border: 1px solid var(--km-border);
  border-radius: var(--km-radius);
  background: var(--km-white);
  text-align: center;
}

.km-func-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}

.km-func-card__title {
  margin: 0 0 10px;
  color: var(--km-blue);
  font-size: var(--km-fs-md);
  font-weight: 700;
}

.km-func-card__text {
  margin: 0;
  font-size: var(--km-fs-sm);
  line-height: 1.7;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Recommend / audience cards
   -------------------------------------------------------------------------- */
.km-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.km-audience-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--km-radius);
  background: var(--km-blue-light);
  font-size: var(--km-fs-md);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Support
   -------------------------------------------------------------------------- */
.km-support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.km-support-card {
  padding: 24px 16px;
  border-radius: var(--km-radius);
  background: var(--km-white);
  border: 1px solid var(--km-border);
  text-align: center;
}

.km-support-card__title {
  margin: 12px 0 8px;
  color: var(--km-blue);
  font-size: var(--km-fs-md);
  font-weight: 700;
}

.km-support-card__text {
  margin: 0;
  font-size: var(--km-fs-sm);
}

/* --------------------------------------------------------------------------
   Achievement / stats + voices (安心と信頼の実績)
   -------------------------------------------------------------------------- */
.km-renewal .km-achievement .voice-wrapper {
  margin-top: 40px;
}

.km-renewal .km-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 40px 0 0;
  padding: 28px 20px;
  list-style: none;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  text-align: center;
}

.km-renewal .km-stats__item {
  margin: 0;
  padding: 0;
}

.km-renewal .km-stats__label {
  margin: 0 0 8px;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.km-renewal .km-stats__value {
  margin: 0;
  color: #b81c22;
  font-weight: 700;
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 6px;
}

.km-renewal .km-stats__label,
.km-renewal .km-stats__value {
  color: #FF0000;
}

.km-renewal .km-stats__num {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
}

.km-renewal .km-stats__prefix,
.km-renewal .km-stats__unit {
  font-size: 18px;
  font-weight: 700;
}

.km-renewal .km-stats__note {
  font-size: 14px;
  font-weight: 700;
  color: #b81c22;
  line-height: 1;
}

.km-renewal .km-achievement__lead {
  margin: 24px 0 0;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}

/* Figma: 2列。products.css の hover は維持 */
.km-renewal .km-achievement ul.voiceList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 22px;
  justify-content: initial;
}

.km-renewal .km-achievement li.voiceList__content {
  width: auto;
  margin: 0;
}

.km-renewal .km-achievement a.voiceList__link {
  height: 100%;
  box-sizing: border-box;
}

@media screen and (min-width: 834px) {
.km-renewal .km-achievement .voiceList__image {
  height: 400px;
}
}

.km-renewal .km-achievement h3.voiceList__title {
  margin: 0;
  padding-bottom: 10px;
  font-size: 18px;
  line-height: 1.5;
  height: auto !important;
}

.km-renewal .km-achievement p.voiceList__text {
  margin: 10px 0 0;
  font-size: 14px;
}

.km-renewal .km-achievement .voiceList__quote {
  margin: 12px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  transition: 0.3s ease-in-out;
}

.km-renewal .km-achievement .voiceList__link:hover .voiceList__quote {
  color: #fff;
}

.km-renewal .km-achievement .voiceList__category {
  display: none;
}

/* --------------------------------------------------------------------------
   Flow
   -------------------------------------------------------------------------- */
.km-flow {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: max-content;
  max-width: 100%;
  margin: 40px auto 0;
}

.km-flow__item {
  display: flex;
  gap: 24px;
  position: relative;
}

.km-flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -42px;
  width: 40px;
  height: 22px;
  background: #838383;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.km-flow__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--km-blue);
  color: var(--km-white);
  flex-shrink: 0;
}

.km-flow__step {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.km-flow__num {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.km-flow__title {
  margin: 0 0 8px;
  color: var(--km-blue);
  font-size: 1.6rem;
  font-weight: 700;
}

.km-flow__text {
  margin: 0;
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   Spec table
   -------------------------------------------------------------------------- */
.km-spec {
  width: 100%;
  border-collapse: collapse;
  background: var(--km-white);
}

.km-spec th,
.km-spec td {
  padding: 14px 18px;
  border: 1px solid var(--km-border);
  font-size: var(--km-fs-base);
  text-align: left;
  vertical-align: top;
}

.km-spec th {
  width: 28%;
  background: var(--km-gray-light);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.km-faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.km-faq__item {
  border: 1px solid var(--km-border);
  border-radius: var(--km-radius);
  overflow: hidden;
  background: var(--km-white);
}

.km-faq__q {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  background: #444;
  color: var(--km-white);
  font-size: var(--km-fs-md);
  font-weight: 700;
}

.km-faq__q-label {
  flex-shrink: 0;
  color: #ffd36a;
}

.km-faq__a {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 18px 20px;
  font-size: var(--km-fs-base);
  line-height: 1.8;
}

.km-faq__a-label {
  flex-shrink: 0;
  color: var(--km-red);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Form section
   -------------------------------------------------------------------------- */
.km-form-wrap {
  max-width: 972px;
  margin: 32px auto 0;
}

/* --------------------------------------------------------------------------
   Temporary bridges: keep current test markup readable under .km-renewal
   (remove once HTML is fully migrated to .km-* classes)
   -------------------------------------------------------------------------- */
.km-renewal .top-main {
  color: var(--km-orange-strong);
}

.km-renewal .pw-flow-icon {
  background-color: var(--km-blue);
}

.km-renewal .pw-flow-ttl {
  color: var(--km-blue);
}

.km-renewal .--more .contact-main-ttl {
  color: var(--km-green);
}

.km-renewal .kaname-compareTable thead th {
  background: var(--km-blue);
  color: var(--km-white);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media screen and (max-width: 834px) {
  .km-renewal {
    --km-section-y: 56px;
    font-size: 16px;
  }

  .km-section__title {
    margin-bottom: 28px;
    font-size: 1.5rem;
  }

  .km-reason,
  .km-reason--reverse,
  .km-voice-card,
  .km-contact-cards,
  .km-pain-grid,
  .km-func-grid,
  .km-audience-grid,
  .km-support-grid,
  .km-stats,
  .km-voice-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .km-local-nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .km-local-nav a {
    padding: 12px 14px;
    font-size: 12px;
  }

  .km-contact-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .km-compare {
    display: block;
    overflow-x: auto;
  }

  .km-flow {
    gap: 48px;
  }

  .km-flow__item {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
  }

  .km-flow__item:not(:last-child)::after {
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%);
  }

  .km-flow__icon {
    width: 60px;
    height: 60px;
  }

  .km-flow__step {
    font-size: 0.9rem;
  }

  .km-flow__num {
    font-size: 1.8rem;
  }

  .km-flow__content {
    display: contents;
  }

  .km-flow__title {
    font-size: 1.2rem;
  }

  .km-flow__text {
    width: 100%;
    font-size: 1rem;
  }

  .km-btn {
    width: 100%;
    max-width: 420px;
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   About / video-box (Figma: 「要 〜KANAME〜」とは？)
   -------------------------------------------------------------------------- */
.km-renewal .video-box.km-about {
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 64px auto 0 !important;
  padding: 0 20px !important;
  padding-top: 0 !important;
}

.km-renewal .km-about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 475px;
  align-items: start;
  column-gap: 48px;
}

.km-renewal .km-about__title {
  margin: 0 0 24px;
  padding: 0;
  color: #000;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.km-renewal .km-about__lead {
  margin: 0 0 24px;
  color: #000;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.6;
}

.km-renewal .km-about__text {
  margin: 0;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.85;
}

.km-renewal .km-about__media {
  position: relative;
  width: 475px;
  max-width: 100%;
  margin-top: 4px;
}

.km-renewal .km-about__hero.hero {
  position: relative;
  width: 475px;
  max-width: 100%;
  aspect-ratio: 475 / 270;
}

.km-renewal .km-about__hero .modal-open:not(.play-button) {
  display: block;
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
}

.km-renewal .km-about__hero .modal-open:not(.play-button) img,
.km-renewal .km-about__hero img.km-about__video-img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.km-renewal .km-about__hero .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 16%;
  height: auto;
  transform: translate(-50%, -50%);
}

.km-renewal .km-about__hero .play-button:hover {
  width: 21%;
}

.km-renewal .km-about__hero .play-button img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

@media screen and (max-width: 1100px) {
  .km-renewal .km-about__inner {
    grid-template-columns: 1fr 400px;
    column-gap: 32px;
  }

  .km-renewal .km-about__media {
    width: 400px;
  }

  .km-renewal .km-about__hero.hero {
    width: 400px;
  }

  .km-renewal .km-about__title {
    font-size: 30px;
  }

  .km-renewal .km-about__lead {
    font-size: 18px;
  }

  .km-renewal .km-about__text {
    font-size: 16px;
  }
}

@media screen and (max-width: 834px) {
  .km-renewal .video-box.km-about {
    margin-top: 40px;
  }

  .km-renewal .km-about__inner {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .km-renewal .km-about__title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .km-renewal .km-about__lead {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .km-renewal .km-about__text {
    font-size: 15px;
    line-height: 1.8;
  }

  .km-renewal .km-about__media,
  .km-renewal .km-about__hero.hero {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Pain points (こんなお悩みはありませんか？)
   -------------------------------------------------------------------------- */
.km-renewal .km-pain {
  margin-top: 72px;
}

.km-renewal .km-pain__title {
  margin: 0 0 36px;
  padding: 0;
  color: #000;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.02em;
}

.km-renewal .km-pain__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
  gap: 17px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.km-renewal .km-pain__card {
  position: relative;
  box-sizing: border-box;
  min-height: 132px;
  /* 左: カード余白24 + アイコン24 + 隙間10 */
  padding: 20px 24px 20px 58px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #f7f7f7;
}

/* チェックは li の疑似。カード全体の縦中央に position で配置 */
.km-renewal .km-pain__card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 24px;
  height: 24px;
  background: url("/cms/wp-content/themes/pxp-cms/images/kaname/check.svg") center / 24px 24px no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

.km-renewal .km-pain__card-title,
.km-renewal .km-pain__card-text {
  margin: 0;
  padding: 0;
  color: #000;
}

.km-renewal .km-pain__card-title {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.km-renewal .km-pain__card-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.km-renewal .km-pain__closing {
  margin: 40px 0 0;
  color: #000;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Function list (機能一覧)
   -------------------------------------------------------------------------- */
.km-renewal .km-func {
  margin-top: 72px;
}

.km-renewal .km-func__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.km-renewal .km-func__card {
  margin: 0;
  padding: 0;
  background: transparent;
}

.km-renewal .km-func__img {
  display: block;
  width: 100% !important;
  max-width: 316px;
  height: auto !important;
  margin: 0 0 16px;
  vertical-align: top;
}

.km-renewal .km-func__title {
  margin: 0 0 10px;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.km-renewal .km-func__text {
  margin: 0;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Branch support (安心して長くお使いいただくためのサポート体制)
   -------------------------------------------------------------------------- */
.km-renewal .km-branch {
  box-sizing: border-box;
  margin-top: 28px;
  padding: 28px 32px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #F7F7F7;
}

.km-renewal .km-branch__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.km-renewal .km-branch__content {
  flex: 1 1 auto;
  min-width: 0;
}

.km-renewal .km-branch__title {
  margin: 0 0 16px;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.km-renewal .km-branch__text {
  margin: 0;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}

.km-renewal .km-branch__map {
  flex: 0 0 441px;
  max-width: 45%;
}

.km-renewal .km-branch__map img {
  display: block;
  width: 100% !important;
  max-width: 441px;
  height: auto !important;
  margin: 0 auto;
}

/* 青枠CTA：右矢印は ::after。ホバーで青塗り＋白矢印 */
.km-renewal a.products-btn.km-btn--outline-blue {
  position: relative;
  box-sizing: border-box;
  max-width: 400px;
  padding: 18px 48px 18px 24px;
  border: 2px solid #0068b5;
  border-radius: 6px;
  color: #0068b5;
  background: #fff;
  text-decoration: none;
  transition: 0.2s ease;
}

.km-renewal a.products-btn.km-btn--outline-blue::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #0068b5;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.km-renewal a.products-btn.km-btn--outline-blue:hover {
  background-color: #0068b5;
  color: #fff;
  border-color: #0068b5;
}

.km-renewal a.products-btn.km-btn--outline-blue:hover::after {
  border-color: transparent transparent transparent #fff;
}

/* 青枠の反転：塗りつぶし青＋白文字／白矢印。ホバーで枠線スタイルへ */
.km-renewal a.products-btn.km-btn--solid-blue {
  position: relative;
  box-sizing: border-box;
  max-width: 400px;
  padding: 18px 48px 18px 24px;
  border: 2px solid #0068b5;
  border-radius: 6px;
  color: #fff;
  background: #0068b5;
  text-decoration: none;
  transition: 0.2s ease;
}

.km-renewal a.products-btn.km-btn--solid-blue::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.km-renewal a.products-btn.km-btn--solid-blue:hover {
  background-color: #fff;
  color: #0068b5;
  border-color: #0068b5;
}

.km-renewal a.products-btn.km-btn--solid-blue:hover::after {
  border-color: transparent transparent transparent #0068b5;
}

@media screen and (max-width: 1100px) {
  .km-renewal .km-pain__grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }

  .km-renewal .km-pain__title {
    font-size: 28px;
  }

  .km-renewal .km-pain__closing {
    font-size: 22px;
  }

  .km-renewal .km-func__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .km-renewal .km-branch__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .km-renewal .km-branch__map {
    flex: none;
    max-width: 400px;
    width: 100%;
    margin-inline: auto;
  }

  .km-renewal .km-achievement ul.voiceList {
    grid-template-columns: 1fr;
  }

  .km-renewal .km-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media screen and (max-width: 834px) {
  .km-renewal .km-pain {
    margin-top: 48px;
  }

  .km-renewal .km-pain__title {
    margin-bottom: 24px;
    font-size: 24px;
  }

  .km-renewal .km-pain__card {
    min-height: 0;
    /* 左: 余白16 + アイコン24 + 隙間10 */
    padding: 16px 16px 18px 50px;
  }

  .km-renewal .km-pain__card::before {
    left: 16px;
  }

  .km-renewal .km-pain__card-title {
    font-size: 17px;
  }

  .km-renewal .km-pain__card-text {
    font-size: 14px;
  }

  .km-renewal .km-pain__closing {
    margin-top: 28px;
    font-size: 18px;
  }

  .km-renewal .km-func {
    margin-top: 48px;
  }

  .km-renewal .km-func__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 400px;
    margin-inline: auto;
  }

  .km-renewal .km-func__title {
    font-size: 18px;
  }

  .km-renewal .km-func__text {
    font-size: 14px;
  }

  .km-renewal .km-branch {
    padding: 20px 16px;
  }

  .km-renewal .km-branch__title {
    font-size: 18px;
  }

  .km-renewal .km-branch__text {
    font-size: 14px;
  }

  .km-renewal a.products-btn.km-btn--outline-blue,
  .km-renewal a.products-btn.km-btn--solid-blue {
    width: 90%;
    max-width: 400px;
  }

  .km-renewal .km-stats__label {
    font-size: 16px;
  }

  .km-renewal .km-stats__num {
    font-size: 48px;
  }

  .km-renewal .km-achievement h3.voiceList__title {
    font-size: 16px;
  }
}

.products-subttl {
  padding-left: 0;
    text-indent: 0;
    font-size: 1.4em;
    padding-bottom: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid #333;
}

.mt-0 {
  margin-top: 0 !important;
}

.products-subttl.center {
  border-bottom: none;
  text-align: center;
}

.support-items.mt-5 {
  margin-top: 50px;
}

.border-none {
  border-bottom: none !important;
}

.borderNone {
  border: none !important;
}

h3.voiceList__title {
  color: #333;
}

.price-text.products-text.tex-left {
  text-align: start;
}

.km-about__lead.font-bold {
  font-weight: 600;
}

.pT45.bt-6 {
  padding-top: 80px !important;
}