/* リセット＆基本設定 */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family:sans-serif; font-size:16px; color:#222; line-height:1.7;
  overflow-x:hidden;
}

/* ヘッダー */
header {
  display:flex; align-items:center; justify-content:center;
  background:#000; position:relative; height:100px; z-index:1000;
}
.title {
   color: white;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  line-height: 1;
  padding: 0 50px;
}

.menu-toggle {
   position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  display: none;
  cursor: pointer;
  z-index: 1001;
}

/* ナビ */
.gnav2 {
  background:#fff; border-top:1px solid #ccc; border-bottom:1px solid #ccc;
}
.gnav2 .nav {
 list-style:none; display:flex; max-width:1000px; margin:0 auto;
  justify-content: center; /* ← ここが中央揃えのポイント！ */

}
.nav > li {
  position:relative;
}
.nav > li > a {
  display:block; padding:15px 20px; text-decoration:none;
  color:#fff; background:#000;
}
.nav > li:hover > a {
  background:#afc6e2; color:orange;
}
.nav li ul {
  position:absolute; top:100%; left:0;
  display:none; list-style:none; background:#fff;
  border:1px solid #ccc; min-width:180px; z-index:100;
}
.nav li:hover ul {
  display:block;
}
.nav li ul li a {
  display:block; padding:10px; text-decoration:none;
  background:#eee; color:#000;
}
.nav li ul li a:hover {
  background:#afc6e2; color:#000;
}

/* レイアウト */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.wrapper {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
  box-sizing: border-box;
}

.side {
  width: 20%;
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.left {
  background: url(img/mokkan.png) center left scroll;
}

.right {
  background: url(img/mokkan.png) center right scroll;
    background-position: center right;
}

.content {
  width: 60%;
  max-width: 900px;
  background-color: white;
  padding: 20px;
}
.prologue {
   margin-bottom: 30px;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%; 
  line-height: 1.5; 
  font-size: 0.8rem; 
  letter-spacing: -0.02em;
}
.item-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.item {
   flex: 1 1 calc(33.333% - 40px);
  max-width: calc(33.333% - 40px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* アイテム画像 */
.item img {
   width: 100px;
  height: 100px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}

/* セクションなど */
.section { display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  justify-content: flex-start; }
.category {
  background: #000;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 10px;
  border-left: none;
  margin-bottom: 15px;
  width: 100%;
  text-align: left;
}
.subtitle {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4b0082;
  margin-bottom: 10px;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text {
  font-size: 1rem;
  line-height: 1.6;
  min-height: 8em;
  display: flex;
  align-items: start;
  justify-content: center;
  text-align: left;
  padding: 0 5px;
}

/* モバイル対応 */
@media screen and (max-width:768px) {
header {
  display:flex; align-items:center; justify-content:center;
  background:url(img/smokkan.png); position:relative; height:100px; z-index:1000;
}
   .title {
    font-size: 30px;
    text-align: center;
    width: 100%;
    padding: 0 50px;
    line-height: 1.2;
  }

 .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
 .gnav2 {
    display: none;
    flex-direction: column;
    border-top: 1px solid #ccc;
    background: #333;
    width: 100%;
  }

  .gnav2.open {
    display: flex;
  }

  .gnav2 .nav {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }

  .gnav2 .nav > li {
    border-bottom: 1px solid #555;
  }

  .gnav2 .nav > li > a {
    padding: 15px;
    text-align: left;
    background: #333;
    color: white;
  }
  .wrapper { flex-direction:column; }
  .side { display:none; }
  .content { width:100%; padding:15px; }
  .item img { width:80px; height:auto; }
  .nav { flex-direction:column; }
  .nav > li > a { background:#333; color:#fff; }
  .nav li ul { position:static; display:none; border:none; }
  .nav li.open ul { display:block; }
  .nav li ul li a {
    background: #444;
    color: white;
    padding-left: 30px;
  }
 .side {
    display: none; 
  }
}
@media screen and (max-width: 992px) {
  .item {
    flex: 1 1 calc(50% - 40px);
    max-width: calc(50% - 40px);
  }
}

@media screen and (max-width: 600px) {
  .item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}