:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #666666;
  --accent: #b8332a;
  --border: #e5e0d8;
  --soldout: rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

/* 1. 言語選択画面 */
.lang-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #1c1917;
  color: #fff;
}

.lang-box {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.shop-title {
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.lang-subtitle {
  font-size: 0.9rem;
  color: #d6d3d1;
  margin-bottom: 28px;
}

.lang-buttons {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lang-btn {
  display: block;
  padding: 16px;
  font-size: 1.15rem;
  font-weight: bold;
  border: 1px solid #57534e;
  border-radius: 10px;
  background: #292524;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.lang-btn:active {
  background: var(--accent);
  border-color: var(--accent);
}

/* 2. ヘッダー & カテゴリタブ */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #1c1917;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
}

.header-title {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.change-lang-btn {
  background: #292524;
  color: #fff;
  border: 1px solid #57534e;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.category-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 0 12px 10px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 20px;
  border: none;
  background: #292524;
  color: #d6d3d1;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
}

/* 3. お店の案内画面（Home） */
.home-screen {
  min-height: 100vh;
  padding-bottom: 40px;
}

.home-hero {
  position: relative;
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  background: #1c1917;
}

.home-hero-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.home-hero.has-catch .home-hero-img {
  opacity: 0.78;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.home-catch {
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.4;
}

.home-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.info-card-accent {
  border-left: 4px solid var(--accent);
  background: #fffaf9;
}

.info-card-center {
  text-align: center;
  background: transparent;
  border: none;
  padding: 8px 16px;
}

.info-title {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 8px;
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.info-text {
  font-size: 0.92rem;
  white-space: pre-wrap;
  color: var(--text);
}

.inline-cta-wrap {
  margin-top: 14px;
}

.home-cta-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(184, 51, 42, 0.3);
  cursor: pointer;
}

.hotpepper-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: #e60012;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: bold;
}

/* Q&Aリスト（ビッグレター型） */
.qa-list {
  display: flex;
  flex-direction: column;
}

.qa-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qa-item:first-child {
  padding-top: 4px;
}

.qa-item:last-child {
  padding-bottom: 4px;
  border-bottom: none;
}

.qa-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.qa-badge {
  flex-shrink: 0;
  min-width: 24px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  background: none;
  font-family: "Arial", serif;
}

.qa-badge-q {
  color: var(--accent);
}

.qa-badge-a {
  color: #57534e;
}

.qa-q-text {
  font-size: 0.96rem;
  font-weight: bold;
  color: var(--text);
  white-space: pre-wrap;
}

.qa-a-text {
  font-size: 0.9rem;
  color: #44403c;
  white-space: pre-wrap;
}

/* お知らせタイトル一覧 */
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.news-item {
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 4px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
}

.news-btn:active {
  background: var(--bg);
}

.news-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.news-date {
  font-size: 0.78rem;
  color: var(--muted);
}

/* お知らせの日付を非表示にする */
.news-date,
#news-modal-date {
  display: none;
}

.news-title-text {
  font-size: 0.94rem;
  font-weight: bold;
}

.news-arrow {
  color: var(--muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.news-modal-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}

/* 各項目のタイトル・注文方法・クチコミ・次回予約を中央揃え */
#text-order,
#text-review,
#text-reserve {
  text-align: center;
}

/* Googleマップボタン */
.googlemap-btn {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  padding: 12px 16px;
  background: #1a73e8;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 8px;
  text-align: center;
}

.googlemap-btn:active {
  opacity: 0.85;
}

/* 文章内のリンク */
.text-link {
  color: #1a73e8;
  text-decoration: underline;
  font-weight: bold;
}

/* 4. メニューグリッド */
.menu-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 14px 12px 96px;
}

.loading-msg {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.menu-card {
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.menu-card.soldout {
  opacity: 0.65;
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e7e5e4;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-recommend {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-soldout {
  position: absolute;
  inset: 0;
  background: var(--soldout);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-name {
  font-size: 0.92rem;
  font-weight: bold;
  margin-bottom: 2px;
}

.card-name-ja {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.card-price {
  font-weight: bold;
  font-size: 0.95rem;
}

/* カード内の税抜・税込価格の縦並び調整 */
.card-price-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.card-price-excl-label {
  font-size: 0.7rem;
  font-weight: normal;
  color: var(--muted);
}

.card-price-tax {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: normal;
}

/* 詳細モーダル内の税込・税抜価格の縦並び調整 */
#detail-price {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.detail-price-main {
  font-size: 1.35rem;
  font-weight: bold;
}

.detail-price-label {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--muted);
}

.detail-price-sub {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--muted);
}

.card-add-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: bold;
  cursor: pointer;
}

.card-add-btn:disabled {
  background: #a8a29e;
  cursor: not-allowed;
}

/* 一覧カード内の＋−操作 */
.card-qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-qty-btn.plus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.card-qty-num {
  min-width: 18px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
}

/* 1段目・2段目タブの調整 */
.group-tabs {
  padding-bottom: 8px;
}

.sub-category-tabs {
  background: #292524;
  padding: 8px 12px;
  border-top: 1px solid #44403c;
}

.sub-category-tabs .tab-btn {
  background: #1c1917;
  font-size: 0.82rem;
  padding: 5px 12px;
}

.sub-category-tabs .tab-btn.active {
  background: #fff;
  color: #1c1917;
}

/* Food / Drink の大見出し */
.group-section {
  margin-bottom: 24px;
}

.group-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  padding: 6px 0 8px 10px;
  margin-bottom: 12px;
  border-left: 5px solid var(--accent);
  border-bottom: 1px solid var(--border);
}

.main-tab {
  flex: 1;
  text-align: center;
}

/* 5. 下部フローティングバー */
.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--border);
  z-index: 30;
}

.cart-bar-btn {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.cart-count-badge {
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* 6. モーダル共通 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 14px;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

/* 詳細モーダル */
.detail-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #e7e5e4;
}

.detail-body {
  padding: 16px;
}

.detail-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.detail-badge {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
}

.detail-name {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.detail-name-ja {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-price {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 12px;
}

.detail-desc {
  font-size: 0.95rem;
  white-space: pre-wrap;
  margin-bottom: 12px;
}

.detail-allergens {
  font-size: 0.82rem;
  background: #fef3c7;
  color: #92400e;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
}

.primary-btn {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

/* 7. 店員提示用・注文リストモーダル */
.cart-modal-content {
  display: flex;
  flex-direction: column;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: #1c1917;
  color: #fff;
}

.cart-title {
  font-size: 1.15rem;
}

.cart-subtitle {
  font-size: 0.82rem;
  color: #fcd34d;
  margin-top: 2px;
}

.modal-close-inline {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.cart-list {
  padding: 12px 16px;
  max-height: 55vh;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-ja {
  font-size: 1.2rem;
  font-weight: 800;
  color: #000;
}

.cart-item-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-qty-large {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 36px;
  text-align: center;
}

.cart-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.danger-btn {
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
}

.secondary-btn {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #e7e5e4;
  color: var(--text);
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
}

.group-heading {
  text-align: center;
  border-left: none;
  padding-left: 0;
}