/* 共通設定 */
body {
  font-family: "Hiragino Mincho ProN", "游明朝", serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

h1 {
  font-size: 28px;
  margin: 20px 0;
  color: #000;
  text-align: center;
}

p {
  margin: 0 0 10px;
}

a {
  color: #0057aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ヘッダー */
header.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: none;
}

header.main-header img {
  height: 60px;
}

header.main-header h1 {
  margin: 0;
  font-size: 26px;
  color: #000;
  text-align: left;
}

header.main-header p {
  font-size: 14px;
  color: #000;
}

/* ナビゲーション */
nav.vertical-menu {
  position: absolute;
  top: 20px;     /* 画面上から20px */
  right: 20px;   /* 画面右から20px */
  width: 40px;   /* 幅は狭く */
  writing-mode: vertical-rl; /* 縦書き(右から左へ縦に文字) */
  text-orientation: mixed;   /* 漢字や英数字を正常に縦表示 */
  background: none;
  user-select: none;
}

nav.vertical-menu ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

nav.vertical-menu ul li {
  margin-bottom: 1.2em;  /* 縦並びの間隔 */
}

nav.vertical-menu ul li a {
  display: inline-block; /* 縦書きで横幅を使わずテキストだけを表示 */
  padding: 12px 12px;
  color: #000000;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background 0.3s;
  white-space: nowrap;
  user-select: text;
  font-size: 18px; /* 元が 14px〜16px程度なら18pxに拡大 */
  line-height: 1.8; /* ← 行間も調整（任意） */
}

nav.vertical-menu ul li a:hover {
  background: #dbe9ff;
}

ul.info-sublist {
  list-style: none;
  padding-left: 20px;
  margin-top: 8px;
}

/* スライドショー */
.slideshow-container {
  max-width: 1000px;
  height: 500px;
  margin: 150px auto 30px auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slideshow-container img.slide {
  width: 100%;
  height: 500px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow-container img.slide.active {
  opacity: 1;
  position: relative;
}

/* 投稿一覧 */
ul.post-list {
  list-style: none;
  padding-left: 0;
  max-width: 1000px;
  margin: 0 auto 50px auto;
}

ul.post-list li {
  background: white;
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

ul.post-list li h2.title {
  margin: 0 0 10px;
  color: #004080;
  font-size: 20px;
}

ul.post-list li .date {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

ul.post-list li .body-text {
  white-space: pre-line;
  margin-bottom: 15px;
  line-height: 1.6;
}

ul.post-list li .images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

ul.post-list li .images img {
  width: calc(20% - 10px); /* 5列レイアウト */
  max-width: 160px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

ul.post-list li .images img:hover {
  transform: scale(1.05);
}

/* モーダル（画像拡大） */
#modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
#modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
#modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  z-index: 10000;
}
#modal-close:hover {
  color: #ffcc00;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  nav.vertical-menu {
    position: relative;
    width: 100%;
    margin-top: 20px;
    text-align: center;
    writing-mode: horizontal-tb; /* スマホは横書きに戻す */
  }
  nav.vertical-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  nav.vertical-menu ul li {
    margin: 5px;
  }

  .slideshow-container {
    height: 240px;
  }

  .slideshow-container img.slide {
    height: 240px;
  }

  ul.post-list li .images img {
    width: calc(33.33% - 10px); /* 横3列 */
  }

  header.main-header {
    flex-direction: column;
    text-align: center;
  }
  
  


 .footer-sns {
  margin: 15px 0;
  text-align: center;
 }

 .footer-sns a {
  display: inline-block;
  margin: 0 10px;
  transition: opacity 0.3s ease;
 }

 .footer-sns a img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  vertical-align: middle;
  object-fit: contain; /* 画像の縦横比を維持 */
}

 .footer-sns a:hover {
  opacity: 0.7;
 }


 .shop-photo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  }
}
