.layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  padding: 20px;
}

header {
    background: #f8d9b8;
    padding: 10px 0;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.nav a {
    text-decoration: none;
    color: #6b4e3d;
    font-size: 16px;
}
body {
    background-color: #fffaf3;
    font-family: "Yu Mincho", serif;
    color: #6b4e3d;
    text-align: center;
    margin: 0;
    padding: 0;
  }
  .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .image-section {
    flex: 1 1 300px;
    text-align: center;
  }
  .image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
  .details-section {
    flex: 1 1 300px;
  }
  .details-section ul {
    list-style: none;
    padding: 0;
  }
  .details-section li {
    margin-bottom: 10px;
    line-height: 1.6;
  }
  .details-section li strong {
    font-weight: bold;
    color: #333;
  }

  @media (max-width: 768px) {
    .container {
      flex-direction: column;
      align-items: center;
    }
  }

  .thumbnail {
    width: 150px; /* 表示サイズ（好みで調整してOK） */
    height: auto;
    border-radius: 8px; /* 角を少し丸く */
    cursor: pointer; /* マウスカーソルをポインターに */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.05); /* ホバー時に少し拡大 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* ふんわり影を追加 */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    max-width: 90%;
    max-height: 90%;
}
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

@media (max-width: 640px) {
    .gallery {
        column-count: 2; /* 小さい画面では2列 */
    }
}

.container {
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px;
}

.set {
  display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.image-section, .details-section {
  width: 100%;
}

.image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.details-section ul {
  list-style: none;
  padding: 0;
}

.details-section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.details-section li strong {
  font-weight: bold;
  color: #333;
}


/* 左：ナビゲーション */
.sidebar-left {
  width: 200px;
  background: #f0f0f0;
  padding: 15px;
  border-radius: 8px;
}

.sidebar-left h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.sidebar-left ul {
  list-style: none;
  padding: 0;
}

.sidebar-left li {
  margin-bottom: 10px;
}

.sidebar-left a {
  text-decoration: none;
  color: #333;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar-left,
  .sidebar-right {
    width: 100%;
  }
}