/* === Base Overrides === */
.room-cleaning .wrap {
  max-width: 100% !important;
  padding: 0 !important;
}

.room-cleaning * {
  box-sizing: border-box;
}

.rc-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, calc(11vw - 21px), 120px);
}

/* === HERO === */
.rc-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.rc-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.33);
}

.rc-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(40px, 6vw, 80px) clamp(20px, calc(11vw - 21px), 120px);
  text-align: left;
  width: 100%;
}

.rc-hero__title1 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(38px, 7.5vw, 78px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.33;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.53);
  margin: 0;
  text-align: center;
}

.rc-hero__title2 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(24px, 5.5vw, 32px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.53);
  margin: 0;
  line-height: 1.4;
}

.rc-hero__sub {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(16px, 2vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  margin: 8px 0 1em;
}

.rc-hero__list {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
}

.rc-hero__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(14px, 1.6vw, 24px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.rc-hero__list li::before {
  content: '';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2e7d32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.rc-hero__cta {
  margin-top: 12px;
}

.rc-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #22C55E;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 18px 48px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  transition: background 0.2s;
}

.rc-hero__btn:hover {
  background: #16A34A;
  color: #fff;
}

/* === FEATURES === */
.rc-feat {
  background: #F4F4F5;
  padding: 80px 0;
}

.rc-feat__hdr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  text-align: center;
}

.rc-feat__label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #22C55E;
  letter-spacing: 2px;
}

.rc-feat__title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  color: #333333;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.rc-feat__sub {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: #52525B;
  max-width: 757px;
  margin: 0;
}

.rc-feat__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.rc-feat__card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rc-feat__card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.rc-feat__card-img-placeholder {
  width: 100%;
  height: 200px;
  background: #D1D5DB;
}

.rc-feat__card-body {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.rc-feat__card-num {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: #22C55E;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.rc-feat__card-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #000;
  margin: 0;
}

.rc-feat__card-desc {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: #71717A;
  line-height: 1.6;
  margin: 0;
}

/* === BEFORE/AFTER === */
.rc-ba {
  background: #fff;
  padding: 80px 0;
}

.rc-ba__hdr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  text-align: center;
}

.rc-ba__label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #22C55E;
  letter-spacing: 2px;
}

.rc-ba__title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  color: #333333;
  letter-spacing: -0.02em;
  margin: 0;
}

.rc-ba__rows {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.rc-ba__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1 1 calc(50% - 19px);
  min-width: 0;
}

.rc-ba__card {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #E4E4E7;
  height: 420px;
}

.rc-ba__card-titlebar {
  background: #1A5632;
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  flex-shrink: 0;
}

.rc-ba__card-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  flex: 1;
  min-height: 0;
}

.rc-ba__card-img-wrap {
  position: relative;
  overflow: hidden;
}

.rc-ba__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rc-ba__card-img-placeholder {
  width: 100%;
  height: 100%;
  background: #D1D5DB;
}

.rc-ba__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.rc-ba__badge--before {
  background: #4B5563;
  color: #fff;
}

.rc-ba__badge--after {
  background: #16A34A;
  color: #fff;
}

.rc-ba__card-descs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  flex-shrink: 0;
}

.rc-ba__card-desc {
  padding: 8px 12px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #52525B;
}

.rc-ba__card-desc--before {
  background: #F8F8F8;
}

.rc-ba__card-desc--after {
  background: #E8F5E9;
  color: #1A5632;
}

/* === TESTIMONIALS === */
.rc-testi {
  background: #E8F5E9;
  padding: 80px 0;
}

.rc-testi__hdr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  text-align: center;
}

.rc-testi__label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #22C55E;
  letter-spacing: 2px;
}

.rc-testi__title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  color: #1A5632;
  letter-spacing: -0.02em;
  margin: 0;
}

.rc-testi__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rc-testi__card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #C8E6C9;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rc-testi__text {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 18px;
  color: #52525B;
  line-height: 1.7;
  margin: 0;
}

.rc-testi__name {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1A5632;
}

/* === PRICING === */
.rc-pricing {
  background: #F4F4F5;
  padding: 80px 0;
}

.rc-pricing__hdr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  text-align: center;
}

.rc-pricing__label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #22C55E;
  letter-spacing: 2px;
}

.rc-pricing__title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 800;
  color: #333333;
  letter-spacing: -0.02em;
  margin: 0;
}

.rc-pricing__notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
}

.rc-pricing__note {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: #71717A;
}

.rc-pricing__note-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rc-pricing__note-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #52525B;
  margin: 0;
}

.rc-pricing__note-list {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rc-pricing__note-list li {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #71717A;
}

.rc-pricing__table-wrap {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E4E4E7;
  overflow: hidden;
  margin-bottom: 8px;
  overflow-x: auto;
}

.rc-pricing__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.rc-pricing__table th {
  background: #22C55E;
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 0 16px;
  height: 56px;
  text-align: left;
  white-space: nowrap;
}

.rc-pricing__table th.th-right {
  text-align: right;
}

.rc-pricing__table td {
  height: 52px;
  padding: 0 16px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  border-bottom: 1px solid #E4E4E7;
  vertical-align: middle;
}

.rc-pricing__table td.td-right {
  text-align: right;
}

.rc-pricing__table tr.row-alt td {
  background: #F9FAFB;
}

.rc-pricing__table tr.section-hdr td {
  background: #E8F5E9;
  color: #1A5632;
  font-weight: 700;
  height: 44px;
  border-bottom: none;
}

.rc-pricing__price {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.rc-pricing__maker {
  font-weight: 600;
}

.rc-pricing__note-cell {
  color: #71717A;
}

.rc-pricing__tax {
  text-align: right;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: #A1A1AA;
  margin: 8px 0 32px;
}

.rc-pricing__add-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #71717A;
  margin: 0 0 12px;
}

.rc-pricing__add-wrap {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #E4E4E7;
  overflow: hidden;
  overflow-x: auto;
}

.rc-pricing__add-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.rc-pricing__add-table td {
  height: 52px;
  padding: 0 16px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  border-bottom: 1px solid #E4E4E7;
  vertical-align: middle;
}

.rc-pricing__add-table tr:last-child td {
  border-bottom: none;
}

.rc-pricing__add-table tr.row-alt td {
  background: #F9FAFB;
}

.rc-pricing__add-num {
  width: 40px;
  padding: 0 12px !important;
  color: #22C55E;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.rc-pricing__add-price {
  width: 120px;
  text-align: right;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

/* === FLOW === */
.rc-flow {
  background: #fff;
  padding: 80px 0;
}

.rc-flow__hdr {
  text-align: center;
  margin-bottom: 56px;
}

.rc-flow__title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  color: #333333;
  letter-spacing: -0.02em;
  margin: 0;
}

.rc-flow__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.rc-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 200px;
}

.rc-flow__step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1A5632;
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.rc-flow__step-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
}

.rc-flow__step-desc {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #71717A;
  line-height: 1.5;
  margin: 0;
}

.rc-flow__connector {
  flex: 1;
  height: 2px;
  background: #D1D5DB;
  margin-top: 31px;
  min-width: 16px;
}

@media (max-width: 640px) {
  .rc-flow__steps {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .rc-flow__step {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    width: 100%;
    max-width: 100%;
    text-align: left;
    padding: 12px 0;
  }

  .rc-flow__step-num {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 48px;
    height: 48px;
    font-size: 22px;
    margin-bottom: 0;
  }

  .rc-flow__step-label {
    grid-column: 2;
    grid-row: 1;
  }

  .rc-flow__step-desc {
    grid-column: 2;
    grid-row: 2;
  }

  .rc-flow__connector {
    width: 2px;
    height: 16px;
    margin: 0 0 0 23px;
    min-width: 0;
  }
}

/* === CTA === */
.rc-cta {
  background: #22C55E;
  padding: 80px 0;
}

.rc-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.rc-cta__title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.rc-cta__sub {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

.rc-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #E8963E;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 18px 48px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  transition: background 0.2s;
}

.rc-cta__btn:hover {
  background: #d47a28;
  color: #fff;
}

/* === Responsive === */
@media (max-width: 900px) {
  .rc-feat__cards {
    grid-template-columns: 1fr;
  }

  .rc-ba__rows {
    flex-direction: column;
  }

  .rc-ba__row {
    display: grid;
    grid-template-columns: 1fr;
    flex: none;
    width: 100%;
  }

  .rc-ba__card {
    height: auto;
  }

  .rc-ba__card-imgs {
    height: 200px;
  }
}

@media (max-width: 640px) {
  .rc-pricing__table-wrap {
    overflow-x: visible;
  }

  .rc-pricing__table {
    display: block;
    min-width: 0;
  }

  .rc-pricing__table thead {
    display: none;
  }

  .rc-pricing__table tbody {
    display: block;
  }

  /* Each row becomes a flex container with wrapping */
  .rc-pricing__table tr {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #E4E4E7;
    padding: 4px 0;
  }

  .rc-pricing__table td {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 3px 8px;
    font-size: 14px;
    border-bottom: none;
  }

  /* Section headers — single cell spans full width */
  .rc-pricing__table .section-hdr {
    padding: 0;
  }

  .rc-pricing__table .section-hdr td {
    flex: 1;
    min-height: 40px;
    padding: 0 10px;
  }

  /*
   * Regular rows: grid layout
   * Columns: auto(区分) | auto(メーカー) | 1fr(車種) | auto(料金)
   * Row 1: td1 td2 td3 td5(rowspan2)
   * Row 2: td4(colspan3)
   * td4 always starts at col1 → note-cell left-edge is consistent
   * regardless of whether td2 has a maker name.
   */
  .rc-pricing__table tbody tr:not(.section-hdr):not(.opt-row) {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
  }

  .rc-pricing__table tbody tr:not(.section-hdr):not(.opt-row) td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    font-size: 11px;
    color: #A1A1AA;
    padding: 3px 2px 3px 10px;
  }

  .rc-pricing__table tbody tr:not(.section-hdr):not(.opt-row) td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 6px 3px 2px;
    white-space: nowrap;
  }

  .rc-pricing__table tbody tr:not(.section-hdr):not(.opt-row) td:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    font-size: 14px;
    padding: 3px 10px 3px 0;
    min-width: 0;
    overflow: hidden;
  }

  .rc-pricing__table tbody tr:not(.section-hdr):not(.opt-row) td:nth-child(4) {
    grid-column: 1 / 4;
    grid-row: 2;
    font-size: 12px;
    color: #71717A;
    padding: 0 8px 5px 10px;
    align-items: flex-start;
  }

  .rc-pricing__table tbody tr:not(.section-hdr):not(.opt-row) td:nth-child(5) {
    grid-column: 4;
    grid-row: 1 / 3;
    white-space: nowrap;
    padding: 0 10px;
    justify-content: flex-end;
    font-size: 15px;
    align-self: center;
  }

  /*
   * Opt rows: 2-line layout
   * Line 1: サービス名(1=colspan3, flex:1) — fills full width, wraps rest
   * Line 2: 注記(2, flex:1) + 料金(3, auto)
   */
  .rc-pricing__table .opt-row td:nth-child(1) {
    flex: 1;
    font-size: 14px;
    padding: 4px 10px 2px;
  }

  .rc-pricing__table .opt-row td:nth-child(2) {
    flex: 1;
    font-size: 11px;
    color: #A1A1AA;
    padding: 0 8px 5px 10px;
    align-items: flex-start;
    line-height: 1.4;
  }

  .rc-pricing__table .opt-row td:nth-child(3) {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 10px 5px;
    justify-content: flex-end;
    font-size: 15px;
  }

  /* Add-on table: remove min-width */
  .rc-pricing__add-wrap {
    overflow-x: visible;
  }

  .rc-pricing__add-table {
    min-width: 0;
  }

  .rc-pricing__add-table td {
    font-size: 14px;
    padding: 0 10px;
  }

  .rc-pricing__add-price {
    width: auto;
    font-size: 15px;
  }
}

@media (max-width: 999px) {
  .rc-hero__title2 {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .rc-hero__inner {
    gap: 12px;
  }

  .rc-testi__text {
    font-size: 16px;
  }

  .rc-ba__card-imgs {
    height: 160px;
  }
}