input,select,textarea{
  background-color: #e0e1e5;
  padding: 10px 20px;
  border: none;
}
input{
  background-color: #e0e1e5;
  padding: 10px 20px;
  border: none;
}

input[type="file"]{
  background-color: transparent;
  padding: 0;

  &::file-selector-button {
    font-weight: 500;
    color: white;
    background: var(--geechs-black-navy);
    font-size: 14px;
    border: none;
    padding: 10px 18px;
    text-align: center;
    margin-right: 32px;
    cursor: pointer;
  }
}
select {
  padding-right: 30px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("../img/common/select-arrow.svg");
  background-repeat: no-repeat;
  background-size: 13px auto; /* 画像のサイズ（幅 高さ）*/
  background-position: right 12px center; /* 画像の位置 */
}
@media screen and (max-width:768px) {
  input,select,textarea{
    padding: 8px 12px;
    
    &:focus {
      outline: none;
    }
  }

  input[type="file"]{
    &::file-selector-button {
      font-size: 14px;
      padding: 10px 16px;
      margin-right: 20px;
    }
  }
  select {
    background-size: 11px auto; /* 画像のサイズ（幅 高さ）*/
    background-position: right 10px center; /* 画像の位置 */
  } 
}

.l-section-under{
  margin-bottom: 8.85vw;
}
.c-label{
  font-size: min(1.3vw, 20px);
  font-weight: 700;
  color: var(--alive-main-color);
  line-height: 1.94;
}
.c-label--required{
  &::after{
    content: '*';
  }
}
@media screen and (max-width:768px) {
  .c-label{
    font-size: 16px;
  }
}

/* --------------------------------------------------- 
*
* Contact Form7 スタイル
*
* ------------------.--------------------------------- */
.wpcf7-checkbox
{
  & label{
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  & input[type="checkbox"] {
    appearance: none;
    width: 30px;
    height: 30px;
    border: 3px solid var(--alive-main-color);
    padding: 0;
    background-color: #fff;
    cursor: pointer;
    position: relative;
   
    &:checked::before {
      content: "";
      position: absolute;
      top: 0px;
      left: 6px;
      width: 12px;
      height: 18px;
      border: solid var(--alive-main-color);
      border-width: 0 4px 4px 0;
      transform: rotate(45deg);
    }
  }
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
  display: none;
}
.wpcf7-spinner {
  display: none !important;
}

/* --------------------------------------------------- 
*
* MAIN VISUAL
*
* ------------------.--------------------------------- */
.l-section-sub-mv {
  color: var(--alive-main-color);
  position: relative;
  margin-top: 90px;
  margin-bottom: 7.81vw;
}
.p-sub-mv__content {
  height: 31.25vw;
  overflow: hidden;

  & :not(.p-sub-mv__bg-container) {
    z-index: 1;
  }
}

.p-sub-mv__bg-container{
  position: absolute;
  left: 0;
  top: 50%;
  width: 73.19vw;
  height: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}
.p-sub-mv__ttl-wrap{
  position: absolute;
  left: 68.18vw;
  top: 50%;
  transform: translateY(-50%);
}
.p-sub-mv__ttl{
  font-size: 4.05vw;
  line-height: 2.661;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-style: normal;
}


@media screen and (max-width:768px) {
  .l-section-sub-mv {
    margin-top: 72px;
    margin-bottom: 45px;
  }
  .p-sub-mv__content {
    height: 40vw;
  }

  .p-sub-mv__bg-container{
    width: 75vw;
    height: 100%;
  }
  .p-sub-mv__img-wrap{
    height: 100%;
    width: 100%;
    & img{
      height: 100%;
      width: auto;
      object-fit: cover;
      object-position: right top;
    }
  }
  .p-sub-mv__ttl-wrap{
    left: auto;
    right: 5%;
  }
  .p-sub-mv__ttl{
    font-size: 7.05vw;
  }
}


/* --------------------------------------------------- 
*
* CONTACT ページ
*
* --------------------------------------------------- */
.p-contact__note{
  text-align: right;
  font-size: 12px;
  color: var(--alive-main-color);
  font-weight: 700;
  margin-bottom: 32px;
}
.p-conatact__form-row{
  display: flex;
  align-items: flex-start;
  margin-bottom: min(3.02vw, 58px);
  & p{
    margin: 0;
  }

  & .c-label{
    /* padding-top: 10px; */
    width: 30%;
    flex-shrink: 0;
  }
  & .wpcf7-form-control-wrap{
    width: 70%;
  }
  & input,select,textarea{
    width: 100%;
  }
}

.p-contact__privacypolicy-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--alive-main-color);
  font-size: 17px;
  width: 51.72vw;
  margin: 0 auto;
  & p{
    line-height: 1.8;
  }

  & button{
    font-weight: 700;
    color: var(--alive-main-color);
    padding: 0 0 10px;
    border: none;
    border-bottom: 1.7px solid var(--alive-main-color);
    margin: 1.04vw auto 3.02vw;
    background-color: transparent;
    cursor: pointer;
    &:hover{
      opacity: 0.5;
    }
  }
  & .wpcf7-list-item{
    margin-left: 0;
  }
}

.p-contact__btn-wrap{
  margin: 5.26vw auto 0;

  & .c-btn_navy{
    display: block;
    margin: 0 auto;
    width: 323px;
  }
}

/*確認画面*/
.p-contact__content--confirm{
  
  .p-contact__form-val {
    width: 70%;
    border-bottom: 0.5px solid var(--alive-main-color);
    padding: 0px 3px 10px;
    min-height: 57px;

    & p{
      margin: 0;
      white-space: pre-line;
    }
  }

  .p-contact__text-wrap{
    margin:5.63vw auto 0;
    text-align: center;
  }
  .p-contact__btn-wrap{
    max-width: 35.42vw;
    display: flex;
    justify-content: space-between;
    gap: 1.88vw;
    & .c-btn_navy,.c-btn_gray{
      display: block;
      margin: 0 auto;
      width: 50%;
    }
  }
}

/*完了画面*/
.p-contact__content--thanks{
  .p-contact__text-wrap{
    margin:14.71vw auto 0;
    text-align: center;
  }
  .p-contact__btn-wrap{
    margin-top: 8.49vw;

    .c-btn_gray{
      display: block;
      margin: 0 auto;
      max-width: 370px;
      text-align: center;
    }
  }
}
@media screen and (max-width:768px) {
  .l-section-contact{
    margin-bottom: 50px;
  }
  .p-contact__note{
    margin-bottom: 24px;
  }
  .p-conatact__form-row{
    flex-direction: column;

    /* margin-bottom: min(3.02vw, 58px); */

    & .c-label{
      width: 100%;
      margin-bottom: 0.5em;
    }
    & .wpcf7-form-control-wrap{
      width: 100%;
    }
  }

  .p-contact__privacypolicy-wrap{
    font-size: 16px;
    width: 100%;

    & button{
      padding: 0 0 6px;
      margin: 1.04vw auto 3.02vw;
    }
  }
  .p-contact__btn-wrap{
    & .c-btn_navy{
      width: 100%;
      max-width: 323px;
    }
  }

  /*確認画面*/
  .p-contact__content--confirm{
    .p-contact__form-val {
      width: 100%;
      padding: 0px 3px 10px;
      min-height: 48px;
    }

    .p-contact__text-wrap{
      margin:5.63vw auto 0;
      text-align: left;
    }
    .p-contact__btn-wrap{
      max-width: 100%;
      display: flex;
      flex-direction: column-reverse;
      justify-content: flex-start;
      gap: 1.88vw;
      
      & .c-btn_navy,.c-btn_gray{
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 323px;
      }
    }
  }  
}

/* --------------------------------------------------- 
*
* NEWS ページ
*
* --------------------------------------------------- */
.single-post{
  .p-sub-mv__content {
    height: 24.66vw;
  }
  .p-sub-mv__bg-container{
    width: 83.8vw;
  }
  .p-sub-mv__ttl-wrap{
    position: absolute;
    left: 17.81vw;
    top: 50%;
    transform: translateY(-50%);
    max-width: 61.29vw;
  }
  .p-sub-mv__ttl{
    margin: 1.35vw 0 2.5vw;
    line-height: 1.674;
    display: -webkit-box;
    -webkit-line-clamp: 2;       /* 最大2行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 2.24vw;
    font-family: "Noto Sans JP", sans-serif;
  }


  .p-news-list__categories {
    justify-content: start;
  }
  .p-news-list__category {
    font-weight: 700;
  }

  .l-section-news__inner{
    position: relative;
    margin: 5.77vw auto 0;
    padding-top: 5.77vw;
    max-width: 940px;

    &::before{
      content:'';
      width: 130%;
      max-width: 100vw;
      height: 0.5px;
      background-color: var(--alive-main-color);
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
    }
    & .p-news-title{
      font-size: 23px;
      font-weight: 700;
      margin: 0 0 12px;
    }
    & .p-news-list__categories {
      justify-content: end;
    }
    & .p-news-list__category {
      font-weight: 500;
    }
  }

}
@media screen and (max-width:768px) {
  .single-post{
    .p-news-list__date {
      font-size: 14px;
    }
    .p-news-list__category {
      font-size: 12px;
      padding: 0.2em 0.857em;
      font-weight: 500;
    }
    .p-sub-mv__content {
      height: 50vw;
    }
    .p-sub-mv__bg-container{
      width: 75vw;
      height: 100%;
    }
    .p-sub-mv__ttl-wrap{
      left: 5%;
      max-width: 90vw;
    }
    .p-sub-mv__ttl{
      margin: 1.35vw 0 2.5vw;
      line-height: 1.674;
      font-size: 5.05vw;
    }
  }
}

/* --------------------------------------------------- 
*
* プライバシーポリシー　モーダル
*
* --------------------------------------------------- */
.p-privacypolicy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.p-privacypolicy-modal.is-active {
  display: block;
}

.p-privacypolicy-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.p-privacypolicy-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 900px;
  max-height: 500px;
  overflow-y: auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.p-privacypolicy-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.p-privacypolicy-modal__text {
  font-size: 1rem;
}
@media screen and (max-width:768px) {
  .p-privacypolicy-modal__content {
    padding: 1rem;
  }
}