﻿/* リセット & 基本 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f9f5f0 url('images/mayaa-background18.webp') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}


/* ヘッダー */
header {
  background: rgba(200, 16, 46, 0.92);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.7rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  margin-bottom: 0.1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.catchphrase {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.1rem;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.3rem 1.0rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s;
  font-size: 1.1rem;
}

.menu a:hover {
  background: rgba(255,255,255,0.4);
}


.welcome {
  background: rgba(0, 0, 0, 0.6);
  padding: 3rem 2rem 3rem;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  width: 100%;
  padding-inline: max(1.6rem, calc((100% - 32rem) / 2.8));
}


.txt-common {
  /*  隠しリンク用 見た目を周囲と完全に一致させる */
  color: inherit !important;
  text-decoration: none !important;
  
  /* カーソルを「指」に変えない */
  cursor: text;
  
  /* 全選択(Ctrl+A)による反転・発覚を防ぐ */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  
  /* タップやクリック時のハイライト・枠線を消す */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* 念のためホバー時（マウスが乗った時）の変化も封じる */
.txt-common:hover {
  color: inherit;
  text-decoration: none;
}

/* 電話ボタン */
.tel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: #c8102e;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
  transition: all 0.3s ease;
  line-height: 1;
}

.tel-button:hover,
.tel-button:focus {
  background: #a00d25;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4);
}

.tel-button.large {
  font-size: 1.1rem;
  padding: 0.7rem 2rem;
  width: 100%;
  max-width: 360px;
  margin: 0.8rem auto;
  display: block;
  justify-content: center;
}

.note {
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  margin-top: 0.4rem;
}

/* フッター内電話ボタン */
.tel-button-wrapper {
  text-align: center;
  margin: 1rem 0;
}

.footer-tel {
  font-size: 1.1rem;
  padding: 0.7rem 2rem;
  gap: 0.8rem;
}

.footer-note {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 0.4rem;
}

/* メインコンテナ */
.container {
  background: transparent;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}

/* カード台紙 */
.card-container {
  display: block;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 50px 50px 28px 28px;
  padding: 0 2rem 2.5rem 2rem;
  margin: 2rem 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

/* タイトルカード */
.menu-title-card {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  background: rgba(146, 60, 45, 0.85);
  border: 2px solid rgba(187, 204, 33, 0.6);
  border-radius: 3.5rem;
  padding: 0.9rem 0;
  text-align: center;
  margin-bottom: 0.5rem;
  min-height: auto;
  height: auto;
  cursor: default;
  transition: none;
  transform: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.menu-title-card h2 {
  margin: 0;
  font-size: clamp(1.1rem, 3.2vw, 1.3rem);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.overlay-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  justify-content: flex-end;
}

.img-ws { width: 200px; height: auto; }
.img-wl { width: 80%; height: auto; }
.img-hl { width: auto; height: 75%; }

/* 子グリッド */
.sub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  container-type: inline-size;
  margin-top: 2rem;
}

/* 共通カード */
.card, .overlay-hero {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  padding: 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 180px;
  height: auto;
  display: flex;
  flex-direction: column;
  flex: 1.5 1 280px;
  box-sizing: border-box;
  cursor: default;
}

/* 特殊サイズ */
.card-tall { min-height: 400px; height: auto; }
.card-wide {
  flex: 3 2 390px;
  padding-inline: max(1.6rem, calc((100% - 55em) / 4.5));
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.card-extra-wide {
  flex: 7 1 880px;
  padding-inline: max(1.6rem, calc((100% - 35em) / 3));
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ホバー演出（.no-hover クラスがついているものは絶対に適用しない） */
.card[data-modal-type]:not(.no-hover):hover,
.card.zoom-target:not(.no-hover):hover,
.card:has(a):not(.no-hover):hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 7px 20px rgba(0,0,0,0.3);
  cursor: pointer;
}

/* 高さ制限 */
.limit-height {
  max-height: 85vh !important;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(146, 60, 45, 0.5) transparent;
}

.menu-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative; /* アイコンをプレビュー内に固定 */
}

/* 背景画像 */
.nan-hero { background-image: url('images/tandoor-huge-nan.jpg'); background-size: cover; background-position: center; }
.tandoor-hero { background-image: url('images/tandoor.webp'); background-size: cover; background-position: center; }
.access-hero { background-image: url('images/mayaa-access18.webp'); background-size: cover; background-position: center; }



/* 営業時間表示関係 */
.hours-text {
  font-size: 1rem;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;     /* 幅に応じて自動で折り返し */
  gap: 0.5rem 0.5rem;    /* ブロック間の余白 */
  align-items: flex-start;
}
.hours-text strong {
  font-weight: bold;
}
/* ランチ・ディナーのブロック（ノート以外） */
.hours-text > div:not(.note) {
  flex: 1 1 150px;     /* 伸び縮みするが、px以下になると改行 */
}
/* noteのブロック（ここを広め・縮みにくく設定） */
.hours-text .closed-days {
  flex: 3 1 300px;     /* 他のブロックの2倍の比率(2)で広がり、pxを基準にする */
  min-width: 250px;    /* 縮みすぎを防止 */
}

/* これが「自動拡縮」のコア設定 */
.jwc-text {
  width: 5.5ch;           /* 横幅：JWCADの指定枠（数文字分） */
  height: 1rem;         /* 高さ：周囲の文字と同じ16px相当に固定 */
  display: inline-block;
  vertical-align: middle;
  overflow: visible;    /* 念のためハミ出しを許容 */
}

.jwc-text text {
  font-family: system-ui, sans-serif;
  font-weight: normal;
  font-size: 100px; 
  fill: currentColor;
}


.overlay-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 3rem 2rem 3rem;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  width: 100%;
  padding-inline: max(1.6rem, calc((100% - 25em) / 3.5));
}

.card .map-responsive {
  flex: 1;
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 1rem;
  background: #e5e5e5;
}
.card .map-responsive iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 0; border-radius: 12px;
}

/* モーダル */
.zoom-target {
  cursor: pointer;
  position: relative; /* 拡大アイコンを配置するために必須 */
}

/* モーダル内では拡大アイコンを非表示（念のため・保険） */
.modal .zoom-icon {
  display: none !important;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0,0,0,0.9);
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.modal[style*="display: block"],
.modal[style*="display: flex"] {
  display: flex !important;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
  line-height: 1;
}

.modal-content {
  margin: auto;
  width: 90%;
  max-width: 1160px;
  position: relative;
  display: block;
}

.modal-content .card,
.modal-content .overlay-hero {
  height: 75vh !important;
  min-height: 75vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden;
  border-radius: 20px;
  flex: none !important;
}

.modal-content .overlay-content {
  width: 100% !important;
  text-align: left !important;
  padding: 30px !important;
  box-sizing: border-box !important;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

/* 拡大アイコン（サイズを6割程度に縮小） */
.zoom-icon {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 32px;               /* 元52px → 約6割 */
  height: 32px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  transition: all 0.3s ease;
  opacity: 0.92;
  pointer-events: none;
  z-index: 10;
}

.zoom-target:hover .zoom-icon {
  transform: scale(1.15);
  opacity: 1;
  box-shadow: 0 6px 15px rgba(200, 16, 46, 0.35);
  background: rgba(255, 255, 255, 0.98);
}

.zoom-icon svg {
  width: 18px;               /* 元28px → 約6割 */
  height: 18px;
  color: #c8102e;
  stroke-width: 2.2;
}

/* スマホ調整（サイズをさらに控えめに） */
@media (max-width: 768px) {
  .card, .card-tall, .overlay-hero, .card-wide, .card-extra-wide {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto;
    padding: 1.2rem;
    min-height: 80px;
  }

  .overlay-hero {
    min-height: 550px;
  }

  .modal-content {
    width: 95%;
  }

  .close {
    top: 15px;
    right: 20px;
    font-size: 40px;
  }

  .overlay-content {
    padding: 2rem 1.5rem 2rem;
  }

  .card-container {
    padding: 0 1rem 1.8rem 1rem;
    margin: 1.5rem 0;
    border-radius: 28px;
    display: block;
  }

  .sub-grid {
    flex-direction: column;
    gap: 1.2rem;
  }

  .menu {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .menu a {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .card .map-responsive {
    min-height: 250px;
  }

  .zoom-icon {
    width: 30px;             /* スマホではさらに小さく */
    height: 30px;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
  }

  .zoom-icon svg {
    width: 16px;
    height: 16px;
  }

  /* カード内の下部コンテンツに余白を追加して被りを防ぐ */
  .card .hint,
  .menu-preview + p.hint {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
  }

  /* メニュー画像カード特化 */
  .menu-image-card .menu-preview {
    margin-bottom: 2.8rem;
  }

  /* 営業時間表示関係 */
.hours-text {
  font-size: 1rem;
  line-height: 1.2;
  display: flex !important;
  flex-wrap: wrap !important;  /* 幅に応じて自動で折り返し */
  gap: 0.5rem 0.1rem !important;    /* ブロック間の余白 */
  align-items: flex-start !important;
}
.hours-text strong {
  font-weight: bold;
}
/* ランチ・ディナーのブロック（ノート以外） */
.hours-text > div:not(.note) {
  flex: 1 2 136px;     /* 伸び縮みするが、px以下になると改行 */
}
/* noteのブロック（ここを広め・縮みにくく設定） */
.hours-text .closed-days {
  flex: 3 1 300px;     /* 他のブロックの2倍の比率(2)で広がり、pxを基準にする */
  min-width: 250px;    /* 縮みすぎを防止 */
}

/* これが「自動拡縮」のコア設定 */
.jwc-text {
  width: 5ch;           /* 横幅：JWCADの指定枠（数文字分） */
  height: 1rem;         /* 高さ：周囲の文字と同じ16px相当に固定 */
  display: inline-block;
  vertical-align: middle;
  overflow: visible;    /* 念のためハミ出しを許容 */
}

.jwc-text text {
  font-family: system-ui, sans-serif;
  font-weight: normal;
  font-size: 100px; 
  fill: currentColor;
}

}

/* 横長メニュー専用 */
.modal-content.wide-image-mode {
  width: 94%;
  max-width: 1400px;
  height: 85vh;
  padding: 10px 0;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.modal-content.wide-image-mode .modal-image-container {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  background: #111;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px 0;
}

.modal-content.wide-image-mode img {
  height: auto;
  max-height: 75dvh;
  width: auto;
  max-width: none;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  object-fit: contain;
}

@media (max-width: 768px) {
  .modal-content.wide-image-mode {
    width: 98%;
    height: 88vh;
  }
  .modal-content.wide-image-mode img {
    max-height: 70dvh;
  }
}

/* フッター */
footer {
  background: rgba(51, 51, 51, 0.92);
  backdrop-filter: blur(10px);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}


@keyframes slickSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body .fade-in, 
body .card, 
body .card-container {
  opacity: 0;
  pointer-events: none;
}

body .fade-in.is-visible, 
body .card.is-visible, 
body .card-container.is-visible {
  pointer-events: auto;
  animation: slickSlideUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}