/* SINGLE POST
------------------------------------------------------------*/
#single-post {
  #page-wrapper {
    header h1 {
      margin-block: 0.5rem 0;
    }
    margin-top: 4px;
    .entry-content:not(:has(.addtoany_share_save_container)) {
      padding-top: 3rem;
    }
  }
  #bread {
    margin-top: 2rem;
  }
  .edited {
    margin-left: 0.5rem;
    padding-left: 20px;
    background: url(../images/icon-reload.svg) no-repeat 0 50% / 16px 16px;
  }
}
aside {
  padding-top: 2rem;
  .aside-block {
    border-radius: 10px;
    border: 2px solid var(--blue);
    margin-bottom: 2.875rem;
    p {
      padding: 1rem;
    }
    .wp-block-button__link {
      min-width: initial;
      border-radius: 0 0 10px 10px;
    }
    &.aside-contact {
      border-color: var(--yellow);
    }
    &.aside-item {
      border-color: var(--orange);
      .wp-block-button__link {
        background: var(--orange);
        &:before {
          background-image: url(../images/icon-search-white.svg);
        }
      }
    }
  }
  .aside-header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #000;
    font-size: 1.25rem;
  }
  @media screen and (max-width: 1023px) {
    .aside-news {
      padding-top: 4rem;
    }
  }
  .tag-link {
    margin: 1rem 0 2.875rem;
  }
  .aside-cat {
    padding-top: 1rem;
    margin-bottom: 2.875rem;
    a {
      display: block;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--lightgray);
      text-decoration: none !important;
    }
    li:last-child a {
      border: 0;
    }
  }
}

/* POST BLOG single-blog.php
---------------------------------------------------------------- */
#single-post #page-wrapper {
  header {
    padding: 0;
    .tag-link {
      margin-block: 2rem 0;
    }
  }
  .addtoany_share_save_container {
    display: flex;
    padding-bottom: 3rem;
    @media screen and (max-width: 1023px) {
      padding-bottom: 1rem;
    }
    .addtoany_header {
      margin: 0 1rem 0 0;
    }
    &:last-of-type {
      margin-top: 5rem;
    }
  }
  #ez-toc-container {
    @media screen and (min-width: 1024px) {
      max-width: 80%;
    }
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid var(--lightgray);
    border-radius: 10px;
    background: #f9fafa;
  }
  .ez-toc-title-container {
    display: flex;
    justify-content: space-between;
  }
  .ez-toc-counter nav ul {
    counter-reset: item;
    list-style: none !important;
  }
  .ez-toc-counter nav ul ul {
    padding-left: 1.5rem;
  }
  .ez-toc-counter nav > ul > li:not(:last-child) {
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #ccc;
  }
  .ez-toc-counter nav ul li a {
    position: relative;
  }
  .ez-toc-counter nav ul li a:before {
    content: counters(item, ".", decimal) ". ";
    display: inline-block;
    counter-increment: item;
    flex-grow: 0;
    flex-shrink: 0;
    margin-right: 0.5em;
    color: #222;
  }
  div#ez-toc-container ul li {
    margin-bottom: 0.2em;
  }
  @media screen and (max-width: 1023px) {
    .news-content {
      padding-top: 2rem !important;
    }
  }
}

.brunch-item {
  .card-simple {
    display: flex;
    flex-direction: column;
    width: 100%;
    p:first-of-type {
      display: block;
    }
    .link-arrow {
      margin-top: auto !important;
    }
    p + ul {
      margin-top: 0rem !important;
    }
  }
}
/* company branch */
.list-branch .card {
  margin-top: 1rem;
  display: block;
  padding-bottom: 1rem;
  h3 {
    text-align: center;
  }
}
/* faq + guide */
.page-nav {
  padding-top: 3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  @media screen and (max-width: 1300px) {
    grid-template-columns: repeat(3, 1fr);
  }
  @media screen and (max-width: 830px) {
    grid-template-columns: repeat(2, 1fr);
  }
  li {
    display: block grid;
    grid-template-rows: subgrid;
    grid-row: span 1;
    a {
      justify-content: space-between;
      padding: 1rem;
      text-decoration: none !important;
      border-radius: 6px;
      font-size: 1.25rem;
      border: 1px solid var(--blue);
      background: var(--offwhite);
      @media screen and (max-width: 1023px) {
        font-size: 1rem;
      }
      &:hover {
        background: #fff;
      }
      &:after {
        border-color: currentColor;
        transform: rotate(135deg);
      }
    }
    &.other-page-link {
      a:after {
        transform: rotate(45deg);
      }
    }
  }
  &.nav-guide {
    padding-top: 0;
    justify-content: space-between;
  }
}
.faq-page {
  padding-bottom: 5rem;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--lightgray);
  .faq-block {
    scroll-margin-top: 140px;
    padding-block: 5rem 2rem;
    @media screen and (max-width: 1023px) {
      scroll-margin-top: 60px;
      padding-block: 2rem 0;
    }
    .faq-item {
      padding-block: 2rem;
      @media screen and (min-width: 768px) {
        padding-block: 2rem 0;
        > li {
          display: flex;
          justify-content: space-between;
          &:first-child {
            padding-top: 2rem;
            border-top: 1px solid var(--lightgray);
          }
          h3 {
            width: 38%;
          }
          .answer {
            width: 60%;
          }
        }
      }
    }
  }
}

/* TOP PAGE + FEATURE */
#top-reason {
  position: relative;
  padding-bottom: 12.5rem !important;
  overflow: hidden;
  @media screen and (max-width: 781px) {
    header {
      text-align: center;
      @media screen and (max-width: 460px) {
        padding-bottom: 5rem !important;
      }
    }
  }
  h2 em {
    color: #fff;
  }
  .wp-block-columns {
    align-items: flex-start !important;
    padding-bottom: 5rem;
    @media screen and (max-width: 781px) {
      padding-bottom: 3rem;
    }
    .wp-block-column {
      position: relative;
      padding: 1rem;
      border-radius: 20px 0 0 20px;
      background: #fff;
      p:first-of-type {
        position: absolute;
        right: 0;
        top: -4.3rem;
        font-family: var(--font-en);
        font-size: 2.5rem;
        line-height: 1;
        color: #fff;
        em {
          font-size: 5rem;
          color: var(--blue);
          text-shadow:
            -2px -2px 0 #fff,
            0 -2px 0 #fff,
            2px -2px 0 #fff,
            -2px 0 0 #fff,
            2px 0 0 #fff,
            -2px 2px 0 #fff,
            0 2px 0 #fff,
            2px 2px 0 #fff;
        }
      }
      h3 {
        margin-bottom: 1.5rem;
        font-size: 1.25rem;
        line-height: 1.2;
      }
      &:first-of-type:after {
        content: "";
        position: absolute;
        top: 0;
        right: -30px;
        width: min(200px, 15vw);
        aspect-ratio: 200 / 270;
        background: url(../images/img-human-crane.png) no-repeat 0 0 / cover;
      }
      @media screen and (min-width: 782px) {
        h3 {
          font-size: min(2rem, 2.46vw);
          text-align: center;
        }
        &:first-of-type {
          margin-top: 10rem;
        }
        &:nth-of-type(2) {
          margin-top: 5rem;
        }
      }
      @media screen and (max-width: 781px) {
        border-radius: 10px 0 0 10px;
        margin-bottom: 4rem;
        &:last-of-type {
          margin-bottom: 0;
        }
        &:first-of-type:after {
          right: -1rem;
          width: min(200px, 40vw);
        }
        h3 br {
          display: none;
        }
      }
    }
  }
  @media screen and (max-width: 781px) {
    padding-bottom: 8rem !important;
  }
  .marquee:before,
  .marquee:after {
    content: "ONE STEP";
  }
  /* FEATURE PAGE */
  &.first-section {
    padding-block: 4rem !important;
    h2 {
      border: 0;
      font-size: 2.2rem;
    }
    .wp-block-columns {
      padding-top: 5rem;
      .wp-block-column {
        padding-bottom: 0;
        border-radius: 20px 0 6px 6px;
        &:first-of-type:after {
          content: none;
        }
        @media screen and (min-width: 782px) {
          &:first-of-type,
          &:nth-of-type(2) {
            margin-top: 0rem;
          }
        }
        @media screen and (max-width: 781px) {
          &:nth-of-type(2),
          &:nth-of-type(3) {
            margin-top: 2rem;
          }
        }
        h3 {
          border: 0;
          padding-bottom: 5px;
          margin: 1rem 0 0 !important;
          a {
            color: #000 !important;
            text-underline-offset: 5px;
            &:before {
              position: absolute;
              content: "";
              width: 100%;
              height: calc(100% + 80px);
              top: 0;
              left: 0;
              z-index: 1;
            }
          }
        }
        &:before {
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          bottom: -78px;
          content: "";
          width: 100%;
          height: 80px;
          clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
          background: #fff;
        }
      }
    }
  }
}
.img-gal-1 figure {
  text-align: initial !important;
  &:nth-of-type(2) {
    margin: -20% 0 0 20%;
    text-align: right !important;
  }
}
@media only screen and (max-width: 781px) {
  .is-layout-flex figure {
    text-align: center;
  }
}

/* GUIDE */
#page-wrapper .guide-steps {
  position: relative;
  margin-top: 3rem;
  gap: 1rem;
  .wp-block-column {
    padding-bottom: 1rem;
    background: #fff;
    @media only screen and (max-width: 781px) {
      margin-bottom: 3rem;
    }
    h3.wp-block-heading {
      position: relative;
      margin-bottom: 0;
      padding-bottom: 1rem;
      text-align: center;
      font-weight: 500;
      font-size: 1.6rem;
      z-index: 1;
      background: var(--offwhite);
      em {
        padding-inline: 5px;
        color: var(--orange);
        background: var(--offwhite);
      }
      @media only screen and (min-width: 782px) {
        &:after {
          position: absolute;
          top: 16px;
          right: 0;
          display: inline-block;
          content: "";
          width: 10px;
          height: 10px;
          border: 0;
          border-top: solid 2px var(--blue);
          border-right: solid 2px var(--blue);
          transform: rotate(45deg);
          z-index: 0;
        }
        &:before {
          content: "";
          position: absolute;
          top: 20px;
          left: 0;
          height: 2px;
          width: 100%;
          background: var(--blue);
          z-index: -1;
        }
      }
    }
    figure {
      aspect-ratio: 3 / 2;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: 100%;
        max-height: 100%;
        border-radius: 10px 10px 0 0;
      }
    }
    p,
    ul {
      padding-inline: 0.8rem;
    }
  }
  .wp-block-column:last-child h3:after {
    border: 0;
    border-radius: 50%;
    background: var(--blue);
  }
}
.list-guide {
  padding-block: 1rem 2rem;
  grid-template-columns: repeat(4, 1fr);
  @media only screen and (max-width: 640px) {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    width: auto;
  }
  @media screen and (max-width: 640px) {
    display: block !important;
  }
}
section.page-nav-wrap {
  padding-block: 2rem !important;
}
/* RECRUIT */
#recruit-appeal {
  h3 {
    display: flex;
    align-items: center;
    em {
      display: flex;
      flex-shrink: 0;
      align-items: center;
      justify-content: center;
      width: 1.5em;
      height: 1.5em;
      border-radius: 50%;
      margin-right: 0.5rem;
      color: #fff;
      background: var(--orange);
      font-family: var(--font-en);
      font-size: 1.4em;
    }
  }
  .recruit-appeal-footer {
    text-align: center;
    h4 {
      display: inline-block;
      margin: 5rem auto 0;
      padding-bottom: 0.2em;
      font-size: 1.5rem !important;
      border-bottom: 4px solid var(--yellow) !important;
    }
  }
  &.part-time h3 {
    font-size: 1.6rem;
  }
}
.nav-recruit {
  padding-block: 2rem 3rem;
  @media screen and (max-width: 640px) {
    padding-block: 1rem;
    margin-top: 0 !important;
  }
  .wp-block-button {
    width: 48%;
    @media screen and (max-width: 640px) {
      width: 100%;
    }
    a {
      font-size: 1.4rem;
    }
  }
}
.list-card-page.recruit-interview .card-simple {
  grid-row: span 3 !important;
  gap: 1rem;
  figure {
    margin-bottom: 0;
  }
}
.recruit-num {
  text-align: center;
  max-width: 70rem;
  margin: auto;
  > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 1rem;
  }
  .card {
    margin-right: 0;
    @media screen and (max-width: 640px) {
      width: 48%;
    }
  }
  h3.wp-block-heading {
    font-size: 1.6rem !important;
    text-align: center;
    @media screen and (max-width: 640px) {
      font-size: 1.3rem !important;
    }
  }
  figure {
    margin-block: 2rem;
  }
  p:first-of-type {
    margin: 0 !important;
    font-size: 2rem;
    em {
      padding-inline: 0.5rem;
      font-size: 2em;
      font-family: var(--font-en);
      color: var(--blue);
    }
  }
  p:last-of-type {
    padding-bottom: 1rem;
    color: #777;
  }
}
#recruit-guideline {
  h3.wp-block-accordion-heading {
    padding: 0.8rem 0 0 1rem;
  }
  .is-open h3.wp-block-accordion-heading {
    background: var(--offwhite);
  }
  .wp-block-accordion {
    & .wp-block-accordion-item {
      padding-block: 0 1rem;
    }
    .recruit-guideline-head > div {
      padding-block: 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      @media screen and (max-width: 640px) {
        flex-direction: column;
      }
      p {
        font-size: 1.4rem;
        margin-bottom: 0 !important;
      }
    }
  }
  .wp-block-accordion-panel:not([hidden]) {
    padding: 1rem 0;
    background: var(--offwhite);
    > div {
      padding-inline: 1rem;
      > div {
        border-top: 4px solid var(--blue);
        padding: 0 1rem 1rem;
        background: #fff;
      }
    }
    > div:not(:last-of-type) {
      padding-bottom: 2rem;
    }
  }
  @media screen and (min-width: 641px) {
    dl {
      display: grid;
      grid-template-columns: auto auto;
      gap: 1rem 0;
      dt,
      dd {
        padding: 1rem 0 0 1rem;
        border-top: 1px solid #ddd;
      }
      dt {
        display: flex;
        align-items: center;
        padding-left: 0;
        font-weight: 700;
      }
    }
  }
  dl {
    ul li {
      list-style: disc;
      margin-left: 1rem;
    }
    ol {
      display: flex;
      flex-wrap: wrap;
      gap: 0 1rem;
      li {
        margin-left: 1rem;
      }
    }
  }
  @media screen and (max-width: 640px) {
    dt {
      padding-block: 1rem 0.5rem;
      font-weight: 700;
      border-top: 1px solid #ddd;
    }
    dd {
      padding-bottom: 1rem;
    }
  }
}
#recruit-faq.faq-page {
  & .faq-block {
    padding-block: 2rem 0;
  }
}
.recruit-hrd {
  .card {
    background-color: var(--offwhite);
  }
  h3 {
    font-size: 1.8rem !important;
  }
  figure {
    margin-block: 2rem 0;
  }
}

section[id^="anchor-"] {
  scroll-margin-top: 3rem;
}
section.single-page {
  h3:not(:first-of-type) {
    margin-top: 3rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .wp-block-accordion-panel.is-animating {
    display: block !important;
    overflow: hidden;
    transition:
      height 300ms ease,
      opacity 200ms ease;
  }
}
