#page-title {
  /* background-color: var(--white); */
  border-bottom: solid 1px var(--border-black);
}

.page-title__wrap {
  padding: 4.8rem 12rem;
}

.page-title__heading {
  text-align: center;
  > span {
    font-family: var(--font-en);
    color: var(--text-gray);
    font-weight: 700;
    font-size: 1.8rem;
  }

  h1 {
    font-size: 4rem;
    letter-spacing: 0.1em;

    > i {
      font-size: 4.8rem;
      margin-left: 0.8rem;
      line-height: 1;
    }
  }
}

.page-title__count {
  font-family: var(--font-en);
  display: block;
  text-align: center;
  font-size: 1.4rem;
}

@media screen and (max-width: 1024px) {
  .page-title__wrap {
    padding: 4.8rem 2.4rem;
  }
}

@media screen and (max-width: 768px) {
  .page-title__heading {
    h1 {
      font-size: 3.2rem;

      > i {
        font-size: 4rem;
      }
    }
  }
}

.page-main {
  margin: 0 12rem;
}
.page-main__wrap {
  padding: 4.8rem 12rem;
  border-right: solid 1px var(--border-black);
  border-left: solid 1px var(--border-black);
}

@media screen and (max-width: 1024px) {
  .page-main {
    margin: 0 2.4rem;
  }
  .page-main__wrap {
    padding: 4.8rem 2.4rem;
    border-right: solid 1px var(--border-black);
    border-left: solid 1px var(--border-black);
  }
}

.page-404 {
  text-align: center;
}

.page-404__content {
  > p:last-of-type {
    margin-bottom: 4rem;
  }
}

/* ------------------

 ライター一覧ページ

 ------------------ */
.page-author__list {
  display: flex;
  flex-wrap: wrap;
  overflow-x: clip;
}

.page-author__list + .pagination {
  border-top: solid 1px var(--border-black);
}

.page-author__item {
  width: calc(100% / 3);
  position: relative;
  border-right: solid 1px var(--border-black);
  border-bottom: solid 1px var(--border-black);

  &:nth-of-type(3n) {
    border-right: none;
  }

  &.is-last-row {
    border-bottom: none;
  }

  > a {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1.6rem;
    padding: 2.4rem;
    color: var(--text-black);
    transition: 0.4s ease;
    width: 100%;
    height: 100%;
  }
}

.page-author__item--left {
  width: 10rem;

  .page-author__img {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;

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

.page-author__item--right {
  flex: 1;

  .page-author__name {
    display: block;
    font-weight: 600;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    font-size: 1.6rem;
  }

  .page-author__profile__text {
    font-size: 1.2rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-top: 0;
  }

  .page-author__area {
    display: flex;
    align-items: center;
    column-gap: 1.6rem;
    border-top: dashed 1px var(--border-gray);
    border-bottom: dashed 1px var(--border-gray);
    padding: 0.8rem;

    > span {
      font-size: 1.2rem;
      font-weight: 600;
      font-family: var(--font-en);
      color: var(--theme-blue);
      min-width: fit-content;
    }
  }

  .page-author__area__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.8rem;

    > li {
      font-size: 1rem;

      sup {
        font-size: 1rem;
      }

      &::after {
        content: "/";
        color: var(--border-gray);
      }

      &:last-of-type::after {
        display: none;
      }
    }
  }
}

.page-author__scope {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  &::before,
  &::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    border-radius: 50%;
    transition: all 0.6s ease;
  }

  &::before {
    width: 7.2rem;
    height: 7.2rem;
    border: solid 1px var(--border-black);
  }
  &::after {
    width: 6.4rem;
    height: 6.4rem;
    border: dashed 1px var(--border-black);
  }

  span:first-of-type {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    inset: 0;

    &::before,
    &::after {
      content: "";
      position: absolute;
      display: inline-block;
      width: 1px;
      height: 0.8rem;
      background-color: var(--border-black);
      transition: all 0.6s ease;
    }

    &::before {
      top: 0;
      left: 50%;
      transform: translateX(-50%);
    }

    &::after {
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
    }
  }

  span:nth-of-type(2) {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    inset: 0;

    &::before,
    &::after {
      content: "";
      position: absolute;
      display: inline-block;
      width: 0.8rem;
      height: 1px;
      background-color: var(--border-black);
      transition: all 0.6s ease;
    }

    &::before {
      top: 50%;
      left: 0;
    }

    &::after {
      top: 50%;
      right: 0;
    }
  }
}

@media (any-hover: hover) {
  .page-author__item {
    > a:hover {
      background-color: var(--theme-gray);
      .page-author__scope {
        &::before,
        &::after {
          opacity: 1;
          visibility: visible;
        }

        span:first-of-type {
          &::before,
          &::after {
            height: 1.6rem;
          }
        }

        span:nth-of-type(2) {
          &::before,
          &::after {
            width: 1.6rem;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 1024px) {
}

@media screen and (max-width: 768px) {
  .page-author__item {
    width: calc(100% / 2);
    border-right: none;

    &:nth-of-type(odd) {
      border-right: solid 1px var(--border-black);
    }

    &:nth-of-type(2n) {
      border-right: none;
    }

    /* &.is-last-row {
      border-bottom: solid 1px var(--border-black);
    } */

    /* &.is-last-row:last-of-type {
      border-bottom: none;
    } */

    > a {
      flex-direction: column;
    }
  }

  .page-author__item--right {
    .page-author__name {
      display: block;
      font-weight: 600;
      margin-bottom: 1.2rem;
      line-height: 1.2;
      text-align: center;
    }
  }

  .page-author__item--left {
    width: 8rem;
    margin-bottom: 1.6rem;
  }
}

/* ------------------

 コンタクトフォーム／お問い合わせ

 ------------------ */
.page-contact__inner {
  display: flex;
  align-items: flex-start;
  gap: 8rem 4rem;
}

.page-contact__list {
  position: sticky;
  top: 4rem;
  width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;

  > li {
    font-size: 1.4rem;

    h2 {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      font-size: 1.6rem;
      margin-bottom: 1.6rem;

      &::before {
        content: "";
        display: inline-block;
        width: 0.8rem;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        background-color: var(--theme-blue);
      }
    }

    p {
      margin: 0;
    }

    span {
      font-size: 1.2rem;
    }
  }
}

.page-contact__form {
  width: calc(100% - 28rem - 4rem);
  padding-right: 4rem;
  border-right: solid 1px var(--border-gray);
}

.page-contact__form__def {
  margin-bottom: 4rem;
}

.page-contact__form__item {
  display: flex;
  gap: 2rem 4rem;
  width: 100%;
  border-bottom: dashed 1px var(--border-gray);
  padding: 2.4rem 0;

  > dt {
    width: 30%;
    font-weight: 600;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    padding: 2.4rem 1.6rem;
    font-size: 1.4rem;

    .required {
      display: block;
      width: fit-content;
      margin-bottom: 0.4rem;
      background-color: var(--theme-blue);
      color: var(--white);
      font-size: 1rem;
      padding: 0.4rem 0.8rem;
    }

    p {
      font-size: 1.2rem;
      font-weight: 400;
    }
  }

  > dd {
    font-size: 1.2rem;
    width: 70%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 1.6rem;
  }

  .number__inner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
}

.wpcf7 {
  .wpcf7-not-valid {
    background-color: rgba(220, 50, 50, 0.1);
  }

  .wpcf7-form-control-wrap {
    width: 100%;
  }

  .wpcf7-response-output {
    display: none;
  }

  .wpcf7-spinner {
    display: none !important;
  }

  .wpcf7-not-valid-tip {
    font-size: 1.2rem;
  }

  input,
  select,
  textarea {
    border: solid 1px var(--theme-gray);
    width: 100%;
    appearance: auto;
    -webkit-appearance: auto;
    padding: 1.6rem 1rem;
    font-size: 16px;
    transition: 0.3s;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
  }

  textarea {
    line-height: 1.7;
  }

  input:focus,
  select:focus,
  textarea:focus {
    outline: none;
    border: solid 1px transparent;
    border-bottom: solid 1px var(--border-black);
    color: var(--text-black);
    border-radius: 0;
  }

  input::placeholder,
  select::placeholder,
  textarea::placeholder {
    color: var(--text-gray);
  }

  .wpcf7-form-control.wpcf7-radio,
  .wpcf7-form-control.wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2.4rem;
  }

  .wpcf7-number {
    text-align-last: center;
  }

  .wpcf7-list-item {
    font-size: 1.6rem;
    margin: 0;

    label {
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      column-gap: 0.8rem;
    }

    input[type="radio"] {
      position: relative;
      appearance: none;
      width: 0;
      height: 0;
      padding-left: 0.8rem;
      border: transparent;
      cursor: pointer;
    }

    input[type="radio"] + span {
      transition: 0.3s;
    }

    input[type="radio"]::before {
      content: "";
      display: inline-block;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 0;
      border: 0.2rem solid var(--theme-gray);
      width: 2rem;
      aspect-ratio: 1 / 1;
      border-radius: 50%;
    }

    input[type="radio"]::after {
      content: "";
      display: inline-block;
      width: 1.6rem;
      height: 0.8rem;
      border-bottom: solid 0.2rem var(--theme-blue);
      border-left: solid 0.2rem var(--theme-blue);
      position: absolute;
      top: calc(50% - 0.4rem);
      left: 0.4rem;
      transform: translateY(-50%) scale(0.6) rotate(45deg);
      opacity: 0;
      transition: 0.3s;
    }

    input[type="radio"]:checked + span {
      color: var(--theme-blue);
    }

    input[type="radio"]:checked::before {
      border: 0.2rem solid var(--theme-blue);
    }

    input[type="radio"]:checked::after {
      opacity: 1;
      transform: translateY(-50%) scale(1) rotate(-45deg);
    }

    input[type="checkbox"] {
      position: relative;
      appearance: none;
      width: 0;
      height: 0;
      padding-left: 0.8rem;
      border: transparent;
      cursor: pointer;
    }

    input[type="checkbox"] + span {
      transition: 0.3s;
    }

    input[type="checkbox"]::before {
      content: "";
      display: inline-block;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 0;
      border: 0.2rem solid var(--theme-gray);
      width: 2rem;
      aspect-ratio: 1 / 1;
      transition: 0.3s;
    }

    input[type="checkbox"]::after {
      content: "";
      display: inline-block;
      width: 1.6rem;
      height: 0.8rem;
      border-bottom: solid 0.2rem var(--theme-blue);
      border-left: solid 0.2rem var(--theme-blue);
      position: absolute;
      top: calc(50% - 0.4rem);
      left: 0.2rem;
      transform: translateY(-50%) scale(0.6) rotate(45deg);
      opacity: 0;
      transition: 0.3s;
    }

    input[type="checkbox"]:checked + span {
      /* color: var(--theme-blue); */
    }

    input[type="checkbox"]:checked::before {
      /* background-color: var(--theme-blue); */
    }

    input[type="checkbox"]:checked::after {
      opacity: 1;
      transform: translateY(-50%) scale(1) rotate(-45deg);
    }
  }

  .wpcf7-submit {
    cursor: pointer;
    font-family: var(--font-jp);
    position: relative;
    display: block;
    width: fit-content;
    padding: 2.4rem 4rem;
    width: 32rem;
    margin: 0 auto;
    user-select: none;
    color: var(--white);
    background-color: var(--text-black);
    border: solid 1px var(--text-black);
    font-weight: bold;
    border-radius: 4rem;
    transition: 0.3s;
    &:focus {
      color: var(--white);
      background-color: var(--text-black);
      border: solid 1px var(--text-black);
      border-radius: 4rem;
    }
  }
}

.page-contact__form__acceptance {
  text-align: center;
  margin-bottom: 4rem;
}

.page-contact__form__acceptance__policy {
  a {
    position: relative;
    display: inline-block;
    color: var(--text-black);
    padding-right: 1.6rem;
    margin-right: 1.2rem;
    text-decoration: underline;

    &::after {
      content: "";
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 0;
      display: inline-block;
      width: 1.2rem;
      aspect-ratio: 1 / 1;
      mask-image: url(../img/icon-outlink.svg);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      background-color: var(--text-black);
    }
  }
}

.page-contact__form__acceptance__text {
  font-size: 1.4rem;
  text-align: left;
  margin-bottom: 0;
}

#cf7-modal {
  display: none;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 2.4rem;
}

#cf7-modal::before {
  content: "";
  display: inline-block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.6;
  z-index: -1;
}

.wpcf7-form.sent #cf7-modal {
  display: flex;
}

.cf7-modal__wrap {
  position: relative;
  background-color: #fff;
  border-radius: 1.6rem;
  max-width: 88rem;
  padding: 4rem;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 0.2rem 0.8rem;
  text-align: center;
  z-index: 2;
}

.cf7-modal__wrap p {
  font-size: 1.4rem;
}

.cf7-modal__title {
  font-size: 1.8rem;
  font-weight: 600;
}

.cf7-modal__wrap_tel {
  font-size: 1.8rem;
  font-weight: 700;
}

@media (any-hover: hover) {
  .wpcf7 .wpcf7-submit:hover {
    color: var(--text-black);
    background-color: var(--white);
  }
}

@media screen and (max-width: 768px) {
  .page-contact__inner {
    flex-direction: column;
  }

  .page-contact__list {
    position: static;
    width: 100%;
  }

  .page-contact__form {
    width: 100%;
    padding-right: 0;
    border-right: none;
  }

  .page-contact__form__item {
    flex-direction: column;

    > dt {
      width: 100%;
    }

    > dd {
      width: 100%;

      &.col3 {
        grid-template-columns: 1fr 1fr;
      }
    }
  }
}


/* ------------------

 固定ページコンテンツ内の調整

 ------------------ */
.page-main__wrap {
  padding-bottom: 8rem;

  h2 {
    font-size: 2.8rem;
    margin-top: 6.4rem;
    margin-bottom: 2.4rem;
    letter-spacing: 0.05em;
  }

  h3 {
    font-size: 2.4rem;
    margin-top: 6.4rem;
    margin-bottom: 2.4rem;
    letter-spacing: 0.05em;
  }

  h4 {
    font-size: 2.1rem;
    margin-top: 6.4rem;
    margin-bottom: 2.4rem;
    letter-spacing: 0.05em;
  }

  a {
    text-decoration: underline;
  }

  table {
    font-size: 1.4rem;
    width: 100%;
    margin-bottom: 1.6rem;

    tr {
      th {
        padding: 0.8rem 1.6rem;
        border: solid 1px var(--border-black);
      }

      td {
        padding: 0.8rem 1.6rem;
        border: solid 1px var(--border-black);
      }
    }
  }

  strong {
    font-weight: 600;
    color: var(--text-black);
    background: linear-gradient(transparent 65%, var(--theme-gray) 65%);
    padding: 0.2rem;
  }

  .wp-element-caption {
    line-height: 1.4;
    font-size: 1.4rem;
    color: var(--border-black);
    margin-top: 0.8rem;
    margin-bottom: 1.6rem;
    text-align: center;
  }

  .wp-block-image {
    margin-bottom: 1.6rem;
  }
}
