/* ======================================================
   shop-info-section.css (Complete Full Version)
   タブ構造 + 全コンテンツ共通スタイル + 店舗情報(shop-info)統合版
   Update: タブレット表示（1024px以下）での中央寄せを全セクションに適用
===================================================== */

:root {
  --color-primary: #12458f;    /* メイン紺色 */
  --color-accent: #c5a059;      /* アクセント金色 */
  --color-alert: #d93333;      /* 警告・注釈赤色 */
  --color-text-main: #333333;
  --color-text-sub: #666666;
  --color-bg-light: #f8f9fa;
  --color-bg-note: #fdfaf5;    /* 案内ボックス用和紙色 */
  --border-color: #e0e0e0;
  --border-color-light: #f0f0f0;
}

.tab-section {
  width: 100%;
  background: #fff;
  padding: 0 20px 60px;
  scroll-margin-top: 120px;
}

.tab-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* --- タブメニュー構造 --- */
.tab-group {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  border-bottom: 2px solid var(--border-color-light);
  flex-wrap: wrap;
}

.tab-item {
  padding: 15px 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-sub);
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.tab-item:hover,
.tab-item.is-active {
  color: var(--color-primary);
}

.tab-item.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
}

/* --- アニメーション --- */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tab-content.is-show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   タブ内共通レイアウト（メニュー・お献立・個室）
====================================================== */

.menu-tab-container {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--color-text-main);
}

.menu-intro {
  text-align: center;
  margin-bottom: 40px;
}

.menu-intro-text {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* --- メインカード --- */
.menu-item-card {
  background: #fff;
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
  overflow: hidden;
}

.accent-card {
  border: 2px solid var(--color-accent);
}

.menu-item-header {
  background: var(--color-bg-light);
  padding: 22px 25px 18px; 
  display: flex;
  flex-direction: column; 
  align-items: center; 
  gap: 12px; 
  border-bottom: 2px solid var(--color-primary);
  text-align: center;
}

.menu-item-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.room-badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  margin-right: 10px;
  border-radius: 2px;
  font-weight: normal;
  display: inline-block;
}

/* 金額表示 */
.menu-price-container {
  display: flex;
  align-items: baseline; 
  justify-content: center !important; 
  width: 100%;
  color: var(--color-accent);
}

.menu-price-value {
  font-family: 'Century Gothic', 'Futura', sans-serif;
  font-size: 34px; 
  font-weight: 700;
  line-height: 1;
}

.menu-price-unit {
  font-size: 18px;
  margin-left: 2px;
  font-weight: 700;
}

/* カードボディ */
.menu-item-body {
  display: flex;
  gap: 30px;
  padding: 25px;
}

.menu-item-body.reverse {
  flex-direction: row-reverse;
}

.menu-item-img {
  flex: 0 0 45%;
}

.menu-item-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.menu-item-info {
  flex: 1;
}

.menu-item-desc {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* アコーディオン献立 */
.menu-details-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: var(--color-bg-light);
  border: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  color: var(--color-primary);
}

.menu-details-target {
  display: none;
  padding: 0 15px;
  border: 1px solid var(--border-color);
  border-top: none;
  background: #fff;
  margin-bottom: 20px;
}

.menu-details li {
  padding: 15px 0;
  border-bottom: 1px dotted #ccc;
  font-size: 15px;
  display: flex;
  gap: 10px;
}

.menu-details li span.chapter {
  font-weight: bold;
  color: var(--color-primary);
  width: 85px;
  flex-shrink: 0;
}

/* ======================================================
   ★店舗情報・概要 汎用レイアウト (shop-info)
====================================================== */

.shop-info-section {
    margin-top: -100px; 
    padding: 70px 0; 
    background-color: #fff;
    color: #333;
}

.shop-info-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.shop-info-visual {
    width: 100%;
    margin-bottom: 40px;
}

.shop-info-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.shop-info-grid {
    display: flex;
    justify-content: center; 
    gap: 50px;
}

.shop-info-content,
.shop-info-details {
    flex: 1;
    max-width: 500px; 
}

.shop-info-caption {
    font-size: 20px;
    font-weight: 700;
    color: #0054a6;
    margin-bottom: 20px;
    border-left: 4px solid #b3934d;
    padding-left: 15px;
    line-height: 1.4;
}

.shop-info-description {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

/* データテーブル */
.shop-info-table {
    border-top: 1px solid #eee;
    margin: 0;
}

.shop-info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.shop-info-row dt {
    width: 120px;
    font-weight: 700;
    color: #666;
    flex-shrink: 0;
}

.shop-info-row dd {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* ぐるなびリンク特有のスタイル */
.gurunavi-link {
    color: #0054a6;
    text-decoration: underline;
    font-weight: 700;
}

.gurunavi-link:hover {
    text-decoration: none;
    color: #b3934d;
}

/* 重要なお知らせ (Notice) */
.shop-info-notice {
    background-color: #fffaf0; 
    border: 2px solid #d9c08e; 
    padding: 30px;
    box-sizing: border-box;
    border-radius: 4px;
}

.shop-info-notice .shop-info-caption {
    color: #b33e3e; 
    border-left: 5px solid #b33e3e; 
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-info-notice .shop-info-caption::before {
    content: "!";
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: #b33e3e;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 14px;
    font-weight: bold;
}

.shop-info-signature {
    text-align: right;
    margin-top: 20px; 
    font-size: 14px;
    color: #444;
}

/* ======================================================
   レスポンシブ (タブレット 1024px 以下)
====================================================== */

@media (max-width: 1024px) {
  /* メニューカードを中央1カラム化 */
  .menu-item-body, 
  .menu-item-body.reverse {
      flex-direction: column !important;
      padding: 20px;
      align-items: center;
  }

  .menu-item-img {
      width: 100%;
      max-width: 600px;
      margin-bottom: 20px;
  }

  .menu-item-info {
      width: 100%;
      max-width: 600px; /* テキスト部分も中央に寄るように幅を制限 */
      margin: 0 auto;
  }

  /* 店舗情報グリッドを1カラム化 & 中央配置 */
  .shop-info-grid {
      flex-direction: column;
      align-items: center; /* 子要素を中央に揃える */
      gap: 40px;
  }

  .shop-info-content,
  .shop-info-details {
      width: 100%;
      max-width: 600px; /* タブレットで横に広がりすぎないよう制限 */
      margin: 0 auto;   /* 外側の中央寄せ */
      background-color: #f9f9f9;
      padding: 30px;
      box-sizing: border-box;
      border-radius: 4px;
  }
}

/* ======================================================
   レスポンシブ (スマホ 768px 以下)
====================================================== */

@media (max-width: 768px) {
  .tab-group { display: grid; grid-template-columns: repeat(2, 1fr); }
  .tab-item { font-size: 14px; padding: 12px 5px; }

  .menu-item-title { font-size: 19px; }
  .menu-price-value { font-size: 28px; }

  /* 店舗情報内の見出し・行の調整 */
  .shop-info-caption {
      font-size: 18px;
      border-left: none;
      border-bottom: 2px solid #b3934d;
      padding-left: 0;
      padding-bottom: 8px;
  }

  .shop-info-row {
      flex-direction: column;
      gap: 5px;
  }

  .shop-info-row dt {
      width: 100%;
      color: #b3934d; 
  }

  .shop-info-btn {
      width: 100%;
      text-align: center;
  }

  /* お知らせの調整 */
  .shop-info-notice {
      background-color: #fffaf0 !important;
      padding: 20px;
  }
  
  .shop-info-notice .shop-info-caption {
      border-left: none;
      border-bottom: 2px solid #b33e3e;
      padding-left: 0;
  }
}