@charset "UTF-8";

/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
  --ams-black: #323232;
  --ams-navy: #1c2953;
  --ams-green: #00986b;
  --ams-green-soft: #e1efe4;
  --ams-orange: #e6542a;
  --ams-yellow: #efe46b;
  --ams-text: #333333;
  --ams-white: #ffffff;
  --ams-border: #d9d9d9;
}

/* =========================================================
   GLOBAL / BASE
========================================================= */
.ams-page,
.ams-page *,
.ams-page *::before,
.ams-page *::after {
  box-sizing: border-box;
}

.ams-page {
  width: 100%;
  padding: 0;
  color: var(--ams-text);
  background: #fff;
}

.ams-page,
.ams-page * {
  font-family: "Noto Sans JP", sans-serif !important;
  font-feature-settings: "palt" !important;
  letter-spacing: 1.2px !important;
}

.ams-page img {
  max-width: 100%;
  display: block;
}

.ams-page h1,
.ams-page h2,
.ams-page h3,
.ams-page h4,
.ams-page h5,
.ams-page h6,
.ams-page p {
  margin-top: 0;
}

.ams-page__container {
  position: relative;
  padding-left: 0;
  padding-right: 0;
}

.ams-inline-subtitle {
  color: #2b3445 !important;
  font-weight: 600;
}

.ams-page br.is-sp {
  display: none !important;
}

/* =========================================================
   LAYOUT UTILITIES
========================================================= */
.ams-section {
  position: relative;
  padding: 60px 0;
}

.ams-section--white {
  background: #fff;
}

.ams-section--gray-light {
  background: #f4f4f4;
}

.ams-section--green-soft {
  background: #e1efe4;
}

.ams-section-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.ams-section-inner--why {
  max-width: 90%;
}

.ams-section-inner--plan {
  max-width: 1100px;
}

.ams-section-inner--wide {
  max-width: 1194px;
}

.ams-section-inner--diagnosis {
  max-width: 72%;
}

/* =========================================================
   SECTION TITLES / TEXT
========================================================= */
.ams-section-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ams-navy);
}

.ams-section-title span {
  color: var(--ams-orange);
  font-weight: 600;
}

.ams-section-inner--diagnosis > .ams-section-title.ams-section-title--orange {
  color: var(--ams-orange);
}

.ams-section-inner--diagnosis > .ams-section-title.ams-section-title--orange > span {
  color: var(--ams-navy);
}

.ams-middle-text h3 > span {
  color: var(--ams-black);
}

.ams-middle-text-2 h3 > span {
  color: var(--ams-black);
}

.ams-section-subtitle {
  margin: 0 0 30px;
  font-size: 18px;
  color: var(--ams-text);
  font-weight: 600;
  line-height: 1.8;
}

/* =========================================================
   BUTTONS
========================================================= */
.ams-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition: background 0.2s ease !important;
  box-shadow: none !important;
}

.ams-btn:hover,
.ams-btn:focus {
  color: #fff !important;
  opacity: 1 !important;
  background: #d26b39;
}

.ams-btn span {
  font-size: 0.85em;
  letter-spacing: 0;
}

.ams-btn--primary {
  background: #ee7948;
  color: #fff !important;
}

.ams-btn--primary:hover {
  opacity: 0.9;
}

.ams-btn--large {
  width: 100%;
  max-width: 330px;
  min-width: 0;
  padding: 22px 20px;
  font-size: 14px;
}

/* =========================================================
   HERO SECTION
========================================================= */
.ams-hero {
  position: relative;
  overflow: visible;
  padding-top: 100px;
}

.ams-hero__content {
  position: relative;
  padding: 0 40px 70px;
}

.ams-hero__lead {
  margin-left: 16%;
  position: relative;
  height: 130px;
}

.ams-hero__lead-box {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: #1b2f67;
  font-weight: 700;
  font-size: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.ams-hero__lead-box:first-child {
  left: 0;
}

.ams-hero__lead-box + .ams-hero__lead-box {
  top: 78px;
  left: 160px;
}

.ams-hero__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.ams-hero__left {
  width: 43%;
  text-align: left;
  margin-left: 10%;
  margin-top: 70px;
}

.ams-hero__right {
  width: 39%;
  text-align: center;
  padding-top: 152px;
  margin-right: 10%;
}

.ams-hero__title {
  margin: 0 0 30px;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
}

.ams-hero__desc {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  max-width: 405px;
}

.ams-hero__note {
  margin: 14px 0 0 !important;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.ams-anchor-nav-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  width: 100%;
  z-index: 10;
}

.ams-anchor-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.ams-anchor-nav__item {
  min-width: 126px;
  padding: 6px 20px 5px;
  background: #9bc89d;
  transition: background 0.2s ease !important;
  color: #fff !important;
  text-decoration: none !important;
  text-align: center;
  font-weight: 400;
  font-size: 16px;
  border-radius: 4px;
  line-height: 1.1;
}

.ams-anchor-nav__item:hover,
.ams-anchor-nav__item:focus {
  color: #fff !important;
  opacity: 1 !important;
  background: #88b88a;
}

.ams-anchor-nav__item span {
  display: block;
  width: 8px;
  height: 8px;
  margin: 2px auto 5px;
  font-size: 0;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* =========================================================
   WHY SECTION
========================================================= */
#ams-why {
  padding-top: 95px;
  padding-bottom: 0;
}

.ams-problems {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin: 0 0 50px;
}

.ams-problem {
  width: 140px;
  text-align: center;
}

.ams-problem h3 {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ams-navy);
  font-weight: 700;
}

.ams-problem img {
  width: 180px;
  margin: 0 auto;
}

.ams-message {
  width: 400px;
  margin: 0 auto 25px;
  font-size: 16px;
  font-weight: 600;
  color: #2f384d;
  line-height: 1.2;
}

.ams-message--accent {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  margin: 0 auto;
}

.ams-message--accent span {
  color: var(--ams-green);
  font-weight: 700;
  font-size: 24px;
}

/* =========================================================
   ABOUT SECTION
========================================================= */
.ams-about {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ams-about__wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 170px;
  background: #fff;
  z-index: 0;
  pointer-events: none;
  transform: none;
  clip-path: polygon(
    0 0,
    100% 0,
    50% 74%,
    50% 74%,
    0 0
  );
}

.ams-about .ams-section-inner {
  position: relative;
  z-index: 1;
}

.ams-badges {
  display: flex;
  position: relative;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 100%;
  height: 95px;
}

.ams-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  background: #49b39b;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
}

.ams-badge::after {
  content: "";
  position: absolute;
  bottom: -15px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 16px solid #49b39b;
}

.ams-badge:nth-child(1) {
  left: 23%;
  top: 115px;
}

.ams-badge:nth-child(2) {
  left: 29%;
  top: 36px;
}

.ams-badge:nth-child(3) {
  right: 29%;
  top: 48px;
}

.ams-badge:nth-child(4) {
  right: 21%;
  top: 112px;
}

.ams-badge:nth-child(1)::after {
  left: 68%;
}

.ams-badge:nth-child(2)::after {
  left: 77%;
}

.ams-badge:nth-child(3)::after {
  right: 72%;
}

.ams-badge:nth-child(4)::after {
  right: 73%;
}

.ams-about__lead {
  font-size: 16px;
  font-weight: 600;
  color: #2d3447;
  line-height: 1.3;
  margin-bottom: 50px;
}

.ams-about__lead-accent {
  color: var(--ams-green);
  font-size: 24px;
  font-weight: 600;
}

.ams-feature-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.ams-feature-icons__item {
  width: 160px;
}

.ams-feature-icons__card {
  background: #fff;
  border-radius: 8px;
  padding: 12px 0 0;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.ams-feature-icons__card img {
  width: 88px;
  margin-bottom: 6px;
}

.ams-feature-icons__card p {
  font-size: 16px;
  font-weight: 700;
  color: var(--ams-navy);
  line-height: 1.6;
  text-align: center;
}

.ams-feature-icons__item p {
  margin: 0;
}

.ams-about__text p {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #2b3445;
  line-height: 1.4;
}

.ams-about__text span {
  color: var(--ams-green);
  font-weight: 700;
  font-size: 20px;
}

/* =========================================================
   COMPARE SECTION
========================================================= */
.ams-compare-section {
  padding-top: 72px;
  padding-bottom: 50px;
}

.ams-compare {
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  max-width: 100%;
}

.ams-compare__col {
  position: relative;
  min-height: 470px;
}

.ams-compare__col--before {
  background: linear-gradient(90deg, #f2f8fa 0%, #d9e4ee 100%);
  border-radius: 10px 0 0 10px;
  clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
  transform: translateX(36px);
  z-index: 2;
}

.ams-compare__col--after {
  background: linear-gradient(90deg, #f6f7f7 0%, #edeff0 100%);
  border-radius: 0 10px 10px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14% 50%);
  transform: translateX(-40px);
}

.ams-compare__col--before::before,
.ams-compare__col--before::after,
.ams-compare__col--after::before,
.ams-compare__col--after::after,
.ams-compare__divider {
  content: none !important;
  display: none !important;
}

.ams-compare__panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 48px 35px;
  text-align: center;
}

.ams-compare__col--before .ams-compare__panel {
  padding-left: 46px;
  padding-right: 125px;
}

.ams-compare__col--after .ams-compare__panel {
  padding-left: 125px;
  padding-right: 46px;
}

.ams-compare__text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 178px;
  padding-top: 6px;
}

.ams-compare__label {
  margin: 0 0 14px;
  color: #b1b8bd;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.ams-compare__label--after {
  color: #88d1b7;
}

.ams-compare__title {
  margin: 0 0 14px;
  color: #162b63;
  font-size: 24px;
  font-weight: 800;
}

.ams-compare__title--after {
  color: #ea5c2d;
  margin-bottom: 35px;
}

.ams-compare__title small {
  display: block;
  margin-top: 2px;
  color: #162b63;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.ams-highlight {
  display: inline-block;
  margin: 0;
  padding: 0 14px 2px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  background: linear-gradient(transparent 63%, #fff16eb5 63%);
}

.ams-highlight--yellow {
  color: #25314d;
}

.ams-highlight--green {
  color: #25314d;
}

.ams-highlight--green span {
  color: #0eb08d;
  font-weight: 800;
}

.ams-pdca {
  margin: 4px 0 0;
  color: #25314d;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.ams-check-list {
  list-style: none;
  width: 100%;
  max-width: 488px;
  min-height: 242px;
  margin: auto auto 0;
  padding: 25px 28px;
  background: #fff;
  border-radius: 8px;
  text-align: left;
  box-shadow: none;
}

.ams-check-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}

.ams-check-list li:last-child {
  margin-bottom: 0;
}

.ams-check-list__icon {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  width: 34px;
  padding-top: 1px;
}

.ams-check-list__text {
  display: block;
  color: #24314d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.ams-check-list img {
  width: 32px;
  flex-shrink: 0;
}

.ams-compare__bottom-text {
  max-width: 940px;
  margin: 38px auto 0;
  text-align: center;
}

.ams-compare__bottom-text p {
  margin: 0;
  color: #24314d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
}

.ams-compare__bottom-text span {
  color: #0ba788;
  font-weight: 800;
  font-size: 22px;
}

.ams-compare-section .ams-cta-box {
  margin-top: 40px;
}

/* =========================================================
   PLAN SECTION
========================================================= */
.ams-plan {
  width: 100%;
  max-width: 100%;
  background: #d9e8dd;
  border-radius: 16px;
  padding: 42px 35px 30px;
  margin: 42px 0 45px;
}

.ams-plan__top-labels {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 18px;
  margin-bottom: 10px;
  justify-items: center;
  align-items: center;
}

.ams-plan__top-labels > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 21px;
  width: fit-content;
  max-width: 100%;
  background: #eff3ef;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #25314d;
  line-height: 1.25;
  text-align: center;
}

.ams-plan__top-labels > div:nth-child(2) {
  padding: 0 70px;
}

.ams-plan__connectors {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 12px;
  margin: 10px 0 25px;
}

.ams-plan__connector {
  position: relative;
  height: 12px;
  background: #49b39b;
  border-radius: 999px;
}

.ams-plan__connector::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #49b39b;
}

.ams-plan__connector--double::before,
.ams-plan__connector--double::after {
  content: "";
  position: absolute;
  bottom: -18px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #49b39b;
}

.ams-plan__connector--double::before {
  left: 25%;
  transform: translateX(-50%);
}

.ams-plan__connector--double::after {
  left: 75%;
  transform: translateX(-50%);
}

.ams-plan__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin: 0 auto;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.ams-plan-card {
  background: #fff;
  padding: 36px 20px 30px;
  border-right: 1px solid #d7d7d7;
  min-height: 310px;
  display: grid;
  grid-template-rows: 72px auto 1fr;
}

.ams-plan-card:last-child {
  border-right: 0;
}

.ams-plan-card h3 {
  min-height: 72px;
  margin: 0;
  text-align: center;
  color: var(--ams-navy);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.ams-plan-card h3 small {
  font-size: 14px;
  font-weight: 600;
  color: var(--ams-navy);
}

.ams-plan-card h3 span {
  display: block;
  font-size: 14px;
}

.pill-wrap {
  height: 80px;
}

.ams-plan-card__pill {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 10px 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  text-align: center;
}

.ams-plan-card p {
  margin: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: #263147;
}

.ams-plan-card--basic {
  border-top: 6px solid #8ca6ca;
}

.ams-plan-card--basic .ams-plan-card__pill {
  border: 3px solid #8ca6ca;
}

.ams-plan-card--standard {
  border-top: 6px solid #88c4b7;
}

.ams-plan-card--standard .ams-plan-card__pill {
  border: 3px solid #88c4b7;
}

.ams-plan-card--enterprise {
  border-top: 6px solid #f5af7e;
}

.ams-plan-card--enterprise .ams-plan-card__pill {
  border: 3px solid #f5af7e;
}

.ams-plan-card--enterprise2 {
  border-top: 6px solid #e09146;
}

.ams-plan-card--enterprise2 .ams-plan-card__pill {
  border: 3px solid #e09146;
}

.ams-plan__note {
  margin: 18px auto 30px;
  background: #edf2ee;
  border-radius: 10px;
  padding: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #2a3348;
  line-height: 1.6;
}

.ams-plan__strength {
  position: relative;
  margin: 0 auto 65px;
  max-width: 730px;
  background: #86be92;
  color: #fff;
  border-radius: 12px;
  padding: 10px 30px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
}

.ams-plan__strength::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -33px;
  transform: translateX(-50%);
  width: 708px;
  height: 46px;
  background: #86be92;

  /*clip-path: polygon(*/
  /*  0 0,*/
  /*  100% 0,*/
  /*  50% 100%*/
  /*);*/
  clip-path: polygon(-20% 0, 120% 0, 50% 100%);
}

.ams-plan__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 28px;
  margin-top: 10px;
}

.ams-benefit {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.ams-benefit__head {
  background: var(--ams-green);
  color: #fff;
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.ams-benefit__head small {
  font-size: 12px;
}

.ams-benefit__body {
  padding: 10px 22px;
  font-size: 18px;
  font-weight: 700;
  color: #293249;
  line-height: 1.7;
}

#ams-plan .is-pc,
#ams-plan .is-sp {
  font: inherit;
  color: inherit;
  font-weight: inherit;
  line-height: inherit;
}

#ams-plan .is-sp {
  display: none;
}

.ams-cta-box {
  margin-top: 40px;
  text-align: center;
}

.ams-cta-box__text {
  margin: 15px 0 15px;
  font-size: 18px;
  font-weight: 700;
}

/* =========================================================
   PLAN MOBILE HELPER
========================================================= */
.ams-plan__mobile-top,
.ams-plan__mobile-connectors {
  display: none;
}

/* =========================================================
   STEPS SECTION
========================================================= */
.ams-steps {
  position: relative;
  max-width: 870px;
  margin: 54px auto 0;
  padding: 0;
}

.ams-steps__line {
  position: absolute;
  left: 58px;
  top: 46px;
  bottom: 46px;
  width: 8px;
  background: #ef7d45;
  transform: translateX(-50%);
  z-index: 0;
  display: none;
}

.ams-step {
  position: relative;
  display: grid;
  grid-template-columns: 80px 250px 1fr;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 20px 15px;
  margin-bottom: 28px;
  text-align: left;
}

.ams-step:last-child {
  margin-bottom: 0;
}

.ams-step__no {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #86be92;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 46px;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-left: 0;
  justify-self: center;
  font-family: "Century Gothic" !important;
}

.ams-step__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ams-green);
}

.ams-step:not(:last-child) .ams-step__no::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 8px;
  height: 90px;
  background: #ef7d45;
  z-index: 0;
}

.ams-step__desc {
  font-size: 16px;
  font-weight: 600;
  color: #29344a;
  line-height: 1.8;
}

/* =========================================================
   FAQ SECTION
========================================================= */
.ams-faq-list {
  max-width: 870px;
  margin: 48px auto 0;
}

.ams-faq-item {
  border: 1px solid #d5d5d5;
  border-radius: 16px;
  background: #fff;
  padding: 26px 34px;
  text-align: left;
  margin-bottom: 28px;
}

.ams-faq-item:last-child {
  margin-bottom: 0;
}

.ams-faq-item__q,
.ams-faq-item__a {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ams-faq-item__q {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px dashed #d6d6d6;
}

.ams-faq-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  text-align: center;
  line-height: 42px;
  font-size: 26px;
  font-weight: 700;
  font-family: "Century Gothic" !important;
}

.ams-faq-item__icon--q {
  background: #dceee5;
  color: #4fb59c;
}

.ams-faq-item__icon--a {
  background: #f7e2d8;
  color: var(--ams-orange);
}

.ams-faq-item p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #29324a;
  line-height: 1.4;
}

/* =========================================================
   DIAGNOSIS SECTION
========================================================= */
.ams-diagnosis {
  background: #fff;
  border-radius: 18px;
  padding: 50px 34px 10px;
  margin: 35px 0 45px;
}

.ams-diagnosis__top {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

.ams-diagnosis-card {
  width: 230px;
  text-align: center;
}

.ams-diagnosis-card__label {
  position: relative;
  display: inline-block;
  min-width: 180px;
  background: #4aaf97;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 8px;
  padding: 8px 18px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.ams-diagnosis-card__label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 93%;
  height: 20px;
  background: #4aaf97;
  border: 0;
  clip-path: polygon(-20% 0, 120% 0, 50% 100%);
}

.ams-diagnosis-card img {
  width: 100px;
  margin: 0 auto 10px;
}

.ams-diagnosis-card__speech {
  position: relative;
  display: inline-flex;
  border: 2px solid #22aa7e;
  border-radius: 12px;
  padding: 8px 18px;
  background: #fff;
  color: #149b73;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.ams-diagnosis-card__speech::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 45px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 0 solid transparent;
  border-bottom: 18px solid #10a57b;
}

.ams-diagnosis-card__speech::after {
  content: "";
  position: absolute;
  top: -15px;
  left: 47px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 0 solid transparent;
  border-bottom: 16px solid #fff;
}

.ams-middle-text p {
  padding-top: 20px;
  margin: 0;
  font-size: 26px;
  color: var(--ams-black);
  font-weight: 600;
}

.ams-middle-text h3 {
  margin: 0 0 30px;
  font-size: 28px;
  font-weight: 700;
  color: var(--ams-orange);
}

.ams-middle-text-2 p {
  padding-top: 20px;
  margin: 0;
  font-size: 26px;
  color: var(--ams-black);
  font-weight: 600;
}

.ams-middle-text-2 h3 {
  font-size: 26px;
  margin: 0 0 15px;
  font-weight: 700;
  color: var(--ams-orange);
}

.ams-diagnosis__flow {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.ams-flow-box {
  position: relative;
  width: 255px;
  min-height: 170px;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.ams-flow-box::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 84% 0, 100% 50%, 84% 100%, 0 100%);
  border-radius: 8px;
  z-index: 0;
}

.ams-flow-box:nth-child(1)::before {
  background: #88c4b7;
}

.ams-flow-box:nth-child(2)::before {
  background: #86be92;
}

.ams-flow-box:nth-child(3)::before {
  background: #4aaf97;
}

.ams-flow-box__inner {
  position: relative;
  z-index: 1;
  width: 84%;
  min-height: 170px;
  margin-right: 16%;
  padding: 5px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.ams-flow-box img {
  width: 130px;
  max-width: none;
  margin: 0;
}

.ams-flow-box__text {
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-weight: 700;
}

.ams-flow-box__text span {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

/* Flow box text variant 1 */
.ams-flow-box__text--1 {
  line-height: 1.2;
}

/* Flow box text variant 2 */
.ams-flow-box__text--2 {
  line-height: 1.15;
}

.ams-flow-box__text--2 span:nth-child(2) {
  font-size: 16px;
  line-height: 1;
}

/* Flow box text variant 3 */
.ams-flow-box__text--3 {
  line-height: 1.2;
}

.ams-flow-box:nth-child(1) .ams-flow-box__text {
  margin-top: auto;
  margin-bottom: 35px;
}

.ams-flow-box:nth-child(2) .ams-flow-box__text {
  margin-bottom: 5px;
}

.ams-flow-box:nth-child(3) .ams-flow-box__text {
  margin-bottom: auto;
}

/* =========================================================
   RESPONSIVE - DESKTOP DOWN
========================================================= */
@media (max-width: 1200px) {
  .ams-badge:nth-child(1) {
    left: 14%;
    top: 115px;
  }

  .ams-badge:nth-child(4) {
    right: 11%;
    top: 112px;
  }

  .ams-section-title {
    font-size: 30px;
  }

  .ams-hero__title {
    font-size: 58px;
  }

  .ams-compare {
    max-width: 100%;
  }

  .ams-compare__col--before {
    transform: translateX(28px);
    clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
  }

  .ams-compare__col--after {
    transform: translateX(-30px);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12% 50%);
  }

  .ams-compare__col--before .ams-compare__panel {
    padding-left: 35px;
    padding-right: 90px;
  }

  .ams-compare__col--after .ams-compare__panel {
    padding-left: 90px;
    padding-right: 35px;
  }

  .ams-section-inner--plan {
    max-width: 97%;
  }
}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */
@media (max-width: 991px) {
  .ams-section {
    padding: 70px 0;
  }

  .ams-badge:nth-child(1) {
    left: 8%;
    top: 115px;
  }

  .ams-badge:nth-child(2) {
    left: 22%;
    top: 36px;
  }

  .ams-badge:nth-child(3) {
    right: 25%;
    top: 48px;
  }

  .ams-badge:nth-child(4) {
    right: 4%;
    top: 112px;
  }

  .ams-section-title {
    font-size: 36px;
  }

  .ams-section-subtitle,
  .ams-message,
  .ams-about__text p,
  .ams-step__desc,
  .ams-faq-item p,
  .ams-plan-card p {
    font-size: 16px;
  }

  .ams-hero__content {
    padding: 0 60px 40px;
  }

  .ams-hero__lead {
    margin-left: 4%;
  }

  .ams-hero__main {
    flex-direction: column;
    gap: 26px;
  }

  .ams-hero__left,
  .ams-hero__right {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .ams-hero__right {
    padding-top: 0;
  }

  .ams-hero__lead-box + .ams-hero__lead-box {
    left: 200px;
  }

  .ams-hero__title {
    font-size: 50px;
  }

  .ams-hero__desc {
    font-size: 18px;
    max-width: 100%;
  }

  .ams-btn--large,
  .ams-btn {
    min-width: auto;
    width: 100%;
    max-width: 340px;
  }

  .ams-compare {
    grid-template-columns: 1fr;
    margin-top: 0;
    max-width: 760px;
  }

  .ams-compare__col {
    min-height: auto;
    transform: none;
    clip-path: none;
    border-radius: 10px;
  }

  .ams-compare__panel {
    max-width: none;
  }

  .ams-compare__col--before {
    background: linear-gradient(90deg, #f2f8fa 0%, #d9e4ee 100%);
    border-radius: 10px 0 0 10px;
    clip-path: polygon(0 0, 100% 0, 100% 83%, 50% 100%, 0 83%);
    transform: translateY(48px);
    z-index: 2;
  }

  .ams-compare__col--after {
    background: linear-gradient(90deg, #f3f4f5 0%, #ced3d7 100%);
    border-radius: 0 10px 10px 0;
    clip-path: polygon(50% 17%, 100% 0, 100% 100%, 0 100%, 0 0);
    transform: translateY(-48px);
  }

  .ams-compare__col--before,
  .ams-compare__col--after {
    border-radius: 10px;
  }

  .ams-compare__col--before .ams-compare__panel {
    padding: 30px 28px 120px;
  }

  .ams-compare__col--after .ams-compare__panel {
    padding: 120px 28px 32px;
  }

  .ams-compare__bottom-text {
    margin: 0 auto 0;
  }

  .ams-compare__title {
    font-size: 27px;
  }

  .ams-compare__text-group {
    min-height: auto;
    gap: 0;
    padding-top: 0;
    margin-bottom: 26px;
  }

  .ams-check-list {
    max-width: none;
  }

  #ams-plan .ams-plan {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 0;
  }

  #ams-plan .ams-plan__top-labels,
  #ams-plan .ams-plan__connectors {
    display: none !important;
  }

  #ams-plan .ams-plan__mobile-top,
  #ams-plan .ams-plan__mobile-connectors,
  #ams-plan .ams-plan__cards {
    display: contents !important;
  }

  #ams-plan .ams-plan__mobile-label,
  #ams-plan .ams-plan__mobile-connector,
  #ams-plan .ams-plan-card {
    width: 100%;
  }

  #ams-plan .ams-plan__mobile-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 8px 14px;
    background: #eff3ef;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #25314d;
    line-height: 1.35;
    text-align: center;
    margin-bottom: 12px;
  }

  #ams-plan .ams-plan__mobile-connector {
    position: relative;
    height: 10px;
    background: #49b39b;
    border-radius: 999px;
    margin-bottom: 20px;
  }

  #ams-plan .ams-plan__mobile-connector::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid #49b39b;
  }

  #ams-plan .ams-plan-card {
    min-height: 305px;
    padding: 30px 18px 24px;
    grid-template-rows: auto auto 1fr;
  }

  #ams-plan .ams-plan-card:nth-child(odd) {
    border-right: 1px solid #d7d7d7;
  }

  #ams-plan .ams-plan-card:nth-child(even) {
    border-right: 0;
  }

  #ams-plan .ams-plan-card h3 {
    min-height: 68px;
    font-size: 24px;
    line-height: 1.15;
  }

  #ams-plan .ams-plan-card h3 small,
  #ams-plan .ams-plan-card h3 span {
    font-size: 12px;
  }

  #ams-plan .pill-wrap {
    height: 78px;
  }

  #ams-plan .ams-plan-card__pill {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 14px;
  }

  #ams-plan .ams-plan-card p {
    font-size: 16px;
    line-height: 1.55;
  }

  #ams-plan .ams-plan__mobile-label:nth-child(1) { order: 1; }
  #ams-plan .ams-plan__mobile-label:nth-child(2) { order: 2; }
  #ams-plan .ams-plan__mobile-connector:nth-child(1) { order: 3; }
  #ams-plan .ams-plan__mobile-connector:nth-child(2) { order: 4; }
  #ams-plan .ams-plan-card:nth-child(1) { order: 5; }
  #ams-plan .ams-plan-card:nth-child(2) { order: 6; }

  #ams-plan .ams-plan__mobile-label:nth-child(3) {
    order: 7;
    margin-top: 22px;
  }

  #ams-plan .ams-plan__mobile-label:nth-child(4) {
    order: 8;
    margin-top: 22px;
  }

  #ams-plan .ams-plan__mobile-connector:nth-child(3) { order: 9; }
  #ams-plan .ams-plan__mobile-connector:nth-child(4) { order: 10; }
  #ams-plan .ams-plan-card:nth-child(3) { order: 11; }
  #ams-plan .ams-plan-card:nth-child(4) { order: 12; }

  #ams-plan .ams-plan__note {
    order: 13;
    grid-column: 1 / -1;
  }

  #ams-plan .ams-plan__strength {
    order: 14;
    grid-column: 1 / -1;
    overflow: visible;
  }

  #ams-plan .ams-plan__note {
  order: 13;
  grid-column: 1 / -1;
  width: 100%;
  margin: 18px 0 30px;
  padding: 10px 16px;
}

  #ams-plan .ams-plan__strength::after {
    width: 96%;
    /*bottom: -35px;*/
    /*height: 35px;*/
    /*border: 0;*/
    /*background: #86be92;*/
    /*clip-path: polygon(0 0, 100% 0, 50% 100%);*/
  }

  #ams-plan .ams-plan__benefits {
    order: 15;
    grid-column: 1 / -1;
  }

  #ams-plan .ams-plan__mobile-label,
  #ams-plan .ams-plan__mobile-connector {
    width: 100%;
    justify-self: stretch;
  }

  /* LABEL */
  #ams-plan .ams-plan__mobile-label {
    position: relative;
    background: #eff3ef;
    border-radius: 999px;
    margin: 0 0 10px;
    box-shadow:
      inset 6px 0 #d9e8dd,
      inset -6px 0 #d9e8dd;
  }

  #ams-plan .ams-plan__mobile-label::before {
    content: none;
  }

  /* CONNECTOR */
  #ams-plan .ams-plan__mobile-connector {
    position: relative;
    background: transparent;
    margin-bottom: 18px;
  }

  #ams-plan .ams-plan__mobile-connector::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 0;
    height: 10px;
    background: #49b39b;
    border-radius: 999px;
  }

  #ams-plan .ams-plan__mobile-connector::after {
    left: 50%;
  }

  #ams-plan .ams-benefit__head {
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.35;
  }

  #ams-plan .ams-benefit__body {
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .ams-step {
    grid-template-columns: 74px 1fr;
    gap: 14px 18px;
  }

  .ams-step__desc {
    grid-column: 2 / 3;
  }

  .ams-middle-text h3 {
    font-size: 32px;
    margin: 0 0 15px;
  }

  .ams-middle-text-2 h3 {
    font-size: 26px;
    margin: 0 0 15px;
  }

  .ams-anchor-nav__item {
    min-width: 100px;
  }

  .ams-section-inner--plan {
    max-width: 90%;
  }

  .ams-steps {
    max-width: 90%;
  }

  .ams-step:not(:last-child) .ams-step__no::after {
    height: 140px;
  }
}

/* =========================================================
   MOBILE TUNING
========================================================= */
@media (max-width: 768px) {
  .ams-section-inner--diagnosis {
    max-width: 90%;
  }

  .ams-page__container {
    padding-left: 0;
    padding-right: 0;
  }

  .ams-section {
    padding: 52px 18px;
  }

  .ams-section-title {
    font-size: 30px;
  }

  .ams-section-subtitle {
    width: 85%;
    margin: 0 auto 26px;
    font-size: 18px;
  }

  /* HERO */
  .ams-hero {
    padding-top: 50px;
    background-position: center top !important;
    background-size: cover !important;
    padding-bottom: 40px;
  }

  .ams-hero__content {
    padding: 0 30px 0;
  }

  .ams-hero__lead {
    padding-top: 0;
    margin-left: 5%;
    height: 140px;
  }

  .ams-hero__lead-box {
    display: inline-block;
    width: auto;
    margin: 0;
    white-space: nowrap;
  }

  .ams-hero__lead-box + .ams-hero__lead-box {
    left: 25%;
  }

  .ams-hero__main {
    gap: 18px;
  }

  .ams-hero__left,
  .ams-hero__right {
    width: 100%;
    padding: 0;
  }

  .ams-hero__title {
    margin: 0 0 20px;
  }

  .ams-btn--large {
    width: 100%;
    max-width: 310px;
    min-width: 0;
    padding: 20px 0;
    font-size: 15px;
  }

  .ams-hero__note {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: 0;
    text-align: center;
  }

  .ams-anchor-nav-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -130px;
    width: 100%;
    padding: 0 60px;
    margin: 0;
    z-index: 30;
  }

  .ams-anchor-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
  }

  .ams-anchor-nav__item {
    min-width: 0;
    height: 45px;
    padding: 5px 8px 4px;
    background: #8bc494;
    color: #fff !important;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .ams-anchor-nav__item:nth-child(5) {
    grid-column: 1 / 2;
  }

  .ams-anchor-nav__item span {
    width: 10px;
    height: 10px;
    margin: 3px auto 0;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
  }

  /* WHY */
  #ams-why {
    padding-top: 154px;
    padding-bottom: 15px;
  }

  .ams-problems {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    margin: 0 auto 28px;
  }

  .ams-problem {
    width: 100%;
  }

  .ams-problem h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.5;
  }

  .ams-problem img {
    width: 140px;
  }

  .ams-message {
    width: 100%;
    font-size: 18px;
    line-height: 1.7;
  }

  .ams-message--accent {
    font-size: 18px;
  }

  .ams-message--accent span {
    font-size: 20px;
    line-height: 1.4;
  }

  /* ABOUT */
  .ams-about {
    padding-top: 0;
  }

  .ams-about__wave-top {
    height: 65px;
    clip-path: polygon(0 0, 100% 0, 50% 74%, 50% 74%, 0 0);
  }

  .ams-badges {
    justify-content: center;
    gap: 12px 14px;
    margin-bottom: 125px;
  }

  .ams-badge {
    min-width: 0;
    padding: 10px 18px;
    font-size: 16px;
    transform: none !important;
  }

  .ams-badge:nth-child(1) {
    left: 19%;
    top: 115px;
  }

  .ams-badge:nth-child(2) {
    left: 18%;
    top: 36px;
  }

  .ams-badge:nth-child(3) {
    right: 20%;
    top: 85px;
  }

  .ams-badge:nth-child(4) {
    right: 12%;
    top: 155px;
  }

  .ams-badge::after {
    bottom: -13px;
    border-left-width: 8px;
    border-right-width: 8px;
    border-top-width: 15px;
  }

  .ams-about__lead {
    width: 80%;
    margin: 0 auto 35px;
    font-size: 20px;
    line-height: 1.4;
  }

  .ams-about__lead-accent {
    font-weight: 900;
  }

  .ams-feature-icons {
    width: 360px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto 22px;
  }

  .ams-feature-icons__item {
    width: 100%;
  }

  .ams-feature-icons__card {
    min-height: 152px;
    padding: 10px 0 25px;
  }

  .ams-feature-icons__card img {
    width: 110px;
    margin-bottom: 0;
  }

  .ams-feature-icons__card p {
    font-size: 16px;
    line-height: 1.5;
  }

  .ams-about__text p {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.8;
  }

  .ams-about__text span {
    font-size: 18px;
  }

  /* COMPARE */
  .ams-compare-section {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .ams-compare {
    margin-top: 0;
  }

  .ams-compare__col,
  .ams-compare__col--before,
  .ams-compare__col--after {
    border-radius: 8px;
  }

  .ams-compare__col--before {
    transform: translateY(38px);
  }

  .ams-compare__col--after {
    transform: translateY(-38px);
  }

  .ams-compare__text-group {
    min-height: auto;
    margin-bottom: 20px;
  }

  .ams-compare__label {
    margin-bottom: 10px;
    font-size: 16px;
    letter-spacing: 1px;
  }

  .ams-compare__title {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.35;
  }

  .ams-compare__title small {
    font-size: 13px;
    line-height: 1.5;
  }

  .ams-highlight {
    padding: 0 8px 2px;
    font-size: 16px;
    line-height: 1.6;
  }

  .ams-pdca {
    margin-top: 8px;
    font-size: 11px;
  }

  .ams-check-list {
    padding: 18px 16px;
    border-radius: 8px;
    min-height: 0;
  }

  .ams-check-list li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 14px;
    align-items: flex-start;
  }

  .ams-check-list__icon,
  .ams-check-list img {
    width: 24px;
  }

  .ams-check-list__text {
    font-size: 14px;
  }

  .ams-compare__bottom-text p {
    font-size: 18px;
    line-height: 1.8;
  }

  .ams-compare__bottom-text p + p {
  margin-bottom: 50px;
}

  .ams-compare__bottom-text span {
    font-size: 24px;
    line-height: 1;
  }

  .ams-compare-section .ams-cta-box {
    margin-top: 28px;
  }

  /* PLAN */
  #ams-plan .ams-plan {
    padding: 35px 25px;
    column-gap: 0;
    row-gap: 0;
  }

  .ams-section-inner--plan {
    max-width: 97%;
  }

  #ams-plan .ams-plan__mobile-label {
    min-height: 50px;
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  #ams-plan .ams-plan__mobile-connector {
    height: 8px;
    margin-bottom: 14px;
  }

  #ams-plan .ams-plan__mobile-connector::after {
    bottom: -11px;
    border-left-width: 6px;
    border-right-width: 6px;
    border-top-width: 8px;
  }

  #ams-plan .ams-plan-card {
    min-height: 235px;
    padding: 22px 10px 16px;
    grid-template-rows: auto auto 1fr;
  }

  #ams-plan .ams-plan-card h3 {
    min-height: 56px;
  }

  #ams-plan .ams-plan-card h3 small,
  #ams-plan .ams-plan-card h3 span {
    padding-top: 3px;
    font-size: 10px;
  }

  #ams-plan .pill-wrap {
    height: 62px;
  }

  #ams-plan .ams-plan-card__pill {
    min-height: 34px;
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.3;
    border-width: 2px;
  }

  #ams-plan .ams-plan-card p {
    font-size: 14px;
    line-height: 1.55;
  }

  #ams-plan .ams-plan__note {
    margin: 14px 0 18px;
    font-size: 16px;
  }

  #ams-plan .ams-plan__strength {
    width: 100%;
    margin: 0 auto 42px;
    padding: 16px 18px 12px;
    font-size: 20px;
    line-height: 1.45;
  }

  /*#ams-plan .ams-plan__strength::after {*/
  /*  bottom: -25px;*/
  /*  height: 25px;*/
  /*}*/

  #ams-plan .ams-plan__benefits {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #ams-plan .ams-benefit__head {
    font-size: 20px;
  }

  #ams-plan .ams-benefit__body {
    font-size: 16px;
  }

  /* STEP */
  .ams-steps {
    max-width: 98%;
  }

  .ams-step {
    grid-template-columns: 60px 1fr;
    gap: 12px 14px;
    padding: 18px 14px;
  }

  .ams-step__title {
    font-size: 18px;
  }

  .ams-step__desc {
    font-size: 14px;
    line-height: 1.7;
  }

  /* FAQ */
  .ams-faq-item {
    padding: 20px 18px;
  }

  .ams-faq-item__q,
  .ams-faq-item__a {
    align-items: center;
  }

  .ams-faq-item p {
    font-size: 16px;
    line-height: 1.7;
  }

  /* DIAGNOSIS */
  .ams-diagnosis {
    margin: 28px auto 36px;
    padding: 30px 16px 5px;
    background: #fff;
    border-radius: 10px;
  }

  .ams-diagnosis__top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    margin-bottom: 34px;
  }

  .ams-diagnosis-card {
    width: 100%;
    min-width: 0;
    margin: 0 auto 0;
  }

  .ams-diagnosis-card__label {
    min-width: 0;
    width: 180px;
    min-height: 70px;
    padding: 10px 8px 0;
    border-radius: 8px;
    font-size: 18px;
    white-space: nowrap;
  }

  .ams-diagnosis-card__label::after {
    bottom: -14px;
  }

  .ams-diagnosis-card img {
    width: 120px;
  }

  .ams-diagnosis-card__speech {
    width: 185px;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 16px;
  }

  .ams-diagnosis-card__speech::before {
    top: -16px;
    left: 18px;
    border-left-width: 16px;
    border-bottom-width: 16px;
  }

  .ams-diagnosis-card__speech::after {
    top: -13px;
    left: 20px;
    border-left-width: 13px;
    border-bottom-width: 14px;
  }

  .ams-diagnosis__flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 26px auto 30px;
  }

  .ams-flow-box {
    display: flex;
    height: 220px;
    width: 70%;
    min-height: 0;
    margin: 0 auto 0;
  }

  .ams-flow-box::before {
    inset: 0;
    border-radius: 8px;
    clip-path: polygon(
      0 0,
      100% 0,
      100% 80%,
      50% 100%,
      0 80%
    );
  }

  .ams-flow-box__inner {
    width: 100%;
    min-height: 190px;
    margin-right: 0;
    padding: 0 18px 30px;
    justify-content: center;
  }

  .ams-flow-box img {
    margin: 10px auto 0;
  }

  .ams-flow-box__text {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
  }

  .ams-flow-box__text span {
    font-size: 22px;
    line-height: 1.35;
  }

  .ams-flow-box__text--2 span:nth-child(2) {
    font-size: 20px;
    line-height: 1;
  }

  .ams-middle-text p {
    font-size: 20px;
  }

  .ams-middle-text h3 {
    font-size: 30px;
  }

  .ams-middle-text-2 p {
    font-size: 20px;
  }

  .ams-middle-text-2 h3 {
    font-size: 24px;
  }

  .ams-page br.is-sp {
    display: inline !important;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width: 480px) {
  .ams-section-inner--diagnosis {
    max-width: 100%;
  }

  .ams-hero {
    padding-top: 0;
  }

  .ams-hero__lead {
    padding-top: 40px;
    margin: 0;
    height: 140px;
  }

  .ams-hero__lead-box {
    font-size: 24px;
  }

  .ams-hero__lead-box + .ams-hero__lead-box {
    top: 100px;
  }

  .ams-hero__title {
    font-size: 42px;
  }

  .ams-plan__top-labels > div {
    padding: 10px 18px;
  }

  .ams-flow-box {
    width: 88%;
  }

  .ams-problem h3 {
    margin: 0;
    min-height: 81px;
    display: flex;
    justify-content: center;
  }

  .ams-message--accent {
    width: 330px;
    margin: 0 auto;
  }

  .ams-badge {
    padding: 10px 30px;
    font-size: 20px;
  }

  .ams-badge:nth-child(1) {
    left: 2%;
    top: 115px;
  }

  .ams-badge:nth-child(2) {
    left: 5%;
    top: 36px;
  }

  .ams-badge:nth-child(3) {
    right: 0;
    top: 85px;
  }

  .ams-badge:nth-child(4) {
    right: 12%;
    top: 155px;
  }

  .ams-page br.is-sp {
    display: block !important;
  }

  .ams-page br.is-pc {
    display: none !important;
  }

  #ams-plan .ams-plan-card__pill {
    width: 100%;
    min-height: 38px;
    padding: 6px 4px;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.4px !important;
  }

  #ams-plan .ams-plan-card--enterprise h3,
  #ams-plan .ams-plan-card--enterprise2 h3 {
    font-size: 20px;
  }
}

@media (max-width: 445px) {
  .ams-badges {
    margin-bottom: 170px;
  }

  .ams-message--accent {
    width: 100%;
  }

  .ams-badge:nth-child(1) {
    left: -2%;
    top: 145px;
  }

  .ams-badge:nth-child(2) {
    left: 5%;
    top: 36px;
  }

  .ams-badge:nth-child(3) {
    right: -10px;
    top: 105px;
  }

  .ams-badge:nth-child(4) {
    right: 2%;
    top: 205px;
  }

  .ams-feature-icons {
    width: 315px;
    gap: 10px;
  }

  .ams-section-inner--plan {
    max-width: 100%;
  }

  #ams-plan .ams-plan {
    padding: 35px 10px;
  }

  .ams-diagnosis__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 8px;
  }

  .ams-diagnosis-card {
    width: 100%;
    min-width: 0;
  }

  .ams-diagnosis-card__label {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 8px 4px 0;
    font-size: clamp(12px, 3.35vw, 14px);
    letter-spacing: 0.4px !important;
    white-space: nowrap;
  }

  .ams-diagnosis-card__label::after {
    /*bottom: -11px;*/
    /*height: 11px;*/
    /*width: 96%;*/
    /*border: 0;*/
  }

  .ams-diagnosis-card img {
    width: 92px;
    margin-top: 8px;
  }

  .ams-diagnosis-card__speech {
    width: 100%;
    min-height: 52px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .ams-diagnosis-card__label {
    font-size: clamp(11px, 3.25vw, 13px);
    letter-spacing: 0.2px !important;
  }

  .ams-diagnosis-card__label::after {
    width: 96%;
    border: 0;
  }
}

.ams-compare__col--before,
.ams-compare__col--after {
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  border-radius: 0 !important;
  clip-path: none !important;
  overflow: visible !important;
}

.ams-compare__col--before {
  background-image: url("../img/ams/svg/compare-before-desktop.svg") !important;
}

.ams-compare__col--after {
  background-image: url("../img/ams/svg/compare-after-desktop.svg") !important;
}

.ams-flow-box {
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.ams-flow-box::before {
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  border-radius: 0 !important;
  clip-path: none !important;
}

.ams-flow-box:nth-child(1)::before {
  background-image: url("../img/ams/svg/flow-box-1-desktop.svg") !important;
}

.ams-flow-box:nth-child(2)::before {
  background-image: url("../img/ams/svg/flow-box-2-desktop.svg") !important;
}

.ams-flow-box:nth-child(3)::before {
  background-image: url("../img/ams/svg/flow-box-3-desktop.svg") !important;
}

@media (max-width: 1200px) and (min-width: 992px) {
  .ams-compare__col--before {
    background-image: url("../img/ams/svg/compare-before-desktop-1200.svg") !important;
  }

  .ams-compare__col--after {
    background-image: url("../img/ams/svg/compare-after-desktop-1200.svg") !important;
  }
}

@media (max-width: 991px) {
  .ams-compare__col--before,
  .ams-compare__col--after {
    border-radius: 0 !important;
    clip-path: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
  }

  .ams-compare__col--before {
    background-image: url("../img/ams/svg/compare-before-tablet.svg") !important;
  }

  .ams-compare__col--after {
    background-image: url("../img/ams/svg/compare-after-tablet.svg") !important;
  }
}

@media (max-width: 768px) {
  .ams-flow-box:nth-child(1)::before {
    background-image: url("../img/ams/svg/flow-box-1-mobile.svg") !important;
  }

  .ams-flow-box:nth-child(2)::before {
    background-image: url("../img/ams/svg/flow-box-2-mobile.svg") !important;
  }

  .ams-flow-box:nth-child(3)::before {
    background-image: url("../img/ams/svg/flow-box-3-mobile.svg") !important;
  }
}
