@charset "UTF-8";

:root {
  --bg-color: #f6f5f0;
  --text-main: #1c1c1c;
  --tile-blue: #2a4755;
  --tile-dark: #121417;
  --cta-orange: #ea5426;
  --font-serif: 'Noto Serif JP', 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-chalk: 'Caveat', cursive, sans-serif;
}

/* 全要素のボックスサイズ初期化（タイポ修正） */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ページ全体の横ブレ・はみ出し完全防止 */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
}

/* ヘッダー */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  border-bottom: 1px solid #e5e3dd;
}

.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-name span {
  font-size: 0.85rem;
  color: #666;
  font-weight: 400;
  margin-left: 0.3rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover, .nav a.active {
  color: var(--cta-orange);
}

.nav-order-btn {
  background-color: var(--cta-orange);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem !important;
}

/* グリッドコンテナ（Yang's スタイル） */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 24px;
  }
}

/* タイル共通 */
.grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

/* 写真タイル */
.tile-photo {
  position: relative;
}

.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tile-photo:hover img {
  transform: scale(1.04);
}

.photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  text-transform: uppercase;
}

/* 丸型CTA（ORDER ONLINE） */
.tile-cta {
  background-color: #eae8e1;
}

.circle-btn {
  width: 76%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--cta-orange);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
  box-shadow: 0 6px 18px rgba(234, 84, 38, 0.3);
  transition: transform 0.2s ease;
  white-space: pre-line;
}

.tile-cta:hover .circle-btn {
  transform: scale(1.05);
}

/* テキストアクションタイル（MENU / CATERING） */
.tile-action {
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  transition: opacity 0.2s ease;
}

.tile-action:hover {
  opacity: 0.92;
}

.tile-blue {
  background-color: var(--tile-blue);
}

.tile-dark {
  background-color: var(--tile-dark);
}

.tile-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: 0.15em;
  display: block;
}

.tile-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
  display: block;
}

/* 実物黒板を使った日替わりおばんざいタイル */
.tile-blackboard {
  background-image: url('../images/blackboard.webp');
  background-size: cover;
  background-position: center;
  padding: 12%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.board-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: #f0f0f0;
}

.board-header {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #f7d28b;
  border-bottom: 1px dashed rgba(247, 210, 139, 0.5);
  padding-bottom: 0.2rem;
  width: 90%;
}

.board-content h4 {
  font-family: var(--font-chalk);
  font-size: 1.65rem;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.board-content p {
  font-size: 0.75rem;
  color: #ddd;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.board-note {
  font-family: var(--font-chalk);
  font-size: 1.15rem;
  color: #f7d28b;
  display: block;
  line-height: 1.35;
  letter-spacing: 0.04em;
  font-style: normal;
  padding: 0 0.5rem;
}

.board-more {
  color: #f7d28b;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.board-more:hover {
  text-decoration: underline;
}

/* ギフトカードタイル */
.tile-giftcard {
  background-color: #fff;
  border: 1px solid #e2dfd7;
  padding: 1rem;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile-giftcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.giftcard-img-wrap {
  width: 78%;
  margin-top: 0.5rem;
}

.giftcard-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.giftcard-text {
  margin-bottom: 0.5rem;
}

.giftcard-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  display: block;
}

.giftcard-sub {
  font-size: 0.72rem;
  color: var(--cta-orange);
  font-weight: 600;
  display: block;
  margin-top: 0.2rem;
}

/* ロケーション情報タイル */
.tile-info {
  background-color: #fff;
  border: 1px solid #e2dfd7;
  padding: 1.5rem;
  text-align: center;
}

.info-content h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.info-content .address {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.info-content .hours {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.map-link {
  font-size: 0.82rem;
  color: var(--text-main);
  text-decoration: underline;
  font-weight: 600;
}

/* フッター */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.8rem;
  color: #888;
  background-color: #fff;
  margin-top: 2rem;
  border-top: 1px solid #eaeaea;
}

/* ========================================================
   スマホ表示（max-width: 768px）：タイル内文字バランス最適化
======================================================== */
@media (max-width: 768px) {
  /* ヘッダー */
  .header {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-name span {
    font-size: 0.75rem;
  }

  .nav {
    gap: 0.75rem;
  }

  .nav a {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  .nav-order-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem !important;
  }

  /* グリッドの余白 */
  .grid-container {
    gap: 10px;
    padding: 10px;
  }

  /* 1. 丸型ボタンタイル（ORDER ONLINE） */
  .circle-btn {
    width: 80%;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  /* 2. MENU / CATERING タイル */
  .tile-action {
    padding: 0.75rem 0.5rem;
  }

  .tile-title {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
  }

  .tile-sub {
    font-size: 0.65rem;
    margin-top: 0.3rem;
    line-height: 1.25;
  }

  /* 3. 日替わりおばんざい黒板タイル */
  .tile-blackboard {
    padding: 8% 6%;
  }

  .board-header {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    padding-bottom: 0.15rem;
  }

  .board-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
  }

  .board-content p {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-top: 0.15rem;
  }

  .board-note {
    font-size: 0.85rem;
    line-height: 1.2;
    padding: 0;
  }

  .board-more {
    font-size: 0.65rem;
  }

  /* 4. ギフトカードタイル */
  .tile-giftcard {
    padding: 0.6rem 0.4rem;
  }

  .giftcard-img-wrap {
    width: 62%;
    margin-top: 0.2rem;
  }

  .giftcard-text {
    margin-bottom: 0.2rem;
  }

  .giftcard-title {
    font-size: 0.82rem;
    letter-spacing: 0.05em;
  }

  .giftcard-sub {
    font-size: 0.62rem;
    margin-top: 0.15rem;
    line-height: 1.2;
  }

  /* 5. ロケーション・営業時間タイル */
  .tile-info {
    padding: 0.6rem 0.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .info-content h3 {
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
  }

  .info-content .address {
    font-size: 0.68rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
  }

  .info-content .hours {
    font-size: 0.62rem;
    margin-bottom: 0.35rem;
    line-height: 1.2;
  }

  .map-link {
    font-size: 0.68rem;
  }

  /* 写真バッジのサイズ調整 */
  .photo-badge {
    top: 8px;
    left: 8px;
    font-size: 0.58rem;
    padding: 0.2rem 0.4rem;
  }
}