:root {
  --alive-main-color: #040B2D;
  --alive-secondary-color: #152B5C;
  --alive-tertiary-color: #215b93;
  --alive-bg-color: #F3F3F5;
  --geechs-black-navy: #686d81;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--alive-main-color);
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin: 0;
}

.l-section-container {
  max-width: 100vw;
  padding: 0 17.39583333vw;
}
@media screen and (max-width:768px) {
  .l-section-container {
    max-width: 100vw;
    padding: 0 7.67vw;
  }
}

/* text */
p,
.c-text__base {
  line-height: 2.25;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.c-text__sm {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.multiline-ellipsis__2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2
}

.multiline-ellipsis__3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3
}

.c-btn_navy{
  display: inline-block;
  background: var(--alive-main-color);
  color: #fff;
  text-decoration: none;
  font-size: 1.041666667vw;
  font-weight: 700;
  padding: 1em 5em;
  transition: opacity 0.3s ease;

  &:hover {
    opacity: 0.5;
  }
}  

.c-btn_white {
  display: inline-block;
  background: #fff;
  color: var(--alive-main-color);
  text-decoration: none;
  font-size: 1.041666667vw;
  font-weight: 700;
  padding: 1em 5em;
  transition: opacity 0.3s ease;

  &:hover {
    opacity: 0.5;
  }
}
.c-btn_gray{
  display: inline-block;
  background: #9194a3;
  color: #fff;
  text-decoration: none;
  font-size: 1.041666667vw;
  font-weight: 700;
  padding: 1em 5em;
  transition: opacity 0.3s ease;

  &:hover {
    opacity: 0.5;
  }
}  

@media screen and (max-width:768px) {
  .c-btn_navy,.c-btn_white,.c-btn_gray {
    font-size: min(4.62vw, 19.86px);
    padding: 0.806em 4.834em;
  }
}

/* Utility */
.u-only--pc{
  display: block;
}
.u-only--pc--inline{
  display: inline;
}
.u-only--sp{
  display: none;
}
.u-align-right{
  text-align: right;
}

@media screen and (max-width:768px) {
  .u-only--pc,
  .u-only--pc--inline{
    display: none;
  }
  .u-only--sp{
    display: block;
  }
}

/* --------------------------------------------------- 
*
* PAGE TOP BUTTON
*
* --------------------------------------------------- */
.p-scroll-to-top {
  position: absolute;
  visibility: hidden;
  bottom: 80px;
  right: 10.625vw;
  padding: 0;
  background: none;
  border: none;
  z-index: 99;
  cursor: pointer;
  transition: opacity 0.3s ease;
  opacity: 0;

  &.show{
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
  }
}
@media (hover: hover) {
  .p-scroll-to-top {
    &:hover{
      opacity: 0.5;
    }
  }
}


.p-scroll-to-top__icon {
  position: relative;
  display: block;
  width: max(4.270833333vw, 46.1675px);
  height: max(4.270833333vw, 46.1675px);
  background: var(--alive-main-color);
  border-radius: 50%;

  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max(1.40625vw, 15.4391px);
    height: max(2.03125vw, 21.7862px);
    background: transparent;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background-color: #fff;
  }
}

.p-scroll-to-top__text {
  font-family: "Cormorant Garamond", serif;
  font-size: max(1.302083333vw, 14.25px);
  font-weight: 700;
  color: var(--alive-main-color);
}
@media screen and (max-width:768px) {
  .p-scroll-to-top {
    right: 20px;
  }
}

/* --------------------------------------------------- 
*
* HEADER
*
* --------------------------------------------------- */
.l-header {
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 90px;
  padding: 0 30px;
  background: #fff;
  z-index: 100;
}

.p-header__logo {
  width: 89px;
  height: auto;
}
.c-humberger-menu{
  display: none;
}
.p-gnav__wraper{
  display: flex;
  align-items: center;
}
.p-gnav__list {
  display: flex;
  /* margin-left: 18vw; */
  padding-left: 0;
  list-style: none;
}

.p-gnav__link {
  padding: 0 1em;
  font-family: "Cormorant Garamond", serif;
  color: inherit;
  font-size: max(1.045833333vw, 16px);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.3s ease;

  &:hover {
    opacity: 0.5;
  }
}

.p-header-btn__container {
  display: flex;
  gap: 0.75em;
  padding-left: 1em;
}

.p-header-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 130px;
  height: 31px;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.3s ease;

  &:nth-child(1) {
    background: var(--alive-tertiary-color);
  }

  &:nth-child(2) {
    background: var(--alive-secondary-color);
  }

  &:hover {
    opacity: 0.5;
  }
}

@media screen and (max-width:768px) {
  .l-header {
    height: 72px;
    padding: 0 24px;
    background: var(--alive-main-color);
  }
  .p-header__logo {
    width: 89px;
    height: auto;
  }
  .c-humberger-menu{
    display: flex;
    flex-direction: column;
    gap: 9px;
    cursor: pointer;
  }
  .c-humberger-menu span{
    display: block;
    width: 32px;
    height: 0.9px;
    background-color: #fff;
    transition: 0.5s;
  }
  .c-humberger-menu.open span:nth-of-type(1){
    transform: translateY(10px) rotate(40deg);
  }
  .c-humberger-menu.open span:nth-of-type(2){
    opacity: 0;
  }
  .c-humberger-menu.open span:nth-of-type(3){
    transform: translateY(-10px) rotate(-40deg);
  }
  .p-gnav__wraper{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    gap: 4.65vw;
    padding: 0 24px;
    top: 72px;
    right: 0;
    background-color: var(--alive-main-color);
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
  }
  .p-gnav__wraper.open{
    position: fixed;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
  }
  .p-gnav__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    gap: 4.65vw;
  }
  .p-gnav__link {
    padding: 0;
    font-size: max(2.145833333vw, 26px);
    color: #fff;
  }
  .p-header-btn__container {
    flex-direction: column;
    gap: 3.5vw;
    padding:0;
  }
  .p-header-btn {
    width: 200px;
    height: 40px;
    font-size: 26px;
  }
}

/* --------------------------------------------------- 
*
* FOOTER
*
* --------------------------------------------------- */
.l-footer {
  position: relative;
}

.l-footer-container {
  display: flex;
  justify-content: space-between;
}

.p-footer-content {
  padding-left: 11.25vw;
}

.p-footer-content__logo {
  display: block;
  width: 11.14583333vw;
  height: auto;
  margin-bottom: 1.041666667vw;
}

.p-footer-cta {
  width: 59.6875vw;
  height: max(27.65625vw, 326px);
  background-image: url(../img/common/contact_bask.jpg);
  background-size: cover;
  display: flex;
  align-items: center;
  transition: 0.3s;
  &:hover{
    opacity: 0.7;
  }
}
.p-footer-cta .c-section-title {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 4.9479166667vw;
    line-height: 1;
    margin: 0 0 0.5em 0;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.p-footer-cta__link {
  display: block;
  padding: 4.583333333vw 5.833333333vw;
  color: inherit;
  text-decoration: none;
  width: 100%;

  &::after {
    display: block;
    width: 16.51041667vw;
    height: auto;
    content: url(../img/common/cta-arrow.svg);
    transition: transform 0.3s;
  } 
}

.p-footer-cta__link:hover::after {
  transform: translateX(20px);
}

.p-footer-cta__text {
  margin-bottom:1.666666667vw;
  font-size: max(1.197916667vw, 13px);
  font-weight: 600;
}

.p-footer-content-nav__list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.p-footer-content-nav__link {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4625vw;
  font-weight: 600;
  line-height: 1.9273333333;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;

  &:hover {
    opacity: 0.5;
  }

}

.p-footer__copyright {
  padding: 8.8125vw 0 4.791666667vw;
  font-family: "Cormorant Garamond", serif;
  font-size: max(0.8854166667vw, 13px);
}
@media screen and (max-width:768px) {
  .l-footer-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column-reverse;
  }

  .p-footer-content {
    text-align: center;
    padding: 0;;
  }

  .p-footer-content__logo {
    display: block;
    width: 198.614px;
    height: auto;
    margin: 70px auto 57px;
  }

  .p-footer-cta {
    width: 100vw;
    background-image: url(../img/common/contact_bask_sp.jpg);
    background-size: cover;
    justify-content: center;
  }
  .p-footer-cta .c-section-title {
    font-size: min(16.74vw, 72px);
    margin: 0 0 0.2em 0;
  }

  .p-footer-cta__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    &::after {
      display: block;
      margin-right: auto;
      width: min(44.63vw, 191px);
    }
  }
  .p-footer-cta__text {
    margin-bottom: 4.42vw;
  }

  .p-footer-content-nav__list{
    display: none;
  }
  .p-footer__copyright {
    padding: 0;
  }
}

/* --------------------------------------------------- 
*
* ニュース一覧
*
* --------------------------------------------------- */
.l-section-news__inner {
  max-width: 100%;
  margin: 0 auto;
}

.p-news-list {
  display: flex;
  flex-direction: column;
  max-height: 17.60416667vw;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow-y: auto;
  /* scrollbar-width: none;
  -ms-overflow-style: none; */

  &:hover .p-news-list__link {
    opacity: 0.25;
  }

  /* &::-webkit-scrollbar {
    display: none;
  } */
}

.p-news-list__item {

  &:hover .p-news-list__link {
    opacity: 1 !important;
  }

  &+.p-news-list__item {
    border-top: 1px solid var(--alive-main-color);
  }
}

.p-news-list__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0.6vw;
}

.p-news-list__link {
  display: block;
  padding: 1.55vw 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer !important;
  transition: opacity 0.3s ease;
}

.p-news-list__date {
  display: block;
  font-weight: 600;
  flex-shrink: 0;
}

.p-news-list__title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}


.p-news-list__categories {
  display: flex;
  justify-content: end;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.p-news-list__category {
  padding: 0.1em 2em;
  background: var(--alive-main-color);
  color: #fff;
}
@media screen and (max-width:768px) {
  .p-news-list {
    max-height: 69.3vw;
  }

  .p-news-list__header {
    margin-bottom: 19px;
  }

  .p-news-list__link {
    padding: 20px 0;
  }
  .p-news-list__date {
    font-size: 14px;
  }

  .p-news-list__title {
    font-size: 15px;
  }

  .p-news-list__category {
    font-size: 14px;
    padding: 0.2em 0.857em;
  }
}