﻿:root {
    --shadow-card: 0 0 12px 0 rgba(168, 168, 168, 0.25);
    --size-xsmall: 12px;
    --size-small: 14px;
    --size-normal: 16px;
    --lh-normal: 1.7;
    --radius-xxsmall: 2px;
    --radius-xsmall: 4px;
    --radius-small: 6px;
    --media-pc: 769px;
    --media-sp: 768px;
    --color-contents-bg : #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64758B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-red-50: #FFE6E7;
    --color-red-600: #AD0008;
    --color-brand-500: #004AA6;
    --fw-bold: 700;
    --fw-normal: 400;
}

/* =================================================================
   メインヴィジュアル
================================================================== */
.section.main-visual {
  padding: 64px 0 40px;
  background-color: #fff;
  text-align: center;
}
.mv-container {
  padding: 0 8px;
}
.mv-sub-title {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.mv-main-title {
  font-size: 32px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.5;
  margin-bottom: 32px;
}
.mv-description {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 32px;
  text-align: center;
}
.mv-btn-area .button--hero {
    padding: 12px;
}
.mv-image {
  margin-top: 40px;
}
.mv-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}
@media screen and (min-width: 769px) {
  .section.main-visual {
    padding: 80px 0;
  }
  .mv-container {
    padding: 0;
  }
  .mv-sub-title {
    font-size: 20px;
  }
  .mv-main-title {
    font-size: 56px;
  }
  .mv-description {
    font-size: 20px;
  }
  .mv-btn-area .button--hero:hover {
    color: #ffffff;
  }
  .mv-image {
    max-width: 1160px;
    margin: 60px auto 0;
  }
  .mv-image img {
    border-radius: 24px;
  }
}
.section-title__lead{
  color: #334155;
}
/* =================================================================
   サービス概要
================================================================== */
.section.service-overview {
  padding: 40px 0 80px;
  background-color: #fff;
}
.service-container {
  padding: 0 8px;
}
.service-head-title {
  font-size: 24px;
  font-weight: 700;
  color: #1E293B;
  text-align: center;
  margin-bottom: 32px;
}
.service-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.service-logo {
  width: 100%;
}
.service-logo img {
  width: 100%;
  height: auto;
}
.service-text-area {
  text-align: left;
}
.service-main-copy {
  font-size: 20px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.6;
  margin-bottom: 24px;
}
.service-description {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 24px;
}
.service-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1E293B;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
}
@media screen and (min-width: 769px) {
  .section.service-overview {
    padding: 120px 0;
  }
  .service-container {
    max-width: 1110px;
    margin: 0 auto;
    padding: 0;
  }
  .service-head-title {
    font-size: 48px;
    margin-bottom: 64px;
  }
  .service-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 48px;
  }
  .service-logo {
    flex: 0 0 29%;
    max-width: 320px;
  }
  .service-text-area {
    flex: 1;
  }
  .service-main-copy {
    font-size: 32px;
  }
  .service-description {
    font-size: 20px;
  }
  .service-more-link {
    font-size: 20px;
  }
}
/* =================================================================
   パートナーになるメリット
================================================================== */

.section.merit{
  padding: 64px 0;
  background-color: #F3F6F9;
  .merit-wrapper{
    padding: 0 8px;
  }
  .section-title{
    margin-bottom: 32px;
  }
  .card-grid{
    margin-top: 32px;
  }
  .card-item__label-text{
    color: #1E293B;
  }
}
@media screen and (min-width: 769px) {
  .section.merit{
    padding: 120px 0 96px;
    .merit-wrapper{
      width: 100%;
      max-width: 1160px;
      margin: 0 auto;
      padding: 0;
    }
    .section-title{
      margin-bottom: 40px;
    }
    .card-grid{
      margin-top: 64px;
    }
  }
}
/* =================================================================
   選べるパートナー制度
================================================================== */

.section.system {
    padding: 144px 0;
    background-color: #fff;
    .system-wrapper{
      padding: 0 8px;
    }
    .section-title{
      margin-bottom: 32px;
    }
}
.card-grid.-two-columns{
  margin-top: 32px;
}
.system-card {
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.system-card__header {
    background-color: rgba(230, 240, 255, 0.64);
    padding: 16px;
    text-align: center;
}

.system-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    line-height: 1;
}

.system-card__sub-title {
    font-size: 16px;
    color: #64758B;
}

.system-card__body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.system-card__text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #1E293B;
    margin-bottom: 24px;
}
.system-card__image img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

@media screen and (min-width: 769px) {
  .section.system {
    padding: 120px 0;
    .system-wrapper{
      width: 100%;
      max-width: 1160px;
      margin: 0 auto;
      padding: 0;
    }
    .section-title{
      margin-bottom: 40px;
    }
  }
  .card-grid.-two-columns{
    grid-template-columns: repeat(2, 1fr);
    margin-top: 64px;
  }
  .system-card__header {
      padding: 30px 24px 10px;
      text-align: left;
  }
  .system-card__title {
      font-size: 32px;
  }
  .system-card__text {
      font-size: 16px;
  }
  .system-card__image img{
    width: 450px;
    margin: 0 auto;
  }

}
/* =================================================================
   パートナーになるメリット
================================================================== */
.section.merit{
  .card-item__figure{
    width: 72px;
    height: 72px;
    border-radius: 50%;
  }
}
.section.support{
  background-color: #F3F6F9;
  .support-wrapper{
    padding: 0 8px;
  }
  .section-title{
    margin-bottom: 32px;
  }
  .card-grid{
    margin-top: 32px;
  }
  .card-item__label-text{
    color: #1E293B;
  }
}
@media screen and (min-width: 769px) {
  .section.support{
    padding: 120px 0;
    .support-wrapper{
      width: 100%;
      max-width: 1160px;
      margin: 0 auto;
      padding: 0;
    }
    .section-title{
      margin-bottom: 40px;
    }
    .card-grid{
      margin-top: 64px;
    }
    
  }
}
/* =================================================================
   加盟までの流れ
================================================================== */
.section.flow {
    padding: 144px 0;
    background-color: #fff;
    .system-wrapper{
      padding: 0 8px;
    }
    .section-title{
      margin-bottom: 32px;
    }
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 112px;
  max-width: 500px;
  margin: 0 auto;
}

.flow-item {
  text-align: center;
  position: relative;
}
.flow-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -88px;
    left: calc(50% - 11.5px);
    width: 23px;
    height: 32px;
    background-image: url("/wp-content/themes/itwith/images/partner/arrow_sp.svg");
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateY(-50%);
  }
.flow-item__num {
  width: 64px;
  height: 64px;
  background-color: #1A75FF;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.flow-item__title {
  font-size: 20px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 16px;
}

.flow-item__text {
  font-size: 16px;
  font-weight: 400;
  color: #334155;
  line-height: 1.7;
}

@media screen and (min-width: 769px) {
  .section.flow {
    padding: 120px 0;
    .flow-wrapper{
      width: 100%;
      max-width: 1160px;
      margin: 0 auto;
      padding: 0;
    }
    .section-title{
      margin-bottom: 40px;
    }
  }

  .flow-list {
    max-width: 1160px;
    flex-direction: row;
    gap: 46px;
    justify-content: space-between;
    margin-top: 64px;
  }

  .flow-item {
    flex: 1;
  }

  .flow-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -46px;
    bottom: auto;
    left: auto;
    width: 46px;
    height: 21px;
    background-image: url("/wp-content/themes/itwith/images/partner/arrow_pc.svg");
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateY(-50%);
  }
  .flow-item__num {
    width: 72px;
    height: 72px;
  }
  .flow-item__title {
    font-size: 24px;
  }
}

/* =================================================================
   よくある質問
================================================================== */
.section.faq{
  background-color: #F3F6F9;
  .faq-wrapper{
    padding: 0 8px;
  }
  .section-title{
    margin-bottom: 32px;
  }
  .card-grid{
    display: flex;
    flex-direction: column;
    margin-top: 32px;
    gap: 24px;
  }
  .card-item{
    align-items: flex-start;
    padding: 24px;
    border-radius: 12px;
  }
  .card-item__label{
    justify-content: flex-start;
    margin-bottom: 10px;
  }
  .card-item__label-text{
    color: #1E293B;
    font-size: 16px;
    background-image: url('/wp-content/themes/itwith/images/common/faq_q.svg');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 16px auto;
    padding-left: 24px;
    line-height: 1.7;
  }
  .card-item__desc{
    color: #1E293B;
    font-size: 16px;
    padding-left: 24px;
  }
}
@media screen and (min-width: 769px) {
  #faq{
    padding: 120px 0;
  }
  .section.faq{
    .faq-wrapper{
      width: 100%;
      max-width: 820px;
      padding: 0;
      margin: 0 auto;
    }
    .section-title{
      margin-bottom: 40px;
    }
    .card-grid{
      margin-top: 64px;
    }
  }
}

/* =================================================================
   お問い合わせ
================================================================== */
.section.inquiry{
  background-color: #003B85;
  padding-top: 64px;
  padding-bottom: 64px;
  .inquiry-wrapper{
    padding: 0 8px;
  }
  .section-title{
    color: #ffffff;
    margin-bottom: 32px;
  }
  .inquiry-form {
    width: 100%;
    max-width: 100%;
    font-size: 10px;
    border-radius: 12px;
    background: #FFF;
    padding: 32px 16px;
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    input[type="radio"],
    input[type="checkbox"] {
      &:focus {
        outline: 2px solid var(--color-brand-500);
      }
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
      padding: inherit;
      font-size: inherit;
      border-color: var(--color-gray-400);
      border-radius: var(--radius-small);
      padding: 10px 12px;
      font-size: var(--size-small);
      &::placeholder {
        line-height: 1;
        color: var(--color-gray-400);
      }
      input[type="text"],
      input[type="email"],
      input[type="tel"] {
        max-height: 40px;
      }
      &:focus {
        outline-offset: 1px;
      }
    }
    input[type="radio"],
    input[type="checkbox"] {
      min-width: 20px;
      height: 20px;
      appearance: none;
      background-color: #fff;
      border: 2px solid var(--color-gray-400);
      cursor: pointer;
      position: relative;
      &:checked::after {
        content: "";
        position: absolute;
      }
      &:focus {
        outline-offset: 0;
      }
    }
    input[type="radio"] {
      border-radius: 50%;
      &:checked::after {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 13px;
        height: 13px;
        background-color: var(--color-brand-500);
        border-radius: 50%;
      }
    }
    input[type="checkbox"] {
      border-radius: var(--radius-xxsmall);
      &:checked {
        background-color: var(--color-brand-500);
        border-color: var(--color-brand-500);
      }
      &:checked::after {
        content: "";
        position: absolute;
        left: 4px;
        top: 1px;
        width: 7px;
        height: 11px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(35deg);
      }
    }
    .link-text {
      color: var(--color-gray-800);
      font-size: var(--size-normal);
      a {
        color: var(--color-brand-500);
        &:hover {
          text-decoration: underline;
        }
      }
    }
    .contact-form {
      display: grid;
      gap: 40px;
      .contact-form-radio,
      .contact-form-input,
      .contact-form-column,
      .contact-form-check {
        display: grid;
      }
      .contact-form-flex {
        display: flex;
        gap: 8px;
        align-items: center;
      }
      .contact-form-radio {
        gap: 8px;
        margin-top: 12px;
        li {
          display: flex;
          align-items: center;
          gap: 8px;
        }
      }
      .contact-form-input {
        gap: 8px;
        word-break: break-all;
      }
      .contact-form-column {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
      }
      .contact-form-check {
        gap: 12px;
      }
      .form-label {
        font-size: var(--size-xsmall);
        display: flex;
        align-items: center;
        gap: 4px;
        font-weight: var(--fw-bold);
        color: var(--color-gray-500);
      }
      .form-icon {
        display: inline-flex;
        border-radius: var(--radius-xsmall);
        width: 40px;
        height: 20px;
        align-items: center;
        justify-content: center;
        font-size: var(--size-xsmall);
        font-weight: var(--fw-normal);
        &.icon-required {
          background-color: var(--color-red-50);
          color: var(--color-red-600);
        }
        &.icon-any {
          background-color: var(--color-gray-100);
          color: var(--color-gray-600);
        }
      }
      textarea {
        height: 109px;
        resize: none;
      }
      input,
      select,
      textarea {
        &:focus {
          outline: none;
        }
      }
      .button.button--primary {
        width: 100%;
        max-width: 436px;
        height: 56px;
        font-size: var(--size-normal);
      }
      &.-confirm {
        display: none;
        .contact-form-input {
          p {
            margin: 0;
          }
        }
      }
      .confirm_button {
        &[disabled] {
          color: #8c96a0;
          border: none;
          background: rgba(140, 150, 160, .1);
          &:hover {
            cursor: not-allowed;
            opacity: 1;
          }
        }
      }
      .button {
        transition: background-color 0.3s ease, color 0.3s ease;
        &:hover:not([disabled]) {
          background-color: var(--color-primary-dark);
			    color: #ffffff;
        }
      }
      .wpcf7-not-valid-tip {
        font-size: 14px;
      }
      .wpcf7-list-item {
        margin: 0;
        label {
          display: flex;
          align-items: center;
          gap: 8px;
        }
      }
      .wpcf7-radio {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 8px;
      }
      .wpcf7-acceptance {
        label {
          align-items: flex-start;
          input {
            margin-top: 6px;
          }   
        }
      }
      .button-group {
        display: flex;
        justify-content: center;
        gap: 16px;
        width: 100%;
        > .button--back,
        > .button-wrap {
          width: 50%;
        }
        &:has(> :only-child) {
          > * {
            width: 100%;
          }
        }
        .button-wrap {
          display: inline-block;
          position: relative;
          .wpcf7-spinner {
            position: absolute;
            bottom: -25px;
            left: -20px;
            margin: 0;
          }
        }
      }
      .button--back {
        width: 100%;
        height: 56px;
        color: #64758B;
        font-size: var(--size-normal);
        border: 1px solid #94A3B8;
      }
    }
    #redirect .wpcf7-validation-errors {
      border: 2px solid #F00;
    }
  }
}
@media screen and (min-width: 769px) {
  .section.inquiry{
    padding: 120px 0;
    .inquiry-wrapper{
      width: 100%;
      max-width: 820px;
      padding: 0;
      margin: 0 auto;
    }
    .section-title{
      margin-bottom: 64px;
    }
    .inquiry-form {
      max-width: 700px;
      padding: 40px 32px;
      margin: 0 auto;
      .wpcf7-not-valid-tip {
        font-size: 16px;
      }
      .wpcf7-acceptance {
        label {
          align-items: center;
          input {
            margin-top: 0;
          }   
        }
      }
    }
  }
}


/* パートナー募集ヘッダー */
.header.partner{
    .header__logo{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 4px;
        
    }
    .header__logo-text{
        font-size: 12px;
        font-weight: 500;
        line-height: 1.7;
        color: #1E293B;
        text-align: center;
    }
}
.mobile-menu.partner{
  .header__logo{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px; 
  }
  .header__logo-text{
      font-size: 12px;
      font-weight: 500;
      line-height: 1.7;
      color: #1E293B;
      text-align: center;
  }
}
@media (min-width: 769px) {
    .header.partner{
        .header__logo{
            flex-direction: row;
            gap: 16px;
            font-size: 14px;
            font-weight: 700;
        }
        .header__logo-text{
            font-size: 14px;
            font-weight: 700;
        }
    }
    .mobile-menu.partner{
        .header__logo{
            flex-direction: row;
            gap: 16px;
            font-size: 14px;
            font-weight: 700;
        }
        .header__logo-text{
            font-size: 14px;
            font-weight: 700;
        }
    }
}
/* パートナー募集フッター */
.footer.partner{
  .footer__wave{
    display: none;
  }
  .footer__main{
    padding: 64px 0 30px;
  }
  .footer__logo-area{
    flex-direction: column;
    gap: 4px;
    margin-bottom: 64px;
  }
  .footer__logo-text{
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
    color: #ffffff;
  }
  .footer__bottom-links{
    margin-bottom: 40px;
  }
  .footer__bottom{
    margin-top: 40px;
    padding: 30px 16px 0;
    justify-content: center;
  }
  .footer__logo{
    width: 120px;
  }
}
@media (min-width: 769px) {
  .footer.partner{
    .footer__main{
      padding: 46px 0 27px;
    }
    .footer__content{
      padding: 0;
      align-items: flex-end;
    }
    .footer__logo-area{
      flex-direction: row;
      gap: 12px;
      margin-bottom: 0;
      width: auto;
    }
    .footer__logo-text{
      font-size: 14px;
      font-weight: 400;
      line-height: 1;
    }
    .footer__bottom-links{
      margin-bottom: 0;
    }
    .footer__bottom{
      margin-top: 37px;
      padding: 33px 16px 0;
    }
    .footer__logo{
      width: 148px;
    }
  }
}
