.comment {
  position: absolute;
  z-index: 100;
  top: 50px;
  left: calc(100% - 400px);
  display: flex;

  img {
    width: 40px;
    margin-right: 30px;
  }

  p {
    font-weight: 700;
    letter-spacing: 4px;
  }
}

.linkto {
  font-weight: bold;
  position: absolute;
  z-index: 100;
  top: 50vh;
  right: -60px;
  transform: rotateZ(90deg);
  text-decoration: none;
  color: black;
}

.board {
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  height: calc(100vh - 138px);
  margin-right: auto;
  margin-left: auto;
  background-color: #fff;

  .bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 200px;
    height: 5px;
    margin-right: auto;
    margin-left: auto;
    transform: translateX(-50%);
    background-color: var(--color-mediumblue-500);
  }

  &.top1 {
    display: flex;
    align-items: end;

    img {
      position: absolute;
      top: 0;
      left: 0;
      display: none;
    }
  }

  &.top2 {
    padding-top: 8rem;

    > div:first-child {
      display: grid;
      max-width: 1280px;
      margin-right: auto;
      margin-left: auto;
      gap: 1em;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: 3fr 2fr;

      img {
        width: 100%;
        height: auto;
        transition: .5s;
      }

      .top2-photo-big {
        grid-row: 1 / 3;
      }

      .info-texts {
        height: 100%;
        padding: 1.2em 2em;
        background-color: #0007C8;
      }

      .top2-photo-grid {
        display: grid;
        overflow: hidden;
        height: calc((min(100vw, 1280px) - 2em) / 3);
        grid-column: 3 / 3;
        grid-row: 1 / 3;
        gap: 0.5em;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(5, 1fr);

        > *:nth-child(n+27) {
          display: none;
        }
      }
    }
  }

  .circle-center-image {
    width: auto;
    height: 4rem;
  }
}

.container-2xs {
  max-width: 440px;
  margin-right: auto;
  margin-left: auto;

}

.container-2xs .font-14.mt-2 {
  line-height: 2em;
}

.structure {
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem;

  > div:first-child {
    display: flex;
    flex-direction: column;

    > div:nth-child(2) {
      flex-grow: 1;
    }
  }

  > div:nth-child(2) {
    > div {
      display: flex;
      flex-direction: column;

      > div:nth-child(2) {
        flex-grow: 1;

        p.pc {
          white-space: nowrap;
        }
      }
    }
  }

  .d-flex {
    gap: 1.5rem;

    .dotstay {
      transform: translateY(0.1em);
    }
  }

  .hr {
    width: 100%;
    border-bottom: 2px solid black;
  }
}

.social-business {
  margin-bottom: 12rem;

  .social-business-buttons {
    .button {
      padding-right: 2em;
      padding-left: 2em;
      border-radius: 40px;
    }
  }
}

.deco-wrapper {
  position: relative;

  .deco {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: max(520px, 45%);
    transform: translateY(-100%);
  }
}

.ads {
  padding: 1em 0;
  background-color: var(--color-mediumblue-500);

  > div {
    display: grid;
    max-width: var(--container-width);
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    /* バナー２個の場合

    grid-template-columns: repeat(2, 1fr);*/

    a {
      font-size: 0.625rem;
      display: inline-flex;
      text-decoration: none;
      color: black;
      background-color: white;

      > div {
        width: 100%;
      }

      div img {
        height: 66px;
      }

      .flex-center {
        flex-grow: 1;

        p {
          text-align: center;
        }
      }
    }
  }
}

.news {
  margin-top: 4rem;

  .shadow-box {
    padding-right: 4rem;
    padding-left: 4rem;
    border-radius: 10px;
  }

  .news-header {
    display: grid;
    align-items: end;
    margin-bottom: 1em;
    grid-template-columns: min(30%, 260px) 1fr 1fr;
    gap: 1.5rem;

    .pickup-icon {
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: space-evenly;
      width: 100%;
      padding-top: 2em;
      padding-bottom: 2em;
      border-right: 5px solid var(--color-mediumblue-500);
      border-left: 5px solid var(--color-mediumblue-500);
    }

    .tab-button {
      position: relative;
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      height: 3.75em;
      cursor: pointer;
      border: 5px solid var(--color-mediumblue-500);
      border-radius: 5px;
      gap: 1px;

      &:not(.active) {
        color: white;
        background-color: var(--color-mediumblue-500);

        svg {
          fill: white;

          * {
            fill: white;
          }
        }
      }

      &.active:after {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 5px;
        height: calc(1em + 10px);
        content: "";
        transform: translate(50%, 100%);
        background-color: var(--color-mediumblue-500);
      }
    }
  }

  .media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;

    > div {
      max-width: 256px;

      .tag {
        font-size: 0.625rem;
        margin-bottom: 1.25rem;
        color: var(--color-mediumblue-500);
      }

      .title {
        font-size: 0.8125rem;
        font-weight: bold;
        margin-top: 1.2em;
        color: var(--color-mediumblue-500);
      }

      .button {
        margin-top: 1em;
        padding-right: 3em;
        padding-left: 3em;
      }
    }
  }
}

.service-links {
  padding: 5rem 0 3rem;
  background-color: #F2F2FC;

  > div:first-of-type {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;

    > div {
      > a > img, > img {
        width: auto;
        height: 1.8em;
      }

      > p:first-of-type {
        font-size: 0.8125rem;
        font-weight: bold;
        margin-top: 1.5em;
        padding-bottom: 0.8rem;
        border-bottom: 4px solid var(--color-dotlife);
      }

      &:nth-child(2) {
        > p:first-of-type {
          border-bottom: 4px solid var(--color-dothome);
        }
      }

      &:nth-child(3) {
        > p:first-of-type {
          border-bottom: 4px solid var(--color-dotstay);
        }
      }

      &:nth-child(4) {
        > p:first-of-type {
          border-bottom: 4px solid var(--color-dotcenter);
        }
      }

      &:nth-child(5) {
        > p:first-of-type {
          border-bottom: 4px solid var(--color-dotjunior);
        }
      }

      &:nth-child(6) {
        > p:first-of-type {
          border-bottom: 4px solid var(--color-dotwork);
        }
      }

      &:nth-child(7) {
        > p:first-of-type {
          border-bottom: 4px solid var(--color-dotinnovation);
        }
      }

      > div:last-child {
        font-size: var(--font-size-10);
        display: grid;
        margin-top: 2em;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 0.25rem;

        > a {
          font-weight: bold;
          display: flex;
          flex-direction: column;
          text-decoration: none;
          color: black;
          gap: 0.2em;

          img {
            width: auto;
            height: 5em;
          }
        }

        p {
          text-align: center;
        }
      }

      &:nth-child(7) {
        > div:last-child {
          display: flex;
          flex-direction: column;
        }
      }
    }

    > div:last-of-type {
      display: flex;
      align-items: end;
      justify-content: end;

      img {
        width: 100%;
        height: auto;
      }
    }
  }
}

.ceo-message {
  padding-bottom: 3rem;
  background-color: #FFFFF2;

  .container {
    display: grid;
    align-items: start;
    padding-top: 10em;
    grid-template-columns: 1fr 1fr;
    gap: 1em;

    > div:first-child {
      display: flex;
      justify-content: space-between;

      .bar {
        width: 6em;
        transform: translate(-100%, 0);
      }
    }

    > div:last-child {
      margin-top: 14em;

      & > p {
        line-height: 1.8em;
      }

      .d-flex-justify-between {
        align-items: start;
      }

      .sign {
        max-width: 250px;
        margin-bottom: -2rem;
        margin-left: auto;
      }

      .name {
        max-width: 8rem;
        text-align: center;
      }
    }
  }
}

.ceo-message {
  align-items: start;

  & .container {
    & > div:first-child {

      .message1 {
        width: 100%;
        /* max-width: calc(100vw / (1500/320)); */
        max-width: 400px;
      }

      .bar {
        width: 100px;
        /* width: calc(100vw / (1500/126)); */
        margin-left: calc(100vw / (1500 / 80));
        transform: translate(-100%, 0);
      }
    }
  }
}

.tab-group {
  .tab-content:not(.active) {
    display: none;
  }
}

.sitemap > .bg {
  position: fixed;
  z-index: -10;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("../images/bg_sitemap.png");
}

#sitemap {
  .node {
    cursor: pointer;
    stroke: var(--color-mediumblue-500);
    stroke-width: 2px;
  }

  .link {
    stroke: var(--color-mediumblue-500);
    stroke-width: 2px;
  }

  text {
    font-size: 25px;
    font-weight: 100;
    cursor: pointer;
    transform: scale(0.4);
    fill: var(--color-mediumblue-500);
  }
}

.sitemap {
  .logo {
    position: absolute;
    top: 8rem;
    left: 2rem;
  }
}

.hero100 {
  position: relative;
  padding-bottom: 5em;
  background-color: #0000C8;

  > div:nth-of-type(2) {
    position: absolute;
    right: 0;
    bottom: 2em;
    display: flex;
    align-items: end;
    gap: 1em;

    p {
      max-width: 20em;
    }

    .button {
      margin-top: 1em;
      padding-right: 3em;
      padding-left: 3em;
      border: 3px solid var(--color-white);
    }
  }

  .splide__pagination li {
    display: none;
  }
}

@media screen and (min-width: 1230px) {
  .hero100 {
    .splide__slide {
      width: calc(20% - 2.66667px) !important;
    }
  }
}

.dot_innovation {
  background-image: url("../images/top/bg_dot_innovation.svg");
  background-position: right;
  background-size: cover;

  .img-inv {
    max-width: 934px;
  }

  .d-flex-justify-between {
    align-items: end;
    margin-bottom: -2em;

    > div:first-of-type {
      margin-top: 2em;
      margin-left: 1em;


      p {
        line-height: 2em;
      }
p.font-12 {
margin-bottom:2.5em;
font-size:0.9em;
        
      }
    }

    .w-6 {
      margin-right: 2em;

    }


    .button {
      padding-right: 3em;
      padding-left: 3em;
      background-color: #FF0000;
font-size:.9em;
    }
  }
}

.board2 {
  position: relative;

  picture img {
    display: block;
    width: 100vw;
  }

  > a {
    position: absolute;
    right: 4%;
    bottom: 4%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 2em;
    border-radius: 15px;
    background-color: #0000C8;
    gap: 1em;

    p {
      font-size: 0.875rem;
      text-decoration: none;
      color: white;
    }
  }
}

.contact {
  .contact-message-container-container {
    position: relative;

    .contact-message-container {
      max-width: min(652px, calc(100vw - 8%));
      margin: 5rem auto 4rem;
    }

    img {
      position: absolute;
      top: 0;
      left: 2rem;
    }
  }

  .contact-container {
    max-width: min(786px, calc(100vw - 8%));
    margin-right: auto;
    margin-bottom: 10rem;
    margin-left: auto;

    form {
      color: var(--color-mediumblue-500);

      label {
        font-size: 0.875rem;
      }

      input, textarea, select {
        font-size: max(16px, 0.75rem);
        max-width: 100%;
        border: 2px solid var(--color-mediumblue-500);
        border-radius: 4px;

        &:focus {
          outline-color: var(--color-mediumblue-300);
        }
      }

      select {
        width: 15rem;
        text-align: center;
      }

      > div:has(input,textarea,select) {
        display: flex;
        flex-direction: column;
        gap: 0.25em;
      }

      .zip-flex {
        align-items: start;
      }

      .pref-flex {
        flex-direction: row;
        margin-top: 1em;
        gap: 1.5em;

        > div {
          display: flex;
          flex-direction: column;
          gap: 0.25em;
        }
      }

      .tel-flex {
        display: flex;
        width: 90%;
        gap: 0.5em;

        > div:not(:first-child) {
          position: relative;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 0.5em;

          &:before {
            content: "-";
          }
        }
      }

      textarea[readonly] {
        padding: 1em;
      }

      input[type=submit] {
        margin-right: auto;
        margin-left: auto;
        padding: 0.2em 2em;
        border-radius: 20px;
      }
    }
  }

  .mw_wp_form_preview {
    .agree-check {
      display: none;
    }
  }
}

.top3 {
  position: relative;

  > div {

    > div:nth-child(1) {

      img {
        position: absolute;
        top: 50%;
        left: 0;
        width: 8rem;
        transform: translate(100%, -50%);
      }
    }

    > div:nth-child(2) {
      img {
        position: absolute;
        top: 50%;
        right: 2rem;
        left: unset;
        transform: translate(0, -50%);
      }
    }
  }

  .texts {
    .text {
      font-size: var(--font-size-11);
      position: absolute;
      top: 50%;
      left: 12rem;
      padding-left: 8rem;
      transition: .5s;
      transform-origin: left center;

      &.nb {
        padding-left: 8.5rem;
      }

      &.active {
        z-index: 10;
      }
    }

    a {
      text-decoration: none;
      color: black;
    }
  }
}

.news-details {
  .news-header {
    display: grid;
    margin-top: 5rem;
    grid-template-columns: auto min(60%, 647px);
    gap: 3rem;

    .icons {
      display: flex;
      align-items: start;
      flex-direction: column;
      justify-content: start;
    }

    > div:first-child {
      display: flex;
      flex-direction: column;

      > p {
        flex-grow: 1;
      }

      .messages {
        margin-bottom: 1em;
      }
    }

    > div:last-child {
      margin-top: 2rem;

      img {
        width: 100%;
        border: 5px solid var(--color-mediumblue-500);
        border-radius: 20px;
      }
    }
  }

  .news-body {
    max-width: min(820px, calc(100vw - 8%));
    margin-top: 15rem;
    margin-right: auto;
    margin-left: auto;

    p {
      margin-top: 10rem;
    }
  }

  .buttons {
    align-self: center;
    justify-content: center;
    margin-top: 18em;
    margin-bottom: 10em;

    .button {
      padding-right: 2em;
      padding-left: 2em;
    }
  }
}

.news-archive {
  .news-grid {
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 1em;

    .images {
      display: flex;
      align-items: start;
      justify-content: space-between;

      img:nth-child(2) {
        width: 20em;
      }
    }

    .news-items {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 3em 1.5em;

      .news-item {
        font-size: 0.75rem;
        font-weight: 700;

        span {
          display: inline-block;
          margin-top: 1em;
        }

        p {
          margin-top: 1em;
        }
      }
    }
  }

  .pagination {
    font-size: var(--font-size-18);
    font-weight: 600;
    display: flex;
    justify-content: center;
    gap: 2em;
  }

  .twitter {
    position: relative;
    max-width: 333px;
    margin-top: 5rem;
    margin-right: auto;
    margin-left: auto;
    padding-top: 3rem;
    padding-bottom: 6rem;
    border-top: 1px solid black;

    .icon {
      position: absolute;
      top: 0;
      left: 50%;
      padding-right: 2em;
      padding-left: 2em;
      transform: translate(-50%, -50%);
      background-color: white;
    }
  }
}

.filter {
  font-size: var(--font-size-12);
  font-weight: 700;
  padding: 0.5em 0.75em;
  color: var(--color-mediumblue-500);
  border-width: 3px;
  border-radius: 8px;
  --shadow-size: 8px;

  &:has(.open) {
    color: white;
    background-color: var(--color-mediumblue-500);
    box-shadow: var(--shadow-size) var(--shadow-size) 0 -3px white, var(--shadow-size) var(--shadow-size) var(--shadow-color);
  }

  .toggle-submenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;

    span:last-child {
      transform: rotate(-90deg);
    }

    &:has(+ .open) {
      span:last-child {
        transform: rotate(90deg);
      }
    }
  }

  .filter-content {
    display: flex;
    flex-direction: column;
    margin-top: 0.75em;
    padding-top: 1.5em;
    border-top: 1px solid white;
    gap: 1em;

    &:not(.open) {
      display: none;
    }

    p {
      cursor: pointer;
    }
  }
}

.certificate, 
.recruit-seminar {
  .container {
    display: grid;
    margin-top: 100px;
    grid-template-columns: 15% 82%;
    gap: 3%;

    .sidemenu {
      .info_jp {
        font-size: 12px;
        font-weight: 700;
      }

      .info_en {
        font-size: 10px;
        font-weight: bold;
        margin-top: 6px;
      }
    }

    .content {
      margin-bottom: 0px;

      > div {
        margin-bottom: 75px;

        .title {
          font-size: 12px;
          font-weight: 700;
          display: block;
          width: 100%;
          margin-bottom: 55px;
          padding: 4px;
          padding-left: 8px;
          color: var(--color-mediumblue-500);
          border: 3px solid var(--color-mediumblue-500);
          border-radius: 5px;
          box-shadow: 5px 5px var(--color-mediumblue-500);
        }
      }

      .a {
        line-height: 30px;
        letter-spacing: 3px;

        > div:not(.btn-recruit-seminar) {
          display: flex;
        }
      }

      .b {
        .b-1 {
          line-height: 30px;
          display: flex;
          margin-bottom: 15px;
          letter-spacing: 3px;

          p {
            margin-right: 8%;
          }

          p:last-child {
            margin-right: 0px;
          }
        }
      }

      .c {
        .c-1 {
          .c-1-1 {
            display: grid;
            align-items: center;
            grid-template-columns: 32px 1fr;

            p:last-child {
              grid-column: 2/3;
            }
          }

          .c-1-2 {
            display: flex;

            a {
              font-size: 12px;
              font-weight: 700;
              display: block;
              width: 144px;
              margin-top: 30px;
              margin-right: 30px;
              margin-bottom: 55px;
              padding: 4px;
              text-align: center;
              color: var(--color-mediumblue-500);
              border: 3px solid var(--color-mediumblue-500);
              border-radius: 20px;
              box-shadow: 5px 5px var(--color-mediumblue-500);
            }
          }
        }

        .c-2 {
          margin-bottom: 55px;

          > div {
            display: grid;
            align-items: center;
            grid-template-columns: 32px 1fr;
          }
        }

        .c-3 {
          margin-bottom: 55px;

          > div {
            display: grid;
            align-items: center;
            grid-template-columns: 32px 1fr;
          }
        }

      }

      .d {
        line-height: 30px;

        .font-14 {
          letter-spacing: 3px;
        }

      }

      .contact {
        font-size: 12px;
        font-weight: 700;
        display: block;
        width: 148px;
        margin: auto;
        margin-top: 200px;
        margin-bottom: 200px;
        padding: 6px;
        text-align: center;
        text-decoration: none;
        color: white;
        border-radius: 20px;
        background-color: var(--color-mediumblue-500);
      }
    }
  }
}

.recruit-seminar .container .content > div .title {
  margin-bottom: 25px;
}

/* 中途採用説明会ページのみ会社説明会バナーを非表示にする */
main.recruit-seminar + footer .foot_kotei {
  display: none;
}

.recruit-seminar .button {
  line-height: 30px;
  letter-spacing: 3px;
  padding: .2em 2em;
}

.privacypolicy {
  .container {
    display: grid;
    margin-top: 100px;
    grid-template-columns: 15% 82%;
    gap: 3%;

    .sidemenu {
      .info_jp {
        font-size: 12px;
        font-weight: 700;
      }

      .info_en {
        font-size: 10px;
        font-weight: bold;
        margin-top: 6px;
      }
    }

    .content {
      font-weight: 700;
      margin-bottom: 0px;

      > div {
        margin-top: 100px;
        margin-bottom: -30px;

        .title {
          font-size: 12px;
          font-weight: 700;
          display: block;
          width: 100%;
          margin-bottom: 50px;
          padding: 4px;
          padding-left: 8px;
          color: var(--color-mediumblue-500);
          border: 3px solid var(--color-mediumblue-500);
          border-radius: 5px;
          box-shadow: 5px 5px var(--color-mediumblue-500);
        }
      }

      .font-14 {
        line-height: 30px;
        letter-spacing: 3px;
      }

      .back {
        font-size: 12px;
        font-weight: 700;
        display: block;
        width: 148px;
        margin: auto;
        margin-top: 200px;
        margin-bottom: 200px;
        padding: 6px;
        text-align: center;
        text-decoration: none;
        color: var(--color-mediumblue-500);
        border: 3px solid var(--color-mediumblue-500);
        border-radius: 5px;
      }
    }
  }
}

.error {
  .container {
    display: grid;
    margin-top: 100px;
    grid-template-columns: 8% 90%;
    gap: 2%;

    .sidemenu {
      .info_jp {
        font-size: 12px;
        font-weight: 700;
      }

      .info_en {
        font-size: 10px;
        font-weight: bold;
        margin-top: 6px;
      }
    }

    .content {
      font-weight: 700;
      margin-bottom: 0px;

      p {
        line-height: 30px;
        letter-spacing: 3px;
      }

      .drop-shadow {
        position: relative;
        display: grid;
        width: min(100%, 790px);
        grid-template-columns: 100% 100%;

        .front {
          line-height: 45px;
          display: flex;
          align-items: center;
          flex-direction: column;
          padding: 2em;
          border: 5px solid var(--color-mediumblue-500);
          border-radius: 20px;
          background-color: rgba(255, 255, 255, 0.9);
          justify-items: center;

          p {
            margin-top: 20px;
          }
        }

        .background {
          position: relative;
          z-index: -1;
          transform: translate(calc(-100% + 40px), 40px);
          border: 5px solid var(--color-mediumblue-500);
          border-radius: 20px;
          background-color: var(--color-mediumblue-500);
        }
      }

    }

    .font-14 {
      font-weight: 700;
      line-height: 30px;
      width: 75%;
      margin: auto;
      margin-top: 100px;
      letter-spacing: 3px;
      grid-column: 1/3;
    }

    .back {
      font-size: 12px;
      font-weight: 700;
      display: block;
      width: 148px;
      margin: auto;
      margin-top: 100px;
      margin-bottom: 100px;
      padding: 6px;
      text-align: center;
      text-decoration: none;
      color: var(--color-mediumblue-500);
      border: 3px solid var(--color-mediumblue-500);
      border-radius: 5px;
      grid-column: 1/3;
    }
  }
}

.contact_button {
  position: fixed;
  z-index: 100;
  right: 30px;
  bottom: 30px;
  width: 220px;
  height: 100px;
  border-radius: 5px;
  background-color: var(--color-mediumblue-500);

  .close {
    display: block;
    margin-top: 5px;
    margin-right: 5px;
    margin-left: auto;
  }

  .message {
    font-weight: 700;
    margin-bottom: 10px;
    margin-left: 20px;
    color: white;
  }

  > a {
    text-decoration: none;

    div {
      font-weight: 700;
      display: flex;
      align-items: center;
      width: 80%;
      height: 33px;
      margin: auto;
      background-color: white;

      img {
        margin-right: 10px;
        margin-left: 10px;
        scale: 1.5;
      }
    }
  }

  &.none {
    display: none;
  }
}

/*追加*/
.structure {
  & > div:nth-child(2) {
    > div {
      display: flex;
      align-items: center;
      flex-direction: column;
    }
  }
}

/*追加*/

.ceo-message {
  & .container {
    > div:last-child {
      margin-top: 0;
    }
  }
}

.ceo-message + .hero100 {
  > div:nth-of-type(2) {
    right: 4rem;
  }
}

main.news-details .container .mt-5 p {
  font-size: .9em;
  line-height: 1.8;
  margin-bottom: 1rem;
}

main.news-details .container iframe, main.news-details .container video {
  max-width: 100% !important;
}

.wp-video {
  width: 100% !important;
  height: auto !important;
}

.news-archive {
  & .news-grid {
    .news-items {
      display: grid;
      margin-top: 3.5em;
      grid-template-columns: repeat(5, 1fr);
      gap: 3em 1.5em;
    }
  }
}

.news-details h2, .news-details h3 {
  margin: 1rem 0 .6rem;
}

.news {
  & .media-grid {
    & > div {
      .button {
        display: block;
        margin: 1em auto;
        margin-top: 1em;
        padding: .4em 2em;
        padding-right: 1.2em;
        padding-left: 1.2em;
      }
    }
  }
}

/*0627追加*/
.board.top3, .board.top1 {
  overflow: visible;
}

.service-links {
  & > div:first-of-type {
    & > div {
      > div:last-child {
        font-size: 15px;
        font-weight: bold;
        line-height: 1.8;
        display: block;
        margin-top: 2em;

        p {
          text-align: left;
        }
      }
    }
  }
}

.service-links {
  & > div:first-of-type {
    & > div {
      &:nth-child(7) {
        > div:last-child {
          display: block;
          flex-direction: unset;
        }
      }
    }
  }
}

.dot_innovation {
  & .d-flex-justify-between {
    & > div:first-of-type {
      p {
        font-weight: bold;
        line-height: 2em;
        text-shadow: 1px 1px 0 #fff, -1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff;
      }
    }
  }
}

.news {
  & .news-header {
    .tab-button {
      color: var(--color-mediumblue-500);
    }
  }
}

.social-business-buttons {
  display: grid;
  justify-content: center;
  max-width: 1080px;
  margin: 4rem auto;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3em;
}

.social-business-buttons .button {
  padding: 1em;
  border-radius: 30px;
}

/*0628追加*/
.service-links {
  & > div:first-of-type {
    & > div {
      & > div:last-child {
        p {
          text-align: left;

          a {
            text-decoration: underline;
          }
        }
      }
    }
  }
}

.w-7.mt-4.prof.pc {
  width: 22em;
}


a.button.topbtn, a.button-sm.topbtn {
  color: var(--color-mediumblue-500);
  border: 3px solid var(--color-mediumblue-500);
  border-radius: 6px;
  background: #fff;
}

a.button.topbtn:hover, a.button-sm.topbtn:hover {
  color: #fff;
  background: var(--color-mediumblue-500);
}

.dot_innovation a.button.topbtn {
  color: var(--color-dotinnovation);
  border: 3px solid var(--color-dotinnovation);
  border-radius: 6px;
  background: #fff;
}

.dot_innovation a.button.topbtn:hover {
  color: #fff;
  background: var(--color-dotinnovation);
}

/* 年別お知らせ欄追加 */

.info_box {

  .container {
    max-width: 996px;
  }

  .info-wrap {
    display: flex;
    align-items: center;
    margin-top: 5em;
  }

  .info-wrap > p {
    font-size: 25px;
    font-weight: 700;
    height: 190.6px;
    border-top: 3px solid var(--color-mediumblue-500);
    border-bottom: 3px solid var(--color-mediumblue-500);
    margin-top: 46px;
    color: var(--color-mediumblue-500);
    display: flex;
    align-items: center;
    padding: 0 20px 0 10px;
    --shadow-size: 0.5rem;
    width: 25%;
  }



  /* タブ */
  .tab-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    justify-content: flex-end;
    width: 75%;
  }

  .tab-2 > label {
      order: -1;
      min-width: 70px;
      padding: .6em 1em;
      border-radius: 5px 5px 0 0;
      background-color: var(--color-mediumblue-500);
      color: #fff;
      font-size: 16px;
      text-align: center;
      cursor: pointer;
  }

  .tab-2 > label:hover {
      opacity: .8;
  }

  .tab-2 input {
      display: none;
  }

  .tab-2 > div {
      display: none;
      width: 100%;
      background-color: #fff;
  }

  .tab-2 label:has(:checked) {
      background-color: #fff;
      border: 3px solid var(--color-mediumblue-500);
      border-bottom: none;
      color: var(--color-mediumblue-500);
      font-weight: 700;
  }

  .tab-2 label:has(:checked) + div {
      display: block;
      border-top: 3px solid var(--color-mediumblue-500);
      border-bottom: 3px solid var(--color-mediumblue-500);
      height: 190.8px;
  }

  /* ニュース部分 */

  .info-list, .info-list li {
    list-style: none;
    padding-left: 0;
  }

  .info-list {
    height: 150px;
    overflow-y: scroll;
  }

  .info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .info + .info {
    margin-top: 0.8em;
  }

  .info small, .info>a {
    display: block;
  }

  .info small {
    width: 25%;
  }

  .info>a {
    width: 72%;
    font-weight: 700;

  }

  .button-sm  {
    margin-top: 3em;
  }

}

/* ニュースピックアップ見出し部分変更 */

  /* .news2 {
    & .news-header {
        .pickup-icon {

          flex-direction: row;
          padding-top: 0.7em;
          padding-bottom: 0.7em;

          img {
            max-width: 80px;
          }

          p.font-13 {
            padding-top: 0.5em;
            margin-bottom: 0;
          }
      }
    }
  } */

/* 事業所検索結果リニューアル */

.location2 {

    .location-pc {
      display: none;
    }

    .result-grid {
        gap: 3em 2em;
    }

  .result-office {
    color: #505050;
    display: flex;
    flex-direction: column;

    .office-icon {
      width: 100%;
      max-width: 150px;
    }

    .office-name {
      font-size: 22px;
      font-weight: 700;
      margin: 0.5em 0;
      display: flex;
      align-items: flex-start;
      flex-grow: 1;
    }

    .office-info-wrap {
      gap: 1em;
      min-height: 155px;
      .office-img {
        max-width: 180px;
        img {
          aspect-ratio: 3/2;
          object-fit: cover;
        }
      }
      .office-info {
        line-height: 1.5;
        max-width: 220px;
        overflow-wrap: break-word;
        >p + p {
          margin-top: 0.1em;
        }

        .office-address {
          margin-bottom: 0.8em;

          a {
            color:#505050;

          }
        }

        .office-address::before {
          content: '';
          display: inline-block;
          width: 1em;
          height: 1.5em;
          background-image: url(../images/icons/icon-map.svg);
          background-size: contain;
          vertical-align: middle;
          background-repeat: no-repeat;
        }
      }
    }
  }

}



