@media screen and (max-width: 767px) {
    #top-spirit .sec-row--stack{
        flex-direction: column-reverse;
    }
    /* #top-spirit .top-spirit-content{
        display: contents;
    }
    #top-spirit .sec-ttl-box{
        order: 1;
    }
    #top-spirit .img-fullbleed-left{
        order: 2;
    }
    #top-spirit .sec-body{
        order: 3;
    } */
}

#top-works {
  background: var(--color-bg);
}

.works-slider-wrap {
  width: 100vw;
  margin-top: 40px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}
@media screen and (max-width: 1040px) {
  .works-slider-wrap {
    margin-left: 0;
    width: 100%;
  }
}

.works-marquee {
  overflow: hidden;
}

.works-marquee__track {
  display: flex;
  width: max-content;
  animation: works-marquee-scroll linear infinite;
  will-change: transform;
}

.works-marquee:hover .works-marquee__track {
  animation-play-state: paused;
}

.works-marquee__group {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

#top-works .works-marquee__group .works-item {
  flex-shrink: 0;
  width: 300px;
  margin: 0 20px;
}

@keyframes works-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 767px) {
  #top-works .works-marquee__group .works-item {
    width: 240px;
    margin: 0 12px;
  }
}

#top-works .works-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 300/400;
  object-fit: cover;
}


#top-works .top-works-img img{
    width: 100%;
    height: auto;
    aspect-ratio: 1440/400;
    object-fit: cover;
}
@media screen and (max-width: 767px) {
    #top-works .top-works-img img{
        aspect-ratio: 375/200;
    }
}


#top-maintenance .sec-inner-pt{
    padding: 150px 0 0;
}
@media screen and (max-width: 767px) {
    #top-maintenance .sec-inner-pt{
        padding: 80px 0 0;
    }
}

.top-maintenance-content{
    margin-top: 25px;
}
.top-maintenance-item {
  background: var(--color-bg);
  text-align: center;
  padding: 40px 12px 52px;
  position: relative;
  transition: 0.3s;
}
@media screen and (max-width: 767px) {
    .top-maintenance-item {
        padding: 24px 12px 45px;
        display: flex;
        gap: 12px;
    }
}
.top-maintenance-item::before{
    content: '';
    display: block;
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: url(../img/common/btn-arrow-white.svg) no-repeat center center / contain;
    transition: 0.3s;
}
.top-maintenance-item::after{
    content: '';
    display: block;
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: url(../img/common/btn-arrow.svg) no-repeat center center / contain;
    transition: 0.3s;
    transition: opacity 0.3s;
    opacity: 0; 
    z-index: 1;
}
.top-maintenance-item:hover{
    opacity: 1;
}
/* ホバー時の処理（透明度をひっくり返す） */
.top-maintenance-item:hover::before {
    opacity: 0; /* 白矢印を透明に */
}
.top-maintenance-item:hover::after {
    opacity: 1; /* 通常矢印を表示 */
}
/* .top-maintenance-item:hover::after{
    transform: translate3d(0, 0, 0);
    background: url(../img/common/btn-arrow.svg) no-repeat center center / contain;
} */
@media screen and (max-width: 767px) {
    .top-maintenance-item-img {
        min-width: 47px;
        max-width: 47px;
    }
}
.top-maintenance-item-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    max-width: 100px;
}

.top-maintenance-item-body {
    margin-top: 24px;
}

@media screen and (max-width: 767px) {
    .top-maintenance-item-body {
        margin-top: 0;
        text-align: left;
    }
}

#top-craft .sec-inner{
    padding: 150px 0;
}
@media screen and (max-width: 767px) {
    #top-craft .sec-inner{
        padding: 80px 0 80px;
    }
}
.top-craft-content{
    margin-top: 27px;
}
.top-craft-item {
    position: relative;
}
.top-craft-item::before{
    content: '';
    display: block;
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: url(../img/common/btn-arrow-white.svg) no-repeat center center / contain;
    transition: opacity 0.3s; 
    opacity: 1;
    z-index: 1;
}
.top-craft-item::after{
    content: '';
    display: block;
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: url(../img/common/btn-arrow.svg) no-repeat center center / contain;
    transition: 0.3s;
    transition: opacity 0.3s;
    opacity: 0; 
    z-index: 1;
}

.top-craft-item-img{
    position: relative;
}
.top-craft-item-img::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}
@media screen and (max-width: 767px) {
    .top-craft-item-img img{
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
        object-fit: cover;
    }
}
.top-craft-item-body {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100%;
    text-align: center;
    color: var(--color-white);
}

.top-craft-item-num {
  font-size: 32px;
  font-family: var(--font-serif);
  line-height: 1;
  letter-spacing: 0.1em;
  padding-bottom: 8px;
  position: relative;
}

.top-craft-item-num::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background: var(--color-white);
}
.top-craft-item-body .item-ttl{
    margin-top: 16px;
}
.top-craft-item-body .item-txt{
    margin-top: 10px;
}
.top-craft-item:hover{
    opacity: 1;
}
.top-craft-item:hover .top-craft-item-img::after{
    background: rgba(0, 0, 0, 0.7);
}
.top-craft-item:hover::before {
    opacity: 0; /* 白矢印を透明に */
}
.top-craft-item:hover::after {
    opacity: 1; /* 通常矢印を表示 */
}


@media (max-width: 1080px) {
    #top-company .content-width {
        width: 100%;
        padding: 0;
        padding-right: 20px;
    }
}
@media screen and (max-width: 767px) {
    #top-company .content-width {
        padding: 0 20px;
    }
}
#top-company .sec-row{
    gap: 80px;
}
@media screen and (max-width: 767px) {
    #top-company .sec-row{
        gap: 20px;
    }
}
.top-company-content {
    display: flex;
    justify-content: space-between;
    gap: 86px;
  }
@media screen and (max-width: 767px) {
    .top-company-content {
      flex-direction: column;
      gap: 20px;
    }
  }
  
@media screen and (max-width: 767px) {
    #top-company .sec-body{
        margin-top: 0;
    }
}
#top-company .sec-ttl-box{
    margin-top: 15px;
}

#top-company .sec-read{
    white-space: nowrap;
}
@media screen and (max-width: 767px) {
    #top-company .sec-read{
        white-space: normal;
    }
}

#top-card{
    background: var(--color-bg);
}
#top-card .sec-inner--sm{
    padding: 80px 0;
}
@media screen and (max-width: 767px) {
    #top-card .sec-inner--sm{
        padding: 80px 0;
    }
}

#top-card .content-box {
  flex: 1;
  min-width: 0;
  margin-top: 30px;
}


#top-instagram .sec-inner{
    padding: 80px 0;
}
.top-instagram-ttl {
    margin: 0;
    margin-bottom: 40px;
    text-align: center;
    font-size: 24px;
    font-family: var(--font-mincho);
    font-weight: 700;
    line-height: calc(35/24);
    letter-spacing: 0.15em;
}
