.fv{
    background-color: var(--color-gray);
    padding: clamp(40px, 6vw, 60px) 0;
}

.fv-title{
    font-size: clamp(28px, 4vw, 40px);
}

.fv-description{
    max-width: 600px;
}
.fv p{
    text-align: left;
}

/* サンプルナビ */

.button-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 20px auto;
    gap: 30px;
}

.button-container a {
    display: flex;
    align-items: center;
    padding: 2px 13px;
    justify-content: center;
    color: var(--color-text);
    font-size: clamp 10px, 2vw, 20px;
    font-weight: 500;
    background-color: var(--color-base);
    border: 2px solid var(--color-text);
    border-radius: 10px;
    text-align: center;
}

.button-container .next-button a::after{
    content: '';
    width: 11px;
    height: 11px;
    border-top: 2px solid var(--color-text);
    border-right: 2px solid var(--color-text);
    transform: rotate(45deg);
}

.button-container .prev-button a::before{
    content: '';
    width: 11px;
    height: 11px;
    border-top: 2px solid var(--color-text);
    border-right: 2px solid var(--color-text);
    transform: rotate(-135deg);
}

.button-container a:hover {
    color: var(--color-base);
    background-color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.button-container a:hover::after{
    border-top: 2px solid var(--color-base);
    border-right: 2px solid var(--color-base);
}

.button-container a:hover::before{
    border-top: 2px solid var(--color-base);
    border-right: 2px solid var(--color-base);
}

.each-sample{
    padding-top: clamp(5px, 2vw, 10px);
    padding-bottom: clamp(10px, 2vw, 20px);
}

.thum p{
    text-align: center;
    margin-bottom: 5px;
}

/* ポップアップ */

.each-sample .thum img{
    overflow: hidden;
    text-align: center;
    margin: 0 auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, boxshadow 0.3s ease;
}
.each-sample .thum img:hover{
    cursor: zoom-in;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.overlay { /* グレーの背景 */
    position: fixed;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.5s 0s ease;
    visibility: hidden;
    opacity: 0;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}
#pop-up {
    display: none;
}
#pop-up:checked + .overlay {
    visibility: visible;
    opacity: 1;
    z-index: 100000;
    background-color: #000000a0;;
    width: 100%;
}
.popWindow {
    border-radius: 10px;
    overflow: overlay; /* スクロールバー用 */
    max-height: 90%; /* すき間 */
    width: 90%;
    position: fixed;
    top: 50%; /* 中央に */
    left: 50%; /* 中央に */
    transform: translate(-50%, -50%); /* 中央に */
    z-index: 100010;
    margin: 15px auto;
    background: var(--color-base); /* 枠の色 */
    transition: all 500ms ease-in-out;
}
.popWindow .ptitle p {
    font-size: clamp(20px, 2vw, 40px);
    margin: 8px;
    color: var(--color-text);
    text-align: center; /* 文字を中央寄せ */
}
.popWindow img {
    display: flex;
    margin: 20px auto;
    pointer-events: none;
}
.button a {
    display: flex;
    position: absolute;
    justify-content: center;
    top: 30px;
    right: 30px;
    padding: 1px 2px;
    width: 100px;
    color: var(--color-text);
    font-size: 20px;
    font-weight: 700;
    border: 2px solid var(--color-text);
    border-radius: 50px;
}
.button a:hover {
    color: var(--color-base);
    text-decoration: none;
    background-color: var(--color-accent);
    border: 2px solid var(--color-accent);
    cursor: zoom-out;
}
.popWindow::-webkit-scrollbar-track {
    background: none;
}
.popWindow::-webkit-scrollbar {
    width: 12px;
    height: 10px;
}
.popWindow::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 5px;
}
@media screen and (max-width: 768px){
  #pop-up:checked + .overlay {
    visibility: hidden;
    opacity: 0;
  }
}
@media (max-width:768px){
    .thum p{
        display: none;
    }
    .thum img{
        pointer-events: none;
    }

}