/* ============================
   Full Menu Page Styling
============================ */

.tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.tab {
  padding: 0.8rem 1.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  color: var(--heading);
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  white-space: nowrap;
}

.tab:hover {
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
  box-shadow: 0 6px 15px rgba(76, 175, 147, 0.3);
}

/* ==================== メニュー項目 ==================== */
.menu-area {
  max-width: 1100px;
  margin: 0 auto;
}

.menu-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.item {
  background: #fff;
  padding: 1.6rem;
  border-radius: 12px;
  border: 2px solid #e0f0e8;        
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  border-color: var(--brand);       
}

.item h3 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 0.4rem;
  color: var(--heading);
}

.item .jp,
.item .desc {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.item .desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.item .price {
  font-weight: bold;
  color: var(--brand-dark);
  font-size: 1.1rem;
  margin: 0.8rem 0;
}

.item .btn {
  width: 100%;
  margin-top: auto;
  padding: 0.85rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.item .btn:hover {
  background: var(--brand-dark);
}

/* ==================== カートバー ==================== */
#cartBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand);
  color: #fff;
  padding: 1.1rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  z-index: 1500;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ==================== カートパネル & アイテム ==================== */
.cart-panel {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 340px;
  background: #fff;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: none;
  z-index: 1600;
  max-height: 65vh;
  overflow-y: auto;
}

.cart-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

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

.cart-item-main {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

/* カートアイテムの名前部分 */
.cart-item-name {
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

/* 数量（× 1）のスタイル */
.cart-qty-inline {
  color: #6f84c4;           
  font-weight: 600;
  margin-left: 8px;
  white-space: nowrap;
}

/* 価格部分 */
.cart-item-price {
  color: #1e7a5f;
  font-weight: 700;
  white-space: nowrap;
  font-size: 1.06rem;
}


.cart-item-price {
  color: #1e7a5f;
}

/* コントロール部分（＋－削除ボタン） */
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.qtyBtn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qtyBtn:hover { background: #e9ecef; }
.plus  { color: #2c8a6d; }
.minus { color: #e74c3c; }

.deleteBtn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

.cart-qty {
  min-width: 26px;
  text-align: center;
  font-weight: 600;
  font-size: 1.08rem;
}

/* カート内の合計 */
.cart-total {
  font-size: 1.45rem;
  font-weight: 700;
  color: #2c3e50;                    
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 2px solid #ddd;
  text-align: right;
}

.cart-total span {
  color: #2c3e50;                    
  font-size: 1.6rem;
}

/* ==================== Popup ==================== */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.hot-btn, .cold-btn {
  width: 100%;
  padding: 1.1rem;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hot-btn {
  background: linear-gradient(135deg, #e05a4f, #c93d32);
}

.cold-btn {
  background: linear-gradient(135deg, #3a8fd1, #2b6da8);
}

.hot-btn:hover, .cold-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ==================== 麺選択ボタン ==================== */
.noodle-btn {
  width: 100%;
  padding: 1rem;
  background: #f8f9fa;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.noodle-btn:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* ==================== Order Guide ==================== */
.order-guide {
  background: #f8fbfa;
  border: 1px solid #d4e4db;
  border-radius: 14px;
  padding: 1.4rem 1.8rem;
  max-width: 680px;
  margin: 2rem auto 4rem;
}

.order-guide h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--heading);
}

.order-guide ol {
  text-align: left;
  max-width: 680px;
  margin: 0 auto;
}

/* ==================== Final Screen ==================== */
.final-screen {
  display: none;
  padding: 4rem 1.5rem 6rem;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: #f9fdfd;
  border-radius: 20px;
}

.final-screen h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  margin-bottom: 2.8rem;
  color: var(--heading);
}

.final-english-box,
.final-japanese-box {
  border: 2px solid #ddd;
  padding: 2.2rem;
  border-radius: 16px;
  background: #fff;
  margin: 2.2rem 0;
  text-align: left;
  font-size: 1.08rem;
  line-height: 1.85;
  box-shadow: 0 6px 22px rgba(0,0,0,0.07);
}

.final-japanese-box {
  background: #f8fff9;
  border-color: var(--brand);
}

.final-msg {
  margin: 2.8rem 0 2rem;
  color: #555;
  font-size: 1.08rem;
  line-height: 1.7;
}

/* 価格表示（カート＋最終画面） */
.final-english-box .order-line span:last-child,
.final-japanese-box .order-line span:last-child {
  color: #1e7a5f;
  font-weight: 700;
}

.order-line {
  display: flex;
  justify-content: space-between;
  margin: 0.55rem 0;
  padding: 0.1rem 0;
}

.final-english-box .order-line,
.final-japanese-box .order-line {
  font-size: 1.05rem;
}

/* Final Total */
.final-total {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  background: #f0f9f5;
  padding: 18px 22px;
  border-radius: 12px;
  margin: 2.2rem 0 1.8rem;
  border-top: 2px solid #ddd;
  text-align: right;
  line-height: 1.4;
}

.final-total span,
.final-total b,
.final-total strong {
  color: #1e7a5f;                    
  font-size: 1.9rem;
}

/* ボタン配置 */
.final-screen .qr-btn {
  margin: 0.8rem 0.5rem;
  padding: 1rem 2.2rem;
}

/* ==================== Back to Tabs Button ==================== */
.back-to-tabs-btn {
  position: fixed;
  bottom: 110px;
  right: 20px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1550;
  transition: all 0.3s ease;
}

.back-to-tabs-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  background: var(--brand-dark);
}

.back-to-tabs-btn.show {
  display: flex;
}

/* ==================== Media Queries ==================== */
@media (min-width: 1024px) {
  body {
    padding-bottom: 40px;
  }
}

@media (min-width: 900px) {
  #cartBar,
  #cartPanel,
  .item .btn,
  .order-guide {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .back-to-tabs-btn {
    width: 52px;
    height: 52px;
    font-size: 26px;
    bottom: 105px;
    right: 16px;
  }
}

/* ==================== ロゴサイズ統一 ==================== */
.logo img {
  height: 36px;           
  width: auto;
  display: block;
}


.logo {
  max-width: 180px;
}

/* ==================== Fullmenu Hero ==================== */
.hero-title {
  position: relative;
  text-align: center;
  padding: 5rem 2rem 4rem;   
}

/* メインタイトル */
.prism-text {
  color: #4aae88;           
  text-shadow: 0 2px 8px rgba(205, 173, 173, 0.65);   
  animation: fadeInUp 1.6s ease forwards;
}


.subcopy {
  color: #161d16;           
  margin-top: 1.2rem;
  animation: fadeInUp 1.8s ease 0.6s forwards;
  opacity: 0;
}


.subcopy::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: var(--brand);
  animation: lineExpand 2s ease 1.2s forwards;
}

@keyframes lineExpand {
  to {
    width: 140px;
  }
}

/* ==================== Order Guide 注釈 ==================== */
.menu-note {
  text-align: center;
  font-size: 0.93rem;
  color: #555;
  margin: 2rem auto 2.5rem;
  line-height: 1.65;
  max-width: 680px;
  padding: 0.8rem 1rem;
  background: #f8fbfa;
  border-radius: 10px;
}

/* Hot/Coldマーク */
.hotcold-mark {
  color: #3a8fd1;
  font-size: 1.2rem;
  margin-left: 6px;
  vertical-align: middle;
  display: inline;           
}

/* デスクトップでは❄️を非表示 */
@media (min-width: 900px) {
  .hotcold-mark {
    display: none;
  }
}
/* qr-warning用 */
.qr-warning {
  text-align: center;
  font-size: 0.9rem;
  color: #d9534f;
  margin: 1.2rem auto 0;
  max-width: 680px;
}

/* ==================== QR Mode Header ==================== */
.qr-mode-header {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 1.05rem;
  z-index: 25;
  display: none;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}

.qr-mode-header.show {
  display: flex;
}

/* 閉じるボタン */
.close-qr-btn {
  background: transparent;
  color: white;
  border: 2px solid white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s;
}

.close-qr-btn:hover {
  background: white;
  color: #333;
}


header.qr-mode nav,
header.qr-mode .hamburger {
  display: none !important;
}


header.qr-mode .lang-switch {
  display: flex !important;
}


.qr-exit-container {
  text-align: center;
  margin: 1.2rem auto 1.2rem;
}

.qr-exit-btn {
  background: #f4f4f4;
  color: #444;
  border: 1px solid #ccc;
  padding: 8px 22px;
  border-radius: 24px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.2s;
}

.qr-exit-btn:hover {
  background: #e9e9e9;
}


/* ====================== Full Menu Hero ====================== */
#hero.hero-fullmenu {
  position: relative;
  height: 46vh;
  min-height: 380px;
  background-color: #0f2a2f;           
  background-image: url('images/hero-soba-fullmenu2.jpg');
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}




#hero.hero-fullmenu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/hero-soba-fullmenu2.jpg') center/cover no-repeat;
  z-index: -2;
}


#hero.hero-fullmenu::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 54, 65, 0.28);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  max-width: 900px;
}


#hero.hero-fullmenu .prism-text {
  color: #fff !important;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.75);
  font-size: clamp(2.75rem, 8vw, 4.9rem);
}

#hero.hero-fullmenu .subcopy {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  margin-top: 1rem;
  font-size: clamp(1.22rem, 3.7vw, 1.78rem);
}

/* 下線 */
.subcopy::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: #fff;
  animation: lineExpand 2.2s ease 1.3s forwards;
}

@keyframes lineExpand {
  to { width: 145px; }
}

/* ====================== モバイル向け調整 ====================== */
@media (max-width: 1024px) {
  #hero.hero-fullmenu {
    height: 44vh;
    min-height: 360px;
    background-position: center 40%;   
  }
}


@media (max-width: 768px) {
  #hero.hero-fullmenu {
    height: 40vh;                    
    min-height: 320px;
    background-image: url('images/hero-soba-fullmenu2-mobile.jpg');
    background-position: center 40%;   
  }
}

@media (max-width: 480px) {
  #hero.hero-fullmenu {
    height: 38vh;           
    min-height: 300px;
    background-position: center 45%;   
  }
}