
.ohara-cta-block,
.ohara-cta-block * {
  box-sizing: border-box;
}

.ohara-cta-block {
  --ohara-ink: #3f352f;
  --ohara-green: #34ae3f;
  --ohara-green-dark: #239731;
  --ohara-orange: #ff6b2b;
  --ohara-orange-dark: #f1571f;
  --ohara-blue: #4f93d3;
  --ohara-blue-dark: #387fc1;
  width: min(1111px, calc(100vw - 48px)) !important;
  max-width: none !important;
  margin: 0 calc(50% - min(555.5px, calc(50vw - 24px))) !important;
  padding: 32px 38px 30px;
  color: var(--ohara-ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: linear-gradient(180deg, #fffdfa 0%, #fff8ec 100%);
  border: 1px solid #efe1c9;
  overflow: hidden;
}

.ohara-cta-block > .wp-block-group__inner-container,
.ohara-cta-block__head > .wp-block-group__inner-container,
.ohara-cta-block__card > .wp-block-group__inner-container,
.ohara-cta-block__trust > .wp-block-group__inner-container {
  width: 100% !important;
  max-width: none !important;
}

.ohara-cta-block :where(h2, h3, p, a) {
  letter-spacing: 0;
  text-transform: none;
}

.ohara-cta-block__head {
  margin-bottom: 18px;
  padding: 0 100px;
  text-align: center;
}

.ohara-cta-block__head > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ohara-cta-block__title {
  width: 100%;
  margin: 0 !important;
  color: #453b35;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
  font-size: 41px !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  text-align: center !important;
  white-space: nowrap;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ohara-cta-block__title::before,
.ohara-cta-block__title::after {
  content: none !important;
  display: none !important;
}

.ohara-cta-block__lead {
  margin-top: 9px !important;
  color: #443a34;
  font-size: 19px !important;
  line-height: 1.5 !important;
  white-space: nowrap;
}

.ohara-cta-block .sp-only {
  display: none;
}

.ohara-cta-block__cards {
  gap: 8px !important;
  align-items: stretch !important;
}

.ohara-cta-block__card {
  min-height: 300px;
  padding: 13px 5px 10px !important;
  text-align: center;
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, .76);
}

.ohara-cta-block__card > .wp-block-group__inner-container {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.ohara-cta-block__card--line {
  --accent: var(--ohara-green);
  --button-bg: linear-gradient(180deg, #58c85f 0%, var(--ohara-green-dark) 100%);
  --note-border: rgba(52, 174, 63, .58);
  background: linear-gradient(180deg, #f8fff4 0%, #f0f8e8 100%);
}

.ohara-cta-block__card--tel {
  --accent: var(--ohara-orange);
  --button-bg: linear-gradient(180deg, #ff8645 0%, var(--ohara-orange-dark) 100%);
  --note-border: rgba(255, 107, 43, .58);
  background: linear-gradient(180deg, #fff9f2 0%, #fff0e6 100%);
}

.ohara-cta-block__card--mail {
  --accent: var(--ohara-blue);
  --button-bg: linear-gradient(180deg, #6aa9df 0%, var(--ohara-blue-dark) 100%);
  --note-border: rgba(79, 147, 211, .58);
  background: linear-gradient(180deg, #f7fbff 0%, #edf5fd 100%);
}

.ohara-cta-block__icon {
  width: 86px;
  height: 86px;
  margin: 0 auto !important;
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(108, 85, 55, .08);
}

.ohara-cta-block__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ohara-cta-block__label {
  margin: 0 !important;
  color: var(--accent);
  font-size: 29px !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  white-space: nowrap;
}

.ohara-cta-block__sub {
  margin: 0 !important;
  color: #3f352f;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.35 !important;
  white-space: nowrap;
}

.ohara-cta-block__note {
  margin: 0 !important;
  padding-top: 8px;
  color: #453b35;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.45 !important;
  border-top: 2px dotted var(--note-border);
}

.ohara-cta-block__buttons {
  margin-top: 0 !important;
}

.ohara-cta-block__buttons .wp-block-button,
.ohara-cta-block__buttons.heart-block-button {
  width: 100%;
}

.ohara-cta-block__buttons .wp-block-button__link,
.ohara-cta-block__buttons .heart-block-button__link {
  width: 100%;
  min-height: 60px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  white-space: nowrap;
  background: var(--button-bg) !important;
  border-radius: 22px !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.ohara-cta-block__card--mail .wp-block-button__link,
.ohara-cta-block__card--mail .heart-block-button__link {
  font-size: 21px !important;
}

.ohara-cta-block__buttons .wp-block-button__link:hover,
.ohara-cta-block__buttons .wp-block-button__link:focus-visible,
.ohara-cta-block__buttons .heart-block-button__link:hover,
.ohara-cta-block__buttons .heart-block-button__link:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.05);
}

.ohara-cta-block__trust {
  margin-top: 20px !important;
  padding: 16px 20px !important;
  background: rgba(255, 255, 255, .84);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(105, 83, 50, .06);
}

.ohara-cta-block__trust > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 !important;
}

.ohara-cta-block__trust-title,
.ohara-cta-block__trust-item {
  display: flex !important;
  margin: 0 !important;
}

.ohara-cta-block__trust-item > .wp-block-group__inner-container {
  min-width: 0;
  width: auto !important;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ohara-cta-block__trust-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin: 0 !important;
}

.ohara-cta-block__trust-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ohara-cta-block__trust-title {
  border-left: 0;
  color: #3f352f;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  white-space: nowrap;
  justify-content: center;
}

.ohara-cta-block__trust-text {
  margin: 0 !important;
  color: #3f352f;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.52 !important;
}

.ohara-cta-block__trust-text strong,
.ohara-cta-block__trust-text span {
  display: block;
  white-space: nowrap;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
}

.ohara-cta-block__trust-text strong {
  font-weight: 900;
}

@media (max-width: 1160px) {
  .ohara-cta-block {
    width: calc(100vw - 32px) !important;
    margin-left: calc(50% - 50vw + 16px) !important;
    margin-right: calc(50% - 50vw + 16px) !important;
    padding: 34px 22px 28px;
  }

  .ohara-cta-block__head {
    padding: 0 70px;
  }

  .ohara-cta-block__title {
    font-size: 38px !important;
  }

  .ohara-cta-block__buttons .wp-block-button__link,
  .ohara-cta-block__buttons .heart-block-button__link {
    font-size: 22px !important;
  }
}

@media (max-width: 900px) {
  .ohara-cta-block {
    padding: 32px 18px 27px;
  }

  .ohara-cta-block__head {
    padding: 0 26px;
  }

  .ohara-cta-block__title {
    font-size: 34px !important;
    white-space: normal;
  }

  .ohara-cta-block__lead {
    font-size: 16px !important;
    white-space: normal;
  }

  .ohara-cta-block__card {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .ohara-cta-block__buttons .wp-block-button__link,
  .ohara-cta-block__buttons .heart-block-button__link {
    font-size: 19px !important;
  }

  .ohara-cta-block__trust > .wp-block-group__inner-container {
    grid-template-columns: 1fr 1fr;
    gap: 16px 0 !important;
  }

  .ohara-cta-block__trust-title {
    grid-column: 1 / -1;
  }

  .ohara-cta-block__trust-item:nth-child(2n) {
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .ohara-cta-block {
    width: calc(100vw - 24px) !important;
    margin-left: calc(50% - 50vw + 12px) !important;
    margin-right: calc(50% - 50vw + 12px) !important;
    padding: 29px 14px 23px;
  }

  .ohara-cta-block__head {
    padding: 0;
    margin-bottom: 17px;
  }

  .ohara-cta-block__title {
    font-size: 22px !important;
    white-space: nowrap;
  }

  .ohara-cta-block__lead {
    text-align: center;
  }

  .ohara-cta-block .sp-only {
    display: inline;
  }

  .ohara-cta-block__cards {
    display: block !important;
  }

  .ohara-cta-block__cards > .wp-block-column {
    margin-bottom: 16px;
  }

  .ohara-cta-block__card {
    min-height: 0;
    padding: 12px 12px 14px !important;
    text-align: left;
  }

  .ohara-cta-block__card > .wp-block-group__inner-container {
    min-height: 0;
    display: grid !important;
    grid-template-columns: 90px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 5px;
    row-gap: 7px;
    align-items: center;
  }

  .ohara-cta-block__icon {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 78px;
    height: 78px;
    margin: 0 !important;
  }

  .ohara-cta-block__icon img {
    width: 100%;
    height: 100%;
  }

  .ohara-cta-block__label,
  .ohara-cta-block__sub,
  .ohara-cta-block__note {
    grid-column: 2;
  }

  .ohara-cta-block__label {
    font-size: 21px !important;
    text-align: left !important;
    white-space: normal;
  }

  .ohara-cta-block__sub,
  .ohara-cta-block__note {
    font-size: 14px !important;
    line-height: 1.35 !important;
    white-space: normal;
    text-align: left !important;
  }

  .ohara-cta-block__buttons {
    grid-column: 1 / -1;
  }

  .ohara-cta-block__buttons .wp-block-button__link,
  .ohara-cta-block__buttons .heart-block-button__link {
    min-height: 58px;
    font-size: 20px !important;
  }

  .ohara-cta-block__buttons--tel .wp-block-button__link,
  .ohara-cta-block__buttons--tel .heart-block-button__link {
    font-size: 0 !important;
  }

  .ohara-cta-block__buttons--tel .wp-block-button__link::after,
  .ohara-cta-block__buttons--tel .heart-block-button__link::after {
    content: "電話をかける";
    font-size: 20px;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
    font-weight: 900;
  }

  .ohara-cta-block__trust {
    padding: 16px 14px !important;
    overflow: hidden;
  }

  .ohara-cta-block__trust > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 !important;
  }

  .ohara-cta-block__trust-title {
    grid-column: 1 / -1;
    padding: 0 !important;
  }

  .ohara-cta-block__trust-title br {
    display: none;
  }

  .ohara-cta-block__trust-item {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
    padding: 10px 6px !important;
    border-left: 0;
  }

  .ohara-cta-block__trust-item > .wp-block-group__inner-container {
    min-width: 0;
    gap: 0px;
  }

  .ohara-cta-block__trust-icon {
    width: 32px;
    height: 32px;
  }

  .ohara-cta-block__trust-text {
    min-width: 0;
    font-size: 11px !important;
    line-height: 1.48 !important;
  }

  .ohara-cta-block__trust-item:nth-child(2n + 1) {
    border-left: 1px dotted #decfba;
  }

  .ohara-cta-block__trust-item:nth-child(n + 4) {
    border-top: 1px dotted #decfba;
  }

  @media (max-width: 360px) {
    .ohara-cta-block__title {
      font-size: 20px !important;
    }
  }
}
