@charset "UTF-8"; 
.page-product {
    display: flex;
    flex-direction: column;
    padding: 0 8vw;
    gap: 3vw;
}
/* ===============================
   01: product header
=============================== */
.product__header {
    display: flex;
    flex-direction: row;
    text-align: center;
    align-items: end;
    gap: 3vw;
    padding: 12vw 0 0;
    justify-content: space-evenly;
}
.product__maintitle {
    font-size: 4.2rem;
    line-height: 3vw;
    letter-spacing: .05em;
}
.product__filter {
    display: flex;
    gap: 2vw;
    justify-content: center;
}
.product__filter button {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: .4rem .8rem;
    transition: .3s;
}
.product__filter button.is-active {
  border-bottom: 3px solid #C6D61A;
}
/* ===============================
   02: product
=============================== */
.product {
    display: flex;
    padding: 5vw 10vw;
    flex-direction: column;
}
.section__container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 2vw;
}
.section__item {
    background-color: #444;
    width: 14vw;
    height: 14vw;
    position: relative;
    overflow: hidden;
    transition: .3s ease;
}
.section__item img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    transition: transform .4s ease;
}
.product-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 1.6rem;
    opacity: 0;
    transform: translateY(10px);
    transition: .35s ease;
}
.section__item:hover img {
    transform: scale(1.05);
}
.section__item:hover .product-title {
    opacity: 1;
    transform: translateY(0);
    z-index: 6;
    pointer-events: auto; /* ←クリック通す */
}
.section__item.hide {
    opacity: 0;
    transform: scale(.9);
}

/* ===============================
   03: modal
=============================== */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(3px);
    overflow: hidden; 
    z-index: 9999;
}

.modal.is-show {
  display: flex;
  padding: 3vw 8vw;
    overflow: hidden; 
}

.modal__inner {
    display:flex;
    flex-direction: column;
    width: min(100%, 900px);
    height: 90vh;
    padding: 5vw;
    gap: 5vw;
    position: relative;
    overflow-y: auto;     /* ←縦スクロール */
    overflow-x: hidden;   /* ←横スクロールは殺す */
    -webkit-overflow-scrolling: touch;
    animation: zoomIn .35s ease;
}
.modalImg__container {
    width: 100%;
}
.modal__inner img {
    width: 100%;
    height: auto;         /* ←70vhをやめる */
    object-fit: initial;  /* ←containをやめる（または削除） */
    display: block;
}
.modalTxt__container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;    
}

.modalTxt__container h2 {
    font-size: 2.2rem;
    font-weight: 400;
    color: #fff;
}

.modalTxt__container p,
.modalTxt__container a{
    font-size: 1.6rem;
    font-weight: 400;
    color: #fff;
}
.modalTxt__container a {
    text-decoration: underline #fff;
    transition: .5s ease-in-out;
}
.modalTxt__container a:hover {
    color: #C6D61A;
    text-decoration: underline  #C6D61A;
}
.modal__close {
    display: flex;
    position: fixed;
    top: 2vw;
    right: 2vw;
    width: 3vw;
    height: 3vw;
    background: #fff;
    border-radius: 60%;
    border: none;
    font-size: 1.7vw;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}


/* 📱 Tablet (1024px) */
@media (max-width: 1024px){
/* ===============================
   01: product header
=============================== */
    .product__maintitle {
        font-size: 3rem;
        line-height: normal;
    }
/* ===============================
   02: product
=============================== */
    .section__item {
        width: 20vw;
        height: 20vw;
    }
    .product-title {
        font-size: 1.4rem;
    }
/* ===============================
   03: modal
=============================== */
    .modal__close {
        width: 5vw;
        height: 5vw;
        font-size: 3.7vw;
    }
}
/* 📱 Smartphone (810px) */
@media (max-width: 810px){
/* ===============================
   01: product header
=============================== */
    .product__header {
        padding: 25vw 0 0;
    }
    .product__maintitle {
        font-size: 2rem;
        line-height: normal;
    }
    .product__filter {
        gap: 3vw;
    }
    .product__filter button {
        font-size: 1.3rem;
        padding: 0 .5vw;
    }
    .product__filter button.is-active {
        border-bottom: 2px solid #C6D61A;
    }
/* ===============================
   02: product
=============================== */
    .product {
        padding: 5vw 0;
    }
    .section__item {
        width: 19vw;
        height: 19vw;
    }
    .product-title {
        font-size: 1.2rem;
        text-align: center;
    }
/* ===============================
   03: modal
=============================== */
    .modal.is-show {
        padding: 4vw 10vw;
    }
}