.container{
    padding-top: 100px;
    padding-bottom: 50px;
    margin-top: 3px;
    display :flex ;
    flex-direction: column;
    justify-content:center;
}

form{
    display: flex;
    justify-content: center;
    align-items: center;
    z-index:95;
}
  
input[type="search"] {
    padding:0 10px 0 20px;
    font-size:min(3vw,1.3rem);
    color: #666666;
    text-align: left;
    font-family : 'ヒラギノ丸ゴ ProN W4';
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    background-color: #ffffffe0;
    border: 2px solid #666666;
    border-radius: 1vw;
    width: 40vw;height:50px;
    transition: border-color 0.3s ease;
}

input::placeholder {
    color: #d4cac0;
  }

input[type="search"]:focus {
    border-color: #666666;
    outline: none;
}

button[type="submit"] {
    background-color: transparent; /* 背景色を透明に設定 */
    border: none; /* ボーダーを削除 */
    cursor: pointer;
    transition: transform 0.3s ease;
}

button[type="submit"]:hover {
    transform: scale(1.1); /* ホバー時に少し拡大する効果 */
}

/* 検索結果ポップアップ */
.result-popup {
    position: fixed;
    left: 20px;
    padding: 2vw;
    backdrop-filter: blur(20px);
    background-color: #ffffffc0;
    display: none; /* 初期は非表示 */
    flex-wrap: wrap;
    gap: 1.5vw;
    border-radius: 1.5vw;
    z-index: 80;
}
  
.result-popup img {
    width: 15vw;
    height: 15vw;
    object-fit: cover;
    cursor: pointer;
    border-radius: 7.5%;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.25));
}
  
.result-popup img:hover {
    outline: 2px solid #666666;
}

@media screen and (width < 768px)/* スマホ */{

    .search__background {
        display: flex;
        align-items: center;
        padding:1vw 0 1vw 2vw;
        backdrop-filter: blur(20px);
        background-color: #ffffffc0;
        width: auto;height:auto;
        border-radius: 1.5vw;
        position: fixed;bottom: 30px;left: 20px;z-index:95;
    }

    form{
        text-align:left; 
    }

    .search-icon {
        cursor: pointer;
        text-align:right;
        width:60px;
        z-index: 99;
    }

    .result-popup {
        bottom: 115px;
    }
}

@media screen and (768px<= width)/* PC */ {

    form{
        position: fixed;top: 10px;left: 30px;
    }

    .search-icon {
        cursor: pointer;
        width:75px;
    }

    .result-popup {
        top: 110px;
    }
}

.modal {
    padding: 0;
}
  
/* モーダルを開くボタン */
.modal__images {
    display: flex;
    flex-wrap: wrap;
}
  
.modal__images .modal__image {
    position: relative;
    width: calc((100% - (10px * 2)) / 3);
    transition: opacity .6s;
}
  
.modal__images .modal__image:hover {
    opacity: .6;
}
  
.modal__images .modal__trigger {
    cursor: pointer;
}
  
.modal__images .modal__image:nth-child(3n - 1),
.modal__images .modal__image:nth-child(3n) {
    margin-left: 10px;
}
  
.modal__images .modal__image:nth-child(n + 4) {
    margin-top: 10px;
}
  
.modal__images .modal__image:before {
    display: block;
    padding-top: calc((2 / 3) * 100%);
    padding-top: 100%;
    content: '';
}
  
/* クリック前の画像のプロパティ */
.modal__images .modal__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 2.5%;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.25));
}
  
/* モーダル本体 */
.modal__wrapper {
    display: none;
    position: fixed;
    z-index: 10;
    z-index: 20;
    width: 100%;
    height: 100%;
}
  
.modal__layer {
    height: 100%;
    background: rgba(50, 50, 50, .85);
    cursor: pointer;
}
  
/* モーダルを閉じるボタン */
.modal__close {
    position: absolute;
    top: 2.5vw;
    right: 2.5vw;
    width: 44px;
    height: 44px;
    border-radius: 5px;
    background: rgba(200, 200, 200, 0.5);
    cursor: pointer;
    transition: opacity .6s;
}
  
.modal__close:hover {
    background: rgba(150, 150, 150, 0.5);
}
  
.modal__close:before,
.modal__close:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 3px;
    border-radius: 2.5px;
    background: rgb(255, 255, 255);
    content: '';
}
  
.modal__close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}
  
.modal__close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
  
.modal__content .modal__image img {
    width: 100%;
}

section{color: #666666;}

.heading{
    width:auto;margin:0px 15% 80px 15%;
    border-radius: 50px;
}

h1{ color: #666666;
    text-align: center;
    font-family : 'ヒラギノ丸ゴ ProN W4';
    font-size: min(5vw,3rem);
    text-decoration: none;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

h2{ color: #666666;
    text-align: left;
    font-family : 'ヒラギノ丸ゴ ProN W4';
    font-size: min(4vw,2rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

h3{ color: #666666;
    display:inline-block;
    text-align: left;
    font-family : 'ヒラギノ丸ゴ ProN W4';
    font-size: min(4vw,2rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-bottom:dotted;
}
