/* top.css
----------------------------------------------------------------- */
@layer pages {
  /* ============================================================
  MV
  ============================================================ */
  @media (min-width: 1001px) {
    .topMv {
      position: relative;
      height: calc(100vh - 97.5px);
      min-height: 650px;
    }
  }
  @media screen and (max-width: 1000px) {
    .topMv {
      position: relative;
      height: calc(100vh - 77px);
    }
  }
  @media (max-width: 768px) {
    .topMv {
      position: relative;
    }
  }
  .topMv::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(131, 131, 131, 0.2);
  }
  .topMv__bg {
    position: absolute;
    inset: 0;
  }
  .topMv__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .topMv__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  @media screen and (max-width: 768px) {
    .topMv__inner {
      justify-content: flex-start;
      padding-inline: 30px;
    }
  }
  .topMv__catch {
    font-size: clamp(30px, 2.6946107784vw, 36px);
    font-weight: 500;
    color: #fff;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.08em;
  }
  @media (max-width: 768px) {
    .topMv__catch {
      text-align: left;
    }
  }
  @media screen and (max-width: 430px) {
    .topMv__catch {
      font-size: 5.5813953488vw;
      white-space: nowrap;
    }
  }
  /* ============================================================
  Service
  ============================================================ */
  .topService {
    background: #f5f5f5;
    padding-block: 8em 8em;
    overflow: hidden;
  }
  @media screen and (max-width: 768px) {
    .topService {
      padding-block: 1em 8em;
    }
  }
  .topService__inner {
    position: relative;
    width: 100%;
    margin-inline: auto;
    display: flex;
    align-items: flex-start;
    gap: 5%;
  }
  @media (max-width: 768px) {
    .topService__inner {
      flex-direction: column;
      width: 100%;
      gap: 2em;
      padding-top: 3.2em;
    }
  }
  .topService__logo {
    position: absolute;
    left: 0;
    top: 0;
    width: 12.35%;
    pointer-events: none;
  }
  @media (max-width: 768px) {
    .topService__logo {
      position: absolute;
      top: 1%;
      right: -4%;
      transform: none;
      width: 258px;
      max-width: unset;
      margin-inline: auto 0;
    }
  }
  .topService__ttlArea {
    width: 26%;
    flex-shrink: 0;
  }
  @media (max-width: 768px) {
    .topService__ttlArea {
      width: 100%;
      padding-left: 4%;
    }
  }
  .topService__cardWrap {
    flex: 1;
  }
  .topService__card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 6px 0 21px rgba(75, 75, 75, 0.15);
    padding-block: 2.5em 2em;
    padding-inline: 7.69% 9.6%;
  }
  @media (max-width: 768px) {
    .topService__card {
      padding-inline: 30px;
      padding-block: 2.5em;
    }
  }
  .topService__cardBody {
    display: flex;
    gap: 10%;
    align-items: center;
  }
  .topService__cardName {
    font-size: clamp(18px, 2.2222222222vw, 24px);
    font-weight: 500;
    padding-bottom: 16px;
    border-bottom: 2px solid #000;
  }
  .topService__cardInfo {
    flex: 1;
  }
  .topService__cardImgWrap {
    display: flex;
    align-items: center;
    gap: 1em 25px;
    margin-top: 20px;
  }
  @media screen and (max-width: 768px) {
    .topService__cardImgWrap {
      display: grid;
      grid-template-columns: 1fr 50%;
      gap: 0 25px;
    }
  }
  .topService__cardServiceLogo {
    width: 50%;
    flex-shrink: 0;
    aspect-ratio: 1/1;
  }
  @media screen and (max-width: 768px) {
    .topService__cardServiceLogo {
      position: relative;
      width: 100%;
    }
  }
  .topService__cardServiceLogo > img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center 10px;
  }
  @media screen and (max-width: 768px) {
    .topService__cardServiceLogo > img {
      width: 130%;
      height: 130%;
      object-position: center;
    }
  }
  .topService__cardIcons {
    flex: 1;
  }
  @media screen and (max-width: 768px) {
    .topService__cardIcons {
      width: 100%;
      grid-column: 1/2;
      grid-row: 2/3;
    }
  }
  .topService__cardImgSp {
    display: none;
  }
  @media (max-width: 768px) {
    .topService__cardImgSp {
      position: relative;
      display: block;
      width: 100%;
      grid-column: 2/3;
      grid-row: 1/3;
    }
  }
  .topService__cardImgSp img,
  .topService__cardImgSp video {
    width: 100%;
    height: auto;
    display: block;
  }
  .topService__cardImgSp img {
    position: relative;
    z-index: 1;
  }
  .topService__cardImgSp video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 98%;
    height: 99%;
    object-fit: cover;
    object-position: center;
  }
  .topService__cardText {
    font-size: 12px;
    line-height: 1.8;
  }
  @media screen and (max-width: 768px) {
    .topService__cardText {
      margin-top: 2em;
    }
  }
  .topService__btn {
    display: flex;
    justify-content: center;
    margin-top: 2em;
  }
  @media screen and (max-width: 768px) {
    .topService__btn {
      margin-top: 1.5em;
    }
  }
  .topService__cardImg {
    position: relative;
    width: 37%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .topService__cardImg img,
  .topService__cardImg video {
    width: 100%;
    height: auto;
    display: block;
  }
  .topService__cardImg img {
    position: relative;
    z-index: 1;
  }
  .topService__cardImg video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 98%;
    height: 99%;
    object-fit: cover;
    object-position: center;
  }
  @media (max-width: 768px) {
    .topService__cardImg {
      display: none;
    }
  }
  /* ============================================================
  Column
  ============================================================ */
  .topColumn {
    position: relative;
    padding-block: 6em 2em;
    overflow: hidden;
  }
  @media screen and (max-width: 768px) {
    .topColumn {
      padding-block: 5em 2em;
    }
  }
  .topColumn::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    aspect-ratio: 1366/340;
    background: url("../img/top/topColumn_bg.jpg") no-repeat center/cover;
  }
  @media screen and (max-width: 768px) {
    .topColumn::before {
      aspect-ratio: 1560/920;
      background: url("../img/top/topColumn_bg_sp.jpg") no-repeat center/cover;
    }
  }
  .topColumn__inner {
    position: relative;
    z-index: 1;
  }
  .topColumn__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }
  @media (max-width: 768px) {
    .topColumn__head {
      flex-direction: column;
      align-items: flex-start;
      gap: 1.5em;
    }
  }
  .topColumn__categories {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-bottom: 0.5em;
  }
  @media (max-width: 768px) {
    .topColumn__categories {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 4px;
    }
    .topColumn__categories::-webkit-scrollbar {
      display: none;
    }
  }
  .topColumn__catInput {
    display: none;
  }
  .topColumn__catLabel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #686868;
    border-radius: 3px;
    max-width: 200px;
    min-width: 150px;
    width: 100%;
    font-size: clamp(12px, 1.3473053892vw, 18px);
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.7);
    color: #686868;
    padding-block: 6px;
    padding-inline: 20px;
  }
  @media screen and (max-width: 768px) {
    .topColumn__catLabel {
      max-width: 120px;
      min-width: 95px;
      padding-block: 7.5px;
      padding-inline: 9px;
    }
  }
  .topColumn__catInput:checked + .topColumn__catLabel {
    background: #686868;
    border-color: #686868;
    color: #fff;
  }
  .topColumn__contents {
    margin-top: clamp(24px, 3.2934131737vw, 44px);
  }
  @media (max-width: 768px) {
    .topColumn__contents {
      width: calc((100vw - 100%) / 2 + 100%);
    }
  }
  .topColumn__cardGroup {
    display: none;
  }
  .topColumn__cardGroup.is-active {
    display: block;
  }
  .topColumn__cardList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 37px clamp(16px, 3.0688622754vw, 41px);
    list-style: none;
  }
  .topColumn__card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 6px 0 21px rgba(75, 75, 75, 0.15);
    overflow: hidden;
  }
  @media screen and (max-width: 768px) {
    .topColumn__card {
      margin-right: 25px;
    }
  }
  .topColumn__noPosts {
    padding-block: 3em 3em;
  }
  @media screen and (max-width: 768px) {
    .topColumn__noPosts {
      padding-block: 5em 2em;
    }
  }
  .topColumn__slickControls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 21px;
    margin-top: 20px;
    padding-inline: 0 8%;
  }
  .topColumn__slickArrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    cursor: pointer;
    position: relative;
  }
  .topColumn__slickArrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    border-top: 4px solid #686868;
    border-right: 4px solid #686868;
  }
  .topColumn__slickArrow--prev {
    order: 1;
  }
  .topColumn__slickArrow--prev::after {
    transform: translate(-30%, -50%) rotate(-135deg);
  }
  .topColumn__slickArrow--next {
    order: 3;
  }
  .topColumn__slickArrow--next::after {
    transform: translate(-70%, -50%) rotate(45deg);
  }
  .topColumn__slickArrow.slick-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
  }
  .topColumn__slickControls .slick-dots {
    flex: 1;
    position: static !important;
    order: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto !important;
    bottom: auto !important;
    background: #dfe1e0;
    border-radius: 3.5px;
    padding-block: 2px !important;
    padding-inline: 2.5px !important;
  }
  .topColumn__slickControls .slick-dots li {
    flex: 1;
    margin: 0 !important;
    width: auto !important;
    height: 3px !important;
    background: transparent !important;
    border-radius: 1.5px;
  }
  .topColumn__slickControls .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
  }
  .topColumn__slickControls .slick-dots li button::before {
    content: unset !important;
    width: 8px;
    height: 8px;
    line-height: 8px;
    font-size: 8px;
    color: #bbb;
    opacity: 1;
    position: static;
  }
  .topColumn__slickControls .slick-dots li.slick-active {
    background: #9e9e9f !important;
  }
  .topColumn__cardLink {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
  }
  @media (min-width: 767px) {
    .topColumn__cardLink:hover .topColumn__cardBtnIco {
      right: 10px;
    }
  }
  .topColumn__cardImgWrap {
    width: 100%;
    aspect-ratio: 712/420;
    overflow: hidden;
  }
  .topColumn__cardImgWrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
  }
  .topColumn__cardBody {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-block: 27px 34px;
    padding-inline: 9%;
  }
  @media screen and (max-width: 768px) {
    .topColumn__cardBody {
      padding-block: 21px 34px;
      padding-inline: 20px;
    }
  }
  .topColumn__cardCats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
  }
  .topColumn__cardCat {
    border-radius: 3px;
    background: #686868;
    display: inline-block;
    max-width: 100px;
    width: 100%;
    text-align: center;
    font-size: clamp(10px, 1.1111111111vw, 12px);
    color: #fff;
    padding-block: 3px;
  }
  @media screen and (max-width: 768px) {
    .topColumn__cardCat {
      max-width: 81px;
      padding-block: 4.5px;
    }
  }
  .topColumn__cardTtl {
    font-size: clamp(16px, 1.3473053892vw, 18px);
    font-weight: 500;
    line-height: 1.4;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topColumn__cardTxt {
    font-size: 12px;
    line-height: 1.8;
    margin-top: 0.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  @media screen and (max-width: 768px) {
    .topColumn__cardTxt {
      margin-top: 1rem;
    }
  }
  .topColumn__cardBtn {
    position: relative;
    border: 1px solid #9e9e9f;
    border-radius: 20px;
    max-width: 120px;
    width: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2em;
    padding-block: 8.5px;
    padding-inline: 0.5em 1.5em;
  }
  @media screen and (max-width: 768px) {
    .topColumn__cardBtn {
      border-radius: 24px;
      max-width: 162px;
      margin-top: 1.5em;
      padding-block: 10.5px;
    }
  }
  .topColumn__cardBtnTxt {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: #9e9e9f;
  }
  .topColumn__cardBtnIco {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
    width: 15px;
    flex-shrink: 0;
    transition: all 0.25s ease-in-out;
  }
  .topColumn__btnWrap {
    display: flex;
    justify-content: flex-end;
    margin-top: clamp(37px, 3.3682634731vw, 45px);
  }
  @media (max-width: 768px) {
    .topColumn__btnWrap {
      justify-content: center;
    }
  }
  /* ============================================================
  News
  ============================================================ */
  .topNews {
    background: #fff;
    padding-block: clamp(60px, 7.4850299401vw, 100px);
  }
  .topNews__inner {
    display: flex;
    gap: 6%;
  }
  @media (max-width: 768px) {
    .topNews__inner {
      flex-direction: column;
      gap: 1.5em;
    }
  }
  .topNews__head {
    width: 25%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
  }
  @media (max-width: 768px) {
    .topNews__head {
      width: 100%;
      padding-inline: 4%;
    }
  }
  .topNews__categories {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 2.5em;
  }
  @media (max-width: 768px) {
    .topNews__categories {
      flex-direction: row;
      flex-wrap: wrap;
    }
  }
  .topNews__catInput {
    display: none;
  }
  .topNews__catLabel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #686868;
    border-radius: 3px;
    max-width: 150px;
    width: 100%;
    font-size: clamp(12px, 1.3473053892vw, 18px);
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    white-space: nowrap;
    background: #fff;
    color: #686868;
    padding-block: 6px;
    padding-inline: 1em;
  }
  @media (max-width: 768px) {
    .topNews__catLabel {
      text-align: center;
      max-width: 95px;
      padding-inline: 0;
    }
  }
  .topNews__catInput:checked + .topNews__catLabel {
    background: #686868;
    border-color: #686868;
    color: #fff;
  }
  .topNews__btn {
    margin-top: auto;
    padding-top: 2.5em;
  }
  @media (max-width: 768px) {
    .topNews__btn {
      display: none;
    }
  }
  .topNews__contents {
    flex: 1;
    border-radius: 15px;
    box-shadow: 6px 0 21px rgba(75, 75, 75, 0.15);
    min-width: 0;
    padding-inline: 5.3%;
    padding-block: 60px 52px;
  }
  @media screen and (max-width: 768px) {
    .topNews__contents {
      padding-inline: 8.3%;
      padding-block: 39px 45px;
    }
  }
  .topNews__group {
    display: none;
  }
  .topNews__group.is-active {
    display: block;
  }
  .topNews__list {
    list-style: none;
  }
  .topNews__item {
    border-bottom: 1px solid #e0e0e0;
  }
  .topNews__item:first-child .topNews__link {
    padding-top: 0;
  }
  .topNews__item:last-child {
    border-bottom-width: 0;
  }
  .topNews__item:last-child .topNews__link {
    padding-bottom: 0;
  }
  .topNews__link {
    display: flex;
    align-items: center;
    gap: 8.94%;
    padding-block: clamp(40px, 5vw, 54px) clamp(40px, 5.6481481481vw, 61px);
    text-decoration: none;
    color: inherit;
  }
  @media (min-width: 767px) {
    .topNews__link:hover .topNews__ico {
      transform: translateX(5px);
    }
  }
  .topNews__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .topNews__meta {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 2.2222222222vw, 24px);
  }
  .topNews__date {
    font-size: clamp(14px, 1.1976047904vw, 16px);
    font-weight: 600;
    color: #9e9e9f;
    letter-spacing: 0.05em;
    white-space: nowrap;
    margin-top: 3px;
  }
  @media screen and (max-width: 768px) {
    .topNews__date {
      margin-top: 2px;
    }
  }
  .topNews__cats {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
  }
  .topNews__cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #686868;
    color: #fff;
    font-size: clamp(10px, 0.8982035928vw, 12px);
    font-weight: 500;
    border-radius: 3px;
    padding-block: 3px 5px;
    padding-inline: 14px;
    white-space: nowrap;
  }
  .topNews__title {
    font-size: clamp(12px, 1.3473053892vw, 18px);
    line-height: 1.5;
    color: #000;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
  }
  .topNews__ico {
    width: clamp(25px, 2.9191616766vw, 39px);
    flex-shrink: 0;
    transition: transform 0.25s ease-in-out;
  }
  @media (max-width: 768px) {
    .topNews__ico {
      display: none;
    }
  }
  .topNews__btnSp {
    display: none;
    margin-top: 1.4em;
  }
  @media (max-width: 768px) {
    .topNews__btnSp {
      display: flex;
      justify-content: center;
    }
  }
}