/* ====================================
   全体のリセット & フォント
   ==================================== */
body {
  font-family: 'Noto Serif JP', '游明朝体', 'Yu Mincho',
               'ヒラギノ明朝 ProN W3', 'Hiragino Mincho ProN',
               'MS 明朝', serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
}
/* ====================================
   見出し
   ==================================== */
h2 {
  font-size: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Libre Baskerville', serif;
  margin: 40px 0;
  text-align: center;
  color: #44546a;
  font-weight: bold;
  letter-spacing: 2px;
  position: relative;
  padding: 0 10px;
}
h2::before,
h2::after {
 content: "";
  flex: 1; /* ← 横線の長さを自動調整 */
  height: 2px;
  background: #44546a;
  opacity: 0.6;
}
h2::before { left: 0; }
h2::after  { right: 0; }
@media (max-width: 750px) {
  h2::before,
  h2::after {
    display: none;
  }
}
h3 {
  text-align: center;
  margin: 0 0 1rem;
}

/* ====================================
   ヘッダー & ナビゲーション
   ==================================== */
header {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  text-align: center;
}
header .logo {
  max-width: 250px;
  height: auto;
  display: inline-block;
}
nav {
  background-color: #44546a;
  position: sticky;
  top: 0;           /* ここで画面上に固定される位置を指定 */
  z-index: 9999;
}
.nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}
.nav-list li { margin: 0 20px; }
.nav-list li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 18px;
}
.nav-list a:hover { text-decoration: underline; }

/* ====================================
   ハンバーガーメニュー
   ==================================== */
.hamburger-demo-menubox * { font-size: 16px; }
.hamburger-demo-menubox li { font-size: 14px; }
.input-hidden { display: none; }
.hamburger-demo-switch {
  cursor: pointer;
  position: fixed;
  right: 3%;
  top: 0;
  z-index: 9999;
  width: 4em;
  height: 4em;
}
#hamburger-demo1:checked ~ .hamburger-demo-switch {
  position: fixed;
}
.hamburger-switch-line1,
.hamburger-switch-line1:before,
.hamburger-switch-line1:after {
  width: 25px;
  height: 3px;
  background: #333;
  position: absolute;
  top: 50%;
  left: 50%;
  transition: .3s;
  content: "";
}
.hamburger-switch-line1 {
  transform: translate(-50%, -50%);
}
.hamburger-switch-line1:before { transform: translate(-50%, -300%); }
.hamburger-switch-line1:after  { transform: translate(-50%, 200%); }
#hamburger-demo1:checked ~ .hamburger-demo-switch .hamburger-switch-line1 {
  width: 0;
}
#hamburger-demo1:checked ~ .hamburger-demo-switch .hamburger-switch-line1:before {
  transform: rotate(45deg) translate(-40%, 325%);
}
#hamburger-demo1:checked ~ .hamburger-demo-switch .hamburger-switch-line1:after {
  transform: rotate(-45deg) translate(-40%, -325%);
}
.hamburger-demo-menuwrap {
  position: fixed;
  top: 0;
  left: 100%;
  width: 70%;
  height: 100%;
  background: #44546a;
  padding: 5em 3% 2em;
  z-index: 9998;
  transition: .3s;
  overflow-y: scroll;
}
.hamburger-demo-menulist {
  margin-right: 3%;
  padding-left: 5% !important;
  list-style: none;
}
.hamburger-demo-menulist li { margin: 20px 0; }
.hamburger-demo-menulist li a {
  text-decoration: none;
  color: #f5f5f5;
  display: block;
  font-size: 18px;
  padding: 10px;
}
#hamburger-demo1:checked ~ .hamburger-demo-menuwrap {
  left: 30%;
}
#hamburger-demo1:checked ~ .hamburger-demo-cover {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 9997;
  background: rgba(3,3,3,.5);
  display: block;
}
@media (min-width: 750px){
  .hamburger-demo-menubox { display: none; }
}
.hamburger { display: none; }


.slider {
  position: relative;
  max-width: 800px;   /* スライダーの横幅 */
  margin: 40px auto;
  overflow: hidden;    /* はみ出した部分は隠す */
  border-radius: 10px;
}

.slides {
  display: flex;
  width: auto;           /* 幅は自動 */
  animation: slide 6s infinite;
}

.slides img {
  width: 100%;           /* スライダー枠いっぱいに表示 */
  height: auto;          /* 縦は自動 → 元画像比率を維持 */
  flex: 0 0 100%;        /* 1枚ずつ枠いっぱいに */
}

/* 自動スライドアニメーション（2枚用） */
@keyframes slide {
  0%   { transform: translateX(0%); }
  45%  { transform: translateX(0%); }
  50%  { transform: translateX(-100%); }
  95%  { transform: translateX(-100%); }
  100% { transform: translateX(0%); }
}

.story-brewery {
  padding: 20px;
  background: #f7f7f7;
}

/* メイン画像スライド */
.main-visual {
  position: relative;
  text-align: center;
  padding: 10px;
}
.main-visual img {
  max-width: 90%;
  border-radius: 5px;
}
.main-visual button {
  background: none;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}
.main-visual .prev {
  left: 10px;
}
.main-visual .next {
  right: 10px;
}

/* STORY */
.story {
  padding: 20px;
}

.story-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.story-content img {
  max-width: 300px;
  margin: 10px;
}
.story-content .text {
   flex: 1;                  /* テキストが残り幅を使う */
  text-align: left;
  max-width: 500px;
  margin: 10px;
  font-size: 18px;
}
.story {
  padding: 60px 20px;       /* 上下左右に余白 */
}
.story-content {
  display: flex;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.story-content img {
  max-width: 50%;
  border-radius: 8px;
}

.story-content .text {
  max-width: 800px;
  margin: 0 auto;       /* ブロック自体を中央に配置 */
  text-align: left;     /* 文字は左揃え */
  font-size: 18px;
  line-height: 1.8;
}

.story-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 小さい画面では縦並びにして画像を先に表示 */
@media (max-width: 768px) {
  .story-content {
    flex-direction: column; /* 縦並び */
  }

  .story-content img {
    order: -1; /* 画像を先頭（文章の上）に */
    max-width: 100%; /* はみ出さないように */
    height: auto;
  }

  .story-content p {
    text-align: left; /* 中央寄せにすると見やすい */
  }
}
.new-item-content {
  display: flex;
  flex-wrap: wrap; /* スマホ対応で折り返し */
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.new-item-content img {
  max-width: 350px;
  height: auto;
}

.new-item-content .text {
  max-width: 400px;
  font-size: 18px;
}
/* NEW ITEM 横並び調整 */

.new-item-content img {
  max-width: 350px; /* 少し大きめ */
  margin-left: 0; /* 左寄せ強化 */
}

.new-item-content .text {
  max-width: 420px;
}

/* MOREボタン装飾 */
.more-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #44536a);
  border-radius: 25px;
  text-decoration: none;
  color: #f8f7f7;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  font-size: 16px;         /* テキストサイズを統一 */
  display: inline-block;   /* a タグでもボタンらしく見せる */
}
.more-btn::after {
  content: "→";
  position: absolute;
  right: 16px;
  opacity: 0;
  transition: all 0.3s ease;
}

.more-btn:hover {
  background: linear-gradient(135deg, #a2b5ff, #cbd4ff);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  padding-right: 36px; /* 矢印分スペース確保 */
}

.more-btn:hover::after {
  opacity: 1;
  right: 12px;
}

.more-line {
  display: flex;
  align-items: center;
  justify-content:center; /* 全体を右寄せ */
  gap: 30px; /* テキストとボタンの間隔 */
  margin-top: 10px;
}

.more-line .info-text {
  font-weight: bold;
  font-size: 0.95rem;
  color: #333;
  margin: 0;
}
/* スマホ時は縦並び */
@media (max-width: 600px) {
  .new-item-content {
    flex-direction: column;
    text-align: left;
    min-width: 100%;
  }
}

/* Instagram */
.insta-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.insta-gallery img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}
.instagram {
  text-align: center;
  padding: 20px;
}
.instagram p {
  font-weight: bold;
}

/* 画像ギャラリーを2列に */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 2列 */
  gap: 10px;
  max-width: 800px; /* 全体の幅を制限 */
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: contain; /* ← 切れないように調整 */
  border-radius: 5px;
  background-color: #fff; /* 白い余白を自然に見せる */

}

/* スマホでは1列に */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
/* フッター */
.site-footer {
  text-align: center;
  padding: 20px 0 40px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
}


.footer-line {
  border-top: 2px dashed #6b7280; /* グレーの点線 */
  width: 100%;
  margin-bottom: 10px;
}


.footer-text {
  margin: 10px 0;
}


.footer-icons {
  margin-top: 10px;
}


.footer-icons a {
  display: inline-block;
  margin: 0 10px;
}


.footer-icons img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  transition: opacity 0.3s;
}


.footer-icons img:hover {
  opacity: 0.7;
}
.sp-br {
  display: none; /* 通常は非表示 */
}

@media (max-width: 600px) {
  .sp-br {
    display: block; /* スマホでのみ改行 */
  }
}
/* =========================
   スライドショー
========================= */
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}

/* スライド画像（背景っぽく半透明に） */
.mySlide img {
  width: 100%;
  height: 700px;         /* スライド全体の高さを決める */
  object-fit: cover;     /* 枠に合わせてトリミング */
  object-position: center; /* 中央を基準にトリミング */
  opacity: 0.5;          /* うっすら表示（必要なら） */
}
/* ロゴを中央に固定配置 */
.overlay-image {
  position: absolute;
  top: 50%;       
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;    /* 前に出す */
}

.overlay-image img {
  width: 200px;   /* ロゴのサイズは調整可 */
  height: auto;
}
@keyframes fade {
  from {opacity: 0.4}
  to {opacity: 1}
}

/* 前後ボタン */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s;
  user-select: none;
  z-index: 20; /* ロゴよりさらに前にする */
}

.prev { left: 0; }
.next { right: 0; }

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.6);
}
.overlay-image img {
  width: 400px;
  height: auto;
  background: transparent; /* 背景を透過 */
  mix-blend-mode: multiply; /* 白を飛ばして背景に馴染ませる */
}
/* スマホ（768px以下）のとき */
@media screen and (max-width: 768px) {
  .mySlide img {
    height: 250px;       /* スマホ用の高さ */
  }
}
@media (max-width: 750px) {
  h2 {
    font-size: 50px;
    gap: 0.5em;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    padding: 0;
  }
}
@media (max-width: 1024px) {
  .overlay-image img {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .overlay-image img {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .overlay-image img {
    width: 150px;
  }
}
/* ▼ スマホ時はすべての画像を非表示にする */
@media (max-width: 600px) {
  .gallery img {
    display: none;
  }

  /* ▼ 3枚目と4枚目だけ再表示 */
  .gallery img:nth-child(3),
  .gallery img:nth-child(4) {
    display: block;
  }
}
@media (max-width: 768px) {
  .story-content {
    flex-direction: column;
    align-items: center;   /* ← これが重要 */
  }

  .story-content img {
    max-width: 100%;
    margin: 0 auto;
  }

  .story-content .text {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;       /* 左右の余白を均等に */
  }
}