/* Utitlities */
.pt-0 {
  padding-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.font-bold {
  font-weight: 700 !important;
}

.red-text {
  color: #f00;
}

.text-xs {
  font-size: 1.3rem;
}

.text-sm {
  font-size: 1.4rem !important;
}

.sp-only {
  display: none;
}

.sp-only-inline{
  display: none;
}

@media only screen and (max-width: 767px) {
  .sp-only {
    display: block;
  }
  .sp-only-inline {
    display: inline;
  }  
  .pc-only {
    display: none;
  }
}

.panel-link {
  color: #118ea4;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1.4rem;
}

/* Free Download */
.free-download__label {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d93b7e;
  color: #fff;
  min-height: 40px;
  font-size: 1.8rem;
  line-height: 20px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 55px;
  cursor: pointer;
  gap: 4px;
  transition: opacity 300ms;
}

@media only screen and (max-width: 767px) {
  .free-download__label {
    font-size: 1.8rem;
    min-width: 275px;
  }
}

.free-download__label:hover {
  opacity: 0.7;
}

.free-download__label svg {
  margin-top: -3px;
}

/* Modifiers */
.category-item--col {
  flex-direction: column;
  align-items: flex-start;
}

.category-item--col > .hdg-l2 {
  margin-bottom: 25px;
}

.category-item--col p {
  letter-spacing: 0.025em !important;
  line-height: 1.5em;
}

@media only screen and (max-width: 767px) {
  .category-item--col .hdg-l2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    padding-block: 10px;
  }

  .category-item--col .hdg-l2 > span::before {
    background: #fff;
    width: 3px;
    height: 20px;
    top: 50%;
    transform: translateY(-60%);
  }

  .category-item--col p {
    font-size: 1.6rem;
  }

  .category-item--col p.red-text {
    margin-bottom: 20px;
  }
}

.panel-index--full {
  width: 100%;
  border: 1px solid #ccc;
  border-top: 4px solid #0fa9c4;
}

.hdg-area--with-icon {
  padding-bottom: 16px;
  align-items: flex-end;
  gap: 15px;
}

@media only screen and (max-width: 767px) {
  .panel-index--full {
    margin-bottom: 30px;
  }

  .hdg-area--with-icon {
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
}

.hdg-area--with-icon .hdg {
  margin-bottom: 0 !important;
  font-size: 2rem !important;
  line-height: 20px;
}

@media only screen and (max-width: 767px) {
  .hdg-area--with-icon .hdg {
    font-size: 1.8rem !important;
  }
}

.panel-index--full .panel-tail {
  justify-content: flex-start;
  padding-inline: 30px;
  padding-block: 12px;
  flex-direction: column;
  color: #118ea4;
}

.panel-index--full .panel-tail p {
  margin-bottom: 6px;
}


@media only screen and (max-width: 767px) {
  .panel-index--full .panel-tail {
    padding-inline: 18px;
  }
}

.panel-index--full .panel-item {
  padding: 15px 30px 30px;
}

@media only screen and (max-width: 767px) {
  .panel-index--full .panel-item {
    padding: 20px 18px 30px;
  }
}

.panel-index--full .panel-item .col > p {
  font-size: 1.6rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg width="275" height="4" viewBox="0 0 275 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 2H273" stroke="%23eee" stroke-width="3" stroke-linecap="round" stroke-dasharray="6 6"/></svg>');
  background-repeat: repeat-x;
  background-position: center;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media only screen and (max-width: 767px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg width="4" height="424" viewBox="0 0 4 424" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 2L1.99998 422" stroke="%23eee" stroke-width="3" stroke-linecap="round" stroke-dasharray="6 6"/></svg>');
    background-repeat: repeat-y;
  }
}

.steps {
  position: relative;
  padding: 32px 24px 12px;
  border: 1px solid #eee;
  border-radius: 5px;
  background-color: #fff;
  overflow: hidden;
}

.steps span {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: 66px;
  background-color: #0fa9c4;
  color: #fff;
  font-size: 1.4rem;
  border-bottom-right-radius: 5px;
}

.steps .image-container {
  text-align: center;
}

.steps p {
  margin-top: 12px;
  margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
  .steps {
    padding: 35px 12px 20px;
  }

  .steps p {
    text-align: center;
    font-size: 1.4rem;
  }
}

.grid.suppleAdvicechart .image-container {
  height: 104px;
}

.grid.shuyouseibun .image-container {
  height: 103px;
}

.grid.trainingCard .image-container {
  height: 96px;
}

.grid.rikaidoCheck .image-container {
  height: 98px;
}

.steps img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
