/* Shared additions for Kansai and future Hokusetsu homepages. */
.renewal-line { padding: 28px 20px 32px; text-align: center; background: #fffaf6; }
.renewal-line__lead { margin: 0 0 12px; color: var(--cl-acnt); font-family: var(--zen-maru-gothic); font-size: 18px; font-weight: 700; line-height: 1.6; }
.renewal-line__button { display: flex; align-items: center; justify-content: center; gap: 18px; width: min(100%, 440px); min-height: 80px; margin: auto; padding: 14px 20px; border-radius: 16px; background: #087e3d; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.5; box-shadow: 0 3px 0 #065c2d; }
.renewal-line__button small { display: block; font-size: 15px; font-weight: 500; }
.renewal-line__button:hover { background: #066832; }
.renewal-line__button:focus-visible, .renewal-comparison a:focus-visible, .renewal-comparison__scroll:focus-visible { outline: 3px solid #5f4532; outline-offset: 4px; }
.renewal-comparison { position: relative; z-index: 1; max-width: 1020px; margin: 0 auto 56px; padding: 0 20px; color: #39291f; }
.renewal-comparison h3 { margin: 0 0 20px; text-align: center; font-family: var(--zen-maru-gothic); font-size: 24px; line-height: 1.5; }
.renewal-comparison__hint { display: none; margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.renewal-comparison__scroll { overflow-x: auto; border: 1px solid #d9bfb7; border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgb(95 69 50 / 5%); }
.renewal-comparison table { width: 100%; min-width: 900px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.7; letter-spacing: 0; text-align: left; }
.renewal-comparison caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.renewal-comparison thead th:nth-child(1) { width: 24%; }
.renewal-comparison thead th:nth-child(2) { width: 28%; }
.renewal-comparison thead th:nth-child(3) { width: 10%; }
.renewal-comparison thead th:nth-child(4) { width: 16%; }
.renewal-comparison thead th:nth-child(5) { width: 8%; }
.renewal-comparison thead th:nth-child(6) { width: 14%; }
.renewal-comparison th, .renewal-comparison td { padding: 18px 16px; border-top: 1px solid #ead8d1; border-right: 1px solid #ead8d1; vertical-align: middle; }
.renewal-comparison tr > :last-child { border-right: 0; }
.renewal-comparison thead th { background: #f0dad6; white-space: nowrap; text-align: center; border-top: 0; padding: 16px 10px; }
.renewal-comparison tbody th { width: 210px; min-width: 180px; background: #fff5ef; }
.renewal-comparison tbody td:nth-child(2) { min-width: 210px; }
.renewal-comparison tbody td:nth-child(3), .renewal-comparison tbody td:nth-child(5) { text-align: center; white-space: nowrap; }
.renewal-comparison tbody td:nth-child(4) { min-width: 155px; text-align: center; }
.renewal-comparison a { color: #694631; text-decoration: underline; text-underline-offset: 4px; }
.renewal-comparison__price { color: #a62a42; font-size: 20px; font-weight: 700; white-space: nowrap; text-align: center; }
@media (max-width: 959px) {
 .renewal-comparison h3 { font-size: 21px; }
 .renewal-comparison thead th:nth-child(1) { width: 18%; }
 .renewal-comparison thead th:nth-child(2) { width: 30%; }
 .renewal-comparison thead th:nth-child(4) { width: 18%; }
 .renewal-comparison thead th:nth-child(6) { width: 16%; }
 .renewal-comparison__hint { display: block; }
 .renewal-comparison tbody th { position: sticky; left: 0; z-index: 1; box-shadow: 2px 0 4px #39291f14; min-width: 145px; max-width: 160px; }
 .renewal-comparison th, .renewal-comparison td { padding: 14px 12px; }
}
@media (max-width: 380px) {
 .renewal-line__button { gap: 12px; font-size: 19px; }
 .renewal-comparison { padding: 0 12px; }
}

/* Match the original rounded plan cards and keep shared content aligned. */
.renewal-comparison { max-width: 1020px; font-family: var(--zen-maru-gothic); }
.renewal-comparison h3 { color: var(--cl-acnt); font-size: 22px; }
.renewal-comparison__scroll { border-color: #edc5ce; border-radius: 14px; box-shadow: 0 2px 9px rgb(155 78 96 / 12%); }
.renewal-comparison thead th { background: #f7dce3; color: #ad304e; }
.renewal-comparison tbody th { background: #fff8fa; }
.renewal-comparison tbody th a { color: #c53756; text-decoration-thickness: 1px; font-size: 17px; }
.renewal-comparison tbody tr:last-child th { background: #fbf8ea; }
.renewal-comparison tbody tr:last-child th a,
.renewal-comparison tbody tr:last-child .renewal-comparison__price { color: #826d13; }
.renewal-comparison tbody td { background: #fff; }
.renewal-comparison th, .renewal-comparison td { border-color: #f0dce0; padding-top: 22px; padding-bottom: 22px; }
@media (min-width: 960px) {
 .section-plan .section-plan-inner_top .plan-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px; width: 100%; padding: 0 20px; gap: 28px;
  align-items: stretch; margin: 0 auto 48px;
 }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item {
  min-width: 0; width: 100%; margin: 0; display: flex; flex-direction: column;
 }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item .plan-accordion_head {
  padding: 24px 28px 0; min-height: 0; align-items: flex-start;
 }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item .plan-accordion_text { align-items: center; width: 100%; gap: 8px; }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item .plan-ttl {
  width: 100%; font-size: 23px; letter-spacing: .03em; line-height: 1.35; margin-bottom: 4px;
 }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item .plan-ttl::before { margin-bottom: 12px; }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item .plan-lead { width: 100%; font-size: 16px; }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item .plan-accordion_body {
  display: flex; flex-direction: column; flex: 1; padding: 18px 28px 24px;
 }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item .plan-table { width: 100%; max-width: 360px; align-self: center; }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item .plan-flow { gap: 12px; margin: 0 0 16px; }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item:nth-child(4) .plan-flow { margin: 0 0 16px; }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item .plan-flow li { font-size: 14px; line-height: 1.4; padding: 10px 2px; }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item .plan-price { font-size: 36px; line-height: 1.5; margin-top: 0; padding-top: 12px; margin-bottom: 16px; }
 .section-plan .section-plan-inner_top .plan-list .plan-list_item .btn01 { width: 100%; max-width: 360px; align-self: center; margin-top: auto; font-size: 16px; }
}
@media (max-width: 959px) {
 .renewal-comparison h3 { font-size: 20px; }
 .renewal-comparison tbody th a { font-size: 16px; }
 .renewal-comparison th, .renewal-comparison td { padding-top: 16px; padding-bottom: 16px; }
}

/* Keep the original watercolor size, placement and multiply blending from top.css.
   Content sits above the decoration, so the watercolor stays behind the table. */
.section-plan .section-plan-inner_top .plan-list { z-index: 1; }

/* Phone comparison: show all four plans without horizontal scrolling. */
.renewal-comparison__mobile { display: none; }
@media (max-width: 767px) {
 .renewal-comparison { padding: 0 12px; }
 .renewal-comparison > .renewal-comparison__hint,
 .renewal-comparison > .renewal-comparison__scroll { display: none; }
 .renewal-comparison__mobile { display: block; }
 .renewal-comparison__common { margin: 0 0 14px; text-align: center; font-size: 13px; line-height: 1.7; letter-spacing: 0; }
 .renewal-comparison__common strong { color: #ad304e; font-weight: 500; }
 .renewal-comparison__compact { border: 1px solid #edc5ce; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 9px rgb(155 78 96 / 12%); }
 .renewal-comparison .renewal-comparison__mobile table { min-width: 0; width: 100%; font-size: 12px; line-height: 1.65; text-align: center; }
 .renewal-comparison__mobile .renewal-comparison__item-col { width: 19%; }
 .renewal-comparison .renewal-comparison__mobile th,
 .renewal-comparison .renewal-comparison__mobile td { width: auto; min-width: 0; max-width: none; padding: 14px 3px; white-space: normal; }
 .renewal-comparison .renewal-comparison__mobile thead th { padding: 16px 2px; font-weight: 700; }
 .renewal-comparison .renewal-comparison__mobile thead th:nth-child(n) { width: 20.25%; }
 .renewal-comparison .renewal-comparison__mobile thead th:first-child { width: 19%; }
 .renewal-comparison .renewal-comparison__mobile thead th:last-child { background: #f5edcc; color: #826d13; }
 .renewal-comparison .renewal-comparison__mobile thead a { color: inherit; font-size: 12px; text-underline-offset: 3px; }
 .renewal-comparison .renewal-comparison__mobile tbody th { position: static; box-shadow: none; background: #fff8fa; font-weight: 500; }
 .renewal-comparison .renewal-comparison__mobile tbody tr:last-child th { background: #fff8fa; }
 .renewal-comparison .renewal-comparison__mobile tbody td:last-child { background: #fffdf5; }
 .renewal-comparison__prices strong { color: #d8445d; font-size: clamp(12px, 3.4vw, 15px); font-weight: 700; white-space: nowrap; }
 .renewal-comparison__prices small { display: block; color: #d8445d; font-size: 11px; line-height: 1.4; }
 .renewal-comparison__prices td:last-child strong,
 .renewal-comparison__prices td:last-child small { color: #826d13; }
}
