@charset "utf-8";

/* ======================================
   Page hero / page title box
====================================== */
.c-page-hero {
  width: 100%;
  padding: 42px 48px 36px 3rem;
  border-radius: 36px;
  background: #f6f4f5;
}

.c-page-hero__title {
  margin-bottom: 4px;
  color: var(--color-red);
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 900;
}

.c-page-hero__sub {
  color: var(--color-red);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

/* ======================================
   Section heading
====================================== */
.c-section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 3px 1.2rem;
  border-radius: 8px;
  background: var(--color-box);
}

.c-section-heading__dot img {
  height: 35px;
  width: auto;
}

.c-section-heading__title {
  font-size: 1.7rem;
  line-height: 1.4;
  font-weight: 700;
  color: #222;
  padding: 0.5rem 0;
}

/* ======================================
   Common button
====================================== */
.c-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 40px;
  padding: 0 1px 0 20px;
  border: 1px solid var(--color-red);
  border-radius: 999px;
  background: #fff;
  color: var(--color-red);
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 700;
}

.c-btn-arrow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height:35px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.c-btn-arrow__icon img {
  width: 15px;
  height: auto;
}

/* filled button */
.c-btn-primary {
  position: relative;
  align-items: center;
  min-width: 24rem;
  height: 5.4rem;
  padding: 0 2.4rem;
  border: none;
  background: #eb3b2d;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 auto;
  display: block;
  width: fit-content;
}

.c-btn-primary__text {
  pointer-events: none;
}

.c-btn-primary__icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: #fff;
}

.c-btn-primary__icon img {
  width: 15px;
  height: auto;
}

.c-btn-primary:hover {
  opacity: 0.8;
}

/* ======================================
   Card common
====================================== */
.c-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.c-card:nth-child(3) {
  border-right: 1px solid #ddd;
}

.c-card__head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 56px 15px 15px;
  box-sizing: border-box;
}

.c-card__label {
  text-align: center;
  transform: translateX(8px);
}

.c-card__title {
  display: block;
  color: var(--color-red);
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 700;
}

.c-card__sub {
  display: block;
  margin-top: 2px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.c-card__arrow {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    background: #a3a5b1;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.c-card__arrow img {
    width: 15px;
    height: auto;
}

.c-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.c-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======================================
   Line list common
====================================== */
.c-line-list {
  border-top: 1px solid var(--color-line);
}

.c-line-list__item {
  border-bottom: 1px solid var(--color-line);
}

.c-line-list__link {
  display: grid;
  align-items: center;
  min-height: 56px;
  padding: 12px 0;
}

.c-line-list__date {
    font-size: 1.3rem;
    color: #8a8a8a;
    font-weight: 500;
    letter-spacing: 0;
}

.c-line-list__text {
  font-size: 1.4rem;
  line-height: 1.7;
  font-weight: 500;
}

/* 2-column list row */
.c-line-list--2col .c-line-list__link {
  grid-template-columns: 80px 1fr;
  column-gap: 22px;
}

/* 3-column news row */
.c-line-list--3col .c-line-list__link {
  grid-template-columns: 80px 80px 1fr;
  column-gap: 18px;
}

/* ======================================
   Label
====================================== */
.c-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 20px;
  /* padding: 0 8px; */
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
}

.c-label--red {
  background: var(--color-red);
}

.c-label--orange {
  background: #f2a145;
}

.c-label--gray {
  background: #7f7f87;
}

.c-label--required {
  min-width: 28px;
  height: 16px;
  padding: 0 4px;
  background: #f29b72;
  font-size: 0.9rem;
}

/* ======================================
   Table common
====================================== */
.c-table {
  width: 100%;
  border: 1px solid var(--color-line);
}

.c-table th,
.c-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--color-line);
  font-size: 1.4rem;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
}

.c-table th {
  width: 170px;
  background: #ececec;
  font-weight: 500;
}

.c-table td {
  background: transparent;
  font-weight: 500;
}

/* ======================================
   Form common
====================================== */
.c-form {
  border-top: 1px solid var(--color-line);
}

.c-form__row {
  display: grid;
  grid-template-columns: 170px 60px 1fr;
  align-items: start;
  column-gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}

.c-form__label {
  padding-top: 10px;
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 500;
}

.c-form__control input,
.c-form__control textarea,
.c-form__control select {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #efefef;
  font-size: 1.5rem;
  line-height: 1.5;
}

.c-form__control input,
.c-form__control select {
  height: 42px;
  padding: 0 14px;
}

.c-form__control textarea {
  min-height: 180px;
  padding: 12px 14px;
}

.c-form__note {
  margin-top: 28px;
  font-size: 1.4rem;
  line-height: 1.8;
  font-weight: 500;
}

/* ======================================
   Filter tabs
====================================== */
.c-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.c-filter-tabs__item {
  display: flex;
}

.c-filter-tabs__item img {
  width: 13px;
  height: auto;
}

.c-filter-tabs__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  background: #f8e7e0;
  color: var(--color-red);
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 700;
}

.c-filter-tabs__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-red);
  font-size: 1.2rem;
  line-height: 1;
}

/* ======================================
   Select box
====================================== */
.c-select {
  position: relative;
  display: inline-block;
  width: 118px;
}

.c-select select {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 700;
}

.c-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-red);
  transform: translateY(-30%);
  pointer-events: none;
}

@media screen and (max-width: 767px) {
  .c-page-hero {
    padding: 24px 20px 20px;
    border-radius: 20px;
    margin-bottom: 3rem !important;
  }

  .c-page-hero__title {
    font-size: 1.6rem;
  }

  .c-page-hero__sub {
    font-size: 1.3rem;
  }

  .c-section-heading {
    gap: 10px;
    min-height: auto;
    padding: 10px 12px;
  }

  .c-section-heading__title {
    font-size: 1.8rem;
  }

  .c-card__head {
    min-height: auto;
    padding: 12px 14px 10px;
  }

  .c-card__title {
    font-size: 1.3rem;
  }

  .c-card__sub {
    font-size: 1.1rem;
  }

  .c-line-list--2col .c-line-list__link,
  .c-line-list--3col .c-line-list__link {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 14px 0;
  }

  .c-form__row {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 14px 0;
  }

  .c-form__label,
  .c-form__required {
    padding-top: 0;
  }

  .c-table th,
  .c-table td {
    display: block;
    width: 100%;
    padding: 12px 14px;
  }

  .c-table th {
    border-bottom: none;
  }

  .c-filter-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .c-select {
    width: 100%;
  }

  .c-card__image {
    aspect-ratio: auto;
  }

  .c-card__label {
    transform: none;
  }

  .c-card {
    border-right: 1px solid #ddd;
  }

  .c-card__arrow {
      top: 50%;
      right: 10px;
      width: 20px;
      height: 20px;
  }


}