@charset "UTF-8";
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul{
    list-style: none;
}
a{
    color: inherit;
    text-decoration: none;
}
img{
    max-width: 100%;
    vertical-align: bottom;
}
body{
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 画面全体の高さを最低限確保 */
}

/* --------------------------------
  header
-------------------------------- */
.header {
  padding: 20px 0;
  background-color: #8be5ec;
  text-align: center;
}
  .header h1 {
    font-size: 1.5rem;
  }
  .header h1::first-line {
    font-size: 1.125rem;
  }
  .btn {
    display: inline-block;
    width: 100%;
    margin-top: 10px;
    border: #fff;
  }
  .btn a {
    padding: 6px 20px;
    border: 2px solid #518f8e;
    color: #518f8e;
    font-weight: 700;
    transition: all .3s;
  }
  .btn a:hover {
    padding: 6px 20px;
    background-color: #fff;
    color: #518f8e;
  }
  
  @media screen and (max-width: 767px) {
    .header h1 {
      white-space: pre-line;
    }
  }

/* --------------------------------
  footer
-------------------------------- */
.footer {
  padding: 10px;
  background-color: #a4ebf0;
  text-align: center;

  position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* 他の要素に隠れないように */
}

/* フッターに重ならないよう、bodyの最後に余白を追加 */
body {
    padding-bottom: 50px; /* フッターの高さ分 */
}


/* --------------------------------
    main
-------------------------------- */


.container{
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 30px 0;
    flex: 1; /* ★ここがポイント：余った余白をこの要素が占有する */
}

.thumbnails{
    display: flex;
    gap: 10px;
    flex-direction: column;
}
.thumbnails img{
    width: 92px;
    height: 92px;
    object-fit: cover;
    cursor: pointer;
    transition: opasity 0.3s;
}
.thumbnails img:hover{
    opacity: 0.7;
}
.main-img{
    width: 602px;
    height: 602px;
    object-fit: cover;
}
@media screen and (width < 768px){
    .container{
        display: block;
        padding: 30px 10px;
    }
    .thumbnails{
        flex-direction: row;
        margin-bottom: 10px;
    }
    .thumbnails img{
        width: 100%;
        height: 100%;
    }
    .main-img{
        width: 100%;
        height: 100%;
    }
}