@charset "utf-8";

.l-main {
  padding-top: 72px;
  padding-bottom: 40px;
}

@media all and (max-width: 576px) {
  .l-main {
    padding-top: 52px;
  }
}

.p-tab {
  position: static;
}

/* abroad
------------------------------*/
.p-abroad__content {
  width: 100%;
  padding: 60px 20px 0;
}

@media all and (max-width: 576px) {
  .p-abroad__content {
    padding-top: 0;
  }
}

.p-abroad__list {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 高さに対しての割合 */
  row-gap: min(50px, calc(50 / 1600 * 100vw));
  /* 横幅に対しての割合 */
  column-gap: min(50px, calc(50 / 1600 * 100vw));
}

@media all and (max-width: 1400px) {
  .p-abroad__list {
    max-width: 1280px;
    /* 高さに対しての割合 */
    row-gap: min(40px, calc(40 / 1280 * 100vw));
    /* 横幅に対しての割合 */
    column-gap: min(40px, calc(40 / 1280 * 100vw));
  }
}

@media all and (max-width: 1080px) {
  .p-abroad__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media all and (max-width: 600px) {
  .p-abroad__list {
    grid-template-columns: repeat(1, 1fr);
  }
}

.p-abroad__item {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
}

.p-abroad__item:nth-of-type(2n) {
  transform: translate(0, 40px);
}

@media all and (max-width: 600px) {
  .p-abroad__item:nth-of-type(2n) {
    transform: translate(0, 0);
  }
}

.p-abroad__item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease-out;
  position: relative;
  z-index: 0;
}

@media all and (max-width: 576px) {
  .p-abroad__item a {
    display: flex;
  }
}

.p-abroad__item a:hover {
  background-color: #f44336;
}

.p-abroad__item a:hover * {
  color: #fff !important;
}

.p-abroad__item a::after {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  background: #f44336 url(../img/common/arrow_right_white.svg) no-repeat center center/10px auto;
  position: absolute;
  right: 0;
  bottom: 0;
  border-top-left-radius: 20px;
  transition: all 0.3s ease-out;
}

@media all and (max-width: 576px) {
  .p-abroad__item a::after {
    width: 10px;
    height: 8px;
    background: transparent url(../img/common/arrow_right_red.svg) no-repeat center center/contain;
    position: absolute;
    right: 15px;
    bottom: auto;
    top: 50%;
    transform: translate(0, -50%);
    border-top-left-radius: 0;
  }
}

.p-abroad__item a:hover::after {
  background-color: #fff;
  background-image: url(../img/common/arrow_right_red.svg);
}

.p-abroad__item-img {
  width: 100%;
}

@media all and (max-width: 576px) {
  .p-abroad__item-img {
    width: 120px;
    aspect-ratio: 1/1;
  }

  .p-abroad__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.p-abroad__item-textarea {
  padding: 15px 20px;
}

@media all and (max-width: 576px) {
  .p-abroad__item-textarea {
    padding: 12px 40px 12px 15px;
    width: calc(100% - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.p-abroad__item-sub-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  color: #f44336;
  margin-bottom: 12px;
}

@media all and (max-width: 576px) {
  .p-abroad__item-sub-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
}

.p-abroad__item-title {
  color: #f44336;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

@media all and (max-width: 576px) {
  .p-abroad__item-title {
    font-size: 24px;
  }
}
