/* --- Base & Typography --- */
:root {
  --font-sans: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif: "Shippori Mincho", "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --bg: #F9F8F6;
  --text: #3d3d3d;
  --brand-main: #4A6A5A;
  --brand-accent: #A88B74;
  --surface: #FFFFFF;
  --border: #EAE6E1;
  --light-gray: #f7f7f7;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
  --radius-md: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-serif);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  padding-top: 70px; /* Header height */
}

a {
  color: var(--brand-main);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Layout & Containers --- */
.container {
  max-width: 1200px;
  width: 92%;
  margin: 0 auto;
}

main section {
  padding-block: 4rem;
  /* 固定ヘッダー分のアンカー位置補正（表示内容は変えず、スクロール位置のみ調整） */
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  main section {
    padding-block: 3rem;
    scroll-margin-top: 70px;
  }

  /* モバイルで改行用のクラス */
  .br-mobile {
    display: block;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(249, 248, 246, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  height: 36px;
  width: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.shop-name {
  font-size: 1.1rem;
  font-weight: normal;
  font-family: var(--font-serif);
  white-space: nowrap;
}

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.global-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.global-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--brand-main);
  transition: width 0.4s ease;
}

.global-nav a:hover {
  color: var(--brand-main);
  text-decoration: none;
}

.global-nav a:hover::after {
  width: 100%;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.sns-icons {
  display: flex;
  gap: 1rem;
}

.sns-icons a img {
  height: 24px;
  width: 24px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sns-icons a:hover img {
  opacity: 1;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  flex-direction: column;
  justify-content: space-around;
  background: none; border: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Main Visual --- */
.main-visual {
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Changed to flex-end */
  margin-bottom: 0;
  padding: 0;
  isolation: isolate;
}

.main-visual img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.9);
}

.main-visual-text {
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  writing-mode: vertical-rl; /* Vertical text */
  margin-right: 15%; /* Changed to margin-right */
  transform: translateY(-5%); /* Fine-tuning position */
}

.main-visual-text p {
  font-size: 1.1rem;
  margin-left: 1rem; /* Was margin-bottom */
}

.main-visual-text h1 {
  font-size: 3rem;
  font-weight: normal;
  letter-spacing: 0.2em; /* Increased spacing for vertical */
}

/* カレーページ：ヒーロー文字を画像内に収める */
.main-visual--curry .main-visual-text {
  max-height: 85%;
  margin-right: 12%;
}
.main-visual--curry .main-visual-text h1 {
  font-size: clamp(1.25rem, 4.5vw, 2.25rem);
  letter-spacing: 0.15em;
}

@media (max-width: 768px) {
  .main-visual--curry .main-visual-text h1 {
    font-size: clamp(1rem, 5vw, 1.75rem);
  }
}

/* --- Section Titles --- */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 1.6rem;
  font-weight: normal;
  color: var(--brand-main);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 0.75rem;
  color: var(--brand-accent);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subsection-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--brand-main);
    margin: 4rem 0 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.subsection-title-small {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-accent);
    margin: 3rem 0 1.5rem;
    text-align: center;
}

.section-text {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-link-text {
    margin-top: 4rem;
}

/* --- News & Instagram --- */
.news-instagram-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* お知らせのみのページも他セクションと同じ幅（1列） */
.news-instagram-container:has(.news-list-section:only-child) {
    grid-template-columns: 1fr;
}

.calendar-section, .news-list-section {
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--surface);
}

.calendar-section h3, .news-list-section h3 {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.2rem;
    color: var(--text);
    font-weight: 500;
    opacity: 0.7;
}

.calendar-section img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.news-instagram-container {
    align-items: stretch; /* 高さを揃える */
}

.calendar-section, .news-list-section {
    display: flex;
    flex-direction: column;
}

.calendar-section img {
    flex-grow: 1;
    object-fit: contain;
    max-height: 450px; /* 高さを制限 */
}

/* Instagram：1投稿1枠 × 2枠が並列（PC）・スマホは縦1列 */
.instagram-embed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    margin-bottom: 1rem;
}

.instagram-embed-grid .instagram-latest-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
}

/* 1つ目を右、2つ目を左に表示（場所を逆に） */
.instagram-embed-grid .instagram-latest-wrap:first-child {
    order: 2;
}
.instagram-embed-grid .instagram-latest-wrap:last-child {
    order: 1;
}

@media (max-width: 768px) {
    .instagram-embed-grid {
        grid-template-columns: 1fr;
    }
    .instagram-embed-grid .instagram-latest-wrap:first-child,
    .instagram-embed-grid .instagram-latest-wrap:last-child {
        order: unset;
    }
}

/* カレー・バー：PCでインスタ枠を狭くして圧迫感を軽減 */
@media (min-width: 769px) {
    .news-instagram.instagram-embed-narrow .news-instagram-container {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
    .news-instagram.instagram-embed-narrow .instagram-latest-wrap .instagram-embed-iframe,
    .news-instagram.instagram-embed-narrow .instagram-latest-wrap iframe {
        height: 520px !important;
        max-height: 55vh !important;
        min-height: 380px !important;
    }
}

/* 最新投稿（Instagram）ブロック - 1枠1投稿、PC一画面に収まるサイズ */
.instagram-latest-wrap {
    width: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

/* Instagram埋め込みiframe（キャプションまで見える高さ） */
.instagram-latest-wrap .instagram-embed-iframe,
.instagram-latest-wrap iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 680px !important;
    max-height: 70vh !important;
    min-height: 480px !important;
    border: none;
    border-radius: var(--radius-md);
}

.instagram-latest-link {
    text-align: center;
    margin-top: 0.75rem;
}

.instagram-latest-link a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--brand-main);
    color: white;
    border-radius: var(--radius-md);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.instagram-latest-link a:hover {
    background: var(--brand-accent);
    text-decoration: none;
}

/* ボタンじゃない・右寄せのテキストリンク（最新情報はInstagramをご覧ください） */
.instagram-latest-link--text {
    text-align: right;
    margin-top: 1rem;
}

.instagram-latest-link--text a {
    display: inline;
    padding: 0;
    background: none;
    color: var(--brand-main);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.instagram-latest-link--text a:hover {
    background: none;
    color: var(--brand-accent);
    text-decoration: underline;
}

.news-list-heading {
    margin-top: 1.5rem;
    margin-bottom: 1.2rem;
}

/* --- News List (inside News Section) --- */
.news-list-content ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

.news-list-content li {
    border-bottom: 1px solid var(--border);
}

.news-list-content li:first-child {
    border-top: 1px solid var(--border);
}

.news-list-content li a {
    display: block;
    padding: 1rem;
    color: var(--text);
    transition: background-color 0.3s;
}

.news-list-content li a:hover {
    background-color: #f7f7f7;
    text-decoration: none;
}

.more-link {
    text-align: right;
    margin-top: 1.5rem;
}

/* --- Event Info --- */
.event-info .swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ギャラリー共通：ページネーションは下で統一 */

.event-info-content {
    text-align: center;
    margin-top: 3rem;
}

.event-info-content.instagram-latest-link--text {
    text-align: center;
}

/* --- 写真と文字セクション（お店について）幅を揃えて狭く --- */
#store-concept .container {
  max-width: 960px;
}

/* ニコ酒店：最新情報・お店について・今月の新商品の幅を揃える */
.content-narrow .container {
  max-width: 960px;
}

/* --- Store Concept --- */
.store-concept-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.store-concept-text {
  max-width: 500px;
  justify-self: start;
  text-align: left;
}

.store-concept-text h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--brand-main);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.store-concept-text p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

/* バー：写真より文字がはみ出さないよう本文サイズは従来どおり */
.store-concept--bar .store-concept-text h3 {
  font-size: 1.35rem;
}
.store-concept--bar .store-concept-text p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.store-concept-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* --- Products --- */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.product-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--brand-main);
  line-height: 1.4;
}

.product-card .tea-description {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  min-height: 40px;
  line-height: 1.5;
}

.product-card .tea-price {
  font-weight: bold;
  color: var(--brand-accent);
  font-size: 0.85rem;
}

/* --- Featured Products Container (2カラム) --- */
.featured-product-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.featured-product-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.featured-product-text {
  max-width: 500px;
  justify-self: end;
}

.featured-product-text h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--brand-main);
}

.featured-product-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.product-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--brand-main);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
  margin-top: 1rem;
}

.product-button:hover {
  background: var(--brand-accent);
}

.btn-see-more {
    display: inline-block;
    background-color: var(--brand-main);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-see-more:hover {
    background-color: #3a5a4a;
    text-decoration: none;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-content: start;
}

/* 季節のおすすめ：カード下の文字エリアを適切な幅に */
.recommendations-grid .product-card h4,
.recommendations-grid .product-card .tea-description {
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
}
.recommendations-grid .product-card .tea-description {
    min-height: 0;
    font-size: 0.75rem;
    line-height: 1.45;
}

/* Tea Gallery - 5 columns */
.tea-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

/* 薬膳茶：季節のおすすめと同じ割合で高さ・幅を揃える */
.tea-gallery-grid .product-card h4,
.tea-gallery-grid .product-card .tea-description {
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
}
.tea-gallery-grid .product-card .tea-description {
    min-height: 0;
    font-size: 0.75rem;
    line-height: 1.45;
}



/* Tea Grid - 5 columns */
.tea-grid-five {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

/* レスポンシブ調整 */
@media (max-width: 992px) {
    .tea-grid-five {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 5つ目を中央配置 */
    .tea-grid-five .product-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Tea Grid Specific Styles */
.tea-grid-five .product-card {
  padding: 0.8rem;
}

.tea-grid-five .product-card img {
  aspect-ratio: 1 / 1;
  margin-bottom: 0.6rem;
}

.tea-grid-five .product-card h4 {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.tea-grid-five .product-card .tea-description {
  font-size: 0.75rem;
  min-height: 0;
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- Contact --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4rem;
  border-radius: var(--radius-md);
}

.contact-info p {
  margin-bottom: 1.5rem;
}

.contact-info .sns-icons {
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: var(--radius-md);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
  background-color: #F1EEEA;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.85rem;
  color: #888;
  font-family: var(--font-sans);
}

.footer-sns-icons {
    justify-content: center;
    margin-bottom: 2rem;
}

footer .legal-notice {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 1rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .store-concept-container, .contact-container, .product-featured {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .store-concept-text {
    justify-self: center;
    text-align: center;
    order: 2;
    max-width: 100%;
    padding: 0 0.25rem;
  }
  .store-concept-image {
    order: 1;
  }
  .contact-container {
    padding: 2.5rem;
  }
  .contact-info {
    text-align: center;
  }
  .contact-info .sns-icons {
    justify-content: center;
  }
  .recommendations-grid {
    grid-template-columns: repeat(2, 1fr); /* 992px以下で2列 */
  }
  .tea-gallery-grid {
    grid-template-columns: repeat(3, 1fr); /* 992px以下で3列 */
  }
  .tea-layout-container {
    grid-template-columns: repeat(2, 1fr); /* 992px以下で2列 */
  }
}

/* スマホ：お店についての文字を読みやすく（変な折り返しを防ぐ） */
@media (max-width: 768px) {
  .store-concept-text {
    text-align: left;
    padding: 0 0.5rem;
    max-width: 92%;
  }
  .store-concept-text h3 {
    font-size: 1.35rem;
  }
  .store-concept-text p {
    font-size: 1rem;
    line-height: 1.9;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px; /* Mobile header height */
  }
  header {
    height: 60px;
  }
  .logo {
    gap: 8px; /* Adjust gap for mobile */
  }
  .logo img {
    height: 32px;
  }
  .shop-name {
    font-size: 1.1rem;
  }
  .right-section {
    gap: 1rem; /* Adjust gap for mobile */
    /* Reverted align-items to default center */
  }
  .sns-icons {
    transform: translateY(1px); /* Fine-tune vertical alignment */
  }
  .sns-icons a img {
    height: 22px; /* Adjust icon size for mobile */
    width: 22px;
  }
  .global-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--bg);
    flex-direction: column;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
  }
  .global-nav.is-open {
    display: flex;
  }
  .global-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .menu-toggle {
    display: flex;
  }
  /* スマホ：ヒーロー高さを抑えてコンテンツを早く見せる（業界傾向に合わせる） */
  .main-visual {
    height: 45vh;
    min-height: 240px;
  }

  .main-visual-text {
    margin-right: 10%;
  }

  .main-visual-text h1 {
    font-size: 2.2rem;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
  /* Product intro text a bit smaller on mobile for better fit */
  #product .section-text {
    font-size: 0.95rem;
  }
  .news-instagram-container,
  .product-list-display {
      grid-template-columns: 1fr;
  }
  .product-list-display li a {
      flex-direction: column;
      text-align: center;
  }
  .fullscreen-pc { display: none; }
  .fullscreen-mobile { display: block; }

  /* New responsive styles */
  .featured-product-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .featured-product-text {
    justify-self: center;
    text-align: center;
    order: 2;
  }

  .featured-product-image {
    order: 1;
  }
      .tea-layout-container {
        grid-template-columns: 1fr; /* 768px以下で1列 */
      }

  

  

  

  
}

@media (max-width: 480px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tea-gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホは2列で縦に並ぶ */
        gap: 1rem;
    }
}

/* --- Product Slider（PC・スマホとも画像の下に文字） --- */
.product-slider-section .swiper-slide {
    overflow: hidden;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
}

.product-slider-section .swiper-slide img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-slider-section .swiper-slide:hover img {
    transform: scale(1.05);
}

.product-slider-section .slide-text {
    position: static;
    background: none;
    color: var(--text);
    text-shadow: none;
    padding: 1rem 0.5rem;
    min-height: 5em; /* 説明2行分の高さを確保 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-slider-section .slide-text h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}
/* AKA-ONI の前だけ小さくして1行に収める */
.product-slider-section .slide-text h3 .slide-title-prefix {
    font-size: 0.78em;
}

.product-slider-section .slide-text p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* テキストのみスライド（写真なし・黒背景） */
.product-slider-section .swiper-slide.text-only-slide {
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-slider-section .swiper-slide.text-only-slide .slide-text {
    position: static;
    background: none;
    text-align: center;
    padding: 1.5rem;
    width: 100%;
}
.product-slider-section .swiper-slide.text-only-slide .slide-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.product-slider-section .swiper-slide.text-only-slide .slide-text p {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Mobile: Separate image and text */
@media (max-width: 768px) {
    .product-slider-section .swiper-slide {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
    }

    /* 画像のみのギャラリー（バー等）：スマホで2枚だけきちんと並ぶデザイン */
    .product-slider-section .product-swiper .swiper-slide:not(:has(.slide-text)),
    .event-info .event-swiper .swiper-slide {
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: var(--radius-md);
    }
    .product-slider-section .product-swiper .swiper-slide:not(:has(.slide-text)) img,
    .event-info .event-swiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-slider-section .swiper-slide img {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
    }

    .product-slider-section .slide-text {
        position: static;
        background: none;
        color: var(--text);
        text-shadow: none;
        padding: 1rem 0.5rem;
        min-height: 5em; /* 説明2行分 */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .product-slider-section .slide-text h3 {
        font-size: 1rem;
    }

    .product-slider-section .slide-text p {
        font-size: 0.85rem;
    }

    /* スマホ：2枚だけ見えるようにはみ出しを厳密にクリップ（モダンな見せ方） */
    .product-slider-section .swiper,
    .event-info .swiper {
        overflow: hidden;
    }

    /* スマホ全表示グリッド（data-mobile-grid が付いたセクション） */
    [data-mobile-grid] .swiper {
        overflow: visible !important;
        padding: 0 !important;
    }
    [data-mobile-grid] .swiper-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        transform: none !important;
        gap: 12px;
    }
    [data-mobile-grid] .swiper-slide {
        width: calc(50% - 6px) !important;
        margin: 0 !important;
        flex-shrink: 0;
    }
    [data-mobile-grid] .swiper-slide-duplicate {
        display: none !important;
    }
    [data-mobile-grid] .swiper-pagination,
    [data-mobile-grid] .swiper-button-prev,
    [data-mobile-grid] .swiper-button-next {
        display: none !important;
    }

    /* テキストのみスライド：スマホ */
    [data-mobile-grid] .swiper-slide.text-only-slide {
        aspect-ratio: 1 / 1;
        background: #111;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    [data-mobile-grid] .swiper-slide.text-only-slide .slide-text {
        position: static;
        background: none;
        color: #fff;
        text-shadow: none;
        min-height: 0;
        padding: 1rem;
        text-align: center;
    }
}

/* --- ギャラリー共通：ページネーション（中央寄せ・約4つ・最後ぼかし）--- */
/* Swiperデフォルトを上書きして確実に中央寄せ */
.product-slider-section .swiper-pagination,
.event-info .swiper-pagination,
.product-slider-section .swiper .swiper-pagination,
.event-info .swiper .swiper-pagination {
    position: static !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 1.5rem;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem;
    font-size: 0; /* dynamic時も隙間を消さないよう gap に任せる */
}

.product-slider-section .swiper-pagination-bullet-active,
.event-info .swiper-pagination-bullet-active {
    background-color: var(--brand-main);
}

/* おすすめ商品のページネーションをイベントと同じデザインに統一 */
.product-slider-section .swiper-pagination-bullet,
.event-info .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--border);
    opacity: 1;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.product-slider-section .swiper-pagination-bullet:hover,
.event-info .swiper-pagination-bullet:hover {
    background-color: var(--brand-accent);
}
.product-slider-section .swiper-pagination-bullet-active,
.event-info .swiper-pagination-bullet-active {
    background-color: var(--brand-main);
    transform: scale(1.2);
}
.product-slider-section .swiper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next,
.product-slider-section .swiper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev,
.event-info .swiper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next,
.event-info .swiper .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
    opacity: 0.5 !important;
    filter: blur(1px);
}

/* --- Tea Tag --- */
.tea-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: var(--brand-accent);
    color: white;
    font-family: var(--font-sans);
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* --- Swiper --- */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.swiper-slide-active {
    z-index: 2;
}
/* 半端に見える次の・前のスライドは背面に（気持ち悪くならない） */
.swiper-slide-next,
.swiper-slide-prev {
    z-index: 0;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--border);
    opacity: 1;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.swiper-pagination-bullet:hover {
    background-color: var(--brand-accent);
}

.swiper-pagination-bullet-active {
    background-color: var(--brand-main);
    transform: scale(1.2);
}

/* いっぱいある時：小さい丸（続きのサイン）をぼかして「続きあり」感（dynamicMainBullets: 4） */
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next,
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
    opacity: 0.5 !important;
    filter: blur(1px);
}

/* --- Mobile Nav --- */
.global-nav {
    /* ... existing styles ... */
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.global-nav.is-open {
    /* ... existing styles ... */
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* --- Body Scroll Lock --- */
body.no-scroll {
    overflow: hidden;
}

/* --- Simple Page --- */
body.simple-page {
    padding-top: 60px;
}

/* --- Minimal Header for Simple Pages --- */
.minimal-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(249, 248, 246, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.minimal-header-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding: 0 5%;
}

.minimal-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.home-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text);
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.home-link:hover {
    opacity: 1;
    text-decoration: none;
}

.instagram-link {
    display: flex;
    align-items: center;
}

.instagram-link img {
    height: 24px;
    width: 24px;
}

/* --- PC Navigation --- */
.pc-nav {
    display: flex;
    gap: 1.5rem;
}

.pc-nav a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.pc-nav a:hover {
    opacity: 1;
}

/* --- Header Icons Group --- */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Hamburger Menu Button --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

.hamburger-menu.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Menu Overlay --- */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.is-open {
    display: block;
    opacity: 1;
}

/* --- Mobile Navigation --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    right: -300px;
    width: 280px;
    height: calc(100vh - 60px);
    background-color: var(--surface);
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.is-open {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 2rem 1.5rem;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 1.5rem;
}

.mobile-nav a {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-decoration: none;
    color: var(--text);
    display: block;
    padding: 0.5rem 0;
    transition: opacity 0.3s ease;
}

.mobile-nav a:hover {
    opacity: 0.7;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    /* スマホでも minimal-header の HOME は表示（トップへの導線） */
    .minimal-header .home-link {
        display: inline-block;
    }
    /* メインサイトヘッダーの HOME は非表示のまま */
    .header:not(.minimal-header) .home-link {
        display: none;
    }

    .pc-nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .header-icons {
        gap: 0.75rem;
    }

    .instagram-link img {
        height: 20px;
        width: 20px;
    }

    /* Tea gallery - スマホは2列で縦並び（横一列にならないように） */
    .tea-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.instagram-link:hover img {
    opacity: 1;
}

/* --- Portal Page --- */
.portal-page {
  padding-top: 0; /* Override store page padding */
  background-color: var(--bg);
}

.portal-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 2rem;
  text-align: center;
}

.portal-header {
  margin-bottom: 3rem;
}

.portal-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.portal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--brand-main);
  font-weight: normal;
  letter-spacing: 0.1em;
}

.portal-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
  margin-top: 0.5rem;
}

.store-selection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
}

.store-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.store-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.store-image-wrapper {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
}

.store-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.store-image-wrapper:hover img {
  transform: scale(1.05);
}

.store-info {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.store-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brand-main);
  margin-bottom: 0.5rem;
}

.store-description {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 60px;
  flex: 1;
}

.store-instagram-icon {
  display: inline-block;
  margin-top: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.store-instagram-icon:hover {
  opacity: 1;
  text-decoration: none;
}

.store-instagram-icon img {
  width: 24px;
  height: 24px;
}

@media (max-width: 992px) {
  .store-selection {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  /* 3つ目のカードを中央配置 */
  .store-selection .store-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .store-selection {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  /* スマホでは中央配置を解除 */
  .store-selection .store-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
    margin: 0;
  }
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.gallery-overlay p {
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .gallery-overlay h3 {
        font-size: 0.8rem;
    }
    
    .gallery-overlay p {
        font-size: 0.7rem;
    }
}

/* --- Swiper Navigation Arrows（写真に被らないよう外側に配置）--- */
.product-slider-section .swiper,
.event-info .swiper {
    padding: 0 44px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--text);
    width: 36px;
    height: 36px;
    background: var(--surface);
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: background 0.2s ease, color 0.2s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--brand-main);
    color: white;
    border-color: var(--brand-main);
}

/* スマホでも矢印を表示（ギャラリー操作の導線） */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 12px;
    }
}