/* リセット＆基本設定 */
* { 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: left;
  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:black; border-top:0px solid black; border-bottom:0px solid black; height:100px;
}
.gnav2 .nav {
 list-style:none; display:flex; max-width:1000px; margin:0 auto;
  justify-content: center; /* ← ここが中央揃えのポイント！ */

}
.nav > li {
  position:relative; width: 12em;
}
.nav > li > a {
  display:block; padding:2em 2em; text-decoration:none;
  color:#fff; background:black;
}
.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; /* 画面下まで伸ばす */
}

.side {
  width: 20%;
  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;
}

.content {
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
  padding: 1em;
  background-color: #fff;
}
.prologue {
  margin-bottom:30px; word-break:break-word; overflow-wrap:break-word;
}

.item {
  width: 20em;
  padding: 0.5em;
  border: solid;
}

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

/* セクションなど */
.section {
  display: flex;
  margin-bottom:40px;
}

.category {
  background:#000; color:#fff; font-size:1.5rem; font-weight:bold;
  padding:10px; border-left:5px solid #333; margin-bottom:15px;
}
.subtitle {
  font-size:1.2rem; font-weight:bold; color:#4b0082;
}
.text { font-size:1rem; line-height:1.7; word-break:break-word; overflow-wrap:break-word; }

/* モバイル対応 */
@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;
  }
}
