/*==============================================================
HOME
==============================================================*/
/*共通*/
.nav-list li:first-child a::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 70px;
  background-image: url("../assets/img/common/menu-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  animation: slideUpFade 0.6s ease forwards;

  @media (max-width: 768px) {
    display: none;
  }
}

@keyframes slideUpFade {
  0% {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .global-nav::before {
    display: none;
  }
}

.footer-menu li:first-child a {
  border-bottom: 1px solid #ffba54;

  @media (max-width: 991px) {
    border-bottom: unset;
  }
}

.btn {
  display: inline-flex;
  gap: 16px;
  background: #331902;
  justify-content: center;
  border-radius: 50px;
  padding: 12px 32px 12px 48px;
  margin-left: -26px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  margin-left: -46px;
  z-index: 0;

  @media (max-width: 991px) {
    gap: 8px;
    margin-top: 5px;
    padding: 13px 30px 13px 60px;
    margin-left: -45px;
  }
}

.home-btn {
  align-items: center;
}

.home-btn img {
  width: 100%;
  max-width: 80px;
  height: auto;
  position: relative;
  z-index: 1;
  background: #331902;
  border-radius: 50%;
  padding: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-txt {
  color: #fff;
  font-size: clamp(1rem, 0.9681rem + 0.1307vw, 1.125rem);
  font-weight: 600;
}

@supports (-webkit-touch-callout: none) {
  .btn-txt {
    color: #fff;
  }
}

.home-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-btn:hover {
  transform: translateY(-4px);
}

.btn.btn-b {
  margin-top: 24px;
}

.under-line {
  background-color: #fff;
  height: 20px;
}

/*==============================================================
FV*/

.fv {
  position: relative;
  padding: 16px;

  @media (max-width: 768px) {
    padding: 0;
  }
}

.fv-cont {
  margin: 0 auto;
  background-image: url("../assets/img/home/fv-bg.png");
  background-size: cover;
  height: auto;
  background-repeat: no-repeat;
  border-radius: 15px;

  @media (max-width: 768px) {
    background-image: url("../assets/img/home/fv-bg-sp.jpg");
    background-size: cover;
    height: 100vh;
    border-radius: 0;
  }
}

.fv-box {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1820px;
  margin: 0 auto;
  gap: 24px;
  padding: 40px 40px;

  @media (max-width: 768px) {
    padding: 80px 16px 40px;
  }
}

.fv-box img {
  @media (max-width: 768px) {
    width: 100%;
    max-width: 320px;
  }
}

.fv-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  margin-top: 96px;
  flex: 1;
  animation: float-updown 4s ease-in-out infinite;
}

.fv-item-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  width: 35%;
  animation: float-downup 4s ease-in-out infinite;
}

@keyframes float-updown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px); /* 上方向に動く距離 */
  }
}

@keyframes float-downup {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px); /* 下方向に動く距離 */
  }
}

/*==============================================================
FV-slide*/

.gallery {
  width: 100%;
  overflow: hidden;
  padding: 24px 0;
}

.gallery img {
  width: 100%;
  height: auto;
  max-width: 160px;

  @media (max-width: 768px) {
    max-width: 80px;
  }
}

.gallery_slide {
  display: flex;
  width: max-content;
  align-items: center;
  animation: slide 20s linear infinite; /* 速さ調整 */
}

.gallery_slide li {
  flex: 0 0 auto;
  max-width: 100%;
  margin-right: 20px;
}

.slide-text {
  font-size: clamp(2.5rem, -0.8333rem + 6.9444vw, 7.5rem);
  white-space: nowrap;
  font-weight: 900;
  color: #ffc37a;
}

/*==============================================================
昭幸について*/

.about {
  width: 100%;
  background-image: url(../assets/img/home/about-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-cont {
  max-width: 1420px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  overflow: hidden;

  @media (max-width: 768px) {
    padding: 40px 16px;
  }
}

.about-box {
  gap: 40px;

  @media (max-width: 768px) {
    gap: 24px;
    flex-direction: column;
  }
}

.about-left {
  flex: 1;
  position: relative;
  z-index: 0;

  @media (max-width: 768px) {
    width: 100%;
  }
}

.about-left img {
  width: 100%;
  max-width: 536px;
  margin: 0 0 0 auto;

  @media (max-width: 768px) {
    margin: 0 auto;
  }
}

.dec-img-01 {
  position: absolute;
  top: -32px;
  left: 0;
  width: 100%;
  max-width: 500px;
  z-index: -1;

  @media (max-width: 768px) {
    top: 638px;
  }
}

.about-right {
  flex: 1;
}

.about-right-cont {
  gap: 40px;
  flex-direction: column;
  align-items: flex-end;

  @media (max-width: 768px) {
    gap: 16px;
    align-items: center;
  }
}

.home-common-ttl {
  gap: 24px;
  align-items: center;
}

.home-common-ttl p {
  font-size: clamp(1.5rem, -0.1667rem + 3.4722vw, 4rem);
  color: #331802;
  font-weight: 900;
}

/*==============================================================
自社紹介*/

.intro {
  width: 100%;
  background-image: url(../assets/img/home/intro-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  @media (max-width: 768px) {
    padding: 40px 16px;
  }
}

.intro-cont {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 32px;

  @media (max-width: 768px) {
    padding: 0;
  }
}

.intro-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 24px;

  @media (max-width: 768px) {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

.intro-left {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
}

.intro-left-cat {
  position: relative;
  max-width: 520px;
}

.intro-left-cat-img {
  width: 100%;
}

.intro-left-cat-img img {
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* X, Y, ぼかし, 色 */
  border-radius: 50%;

  @media (max-width: 768px) {
    display: block;
    max-width: 80%;
    margin: 0 auto;
  }
}

.cat-intro-cont {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 470px;
  background-color: #a75900;
  padding: 8px;
  border-radius: 15px;
  height: 100%;
  max-height: 102px;

  @media (max-width: 768px) {
    max-height: 84px;
  }
}

.cat-intro-box {
  background-color: #fff;
  border-radius: 10px;
  align-items: center;
  height: 100%;
}

.cat-name-ttl-cont {
  align-items: center;
  gap: 8px;
}

.cat-name-ttl-cont img {
  @media (max-width: 768px) {
    width: 100%;
    max-width: 24px;
  }
}

.selector {
  border-left: none; /* 元の線を消す */
  background: repeating-linear-gradient(
    to bottom,
    #a75900,
    #a75900 1px,
    /* 点の長さ */ transparent 6px
  );
  width: 1px; /* 線の幅 */
  height: 100%;
}

.cat-name-left {
  padding: 8px;
  width: 58%;
  border-right: 1px dotted #a75900;

  @media (max-width: 768px) {
    width: 53%;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }
}

.cat-name-eng {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a75900;
}

.cat-name-cont {
  align-items: flex-end;
  gap: 8px;

  @media (max-width: 768px) {
    gap: 2px;
  }
}

.cat-name-item {
  font-weight: 600;
  font-size: clamp(0.875rem, 0.625rem + 0.5208vw, 1.25rem);
  color: #a75900;
}

.cat-name {
  font-size: clamp(1.125rem, 0.7083rem + 0.8681vw, 1.75rem);
  font-weight: 600;
}
.cat-name span {
  font-size: clamp(0.875rem, 0.625rem + 0.5208vw, 1.25rem);
  font-weight: 600;
}

.cat-name-right {
  flex: 1;
  height: 100%;
}

.cat-car-cont {
  background-color: #fcfadd;
  border-radius: 0 10px 10px 0;
  padding: 8px;
  height: 100%;
  flex-direction: column;
  @media (max-width: 768px) {
    padding: 4px;
  }
}

.cat-car {
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 5px 0;

  @media (max-width: 768px) {
    padding: 0;
  }
}

.cat-car-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a75900;
  border-bottom: 1px solid #ccc;
  padding: 4px;
  margin-bottom: 8px;
  text-align: center;

  @media (max-width: 768px) {
    margin-bottom: 4px;
  }
}

.intro-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;

  @media (max-width: 768px) {
    flex-direction: column-reverse;
  }
}

.intro-right-cat {
  position: relative;
  max-width: 520px;
}

.intro-right-txt-bg-img {
  width: 100%;

  @media (max-width: 768px) {
    display: none;
  }
}

.intro-right-txt-bg-img img {
  width: 100%;
  max-width: 660px;
}

.intro-right-cat-img {
  width: 100%;
  display: contents;

  @media (max-width: 768px) {
    display: block;
    max-width: 80%;
    margin: 0 auto;
  }
}

.intro-right-cat-img img {
  width: 100%;
  max-width: 520px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* X, Y, ぼかし, 色 */
  border-radius: 50%;
}

.intro-txt-cont {
  position: relative;
  width: 100%;
}

.intro-txt-box {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;

  @media (max-width: 768px) {
    position: unset;
    top: unset;
    left: unset;
    transform: unset;
    background-color: #d77700;
    border-radius: 15px;
  }
}

.intro-ttl-cont {
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.intro-ttl-cont img {
  width: 100%;
  max-width: 120px;

  @media (max-width: 768px) {
    max-width: 64px;
  }
}

.intro-ttl {
  font-weight: 600;
  color: #fff;
  font-size: clamp(1.25rem, 0.4167rem + 1.7361vw, 2.5rem);
  background-color: #a45a01;
  border-radius: 50px;
  padding: 4px 24px;

  @media (max-width: 768px) {
    padding: 4px 16px;
  }
}
.intro-des {
  color: #fff;
  font-weight: 600;
}
/*==============================================================
事業案内*/
.service {
  width: 100%;
  background-image: url(../assets/img/home/about-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-cont {
  max-width: 1420px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  overflow: hidden;

  @media (max-width: 768px) {
    padding: 40px 16px;
  }
}

.service-box {
  gap: 40px;
  flex-direction: row-reverse;

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 24px;
  }
}

.service-left {
  flex: 1;
  position: relative;
  z-index: 0;

  @media (max-width: 768px) {
    width: 100%;
    justify-content: center;
  }
}

.service-left img {
  @media (max-width: 768px) {
    width: 100%;
    max-width: 536px;
    margin: 0 auto;
  }
}

.dec-img-02 {
  position: absolute;
  top: -32px;
  left: 170px;
  width: 100%;
  max-width: 500px;
  z-index: -1;

  @media (max-width: 768px) {
    top: 638px;
    left: 0;
  }
}

.service-right {
  flex: 1;
}

.service-right-cont {
  gap: 40px;
  flex-direction: column;
  align-items: flex-start;

  @media (max-width: 768px) {
    gap: 16px;
    align-items: center;
  }
}

.home-common-ttl {
  gap: 16px;
  align-items: center;
}

.home-common-ttl img {
  @media (max-width: 768px) {
    width: 40px;
  }
}

.home-common-ttl p {
  font-size: clamp(1.5rem, -0.1667rem + 3.4722vw, 4rem);
  color: #331802;
  font-weight: 900;
}
