@charset "utf-8";

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  color: #333;
  background: #f7f5f0;
  font-family: "メイリオ", Meiryo, sans-serif;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; border: 0; vertical-align: bottom; }
a { color: #333; }
button { font: inherit; }

#container, #container-main, .footer-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}
#header #logo { display: block; width: 100%; max-width: 1200px; }

#menu { display: flex; width: 100%; background: #C8BB9B; }
#menu li { flex: 1 1 0; min-width: 0; border-left: 1px solid #b8aa8d; }
#menu li.last { border-right: 1px solid #b8aa8d; }
#menu a {
  display: block;
  height: 70px;
  color: #fff;
  font-size: 12px;
  line-height: 70px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
#menu a:hover { color: #f6ff02; background: #C4AA70; }

#sp-menu, #menu-button, #menu-toggle { display: none; }

.gallery-box {
  padding: 28px 100px 36px;
  background: linear-gradient(180deg, #fff 0%, #faf8f4 100%);
}
.gallery-main { width: 1000px; max-width: 100%; margin: 0 auto; }
.gallery-hero {
  display: block;
  width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(76,62,44,.16);
}
.gallery-heading, .gallery-category-title {
  max-width: 820px;
  margin: 24px auto 28px;
  padding: 26px 32px;
  background: #fff;
  border: 1px solid #e5ded2;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(76,62,44,.08);
}
.gallery-heading span, .gallery-category-title span {
  display: block;
  color: #a58a60;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .2em;
}
.gallery-heading h1, .gallery-category-title h2 {
  margin: 5px 0 10px;
  color: #4d4338;
  font-size: 25px;
  font-weight: normal;
  letter-spacing: .07em;
}
.gallery-heading p, .gallery-category-title p { color: #6c6257; font-size: 14px; }

.category-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0 auto 26px;
}
.category-tabs button {
  min-height: 54px;
  padding: 10px 5px;
  color: #665848;
  background: #f3eee5;
  border: 1px solid #d9cfbf;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s ease;
}
.category-tabs button:hover,
.category-tabs button.active {
  color: #fff;
  background: #8b7355;
  border-color: #8b7355;
  transform: translateY(-2px);
}

.photo-gallery {
  padding: 22px;
  background: #fff;
  border: 1px solid #e4ddd1;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(76,62,44,.10);
}
.gallery-category-title {
  margin: 24px auto 0;
  padding-top: 22px;
  border-top: 1px solid #e8e0d4;
  box-shadow: none;
}
.main-photo-area {
  position: relative;
  width: 100%;
  height: 670px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px #eee7dc;
}
#main-photo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 60px;
  margin-top: -30px;
  color: #fff;
  background: rgba(72,60,48,.55);
  border: 0;
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
}
.gallery-arrow:hover { background: rgba(139,115,85,.9); }
.gallery-prev { left: 8px; border-radius: 0 8px 8px 0; }
.gallery-next { right: 8px; border-radius: 8px 0 0 8px; }
.photo-number {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 12px;
  color: #fff;
  background: rgba(72,60,48,.72);
  border-radius: 999px;
  font-size: 12px;
}
.gallery-controls { padding: 13px 0 8px; text-align: center; }
.gallery-controls button {
  padding: 8px 24px;
  color: #fff;
  background: #8b7355;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.gallery-controls button:hover { color: #f6ff02; background: #C4AA70; }
.thumbnail-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 5px;
  -webkit-overflow-scrolling: touch;
}
.thumbnail-list {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 100%;
  width: max-content;
}
.thumbnail-list button {
  flex: 0 0 auto;
  padding: 0;
  background: #fff;
  border: 2px solid #e2dbcf;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}
.thumbnail-list button:hover,
.thumbnail-list button.active { border-color: #C4AA70; transform: translateY(-2px); }
.thumbnail-list img {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: cover;
}

.addition-guide {
  margin: 28px auto 0;
  padding: 22px 26px;
  text-align: left;
  background: #fffaf1;
  border: 1px solid #dfd1b9;
  border-radius: 10px;
}
.addition-guide h2 { color: #6b5842; font-size: 18px; }
.addition-guide code {
  display: block;
  margin: 10px 0;
  padding: 10px 12px;
  overflow-x: auto;
  color: #5b4631;
  background: #f3eadc;
  border-radius: 6px;
  white-space: nowrap;
}

.useful-links {
  margin: 38px auto 0;
  padding: 22px;
  background: #fff;
  border: 1px solid #e4ddd1;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(76,62,44,.08);
  text-align: center;
}
.useful-title { display: block; width: 100%; margin: 0 auto 18px; border-radius: 7px; }
.useful-link-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; }
.useful-link-list a { display: inline-block; transition: .2s ease; }
.useful-link-list a:hover { transform: translateY(-3px); opacity: .88; }

.pagetop { margin: 34px auto 24px; text-align: center; }
.pagetop a {
  display: inline-block;
  padding: 11px 30px;
  color: #fff;
  background: #8b7355;
  border-radius: 999px;
  text-decoration: none;
}
.pagetop a::before { content: "▲"; margin-right: 8px; font-size: 10px; }
.pagetop a:hover { color: #f6ff02; background: #C4AA70; }

#footer { width: 100%; background: #C8BB9B; text-align: center; }
.footer-inner { padding-bottom: 12px; text-align: center; }
#footermenu { padding: 10px 0 0; text-align: center; }
#footermenu li { display: inline-block; padding: 0 5px; }
#footermenu a { color: #333; }
.copyright { padding: 8px 0 0; line-height: 1.5; }


/* =========================================================
   メイン写真・サムネイルの上品な切替演出
   フェード + 微ズーム + 光のライン
========================================================= */
.main-photo-area::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -42%;
  z-index: 1;
  width: 28%;
  height: 140%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.10) 35%,
    rgba(255,255,255,.62) 50%,
    rgba(255,255,255,.10) 65%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-15deg);
}
.main-photo-area.shine-active::after {
  animation: galleryShine .62s ease-out;
}
#main-photo {
  opacity: 1;
  transform: scale(1);
  transition: opacity .28s ease, transform .48s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
#main-photo.is-changing {
  opacity: 0;
  transform: scale(.985);
}
@keyframes galleryShine {
  0%   { left: -42%; opacity: 0; }
  20%  { opacity: .75; }
  100% { left: 118%; opacity: 0; }
}

.thumbnail-list button {
  position: relative;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .22s ease;
  opacity: .78;
}
.thumbnail-list button::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: #C4AA70;
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .22s ease, transform .22s ease;
}
.thumbnail-list button:hover {
  opacity: 1;
  box-shadow: 0 5px 13px rgba(95,74,50,.14);
}
.thumbnail-list button.active {
  opacity: 1;
  border-color: #C4AA70;
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 6px 16px rgba(139,115,85,.24);
}
.thumbnail-list button.active::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  #main-photo,
  .thumbnail-list button,
  .thumbnail-list button::after {
    transition: none !important;
  }
  .main-photo-area.shine-active::after {
    animation: none !important;
  }
}

@media screen and (max-width: 900px) {
  html, body { width: 100%; overflow-x: hidden; }
  #container, #container-main, .footer-inner { width: 100%; }
  #menu, #footermenu { display: none !important; }
  #menu-button {
    display: block;
    width: 100%;
    padding: 12px 15px;
    color: #fff;
    background: #C8BB9B;
    border-top: 1px solid #b8aa8d;
    border-bottom: 1px solid #b8aa8d;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
  }
  #menu-toggle:checked ~ #sp-menu { display: block; }
  #sp-menu { width: 100%; background: #C8BB9B; }
  #sp-menu a { display: block; padding: 14px; color: #fff; text-align: center; text-decoration: none; }
  .gallery-box { padding: 14px 12px 26px; }
  .category-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main-photo-area { height: 67vw; min-height: 260px; max-height: 670px; }
  .gallery-heading, .gallery-category-title { padding: 20px 16px; }
  .gallery-heading p, .gallery-category-title p { text-align: left; font-size: 13px; }
}

@media screen and (max-width: 600px) {
  .category-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .photo-gallery { padding: 10px; }
  .main-photo-area { min-height: 230px; }
  .gallery-arrow { width: 38px; height: 52px; margin-top: -26px; font-size: 32px; }
  .thumbnail-list img { width: 58px; height: 44px; }
  .addition-guide { padding: 18px 14px; }
  .useful-links { padding: 16px 10px; }
}

/* =========================================================
   ギャラリー下部：カテゴリー移動メニュー
========================================================= */
.category-guide {
  position: relative;
  margin: 34px auto 0;
  padding: 30px 28px 28px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,242,232,.96));
  border: 1px solid #ded2bd;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(76,62,44,.08);
}
.category-guide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 86px;
  height: 3px;
  background: #C4AA70;
  transform: translateX(-50%);
}
.category-guide-heading {
  margin: 0 auto 20px;
}
.guide-label {
  display: block;
  margin-bottom: 5px;
  color: #aa8d58;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .18em;
}
.category-guide h2 {
  margin: 0 0 7px;
  color: #5f4e3c;
  font-size: 22px;
  font-weight: normal;
}
.category-guide p {
  margin: 0;
  color: #6d665e;
  font-size: 13px;
}
.guide-category-menu {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.guide-category-menu button {
  min-height: 46px;
  padding: 9px 7px;
  color: #5a4a39;
  background: #fff;
  border: 1px solid #d8ccb7;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(76,62,44,.05);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.guide-category-menu button:hover,
.guide-category-menu button.active {
  color: #fff;
  background: #8b7355;
  border-color: #8b7355;
  transform: translateY(-2px);
}

@media screen and (max-width: 900px) {
  .guide-category-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media screen and (max-width: 600px) {
  .category-guide { padding: 25px 14px 20px; }
  .category-guide h2 { font-size: 19px; }
  .guide-category-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .guide-category-menu button { min-height: 44px; font-size: 12px; }
}
