@charset "UTF-8";
/* CSS Document */

.body {
  font-family: "貂明朝";
}

#wrapper {
  max-width: 1280px;
  width: 100%;
  background-color: #ffffff;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 24px;
  color: #93278f;
  font-family: "游明朝体";
  letter-spacing: 0.25em;
  font-weight: 500;
}

h2 {
  font-size: 25px;
  margin-top: 50px;
  font-family: "游明朝体";
  font-weight: 100;
}

/* メインビジュアル */
.top {
  width: 100%;
  max-width: 1280px;
  height: 280px;
  position: relative;
  overflow: hidden;
}

.top-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1280px;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

.nav {
  text-align: center;
  margin: 0; /* ← 不要な余白を除去 */
  padding: 0;
}

.nav ul li {
  font-family: "FOT-UD明朝 Pr6N";
}

.menu {
  margin-top: 0;
  padding-bottom: 88px;
}

.main-menu a {
  color: #ffffff;
  text-decoration: none;
}

.main-menu li {
  display: inline-block;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.2em;
  font-family: "游明朝体";
}

.main-menu {
  position: relative; /* 最初は通常配置 */
  width: 100%;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  background-color: rgba(147, 39, 143, 0.4);
  transition: all 0.3s ease;
  z-index: 10;
}

/* スクロール後の固定スタイル */
.main-menu.fixed {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(147, 39, 143, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.main-menu li::after {
  content: "/";
  margin-left: 10px;
  margin-right: 10px;
  color: #ffffff;
}

.main-menu li:last-child::after {
  content: none;
}

.menu-toggle {
  display: none;
}

/* ハンバーガーアイコン */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 999;
}

/* ギャラリー */
.sp-br {
  display: none;
}

.gallery p {
  font-size: 18px;
  font-family: "游明朝体";
}

.gallery-list {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.gallery-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; /* ← 画像間にしっかり余白をつける */
  padding: 10px; /* ギャラリー全体の内側余白 */
}

.gallery-top img {
  width: 250px;
  height: auto;
  display: block;
  padding: 5px; /* 画像周囲に余白を追加 */
  background-color: #fff; /* カード風にするなら */
  box-sizing: border-box;
}

.gl-text a {
  color: #000000;
  text-decoration: none;
}

.gl-text a:hover {
  color: #989898;
}

/* ギャラリーポップアップ */
#g_popup1,
#g_popup2,
#g_popup3,
#g_popup4,
#g_popup5,
#g_popup6,
#g_popup7,
#g_popup8,
#g_popup9,
#g_popup10,
#g_popup11,
#g_popup12,
#g_popup13,
#g_popup14,
#g_popup15,
#g_popup16,
#g_popup17,
#g_popup18,
#g_popup19,
#g_popup20 {
  display: none;
}

.overlay {
  display: none;
}

#g_popup1:checked + .overlay,
#g_popup2:checked + .overlay,
#g_popup3:checked + .overlay,
#g_popup4:checked + .overlay,
#g_popup5:checked + .overlay,
#g_popup6:checked + .overlay,
#g_popup7:checked + .overlay,
#g_popup8:checked + .overlay,
#g_popup9:checked + .overlay,
#g_popup10:checked + .overlay,
#g_popup11:checked + .overlay,
#g_popup12:checked + .overlay,
#g_popup13:checked + .overlay,
#g_popup14:checked + .overlay,
#g_popup15:checked + .overlay,
#g_popup16:checked + .overlay,
#g_popup17:checked + .overlay,
#g_popup18:checked + .overlay,
#g_popup19:checked + .overlay,
#g_popup20:checked + .overlay {
  display: block;
  background-color: #00000070;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 999;
}

.gl-window {
  max-width: 600px;
  width: auto; /* ← 自動サイズ */
  max-height: 90vh; /* 画面高さの90%まで */
  height: auto; /* ← 自動調整 */
  background-color: #ffffff;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow-y: auto; /* ← 中身が多いときスクロール */
  padding: 20px; /* 余白を確保 */
  box-sizing: border-box;
}

.close {
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 40px;
  opacity: 0.5;
  color: #666666;
}

.popup-img {
  text-align: center;
}

.popup-img img {
  max-width: 100%;
  width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.gl-text {
  font-family: "游明朝体";
}

.gl-goods {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 16px;
  margin-left: 50px;
}

.gl-text td {
  font-size: 12px;
  padding-right: 50px;
  text-align: left;
  white-space: nowrap;
}

.gl-text table {
  padding-left: 50px;
}

.gl-text {
  text-align: left;
}

.gl-text li {
  font-size: 14px;
}

/* 横画像ポップアップ */
.gl-window_yoko {
  max-width: 800px;
  width: auto; /* ← 自動サイズ */
  max-height: 90vh;
  height: auto;
  background-color: #ffffff;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.popup-img_yoko {
  text-align: center;
}

.popup-img_yoko img {
  max-width: 100%;
  width: 700px;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* ページネーション */
.page {
  text-align: center;
  color: #93278f;
  margin-bottom: 260px;
  font-family: "游明朝体";
}

.page ul {
  display: inline-block;
  padding: 0;
  margin: 0;
  list-style: none;
}

.page li {
  display: inline-block;
  margin: 65px 5px;
  font-size: 24px;
}

.page a {
  text-decoration: none;
  color: #93278f;
}

.page a:hover {
  color: #989898;
}


/* フッター */
.company {
  margin-top: 275px;
  margin-bottom: 30px;
}

.kishis {
  padding-left: 0;
}

.kishis li {
  font-size: 12px;
  font-family: "游明朝体";
  list-style: none;
}

.copyrlight {
  font-family: "小塚ゴシック Pr6N";
}

/* トップボタン */
html {
  scroll-behavior: smooth;
}

.topbutton {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.topbutton.show {
  opacity: 1;
  visibility: visible;
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
    margin-top: 20px;
  }
	
  .sp-br {
    display: inline;
  }

  .logo-img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .menu {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .main-menu {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  padding: 20px;
  margin: 0;
  box-sizing: border-box;
  z-index: 998;
}
	
	/* スクロール後の固定スタイル */
   .main-menu.fixed {
  position: fixed;
  top: 0;
  left: 0; 
  right: 0;
  width: 100%;
  padding: 20px;
  margin: 0;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

  .menu-toggle:checked + .hamburger + nav .main-menu {
    display: flex;
  }

  .menu-toggle {
    position: absolute;
    top: 10px;
    /* ← ここを調整。数値を小さくすると上に寄る */
    right: 20px;
    z-index: 999;
    cursor: pointer;
  }

  .hamburger {
    display: block;
    color: #fff;
  }

  .main-menu li {
    margin-bottom: 15px;
    line-height: 1.2;
  }

  .main-menu li a {
    font-size: 15px;
	color: #000000;
  }

  .main-menu li::after {
    content: "" !important;
    /* ← 重要！強制的に上書き */
    margin: 0 !important;
    display: none !important;
  }

  .gallery p {
    font-size: 13px;
  }

  .sp-br {
    display: inline;
  }

  .info-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #ccc;
    padding: 0;
  }

  .info-list .date {
    margin-left: 0;
  }
	
  .gallery-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    margin: 0 auto;
  }	


  .gallery-top img {
    width: 150px;
  }

  .gallery-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-top label img {
    width: 150px;
    height: auto;
    max-width: 100%;
  }

  .gl-window {
    width: 90%;
    height: auto;
    max-height: 90vh;
  }

  .gl-window_yoko {
    width: 90%;
    height: auto;
    max-height: 90vh;
  }

  .popup-img img {
	width: 250px;
    margin-top: 10px;
  }

  .popup-img_yoko img {
    width: 300px;
    margin-top: 10px;
  }

  .close {
	width: 40px;
	height: 40px;
	background-color: #ffffff;
	border-radius: 50%;
	cursor:pointer;
	position: absolute;
	top: 5px;
	right: 5px;
	font-size: 25px;
	opacity: 0.5;
	color: #666666;
}

  .gl-goods {
	margin-top: 5px;
    margin-bottom: 5px;
    font-size: 13px;
    margin-left: 20px;
  }

  .gl-text td {
    font-size: 10px;
    padding-right: 20px;
    text-align: left;
    white-space: nowrap;
    padding-bottom: 3px;
  }

  .gl-text table {
    padding-left: 15px;
  }
	
  .page li {
    font-size: 18px;
  }
}

@media screen and (max-width: 1024px) and (min-width: 768px) { 
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
    margin-top: 20px;
  }
	
  .sp-br {
    display: inline;
  }

  .logo-img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .menu {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .main-menu {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  padding: 20px;
  margin: 0;
  box-sizing: border-box;
  z-index: 998;
}
	
	/* スクロール後の固定スタイル */
   .main-menu.fixed {
  position: fixed;
  top: 0;
  left: 0; 
  right: 0;
  width: 100%;
  padding: 20px;
  margin: 0;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

  .menu-toggle:checked + .hamburger + nav .main-menu {
    display: flex;
  }

  .menu-toggle {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 999;
    cursor: pointer;
  }

  .hamburger {
    display: block;
    color: #fff;
  }

  .main-menu li {
    margin-bottom: 15px;
    line-height: 1.2;
  }

  .main-menu li a {
    font-size: 15px;
	color: #000000;
  }

  .main-menu li::after {
    content: "" !important;
    margin: 0 !important;
    display: none !important;
  }

  .gallery p {
    font-size: 15px;
  }

  .sp-br {
    display: inline;
  }

  .info-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #ccc;
    padding: 0;
  }

  .info-list .date {
    margin-left: 0;
  }

  .gallery-top img {
    width: 100%; /* セル幅にフィット */
    height: auto; /* アスペクト比を維持 */
    display: block;
  }

  .gallery-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ← 4列維持 */
    gap: 12px; /* 画像間の余白を少し狭める */
    justify-content: center;
  }

  .popup-img img {
    max-width: 100%;
    width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .popup-img_yoko img {
    max-width: 100%;
    width: 700px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
	
  .page li {
    font-size: 18px;
  }

}