html {
  scroll-behavior: smooth;
  @media (768px <= width) {
    font-size: min(calc(100vw / 120), 10px); /
  }
  @media (width < 768px) {
    font-size: calc(100vw / 37.5); /* SP: 375pxデザイン時、10pxを基準remにする */
  }
}

body {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-optical-sizing: auto;
  font-feature-settings: "palt";
  line-height: 1.6;
  letter-spacing: .1em;
  color: var(--color-black-base);
  @media (width < 768px) {
    font-size: 1.4rem;
  }
}

.sns-list {
  display: flex;
  align-items: center;
  gap: 24px;
  li {
    height: 24px;
    img {
      object-fit: contain;
    }
  }
  .instagram {
    width: 24px;
  }
  .x {
    width: 23px;
  }
  .youtube {
    width: 28px;
  }
  a {
    display: block;
    padding: 0;
    transition: all .4s;
    &:hover {
      opacity: .6;
    }
  }
}

@keyframes slidein {
  0% {
    transform: translateX(400px);
  }
  100% {
    transform: translateX(0);
  }
}

header {
  width: 100%;
  position: sticky;
  top: 0;
  transition: all .4s;
  z-index: 100;
  &:hover {
    background: #ffffffE6;
  }
  @media (768px <= width) {
    height: 112px;
    padding: 0 40px;
  }
  @media (width < 768px) {
    height: 84px;
    padding: 0 20px;
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    @media (768px <= width) {
      gap: 30px;
    }
  }
  .logo {
    @media (768px <= width) {
      width: clamp( 100px, 11vw, 124px);
      order: 1;
    }
    @media (width < 768px) {
      width: 96px;
      padding: 12px 0;
    }
  }
  nav {
    z-index: 110;
    @media (768px <= width) {
      order: 2;
      margin-left: auto;
    }
    @media (width < 768px) {
      display: none;
    }
    .nav-list {
      @media (768px <= width) {
        display: flex;
        gap: 20px;
      }
    }
    .nav-other-list, .sns-list {
      @media (768px <= width) {
        display: none;
      }
    }
    a {
      padding: 5px;
      transition: all .4s;
      &:hover {
        color: var(--color-blue-base);
      }
    }
    &.is-active {
      position: fixed;
      inset: 0;
      background: #0000004D;
      z-index: 101;
      pointer-events: none;
      @media (width < 768px) {
        display: block;
      }
      .nav-wrap {
        position: absolute;
        right: 0;
        background: var(--color-blue-base);
        animation: slidein .5s forwards;
        border-radius: 12px 0 0 12px;
        overflow-y: auto;
        @media (768px <= width) {
          top: 112px;
          padding: 50px 80px 50px 50px;
          max-height: calc( 100vh - 112px );
        }
        @media (width < 768px) {
          top: 84px;
          padding: 40px;
          max-height: calc( 100vh - 84px );
        }
      }
      .nav-list, .nav-other-list, .sns-list {
        display: block;
        pointer-events: all;
      }
      .nav-list {
        display: block;
        a {
          display: block;
          color: #FFF;
          font-size: 2rem;
          font-weight: 500;
          padding: 5px 0;
          display: grid;
          transition: all.5s;
          grid-template-columns: 1fr 28px;
          gap: 30px;
          @media (width < 768px) {
            font-size: 1.6rem;
          }
          &::after {
            content: "";
            background: url('../img/link-arrow-01.svg') no-repeat center right;
            transition: all.5s;
            width: 28px;
            height: 28px;
          }
          &:hover {
            &::after{
              transform: translateX(5px);
            }
          }
        }
        li + li {
          margin-top: 5px;
        }
      }
      .nav-other-list {
        margin-top: 40px;
        a {
          color: #fff;
          padding: 5px 0;
          color: #FFF;
          font-size: 1.3rem;
          font-weight: 400;
          transition: all .4s;
          @media (width < 768px) {
            font-size: 1.2rem;
            line-height: 2;
          }
          &:hover {
            opacity: .6;
          }
        }
      }
      .sns-list {
        display: flex;
        margin-top: 40px;
      }
    }
  }
  .toggle-menu {
    border: 1px solid var(--color-gray-line);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-direction: column;
    background: var(--color-white);
    z-index: 120;
    width: 48px;
    height: 48px;
    @media (768px <= width) {
      order: 3;
    }
    span {
      display: block;
      background: var(--color-black-base);
      width: 24px;
      height: 1px;
    }
  }
}

footer {
  background: var(--color-blue-base);
  color: #fff;
  position: relative;
  .footer-inner {
    @media (768px <= width) {
      width: 80%;
      margin: 0 auto;
      padding: 80px 0;
      display: grid;
      grid-template-columns: 1fr auto;
      justify-content: space-between;
      gap: 30px;
    }
    @media (width < 768px) {
      padding: 40px 30px;
      display: flex;
      flex-direction: column;
    }
  }
  .footer-info-area {
    @media (width < 768px) {
      display: contents;
    }
    .logo {
      width: 18vw;
      max-width: 220px;
      @media (width < 768px) {
        width: 217px;
      }
    }
    .address {
      font-style: normal;
      @media (768px <= width) {
        margin-top: 40px;
        font-size: 1.4rem;
      }
      @media (width < 768px) {
        margin-top: 30px;
        font-size: 1.3rem;
      }
      .company-name {
        font-weight: 600;
      }
    }
    .sns-list {
      margin-top: 30px;
      .youtube {
        width: 24px;
      }
    }
    .copyright {
      margin-top: 40px;
      font-family: var(--font-en);
      font-size: 1.1rem;
      font-weight: 300;
      @media (width < 768px) {
        margin-top: 20px;
        position: relative;
        order: 6;
      }
    }
  }
  .nav-area {
    @media (768px <= width) {
      padding-right: 7vw;
    }
    @media (width < 768px) {
      justify-content: space-between;
      display: grid;
      grid-template-columns: auto auto;
      margin-top: 30px;
    }
  }
  .nav-area, .nav-list {
    @media (768px <= width) {
      display: flex;
      gap: 4vw;
    }
  }
  .link-box {
    a {
      display: flex;
      color: #FFF;
      font-size: 1.8rem;
      font-weight: 500;
      position: relative;
      align-items: center;
      justify-content: space-between;
      @media (768px <= width) {
        gap: clamp( 10px, 1.5vw, 20px);
      }
      @media (width < 768px) {
        font-size: 1.3rem;
        font-weight: 500;
        gap: 5px;
      }
      + a {
        margin-top: 20px;
      }
      &::after {
        content: "";
        display: block;
        width: clamp( 16px, 3vw, 24px);
        height: clamp( 16px, 3vw, 24px);
        background: url('../img/link-arrow-01.svg') no-repeat;
        transition: all .4s;
        @media (width < 768px) {
          width: 20px;
          height: 20px;
        }
      }
      &:hover {
        &::after {
          transform: translateX(5px);
        }
      }
    }
    + .link-box {
      @media (width < 768px) {
        margin-top: 20px;
      }
    }
  }
  .nav-other-list {
    line-height: 2;
    a {
      display: block;
      transition: all .4s;
      font-size: 1.3rem;
      @media (width < 768px) {
        font-size: 1.1rem;
      }
      &:hover {
        opacity: .6;
      }
    }
    li + li {
      margin-top: 10px;
    }
  }
}

@keyframes circle-animation {
  0% {
    transform:rotate(-60deg)
  }
  to {
    transform:rotate(-420deg)
  }
}

.pagetop {
  @media (768px <= width) {
    position: absolute;
    width: clamp(130px, 11vw, 184px);
    height: clamp(130px, 11vw, 184px);
    right: 4vw;
    bottom: 4vw;
  }
  @media (width < 768px) {
    width: 160px;
    height: 160px;
    margin-left: auto;
  }
  a {
    display: grid;
    height: 100%;
    position: relative;
    place-content: center;
  }
  .pagetop-bg {
    position: absolute;
    inset: 0;
    animation: circle-animation 10s linear 1.74s infinite;
  }
  .pagetop-arrow {
    width: 40px;
    height: fit-content;
  }
}

.btn {
  display: block;
  width: 260px;
  line-height: 1;
  padding: 27px 56px 27px 24px;
  position: relative;
  background: var(--color-blue-base);
  color: var(--color-white);
  border-radius: 50px;
  font-size: 1.3rem;
  &::before {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    transition: all .4s;
    background: url('../img/link-arrow-01.svg') no-repeat;
  }
  &:hover {
    &::before{
      transform: translateY(-50%) translateX(5px);
    }
  }
}

.attention-list > li,
.attention-text {
	padding-left: 1em;
	text-indent: -1em;
	position: relative;
	> * {
		text-indent: 0;
	}
	&::before{
		content: "※";
		width: 1em;
		display: inline-block;
		text-indent: 0;
	}
}

.mark-list {
	list-style-type: disc;
	padding-left: 1em;
}

.text-link {
  color: var(--color-blue-base);
  padding-bottom: 4px;
  background: linear-gradient(90deg, var(--color-blue-base), var(--color-blue-base)) no-repeat left bottom;
  background-size: 100% 1px;
  transition: all .4s;
  &:hover {
    background-size: 0 1px;
  }
}

.text-arrow-link {
  display: grid;
  grid-template-columns: auto 16px;
  gap: 30px;
  background: linear-gradient(90deg, var(--color-gray-line), var(--color-gray-line)) no-repeat left bottom;
  background-size: 100% 1px;
  transition: all .4s;
  width: fit-content;
  align-items: center;
  padding: 5px;
  &:hover {
    background-size: 0 1px;
  }
}

.arrow-link {
  display: grid;
  grid-template-columns: auto 72px;
  gap: 30px;
  @media (width < 768px) {
    grid-template-columns: auto 48px;
    gap: 20px;
  }
}

.arrow-link__icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--color-gray-dark);
  border-radius: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s;
  @media (width < 768px) {
    width: 48px;
    height: 48px;
  }
  svg {
    width: 20px;
  }
}

h2 {
  span {
    display: block;
    line-height: 1.2;
  }
  .en {
    color: var(--color-blue-base);
    font-weight: 600;
    font-family: var(--font-en);
  }
  .jp {
    margin-top: 20px;
    font-weight: 400;
    @media (width < 768px) {
      margin-top: 10px;
    }
  }
}

.pagination {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  @media (768px <= width) {
    margin-top: 80px;
  }
  @media (width < 768px) {
  margin-top: 40px;
  }
  .arrow {
    border: 1px solid var(--color-black-base);
    border-radius: 50px;
    display: grid;
    place-content: center;
    @media (768px <= width) {
      width: 54px;
      height: 54px;
    }
    @media (width < 768px) {
      width: 48px;
      height: 48px;
    }
    svg {
      @media (768px <= width) {
        width: 16px;
      }
      @media (width < 768px) {
        width: 15px;
      }
    }
    &.hidden {
      opacity: .2;
      pointer-events: none;
    }
  }
  .num {
    display: flex;
    gap: 10px;
    div {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      border-radius: 64px;
      transition: all .4s;
      cursor: pointer;
      @media (768px <= width) {
        width: 40px;
        height: 40px;
      }
      @media (width < 768px) {
        width: 32px;
        height: 32px;
      }
      &:hover, &.current {
        background: var(--color-blue-base, #3299BB);
        color: #fff;
      }
    }
  }
}

#news {
  .news-list {
    li {
      &:first-child a {
        border-top: 1px solid var(--color-gray-line);
      }
    }
    a {
      display: block;
      border-bottom: 1px solid var(--color-gray-line);
      @media (768px <= width) {
        display: grid;
        grid-template-columns: auto 1fr 20px;
        align-items: center;
        padding: 20px;
        gap: 40px;
        min-height: 120px;
      }
      @media (width < 768px) {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 24px 0;
      }
      time {
        color: var(--color-gray-dark, #606060);
        font-size: 1.4rem;
        font-weight: 500;
        font-family: var(--font-en);
        @media (width < 768px) {
          width: 100%;
          font-size: 1.2rem;
        }
      }
      .news-title {
        font-size: 1.6rem;
        line-height: 1.8;
        @media (width < 768px) {
          width: calc( 100% - 32px );
          margin-top: 10px;
        }
      }
      .arrow {
        width: 20px;
        cursor: pointer;
        transition: all .4s;
        @media (width < 768px) {
          width: 12px;
        }
      }
      &:hover {
        .arrow {
          transform: translateX(5px);
        }
      }
    }
  }
}
