@charset "utf-8";

.main {
  margin-top:90px
}

.site-menu ul li {
  display: block;
  display: flex;
}

.site-menu ul li img {
  display: block;
  height: 20px;
}

.title {
  position: relative;
  height: 20vh;
  background-repeat: no-repeat;
  background-position: right top;
  background-size: contain;
  display: flex;
  align-items: center;
}

.title-text {
  position: absolute;
  width: 100%;
  max-width: 800px;
  padding-left: 60px;
  top: 40px;
  text-shadow: 10px 10px 20px rgb(130, 202, 243);
  z-index: 10;
}

.title-text h1 {
  font-size: 3rem;
  font-weight: bold;
}

.title-text p {
  font-size: 1.3rem;
  margin-top: 10px;
}


/* ホバーしたときのん */

.chuusinn {
  justify-content: space-between;
  display: flex;
  width: 800px;
  max-width: 80%;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px;
  align-items: flex-start;
}

.container {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  width: 800px;
  height: 30vh;
  margin-bottom: 30px;
}

.image-list {
  display: grid;
  column-gap: 10px;
  row-gap: 10px;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
}

.image-list img {
  display: block;
  cursor: pointer;
  transition: opacity .2s;
}

.image-list img:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

#descArea {
  white-space: pre-line;
  border: 1px solid #ccc;
  padding: 8px;
}

.sidebar {
  background-color: rgba(180, 204, 196, 0.468);
  background-size: 400px 300px;
  background-repeat: no-repeat;
  border-left: 0px solid #ccc;
  width: 400px;
  height: 300px;
  border-radius: 30px;
  padding: 10px;
  font-size: 2rem;
  text-align: center;
}

/* ホバーしたときのんここまで */

/* --- スマホ時のレイアウト変更 --- */
@media (max-width: 800px) {

  .main {
    margin-top: 60px;
  }

  .title {
    background-image: none;
  }
  
  .chuusinn {
    width: 600px;
    height: 50vh;
  }

  .container {
    display: block;
    width: 100%;
    max-width: 90%;
    margin-top: 20px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
  }

  .sidebar {
    width: 100%;
  }
  
  .image-list {
    display: flex;
    overflow: scroll;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding-bottom: 10px;
    white-space: nowrap;
  }

  .image-list img {
    width: 120px; /* スマホで丁度よく見えるサイズ */
    flex-shrink: 0;
    cursor: pointer;
  }

  #description {
    margin-top: 15px;
    font-size: 1.5rem;
  }
}
