@charset "utf-8";

/* ==========================================================================
   ブロック①：全体的なルール（変数・リセット・ユーティリティ・ベース）
   ========================================================================== */

/* デザインシステム（変数定義）
   ========================================================================== */
:root {
  /* カラーパレット */
  --primary-color: #D97B02;
  --secondary-color: #DEB833;
  --text-color: #252110;
  --bg-light: #FFF9E7;
  --bg-dark: #4A4331;
  --white: #ffffff;

  /* フォント定義 */
  --font-base: 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-heading: 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-serif: 'Noto Serif JP', 'Georgia', 'Hiragino Mincho ProN', 'MS Mincho', serif;

  /* コンテナ幅 */
  --container-width: 1200px;
  --container-padding: 20px;

  /* 余白の共通定義 */
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;

  /* トランジション（アニメーション） */
  --transition-speed: 0.3s;
}

/* リセットCSS（基本的な初期設定）
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  /* PC用追従ヘッダー高さ分の余白 */
}

@media (max-width: 992px) {
  html {
    scroll-padding-top: 90px;
    /* モバイル用追従ヘッダー高さ分の余白 */
  }
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed), opacity var(--transition-speed);
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 共通レイアウト・ユーティリティ
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
}

.section-padding {
  padding-top: 200px;
  padding-bottom: var(--space-xl);
}

/* 各セクションの共通タイトル */
.section-title {
  text-align: center;
  font-size: 2rem;
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}


/* ==========================================================================
   ブロック②：PC用スタイル（各セクションの基本スタイル。メディアクエリなし）
   ========================================================================== */

/* ヘッダー＆ナビゲーション
   ========================================================================== */
.site-header {
  background-image: url('../img/nav.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
  height: 110px;
  /* 波型の下端まで綺麗に収める高さ */
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  /* ナビゲーションメニューとロゴは上側の白い部分に配置 */
}

.logo a {
  display: block;
}

.logo img {
  height: 48px;
  /* ヘッダー内に収まるようロゴ画像の高さを調整 */
  width: auto;
  display: block;
}

/* デスクトップ用ナビゲーションメニュー */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  /* メニューとお問い合わせボタンの間隔 */
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  /* 各メニュー項目の間隔 */
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-speed) ease;
}

/* ホバー時にスッと伸びる下線アニメーション */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-speed) ease;
}

.nav-link:hover {
  color: var(--primary-color);
  opacity: 1;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ヘッダーお問い合わせボタン（PC用） */
.btn-cta {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity var(--transition-speed) ease;
}

.btn-cta:hover {
  opacity: 0.9;
  color: var(--white);
  /* ホバー時の文字色を白で維持 */
}

/* お問い合わせ（CTA）ボタン */
.cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #E14819;
  color: #E14819;
  padding: 10px 10px 10px 40px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.4s ease;
  width: 400px;
  background-color: #fff;
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  gap: 50px;
}

.cta-button::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180%;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='385' height='185' viewBox='0 0 385 185' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M70.8166 27.6332C25.0415 5.33949 -5.3149 27.8842 -14.7712 41.9433C-16.5343 66.2955 -20.5778 185 -22.1165 185H138H381.3L455 -4C436.087 2.52743 387.011 17.9925 342.005 27.6332C285.748 39.684 262.668 10.3101 236.703 10.3101C210.738 10.3101 128.035 55.5003 70.8166 27.6332Z' fill='%23E18019'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.cta-button:hover {
  color: #fff;
  border-color: #E18019;
}

.cta-button:hover::before {
  transform: translateY(0px);
}

.cta-button:hover .arrow-icon {
  background-color: #fff;
  color: #E14819;
}

.arrow-icon {
  width: 50px;
  height: 50px;
  background-color: #FDF0E9;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #E14819;
  margin-left: 0;
  transition: all 0.4s ease;
}

.arrow-icon svg {
  width: 20px;
  height: auto;
  display: block;
}

/* モバイル用ハンバーガーボタン（基本非表示設定） */
.menu-trigger {
  display: none;
  position: relative;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.menu-trigger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.menu-trigger span:nth-child(1) {
  top: 0;
}

.menu-trigger span:nth-child(2) {
  top: 11px;
}

.menu-trigger span:nth-child(3) {
  top: 22px;
}

.menu-trigger.is-active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

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

.menu-trigger.is-active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ファーストビュー（FV / ヒーローセクション）
   ========================================================================== */
.hero {
  background-image: url('../img/fv_background_pc1920.webp');
  background-size: 1920px 930px;
  background-position: center bottom;
  background-repeat: no-repeat;
  position: relative;
  overflow: visible;
  height: 930px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 120px;
  z-index: 10;
  margin-top: -50px;
  /* 初期状態を透明にし、1.2秒かけてフェードインさせる */
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* ヒーロー画面アクティブ時のフェードイン表示 */
.hero.is-fade-in {
  opacity: 1;
}

.hero-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 100px;
  margin-left: auto;
  margin-right: auto;
  gap: 47px;
  /* 初期状態は透明かつ下方向に30pxずらす */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  transition-delay: 0.3s;
  /* 背景が表示されてから少し遅れて文字を動かす */
}

/* ヒーロー画面アクティブ時の文字要素などのフェードイン表示 */
.hero.is-fade-in .hero-container {
  opacity: 1;
  transform: translateY(0);
}

.hero-sub-title {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.3em;
  color: white;
}

.hero-sub-title .block {
  display: block;
}

/* サブタイトルセクション
   ========================================================================== */
.subtitle-container {
  display: flex;
  height: auto;
  padding: 80px 0 0 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 42px;
  align-self: stretch;
}

.subtitle-text {
  text-align: center;
}

.sec2-img {
  display: flex;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 40px 0;
  margin-top: 40px;
  overflow: hidden;
  pointer-events: none;
}

.sec2-img-track {
  display: flex;
  gap: 40px;
  width: max-content;
  align-items: flex-end;
  animation: loop-scroll 35s linear infinite;
}

@keyframes loop-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.sec2-img-track img {
  height: 180px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  will-change: transform;
}

/* ボトル画像の偶数・奇数の交互傾きアニメーション */
.sec2-img-track img:nth-child(odd) {
  animation: tilt-odd 4s steps(1) infinite;
}

.sec2-img-track img:nth-child(even) {
  animation: tilt-even 4s steps(1) infinite;
}

@keyframes tilt-odd {

  0%,
  100% {
    transform: rotate(-8deg) translateY(4px);
  }

  50% {
    transform: rotate(8deg) translateY(-8px);
  }
}

@keyframes tilt-even {

  0%,
  100% {
    transform: rotate(8deg) translateY(-8px);
  }

  50% {
    transform: rotate(-8deg) translateY(4px);
  }
}

/* ボトル無限スクロールのPC対応 (1200px以上) */
@media (min-width: 1200px) {
  .sec2-img {
    padding: 60px 0;
  }

  .sec2-img-track img {
    height: 250px;
  }
}

/* 選ばれる理由セクション
   ========================================================================== */
.reasons-section {
  background-color: var(--bg-dark);
  padding-top: 200px;
  padding-bottom: var(--space-xl);
}

.reasons-section .section-title::after {
  background-color: var(--bg-light);
}

.reasons-list {
  display: flex;
  width: 1000px;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.text-white {
  color: var(--white);
}

.reasons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.reason-card {
  display: flex;
  background-color: var(--white);
  position: relative;
  width: 100%;
  height: 210px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.reason-point {
  position: absolute;
  top: -10px;
  left: 40px;
  width: 294px;
  height: auto;
  z-index: 10;
}

.reason-point img {
  width: 87px;
}

.reason-content {
  flex: 1;
  padding: 0px 30px 30px 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reason-card-title {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 16px;
  line-height: 1.4;
}

.reason-card-title .highlight-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-color);
  padding: 0 4px;
  display: inline-block;
  transform: skewX(-5deg);
}

.reason-card-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555040;
}

.reason-image {
  width: 30%;
  flex-shrink: 0;
  overflow: hidden;
}

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

/* 取り扱い商品セクション
   ========================================================================== */
.products-section {
  background-color: var(--white);
  padding-top: 100px;
  padding-bottom: var(--space-xl);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.product-card {
  background-color: #CBBF9A;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.product-name {
  font-family: var(--font-base);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 12px;
}

.product-image-wrapper {
  background-color: var(--white);
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
}

.product-image-wrapper img {
  object-fit: contain;
  display: block;
  height: 170px;
}

/* 12枚目のロゴカード用の特殊スタイル */
.logo-card-image {
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.logo-card-text {
  text-align: center;
  color: var(--text-color);
}

.logo-matsui {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.logo-sub {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-top: 4px;
}

/* 商品説明テキスト */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}

.product-info-item {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0;
  display: flex;
  align-items: flex-start;
}

/* 商品詳細のラベル（「名称」など）の共通四角枠 */
.product-info-label {
  display: flex;
  align-items: center;
  padding: 2px 5px;
  margin-right: 8px;
  font-size: 0.75em;
  background-color: var(--bg-dark);
  color: var(--white);
  flex-shrink: 0;
  white-space: nowrap;
  height: 100%;
}

/* 商品詳細の値（右側のテキスト）のスタイル */
.product-info-value {
  flex: 1;
  text-align: left;
}

/* and more... 帯 */
.products-more-band {
  background-color: #A99E7D;
  color: var(--white);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

/* 注意書き */
.products-notes {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-note-item {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* CTAボタン */
.products-cta {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.products-cta .cta-button {
  margin: 0 auto;
  border-radius: 4px;
}

/* 商品詳細ポップアップモーダル（基本非表示設定）
   ========================================================================== */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.product-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
}

.product-modal-content {
  position: relative;
  z-index: 2010;
  max-width: 90%;
  display: flex;
  justify-content: center;
  animation: modal-zoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modal-zoom {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.product-modal-body .product-card.is-modal-view {
  width: 290px;
  height: auto;
  min-height: 380px;
  cursor: default;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background-color: #CBBF9A;
  padding: 16px;
  border-radius: 4px;
}

.product-card.is-modal-view .product-info {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}

.product-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 2020;
  transition: transform 0.2s ease, opacity 0.2s;
}

.product-modal-close:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* フッター
   ========================================================================== */
footer {
  background-color: var(--bg-dark);
  color: var(--white);
  text-align: center;
}

/* ビール工場セクション（タブ切り替え）
   ========================================================================== */
.brewery-section {
  background-color: var(--white);
  padding-bottom: var(--space-xl);
}

/* ビール工場セクションのコンテナを画面いっぱいに広げる */
.brewery-section .container {
  max-width: 100%;
}

@media (max-width: 768px) {
  .brewery-section .container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
}

/* タブボタンエリア */
.brewery-tab-wrapper {
  margin-top: 50px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
}

.brewery-drink-image {
  right: 50px;
  bottom: 0;
  height: auto;
  position: absolute;
}

/* ビール工場の連動画像表示制御 */
.brewery-drink-image img {
  display: none;
  max-width: 100%;
  height: auto;
}

.brewery-drink-image img.is-active {
  display: block;
}

.brewery-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0;
  position: relative;
  z-index: 11;
}

.brewery-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ccc;
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 18px 40px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-speed);
  margin-bottom: -2px;
  width: 280px;
}


/* タブのアクティブ状態 */
.brewery-tab-btn.is-active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  z-index: 2;
}

.brewery-tab-btn.is-active .tab-deco-img {
  transform: translateY(-5px) scale(1.05);
  /* アクティブ時に少し跳ね上げる */
}

/* タブボタンホバー */
.brewery-tab-btn:not(.is-active):hover {
  background-color: #e6e6e6;
  border-color: #bbb;
}

/* タブコンテンツエリア */
.brewery-tab-content {
  display: none;
  /* デフォルト非表示 */
}

.brewery-tab-content.is-active {
  display: block;
  animation: tab-fade-in 0.5s ease forwards;
}

@keyframes tab-fade-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヘッダーバナー */
.brewery-header-banner {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 0 12px 0 0;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 50px;
}

.brewery-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 70%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 60px;
  color: var(--white);
}

.banner-sub {
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.banner-main {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ビール工場・工場見学共通ボディ */
.brewery-body {
  padding: 0 10px;
  margin: 100px;
}

.brewery-intro-title {
  text-align: center;
  margin: 50px 0;
}

.brewery-intro-title h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.brewery-intro-title h4 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #666;
}

/* 左右交互ブロック */
.brewery-block {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

.brewery-block.reverse {
  flex-direction: row-reverse;
}

.brewery-block-text {
  flex: 1.2;
}

.brewery-block-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.brewery-block-text p:last-child {
  margin-bottom: 0;
}

.brewery-block-image {
  flex: 0.8;
  border-radius: 8px;
  overflow: hidden;
}

.brewery-block-image img {
  width: 100%;
  display: block;
}

/* PC表示（769px以上）時のビール工場タブコンテンツの特別レイアウト */
@media (min-width: 769px) {
  #tab-brewery .brewery-block {
    position: relative;
    display: block;
    margin-bottom: 80px;
  }

  #tab-brewery .brewery-block-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }

  #tab-brewery .brewery-block-text p {
    text-align: center;
  }

  /* 画像を絶対配置で背後に配置し、透過させる */
  #tab-brewery .brewery-block-image {
    position: absolute;
    z-index: 1;
    width: 320px;
    /* 画像幅を適度な大きさに調整 */
    height: auto;
    opacity: 0.4;
    /* テキストが読みやすくなるよう画像を半透明化 */
    pointer-events: none;
    /* テキスト選択などの操作を妨げない */
  }

  /* 1つ目のブロック of 画像は右上に配置 */
  #tab-brewery .brewery-block:not(.reverse) .brewery-block-image {
    top: -40px;
    right: 5%;
  }

  /* 2つ目のブロック of 画像は左下に配置 */
  #tab-brewery .brewery-block.reverse .brewery-block-image {
    bottom: -20px;
    left: 5%;
  }
}

/* YouTube動画埋め込み */
.brewery-video-wrapper {
  margin: 60px auto;
  max-width: 800px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  overflow: hidden;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* リンクアクションボタン */
.brewery-tab-link-action {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.btn-tour-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e14819;
  color: #e14819;
  padding: 12px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: var(--white);
  border-radius: 4px;
  transition: all var(--transition-speed);
  gap: 15px;
}

.btn-tour-link:hover {
  background-color: #e14819;
  color: var(--white);
}

.btn-arrow-right {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* 工場見学についてタブ */
.tour-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tour-intro-lead {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;

}

.tour-intro p {
  line-height: 1.8;
  font-size: 1.05rem;
}

.tour-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.tour-point-card {
  background-color: #fcfbfa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #eae5d8;
  display: flex;
  flex-direction: column;
}

.tour-point-img {
  height: 100px;
  overflow: hidden;
}

.tour-point-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.company-table tr {
  border: 1px solid #e2dcc8;
}

.tour-point-info {
  padding: 24px;
  flex: 1;
}

/* 新規：見どころ見出しのヘッダーライン */
.tour-point-header {
  display: flex;
  align-items: center;
  width: 100%;
}

/* スマホ表示では横線を非表示にする */
.tour-point-header::before,
.tour-point-header::after {
  display: none;
}

.point-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
  margin-bottom: 8px;
}

.tour-point-info h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tour-point-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* PC表示（769px以上）時の見どころレイアウト上書き */
@media (min-width: 769px) {
  .tour-points-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    /* 見どころ同士の縦の間隔 */
    margin-bottom: 80px;
  }

  .tour-point-card {
    display: flex;
    flex-direction: row;
    /* 横並び */
    align-items: center;
    background-color: transparent;
    /* 背景色を透明に */
    border: none;
    /* ボーダーを削除 */
    border-radius: 0;
    box-shadow: none;
    /* 影を削除 */
    width: 100%;
  }

  /* 偶数番目は左右反転 */
  .tour-point-card.reverse {
    flex-direction: row-reverse;
  }

  .tour-point-img {
    height: auto;
    max-height: none;
    overflow: visible;
    /* オレンジ色の背景はみ出しを表示するため */
  }

  .tour-point-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
  }

  .tour-point-info {
    flex: 0.9;
    padding: 0;
  }

  .point-num {
    font-size: 1.05rem;
    margin-bottom: 0;
  }

  .tour-point-info h4 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text-color);
  }

  .tour-point-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
  }

  .tour-point-header {
    margin-bottom: 0px;
  }

  /* オレンジの水平線を表示 */
  .tour-point-header::before {
    content: "";
    display: block;
    flex: 1;
    height: 1px;
    background-color: var(--primary-color);
    margin-right: 15px;
  }

  /* 偶数番目の水平線は文字の後に配置 */
  .tour-point-card.reverse .tour-point-header::before {
    display: none;
  }

  .tour-point-card.reverse .tour-point-header::after {
    content: "";
    display: block;
    flex: 1;
    height: 1px;
    background-color: var(--primary-color);
    margin-left: 15px;
  }

  .tour-point-left-text {
    padding: 0 8% 0 0;
  }

  .tour-point-right-text {
    padding: 0 0 0 8%;
  }

}

/* 案内・会社テーブル共通 */
.tour-guide-table-wrapper,
.company-info-table-wrapper {
  padding: 40px;
}

.guide-title,
.company-info-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.guide-title::after,
.company-info-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.guide-table,
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.guide-table th,
.company-table th {
  width: 20%;
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid #e2dcc8;
  font-weight: bold;
  background-color: #f1ede1;
  vertical-align: middle;
}

.guide-table td,
.company-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e2dcc8;
  line-height: 1.6;
  vertical-align: middle;
}



.company-table th {
  width: 25%;
  background-color: var(--bg-dark);
  color: var(--white);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--white);
  border-right: none;
}

.company-table td {
  background-color: var(--white);
  color: var(--text-color);
  border-bottom: 1px solid #e2dcc8;
}

/* 最後の行のボーダー調整 */
.company-table tr:last-child th {
  border-bottom: none;
}

.company-table tr:last-child td {
  border-bottom: none;
}

.tour-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* 拠点カードグリッド */
.company-bases-wrapper {
  margin-top: 50px;
}

.bases-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 35px;
}

.bases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.base-card {
  background-color: var(--white);
  border: 1px solid #e2dcc8;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.base-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.base-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  border-bottom: 1px solid #e2dcc8;
  padding-bottom: 8px;
}

.base-card .zip {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 4px;
}

.base-card .address {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-color);
}

/* 契約の流れセクション
   ========================================================================== */
.flow-section {
  background-color: #E3E0D5;
  /* 薄ベージュ背景 */
  padding: 0;
}

.flow-inner {
  background-image: url(../img/sec6_bg.webp);
  background-size: cover;
  background-position: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 120px;
}


.flow-timeline {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 30px auto;
}

/* タイムラインの縦線 */
.flow-timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  bottom: 15px;
  width: 1px;
  background-color: #d97b02;
  /* 細いオレンジの線 */
  z-index: 1;
}

.flow-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  z-index: 2;
}

.flow-step:last-child {
  margin-bottom: 0;
}

/* オレンジのステップ数字（四角） */
.flow-step-number {
  width: 40px;
  height: 40px;
  background-color: #d97b02;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: 25px;
  position: relative;
  z-index: 3;
}

.flow-step-content {
  flex: 1;
  padding-top: 4px;
}

.flow-step-title {
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 8px;
  text-align: left;
}

.flow-step-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  text-align: left;
}

/* 注記（※1〜※3） */
.flow-notes {
  width: 100%;
  max-width: 680px;
  margin-top: 30px;
  border-top: 1px solid #eae5d8;
  padding-top: 20px;
}

.flow-notes p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #777;
  margin-bottom: 8px;
  text-align: left;
}

.flow-notes p:last-child {
  margin-bottom: 0;
}

/* よくある質問セクション
   ========================================================================== */
.faq-section {
  background-color: #4A4331;
  /* 暗いオリーブグリーン */
  padding: 100px 0;
}

.faq-title {
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 12px;
}

.faq-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--white);
}

.faq-accordion-wrapper {
  background-color: var(--white);
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.faq-item {
  border-bottom: 1px solid #eae5d8;
}

.faq-item:last-child {
  border-bottom: none;
}

/* アコーディオンヘッダー */
.faq-header {
  display: flex;
  align-items: center;
  padding: 24px 30px;
  cursor: pointer;
  background-color: var(--white);
  transition: background-color var(--transition-speed);
}

.faq-header:hover {
  background-color: #faf9f6;
}

/* Qバッジ */
.faq-q-badge {
  width: 28px;
  height: 28px;
  background-color: #4A4331;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: 20px;
}

.faq-question {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-color);
  margin: 0;
  text-align: left;
  flex: 1;
}

.faq-icon-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  flex-shrink: 0;
}

/* アコーディオン開閉の矢印 */
.faq-icon {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
  transition: transform var(--transition-speed), top var(--transition-speed);
  top: -2px;
}

/* 開いた状態のスタイル */
.faq-item.is-active .faq-icon {
  transform: rotate(-135deg);
  top: 2px;
}

/* アコーディオンボディ */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.is-active .faq-body {
  max-height: 250px;
  /* 十分な高さ */
  transition: max-height 0.3s ease-in;
}

.faq-body-inner {
  padding: 24px 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-top: 1px dashed #eae5d8;
  background-color: #fdfdfd;
}

/* Aバッジ */
.faq-a-badge {
  width: 28px;
  height: 28px;
  border: 1px solid #4A4331;
  color: #4A4331;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
  text-align: left;
  flex: 1;
  padding-top: 2px;
}

/* お問い合わせセクション
   ========================================================================== */
.contact-section {
  background-color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.contact-intro {
  margin: 50px 0;
}

.contact-subtitle {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.5;
  color: var(--text-color);
}

/* お悩み吹き出しグリッド */
.contact-worries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto 50px auto;
}

.worry-bubble {
  background-color: #E5DFD3;
  /* 薄グレー/ベージュ */
  border-radius: 8px;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

/* 吹き出しのしっぽ */
.worry-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px 10px 0;
  border-style: solid;
  border-color: #E5DFD3 transparent transparent;
  display: block;
  width: 0;
}

.worry-bubble p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  font-weight: 500;
  text-align: left;
  margin: 0;
}

.contact-lead-text {
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.lead-strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
}

.lead-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

/* 3つの特徴・強みカード */
.contact-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 80px auto;
}

.feature-card {
  background-color: #FFFAF0;
  /* 薄いクリームイエロー */
  border: 1px solid #F3EBD6;
  border-radius: 8px;
  padding: 40px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  object-fit: contain;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.feature-title-strong {
  font-size: 1.5rem;

}

/* 下部お問い合わせバナー */
.contact-banner-wrapper {
  background-color: #D9A73D;
  margin: 0 auto;
}

.contact-banner {
  max-width: 992px;
  margin: 0 auto;
  padding: 50px 0px;
  position: relative;
  /* overflow: visible; */
  /* text-align: left; */
  display: flex;
  justify-content: space-between;
}

.banner-content {
  flex: 1;
  max-width: 650px;
  position: relative;
  z-index: 5;
}

.banner-lead {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 12px;
}

.banner-tel-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.tel-icon {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.tel-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.tel-number {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
  font-family: var(--font-serif);
}

.tel-number:hover {
  opacity: 0.9;
}

.banner-hours {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  font-weight: 500;
}

/* バナーボタン */
.banner-buttons {
  display: flex;
  gap: 20px;
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 25px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
  position: relative;
  flex: 1;
  max-width: 350px;
}

.banner-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-form {
  background-color: #433D3C;
  /* 焦げ茶 */
}

.btn-email {
  background-color: #D96B02;
  /* オレンジ */
}

.banner-btn .btn-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-btn .btn-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.banner-btn .btn-arrow-right {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 12px;
  position: absolute;
  right: 40px;
}

/* 女性の差し出し画像 */
.banner-female-img {
  position: absolute;
  bottom: 0;
  right: 0px;
  height: 125%;
  /* バナーの上にはみ出す大きさ */
  width: auto;
  z-index: 4;
}

.banner-female-img img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  /* 画像の境界をバナーの底線に合わせる */
  transform: translateY(0);
}

/* フッターエリア
   ========================================================================== */
.site-footer {
  background-color: #4A4331;
  /* 暗いオリーブグリーン */
  position: relative;
  overflow: visible;
  /* TOPへ戻るボタンのはみ出し用 */
}

/* TOPへもどるボタン */
.footer-top-btn-wrapper {
  position: absolute;
  top: -24px;
  right: 40px;
  z-index: 10;
}

.btn-top-back {
  display: inline-block;
  background-color: var(--bg-dark);
  /* 焦げ茶 */
  color: var(--white);
  padding: 12px 30px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn-top-back:hover {
  transform: translateY(-2px);
  opacity: 1;
  background-color: var(--primary-color);
}

/* フッターメインエリア */
.footer-main {
  padding: 60px 0 50px 0;
  color: var(--white);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* 左側ブロック */
.footer-left {
  flex: 1;
  max-width: 550px;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo svg {
  display: block;
}

.footer-stop-alcohol {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.stop-img {
  width: 50px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.stop-text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-align: left;
}

/* 右側ブロック */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--transition-speed);
}

.footer-links a:hover {
  opacity: 0.8;
}

.ext-link-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: none;
}

/* SNSリンク */
.footer-sns {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-sns a {
  color: var(--white);
  transition: transform var(--transition-speed), opacity var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-sns a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.footer-sns svg {
  width: 33px;
  height: 33px;
  display: block;
}

/* コピーライトエリア */
.footer-copyright {
  background-color: var(--white);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #e5dfd3;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-color);
  font-weight: 500;
}

.reason-card-sp {
  display: none;
}



/* ==========================================================================
   ブロック③：タブレット用メディアクエリ（大きめのブレイクポイントから順に）
   ========================================================================== */

/* 画面幅 1439px 以下
   ========================================================================== */
@media (max-width: 1439px) {
  .hero {
    background-image: url('../img/fv_background_pc1439.webp');
    background-size: 1439px 930px;
    background-position: center bottom;
    min-height: auto;
  }
}

/* 画面幅 1020px 以下
   ========================================================================== */
@media (max-width: 1020px) {
  .hero {
    background-image: url('../img/fv_background_tablet.webp');
    background-size: 100% 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 1366;
    min-height: auto;
    align-items: center;
    padding-bottom: 0;
  }

  .hero-container {
    padding-top: 100px;
  }
}

/* 画面幅 992px 以下（主要なタブレット幅）
   ========================================================================== */
@media (max-width: 992px) {

  /* ヘッダー＆ナビゲーション */
  .site-header {
    height: 90px;
  }

  .menu-trigger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 100px 40px var(--space-xl);
    gap: 40px;
    transition: right var(--transition-speed) ease;
    z-index: 150;
  }

  .nav-menu.is-active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 25px;
  }

  .nav-link {
    font-size: 18px;
    width: 100%;
    display: block;
  }

  .header-cta {
    width: 100%;
  }

  /* お問い合わせボタンをオレンジ背景・白文字・直角のブロックに変更 */
  .btn-cta {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 16px 0;
    /* 上下にゆとりのあるパディングを設定 */
    font-size: 18px;
    font-weight: 700;
    border-radius: 0;
    /* 角丸をなしにして直角に */
    transition: opacity var(--transition-speed) ease;
  }

  .btn-cta:hover {
    opacity: 0.9;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
  }

  /* 選ばれる理由 */
  .reasons-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 40px;
  }

  .reason-card {
    flex-direction: column;
    height: 480px;
    overflow: hidden;
    width: 350px;
    flex-shrink: 0;
  }

  .reason-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 380px;
    order: -1;
  }

  .reason-content {
    padding: 30px 24px;
  }

  .reason-card-title {
    font-size: 1.45rem;
  }

  .reason-card-title .highlight-text {
    font-size: 1.6rem;
  }

  .reason-point {
    top: 0;
    left: 10px;
    width: 80px;
  }

  /* 取り扱い商品 */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .product-name {
    font-size: 1.05rem;
  }

  .products-grid .product-card {
    cursor: pointer;
  }

  .products-grid .product-card .product-info {
    display: none;
  }

  /* 商品詳細モーダル調整（画面高80%表示） */
  .product-modal-content {
    height: 80vh;
    width: 60%;
    display: flex;
    flex-direction: column;
  }

  .product-modal-body {
    flex: 1;
    overflow: hidden;
  }

  .product-modal-body .product-card.is-modal-view {
    width: 100%;
    min-height: unset;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  .product-card.is-modal-view .product-name {
    font-size: 1.5rem;
  }

  .product-card.is-modal-view .product-info-item {
    font-size: 1.2rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .product-card.is-modal-view .product-info-label {
    margin-top: 3px;
  }

  .product-card.is-modal-view .product-image-wrapper img {
    height: 80%;
  }

  /* ビール工場タブレット対応 */
  .brewery-tab-btn {
    padding: 14px 20px;
    font-size: 1rem;
    width: 200px;
  }

  .tab-deco-img {
    display: none;
    /* タブレット以下ではデコ画像を非表示に */
  }

  .brewery-header-banner {
    height: 260px;
    margin-bottom: 30px;
  }

  .banner-overlay-text {
    padding-left: 30px;
  }

  .banner-sub {
    font-size: 1rem;
  }

  .banner-main {
    font-size: 2rem;
  }

  .brewery-intro-title {
    margin-bottom: 30px;
  }

  .brewery-intro-title h3 {
    font-size: 1.4rem;
  }

  .brewery-intro-title h4 {
    font-size: 1.1rem;
  }

  .brewery-block {
    flex-direction: column !important;
    /* 縦並びにする */
    gap: 20px;
    margin-bottom: 40px;
  }

  .brewery-block-image {
    width: 100%;
  }

  .brewery-body {
    margin: 50px;
  }

  .tour-points-grid {
    gap: 60px;
  }

  .tour-point-img {
    height: 180px;
  }

  .tour-guide-table-wrapper,
  .company-info-table-wrapper {
    padding: 0px;
  }

  .guide-table th,
  .company-table th {
    width: 25%;
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .guide-table td,
  .company-table td {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .bases-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3列にする */
    gap: 15px;
  }

  /* 契約の流れタブレット対応 */
  .flow-section {
    padding: 60px 0;
  }

  .flow-inner {
    width: 100%;
    height: auto;
    border-radius: 40px;
    /* タブレット以下では角丸四角に変更 */
    padding: 60px 40px;
  }


  .flow-timeline {
    max-width: 100%;
  }

  .flow-notes {
    max-width: 100%;
  }

  .flow-section {
    background-color: var(--white);
  }

  .flow-inner {
    background-image: none;
  }

  /* よくある質問タブレット対応 */
  .faq-section {
    padding: 60px 0;
  }


  .faq-header {
    padding: 20px 24px;
  }

  .faq-body-inner {
    padding: 20px 24px;
  }

  .faq-question {
    font-size: 1.05rem;
  }

  .faq-answer {
    font-size: 0.95rem;
  }

  /* お問い合わせタブレット対応 */
  .contact-section {
    padding: 60px 0;
  }


  .contact-subtitle {
    font-size: 1.4rem;
  }

  .contact-worries-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2列×2行 */
    gap: 20px;
    margin-bottom: 40px;
  }

  .worry-bubble {
    min-height: 100px;
    padding: 18px 15px;
  }

  .lead-strong {
    font-size: 1.15rem;
  }

  .lead-desc {
    font-size: 0.95rem;
  }

  .contact-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 50px;
  }

  .feature-card {
    padding: 30px 15px;
  }

  .feature-title {
    font-size: 1rem;
  }

  .contact-banner {
    padding: 40px;
  }

  .tel-number {
    font-size: 2.2rem;
  }

  .banner-female-img {
    height: 110%;
    /* タブレットでははみ出し量を抑える */
    right: 10px;
  }

  /* フッタータブレット対応 */
  .footer-main {
    padding: 50px 0 40px 0;
  }

  .footer-container {
    gap: 30px;
  }

  .stop-text {
    font-size: 0.75rem;
  }

  .footer-links a {
    font-size: 0.88rem;
  }

  .reason-card-sp {
    display: block;
    padding-bottom: 8px;
  }

  .reason-content h3 {
    display: none;
  }

}

/* ==========================================================================
   ブロック④：SP用メディアクエリ
   ========================================================================== */

/* 画面幅 768px 以下（主要なスマホ幅）
   ========================================================================== */
@media (max-width: 768px) {

  /* 共通設定 */

  .header-container {
    margin-left: 10px;
    margin-right: 10px;
  }

  /* ヒーローセクション */
  .hero {
    background-image: url('../img/fv_background_sp.webp?ver=2');
    background-size: 100% 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    width: 100%;
    height: auto;
    aspect-ratio: 375 / 812;
    min-height: auto;
    margin-top: -80px;
  }

  .hero-container {
    padding: 0;
    align-items: center;
    margin-top: 60vh;
  }

  .hero-sub-title {
    font-size: 24px;
  }

  .cta-button {
    width: 320px;
    font-size: 20px;
  }

  .subtitle-container {
    margin-left: 20px;
    margin-right: 20px;
  }

  /* 選ばれる理由 */
  .reasons-list {
    gap: 30px;
    flex-direction: column;
    align-items: center;
  }

  .reason-card {
    width: 100%;
    max-width: 340px;
  }

  .reason-image {
    max-height: 240px;
  }

  .reason-point {
    width: 65px;
  }

  /* 取り扱い商品 */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 30px;
  }

  .product-card {
    padding: 10px;
  }

  .product-name {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .product-image-wrapper {
    padding: 8px;
    margin-bottom: 10px;
  }

  .product-info-item {
    font-size: 0.78rem;
  }

  .products-more-band {
    font-size: 1.3rem;
    padding: 10px 0;
    margin-top: 30px;
  }

  .products-notes {
    margin-top: 16px;
  }

  .products-cta {
    margin-top: 40px;
  }

  .product-image-wrapper img {
    height: 110px;
  }

  .product-modal-content {
    width: 80%;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .sec2-img {
    left: 55%;
  }

  .products-section {
    padding-top: 80px;
    padding-bottom: var(--space-xl);
  }

  /* ビール工場スマホ対応 */
  .brewery-tab-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    /* iOSのセーフエリア（画面下部バー）対応 */
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    margin-left: 0;
    margin-right: 0;

    /* 出現・消失のアニメーション用初期状態 */
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  }

  /* セクション交差時の表示状態 */
  .brewery-tab-wrapper.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .brewery-tabs {
    flex-direction: row;
    /* 横並びにする */
    border-bottom: none;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }

  .brewery-tab-btn {
    border: 1px solid #ccc;
    border-radius: 6px;
    width: auto;
    flex: 1;
    padding: 10px 4px;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
  }

  .brewery-tab-btn.is-active {
    border-color: var(--primary-color);
  }

  .brewery-header-banner {
    height: 180px;
  }

  .banner-overlay-text {
    padding-left: 20px;
  }

  .banner-sub {
    margin-bottom: -6px;
  }


  .brewery-intro-title h3 {
    font-size: 1.2rem;
  }

  .brewery-intro-title h4 {
    font-size: 0.95rem;
  }

  .brewery-block-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .brewery-drink-image {
    display: none;
  }

  .brewery-section {
    padding: 0px;
  }

  .tour-points-grid {
    grid-template-columns: 1fr;
    /* 1列にする */
    gap: 20px;
  }

  .brewery-body {
    margin: 0;
  }

  .company-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .guide-table th,
  .company-table th,
  .guide-table td,
  .company-table td {
    display: block;
    /* 縦並びにする */
    width: 100%;
    border-bottom: none;
  }

  .guide-table th,
  .company-table th {
    background-color: #f1ede1;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
  }

  .guide-table td,
  .company-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e2dcc8;
  }

  .guide-table tr:last-child td,
  .company-table tr:last-child td {
    border-bottom: none;
  }

  /* スマートフォン表示における会社情報テーブルの見出し調整 */
  .company-table th {
    background-color: var(--bg-dark);
    color: var(--white);
    text-align: left;
    border-bottom: none;
  }

  .bases-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2列にする */
    gap: 12px;
  }

  .base-card {
    padding: 14px;
  }

  .base-card h5 {
    font-size: 0.95rem;
  }

  .base-card .address {
    font-size: 0.78rem;
  }

  /* 契約の流れスマホ対応 */
  .flow-inner {
    border-radius: 20px;
    padding: 40px 20px;
  }


  .flow-timeline::before {
    left: 15px;
  }

  .flow-step-number {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
    margin-right: 15px;
  }

  .flow-step-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .flow-step-desc {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .flow-notes p {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  /* よくある質問スマホ対応 */
  .faq-header {
    padding: 16px 15px;
  }

  .faq-body-inner {
    padding: 16px 15px;
    gap: 12px;
  }

  .faq-q-badge,
  .faq-a-badge {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    margin-right: 12px;
  }

  .faq-question {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .faq-answer {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* お問い合わせスマホ対応 */
  .contact-subtitle {
    font-size: 1.2rem;
  }

  .contact-worries-grid {
    grid-template-columns: 1fr;
    /* 縦1列 */
    gap: 25px;
  }

  .worry-bubble {
    min-height: auto;
    padding: 16px 20px;
  }

  /* スマホでのしっぽ位置微調整 */
  .worry-bubble::after {
    bottom: -10px;
  }

  .lead-strong {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .lead-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .contact-features-grid {
    grid-template-columns: repeat(2, 1fr);
    /* グリッドを2列にする */
    gap: 15px;
    margin-bottom: 40px;
  }

  /* 最初のカード（ご相談は完全無料）を上段で横幅一杯に配置 */
  .contact-features-grid .feature-card:first-child {
    grid-column: 1 / -1;
  }

  .feature-card {
    padding: 24px 15px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
  }

  .feature-icon {
    margin-bottom: 0;
  }

  .feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
  }

  .tel-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }


  .feature-title {
    font-size: 1.05rem;
  }

  /* スマホ用バナー調整（縦並び・女性配置） */
  .contact-banner {
    flex-direction: column;
    padding: 35px 20px;
    text-align: center;
    overflow: hidden;
    /* スマホでははみ出しを防ぐ */
  }

  .banner-content {
    max-width: 100%;
  }


  .banner-tel-row {
    justify-content: center;
  }

  .tel-icon svg {
    width: 24px;
    height: 24px;
  }



  .banner-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .banner-btn {
    width: 100%;
    max-width: 100%;
    font-size: 0.95rem;
    padding: 8px 20px;
  }


  .banner-female-img {
    display: none;
  }


  .faq-icon-wrapper {
    margin-left: 10px;
  }

  /* フッタースマホ対応 */
  .footer-top-btn-wrapper {
    top: -20px;
    right: 20px;
  }

  .btn-top-back {
    padding: 8px 20px;
    font-size: 0.8rem;
  }

  .footer-main {
    padding: 50px 0;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  /* HTML構造に関わらず、上から「ロゴ」「リンク」「SNS」「警告文」の順に並び替える */
  .footer-left,
  .footer-right {
    display: contents;
  }

  .footer-logo {
    order: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
  }

  .footer-links {
    order: 2;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-sns {
    order: 3;
    justify-content: center;
  }

  .footer-stop-alcohol {
    order: 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 90%;
    margin-top: 10px;
  }

  .stop-img {
    width: 45px;
    /* スマホ用に若干コンパクトに調整 */
  }

  .stop-text {
    text-align: left;
    font-size: 0.72rem;
    line-height: 1.5;
  }
}

/* 画面幅 480px 以下（スマホ極小・微調整用）
   ========================================================================== */
@media (max-width: 480px) {
  .product-modal-close {
    top: -40px;
    right: 5px;
    font-size: 2.4rem;
  }
}

/* ==========================================================================
   年齢確認モーダル
   ========================================================================== */
.age-verification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  /* ダークグレーの背景 */
  z-index: 9999;
  /* 他のすべての要素の最前面に表示 */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.age-verification-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.age-verification-content {
  text-align: center;
  max-width: 90%;
  width: 480px;
  padding: 40px 20px;
}

.age-logo {
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
}

.age-logo svg {
  display: block;
}

.age-text-main {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.age-text-sub {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.age-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.age-btn {
  flex: 1;
  max-width: 180px;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #ffffff;
  color: #1a1a1a;
  transition: background-color var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.age-btn:hover {
  background-color: #f0f0f0;
}

/* スマホ表示での調整 */
@media (max-width: 575px) {
  .age-logo {
    margin-bottom: 35px;
  }

  .age-logo svg {
    width: 150px;
    height: auto;
  }

  .age-text-main {
    font-size: 1rem;
  }

  .age-text-sub {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .age-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .age-btn {
    width: 100%;
    max-width: 260px;
  }
}

/* 年齢確認エラーメッセージ（20歳未満） */
.age-error-message {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 25px;
  text-align: center;
  min-height: 1.6em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.age-error-message.is-visible {
  opacity: 1;
}

/* ==========================================================================
   スクロール連動フェードインアニメーション用共通設定
   ========================================================================== */
.reveal-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.0s ease, transform 1.0s ease;
}

/* 画面内（監視エリア）に入った際に付与される表示用のアクティブクラス */
.reveal-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}