
/* mainvw */
.article__header {
    width: 100vw;
    height: 100vh; /* ←画面高さいっぱいにする */
    overflow: visible; /* ←画像やテキストがはみ出てもOKに */
    position: relative;
  }

.mainvw {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

.mainvw img {
    margin-left: auto;
    margin-right: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: 0 25%;
  }

  .mainvw_txt {
    position: absolute;
    top:27%;
    left: 5%;
  }

  .mainvw_txt-1 {
    color: #333;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    white-space: nowrap; /* 1行に収めてはみ出しやすく */
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    width: 300PX;
    text-align: center;
  }

.mainvw_txt-2 {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    margin-top: 12px;
  }

    .mainvw_span {
    font-size: 3vw;
  }

@media screen and (max-width:1210px) {

    .mainvw-txt {
        width: 265px;
    }

    .mainvw_txt-2 {
    font-size: 1.8rem;
  }
  }

@media screen and (max-width: 768px) {

  .mainvw img {
    margin-left: auto;
    margin-right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center;
  }

  .mainvw-txt {
    width: 174px;
  }

  .mainvw_txt-1 {
    font-size: 3.2rem;
    width: 222PX;
  }

  .mainvw_txt-2 {
    font-size: 1.6rem;
    margin-top: 12px;
  }

  .sp-none {
    display: none;
  }
}


/* CATEGORY */

  .section__category {
  background-color: #F5F5F5;
  padding: 0 6.2%;
}

 .category__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列固定 */
  gap: 15px;
  text-align: center;
  margin: 80px 0;
  justify-items: start; /* カード4が左寄せになるように */
}

   .category__item {
  background-color: #ffffff;
  border: 1px solid #000;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%; /* ← Gridに合わせて幅を親任せに */
}

  .category__item--pic {
    height: 250px;
  }

  /* coming soon */

    .category__item.comingSoon .category__item--pic {
    position: relative;
}

  .category__item.comingSoon .category__item--pic::after {
    content: "COMING SOON!";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    background: rgba(0, 123, 255, 0.8); /* 青背景（透明感あり） */
    color: #fff; /* 白文字 */
    font-size: 2rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    pointer-events: none;
}

/* coming soonここまで */

  /* sold out */

  .category__item.soldout .category__item--pic {
    position: relative;
}

  .category__item.soldout .category__item--pic::after {
    content: "SOLD OUT";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    pointer-events: none;
}
/* sold outここまで */
  .category__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

  .category__item ul {
  margin: 20px 0;
}

  .category__item ul li {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

  .category__item--txt1 {
    width: 82px;
    color: #333333;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.27px;
    word-wrap: break-word;
    text-align: left;
}

  .category__item--txt2 {
    color: black;
    font-size: 1.4rem;
    word-wrap: break-word;
    margin-left: 20px;
    text-align: left;
}

  .category__item--btn {
    background-color: #0077c2;
    display: inline-block;
    color: #F5F5F5;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    padding: 10px 20px;
    width: 180px;
    margin: 20px auto 0;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
}

/* ボタンを隠す */
  .category__item--btn.hidden {
    visibility:hidden;
    pointer-events: none;
  }
/* ここまで */

  .category__item--btn:hover {
    background-color: #d0e7ff;
    color: #333;
    transition: 0.3s ease;
}

  .category__txt {
    text-align: center;
    margin: 0 6.4%;
}

  .category__txt p:first-of-type {
    font-size: 2.4rem;
    font-weight: 700;
}

  .category__txt p {
    line-height: 3rem;
    text-align: left;
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

  .category__txt--bold {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.27px;
  }

  .inquiry__btn {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 80px 0 105px;
}

@media screen and (max-width: 1024px) {
  .category__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3列固定 */
    gap: 15px;
    text-align: center;
    margin: 80px 0;
}
}

@media screen and (max-width: 600px) {
  .section__category {
    padding: 0;
  }  
  
  .category__container {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex-wrap: wrap;
      justify-content: center;
      gap: 50px;
      margin: 50px 6.4% 80px;
}

    .category__item {
      width: 100%;
  }

    .category__txt p:first-of-type {
      font-size: 1.8rem;
}
}
