/*
Theme Name: NANO Child
Theme URI:https://tcd-theme.com/tcd065
Description:NANOの子テーマです。
Author:TCD
Author URI:https://tcd-theme.com/
Template: nano_tcd065
Version:1.20
*/

.u-w-fit {
  width: fit-content;
}

/* ナビゲーション */
@media screen and (min-width: 1200px) {
  .l-header__nav {
    background: #fff !important;

    .p-global-nav {
      max-width: 1138px;
      line-height: 48px !important;
      margin-bottom: 10px;

      > li {
        border-left: solid 1px #eaeaea;
        border-right: solid 1px #eaeaea;

        &:last-child {
          border-left: none;
          border-right: none;
        }
      }

      li > a:hover,
      .current-menu-item > a,
      .current-menu-ancestor > a,
      .current-menu-parent > a {
        background: #fff;
        color: #0893e3;
        position: relative;
      }

      > li > a:hover,
      /* .current-menu-item > a, */
      .current-menu-ancestor > a,
      .current-menu-parent > a {
        &::after {
          content: '';
          position: absolute;
          bottom: 0px;
          left: 50%;
          transform: translateX(-50%);
          width: 64%;
          height: 2px;
          background: #0893e3;
        }
      }
    }

    .sub-menu {
      > .menu-item {
        a {
          background: #fff;
          color: #000;
        }
      }
    }

    #menu-item-74 {
      max-width: 158px;
      a {
        background: linear-gradient(to bottom right, #0893e3, #3fb2f4);
        background-size: 200% 200%;
        background-position: left top;
        color: #fff;
        border-radius: 5px;
        transition: background-position 0.3s ease-in-out;
      }
      a:hover {
        background-position: right bottom;
      }
    }
  }
}

/* フッター */
@media screen and (min-width: 1200px) {
  .l-footer {
    .p-footer__container {
      padding-top: 30px;
      padding-bottom: 85px;
      max-width: 1220px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;

      > ul {
        border: none;
        font-size: 14px;

        > li {
          margin: 0;
          padding-inline: 20px;
          border-left: solid 1px #eaeaea;

          &:first-child,
          &:last-child {
            border: none;
          }

          &:last-child {
            padding: 0;
            a {
              background: linear-gradient(to bottom right, #0893e3, #3fb2f4);
              background-size: 200% 200%;
              background-position: left top;
              color: #fff;
              border-radius: 5px;
              transition: background-position 0.3s ease-in-out;
              height: 100%;
              display: block;
              padding-inline: 38px;
            }
            a:hover {
              background-position: right bottom;
            }
          }
        }
      }
    }

    .p-info {
      border: none;
      flex: 1;

      .p-info__inner {
        display: block;
        height: auto;
      }

      .p-info__logo {
        margin-bottom: 20px;
      }
    }
  }
}

/* コピーライト */
.p-copyright {
  border-top: #eaeaea 1px solid;
  background: #fff !important;
  color: #000;
}

/* ボタン */
.p-btn {
  a {
    background: linear-gradient(to bottom right, #0893e3, #3fb2f4) !important;
    background-size: 200% 200% !important;
    background-position: left top !important;
    color: #fff;
    border-radius: 5px;
    transition: background-position 0.3s ease-in-out !important;
    font-size: 18px;

    &:after {
      content: '';
      width: 19px;
      height: 19px;
      background-image: url(./assets/images/icon_arrow.svg);
      background-repeat: no-repeat;
      background-size: contain;
      display: inline-block;
      margin-left: 10px;
      top: 3px;
      position: relative;
    }
  }
  a:hover {
    background-position: right bottom !important;
    text-decoration: none;
  }
}

.p-btn--pdf a {
  &:after {
    content: '';
    width: 17px;
    height: 22px;
    background-image: url(./assets/images/icon_pdf.svg);
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    margin-left: 21px;
    top: 4px;
    position: relative;
  }
}

/* flow */
.p-flow {
  counter-reset: num;
  margin-inline: 0 !important;
  margin-top: 80px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 85px;

  @media screen and (max-width: 1199px) {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  li {
    position: relative;
    display: grid;
    place-items: center;
    max-width: 500px;
    width: 100%;
    min-height: 142px;
    padding: 30px 44px;
    list-style: none;
    background: #eaeaea;

    &:before {
      counter-increment: num;
      content: counter(num);
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate(-50%, -40%);
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      background: #0893e3;
      color: #fff;
      border-radius: 100vmax;
      font-size: 24px;
      line-height: 40px;
      font-weight: medium;
    }

    &:not(:last-child):after {
      content: '';
      position: absolute;
      top: 50%;
      right: -55px;
      transform: translateY(-50%);
      background: #0893e3;
      width: 25px;
      height: 40px;
      clip-path: polygon(0 0, 0% 100%, 100% 50%);

      @media screen and (max-width: 1199px) {
        top: unset;
        right: unset;
        bottom: -50px;
        left: 50%;
        rotate: 90deg;
        transform: translate(0, 30%);
      }
    }
  }
}

/* トップページ */
.home {
  .l-contents {
    margin-bottom: 0;
  }

  .p-three-box__item {
    background: linear-gradient(to bottom, #0893e3 0px, #3fb2f4 140px);

    .p-article12__title,
    .p-article12__sub {
      color: #fff !important;
    }
  }

  .p-header-content__inner {
    max-width: 1180px;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    padding: 0;
    display: grid;
    justify-items: start;
  }

  .p-header-content__title {
    font-weight: bold;
    text-align: left;
    font-size: 90px !important;
    line-height: 1.1 !important;
    text-transform: uppercase;

    .p-header-content__title__blue {
      color: #0893e3;
    }
  }

  @media screen and (max-width: 1199px) {
    .p-header-content__inner {
      width: 92.1875%;
      justify-items: center;
      top: 50%;
      transform: translate(-50%, -50%);
    }
    .p-header-content__title {
      font-size: 48px !important;
    }
  }

  .p-index-content07 {
    max-width: none;
    width: 100vw;
    padding-top: 128px;
    padding-bottom: 64px;
    margin-inline: calc(50% - 50vw);
    background-image: url(./assets/images/law_bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    h2 {
      color: #fff;
      font-size: 26px;
    }

    .post_row {
      max-width: 1180px;
      margin: 0 auto;
      .post_col {
        padding-inline: 10px;
        .well {
          padding: 35px;
          padding-right: 20px;
          border: none;
          border-radius: 0;

          > h3 {
            margin-bottom: 10px;
            color: #0893e3;
            font-size: 26px;
          }

          > p {
            margin: 0;
          }
        }
      }
    }
  }
}

/* タブ */
.p-news-tab-list__tabs-item a {
  background: #efefef;
}

/* 下層ページ */
@media screen and (min-width: 1200px) {
  .p-cover {
    height: 360px;
  }
}
.page:not(.home) {
  .p-entry__body {
    > *:first-child {
      margin-top: 0;
    }
  }

  h2 {
    margin-top: 100px;
    margin-bottom: 60px;
    padding-top: 20px;
    border-top: 1px solid #0893e3;
    position: relative;
    &::before {
      width: 4em;
      height: 4px;
      background: #0893e3;
      content: '';
      position: absolute;
      top: 0;
      left: 0;
    }
  }

  /* カラム */
  @media screen and (min-width: 782px) {
    .wp-block-columns.col-2 {
      padding-inline: 50px;
      .wp-block-column {
        .wp-block-image {
          margin: 0 0 20px;
        }
      }
    }

    .wp-block-columns.col-3 {
      .wp-block-column {
        .wp-block-image {
          margin: 0 0 20px;
        }
      }
    }
  }

  @media screen and (max-width: 781px) {
    .u-max-md-flex-col-reverse {
      flex-direction: column-reverse;
    }
  }

  ul {
    list-style: none;
  }

  .p-organization {
    .wp-block-column {
      .wp-block-columns {
        border-bottom: 1px solid #efefef;
        margin-bottom: 16px;
      }
    }
    p {
      margin-bottom: 16px;
    }
    @media screen and (max-width: 781px) {
      gap: 0;
      .wp-block-columns {
        gap: 0;
        margin-bottom: 0;
        p {
          text-align: left;
        }
      }
    }
  }

  /* プライバシーポリシー */
  .p-policy {
    h3 {
      position: relative;
      padding-left: 20px;
      &::before {
        width: 6px;
        height: 100%;
        background: #0893e3;
        content: '';
        position: absolute;
        top: 0;
        left: 0;
      }
    }

    ol {
      ul {
        background: #efefef;
        margin-left: 0;
        list-style: none !important;
        padding: 10px;
      }
    }
  }
}

/* 記事一覧・記事詳細ページサイドバー位置変更 */
.l-contents--grid .l-contents__inner {
  grid-template:
    'main sidebar' auto
    'main sidebar' 1fr / minmax(0, 830px) 300px;
}

.p-article04__inner {
  height: 80px;
}

.p-page-header {
  display: none;
}

/* 記事一覧・記事詳細ページカバー */
.p-cover--post {
  background: url(./assets/images/cover-post.jpg) center center/cover no-repeat;

  .p-cover__title {
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    @media screen and (max-width: 781px) {
      font-size: 18px;
    }
  }

  .p-cover__sub {
    color: #fff;
    font-size: 16px;
    @media screen and (max-width: 781px) {
      font-size: 14px;
    }
  }
}

/* 記事詳細ページ */
.single {
  .p-entry {
    border-right: none;
    border-left: none;
    border-bottom: none;
  }
}

/* 記事詳細ページ下部最新記事 */
.p-latest-news--original {
  .p-news-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;

    @media screen and (max-width: 781px) {
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }

    .p-news-list__item {
      img {
        width: 170px;
        height: 170px;
        max-width: 100%;
        object-fit: cover;
        margin-bottom: 13px;
      }

      time {
        display: block;
        margin-bottom: 4px;
        font-size: 12px;
        font-weight: medium;
      }

      h3 {
        font-size: 14px;
        font-weight: medium;
      }
    }
  }
}

/* お問い合わせフォーム */

.wpcf7 {
  background: transparent;
  border: none;
  margin: 0;

  form {
    margin-inline: 0;
  }
}

.contact-form {
  p {
    margin: 0 !important;
  }

  input[type='text'],
  input[type='email'],
  textarea {
    padding-block: 21px;
    border-radius: 10px;

    @media screen and (max-width: 781px) {
      padding-block: 16px;
      border-radius: 5px;
    }
  }

  .form-list {
    margin: 0;
    display: grid;
    gap: 10px;

    @media screen and (max-width: 781px) {
      gap: 32px;
    }
  }

  .form-item {
    display: grid;
    grid-template-columns: 289px 1fr;
    align-items: center;
    gap: 60px;

    @media screen and (max-width: 781px) {
      grid-template-columns: 1fr;
      gap: 10px;
    }
  }

  .form-label {
    height: 100%;
    background: #eaeaea;
    padding-left: 30px;
    padding-block: 36px;
    font-size: 18px;
    font-weight: medium;
    @media screen and (max-width: 781px) {
      padding: 16px;
    }
  }

  .form-required {
    padding: 5px;
    background: #e60030;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    border-radius: 5px;
    margin-left: 20px;
  }

  .form-btn {
    position: relative;
    width: fit-content;
    margin: 80px auto 0;
    @media screen and (max-width: 781px) {
      margin: 40px auto 0;
    }

    input {
      width: 240px;
      height: 60px;
      margin: 0;
      background: linear-gradient(to bottom right, #0893e3, #3fb2f4) !important;
      background-size: 200% 200% !important;
      background-position: left top !important;
      color: #fff;
      border-radius: 5px;
      transition: background-position 0.3s ease-in-out !important;
      font-size: 18px;
    }
    &:after {
      position: absolute;
      top: 20px;
      right: 20px;
      content: '';
      width: 19px;
      height: 19px;
      background-image: url(./assets/images/icon_arrow.svg);
      background-repeat: no-repeat;
      background-size: contain;
      display: inline-block;
    }
    input:hover {
      background-position: right bottom !important;
      text-decoration: none;
    }
  }
}

/* WP-Members */

.wpmem_msg {
  margin-inline: auto;
}
/* 新規会員登録フォーム */

#wpmem_reg {
  width: 100%;
}

.req-text {
  display: none;
}

#wpmem_register_form {
  margin-top: 70px !important;
  legend {
    display: block;
    margin-bottom: 60px !important;
    padding-top: 20px;
    border-top: 1px solid #0893e3;
    position: relative;
    &::before {
      width: 4em;
      height: 4px;
      background: #0893e3;
      content: '';
      position: absolute;
      top: 0;
      left: 0;
    }
  }
  .form-item {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 289px 1fr;
    align-items: center;
    gap: 60px;

    @media screen and (max-width: 781px) {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    label {
      display: block;
      height: 100%;
      background: #eaeaea;
      padding-left: 30px;
      padding-block: 36px;
      font-size: 18px;
      font-weight: medium;
      @media screen and (max-width: 781px) {
        width: 100% !important;
        padding: 16px !important;
      }
    }

    input[type='text'],
    input[type='email'],
    input[type='url'],
    input[type='password'],
    textarea,
    select {
      padding-block: 21px !important;
      border-radius: 10px !important;

      @media screen and (max-width: 781px) {
        padding-block: 16px !important;
        border-radius: 5px !important;
      }
    }

    select {
      appearance: none;
    }

    .div_membership {
      position: relative;
      &::after {
        content: '';
        display: inline-block;
        width: 12px;
        height: 12px;
        border-right: 2px solid #707070;
        border-bottom: 2px solid #707070;
        transform: rotate(45deg);
        position: absolute;
        top: 26px;
        right: 24px;
        pointer-events: none;
        @media screen and (max-width: 781px) {
          top: 20px;
          right: 16px;
        }
      }
    }
  }

  .req {
    padding: 5px;
    background: #e60030;
    font-size: 14px !important;
    line-height: 1 !important;
    color: #fff !important;
    border-radius: 5px;
    margin-left: 20px;
    font-weight: medium;
  }
  .button_div {
    position: relative;
    width: fit-content !important;
    margin: 80px auto 0;
    @media screen and (max-width: 781px) {
      margin: 40px auto 0;
    }

    input[type='submit'] {
      cursor: pointer;
      width: 240px;
      height: 60px;
      margin: 0;
      background: linear-gradient(to bottom right, #0893e3, #3fb2f4) !important;
      background-size: 200% 200% !important;
      background-position: left top !important;
      color: #fff;
      border-radius: 5px;
      transition: background-position 0.3s ease-in-out !important;
      font-size: 18px;
      border: none;
    }
    &:after {
      position: absolute;
      top: 26px;
      right: 20px;
      content: '';
      width: 19px;
      height: 19px;
      background-image: url(./assets/images/icon_arrow.svg);
      background-repeat: no-repeat;
      background-size: contain;
      display: inline-block;
    }
    input[type='submit']:hover {
      background-position: right bottom !important;
      text-decoration: none;
    }
  }
}

/* ログインフォーム */
#wpmem_login {
  max-width: 514px;
  width: 100%;
  margin: 0 auto;
}
.form {
  legend {
    display: none;
  }

  .form-item {
    margin-bottom: 30px;
    display: grid;
    align-items: center;
    grid-template-columns: 132px 1fr;
    gap: 30px;

    .div_text {
      margin: 0 !important;
    }

    input[type='text'],
    input[type='email'],
    input[type='url'],
    input[type='password'],
    textarea,
    select {
      padding-block: 15px !important;

      @media screen and (max-width: 781px) {
        padding-block: 16px !important;
      }
    }
  }

  .button_div {
    text-align: center !important;
  }

  .button-wrapper {
    position: relative;
    width: fit-content;
    margin: 40px auto;
    input {
      cursor: pointer;
      width: 240px;
      height: 60px;
      margin: 0;
      background: linear-gradient(to bottom right, #0893e3, #3fb2f4) !important;
      background-size: 200% 200% !important;
      background-position: left top !important;
      color: #fff;
      border-radius: 5px;
      transition: background-position 0.3s ease-in-out !important;
      font-size: 18px;
      border: none;
    }
    &:after {
      position: absolute;
      top: 20px;
      right: 20px;
      content: '';
      width: 19px;
      height: 19px;
      background-image: url(./assets/images/icon_arrow.svg);
      background-repeat: no-repeat;
      background-size: contain;
      display: inline-block;
    }
    input:hover {
      background-position: right bottom !important;
      text-decoration: none;
    }
  }
}

/* reCAPTCHA */
.grecaptcha-badge {
  left: 6px !important;
  width: 70px !important;
}
.grecaptcha-badge:hover {
  left: 6px !important;
  width: 256px !important;
}
