/*
Theme Name: Esquisse-like Theme
Theme URI:  https://example.com/
Author:      Your Name
Description: A refined style version
Version:     1.2
Text Domain: esquisse
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
  --accent: #aa6c33;
  --bg: #fff;
  --muted: #666;
  --max-width: 1200px;
}

/* 基本設定 */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  color: #111;
  background: var(--bg);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  background: transparent;
  z-index: 9999;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 20px 10px;
}
.site-brand a,
.site-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}
.site-nav .main-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .main-menu li a {
  font-family: 'Noto Serif JP', serif;
  text-decoration: none;
  color: #000;
  font-size: 16px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-instagram, .btn-reserve {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-instagram { background: #e4405f; }
.btn-instagram:hover { background: #c13584; }
.btn-reserve { background: var(--accent); }
.btn-reserve:hover { background: #8a5428; }

.lang-switch a {
  color: #000;
  text-decoration: none;
}
.lang-switch a:hover {
  text-decoration: underline;
}

/* モバイル時ナビ表示 */
@media (max-width: 600px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: block;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
  }
  .site-nav .main-menu {
    flex-direction: column;
    gap: 12px;
  }
  .site-nav .main-menu li a {
    color: #000;
  }
}

/* === HERO セクション === */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
}
.hero .swiper-slide {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero picture,
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
　background-color: #000; /* ← 読み込み中に黒で覆う */
  background-size: cover; /* ← Safari描画安定対策 */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 48px;
  margin: 0;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-top: 10px;
}

/* スマホでのヒーロー調整 */
@media (max-width: 768px) {
  .hero,
  .hero .swiper-slide,
  .hero picture,
  .hero img {
    height: 80vh; /* スマホ時に高さを明示的に確保 */
  }
}

.swiper-slide {
  position: relative;
}


/* MAIN コンテンツ 共通 */
.section {
  padding: 80px 0;
}

/* NEWS セクション */
.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.news-item a {
  font-size: 14px;
  color: #111;
  text-decoration: none;
}
.news-date {
  font-size: 13px;
  color: #666;
  min-width: 80px;
}

/* MENU カード */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.card {
  flex: 1 1 calc(33.333% - 20px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: 16px;
}
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    flex: 1 1 100%;
    max-width: 90%;
  }
  .card img {
    height: auto;
    border-radius: 8px;
  }
}

/* FOOTER */
.site-footer {
  background: #111;
  color: #fff;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* PAGE / SINGLE 調整 */
.page .entry-title {
  margin-top: 140px;
  font-size: 24px;
  line-height: 1.4;
}
.single .entry-title {
  margin-top: 100px;
  font-size: 22px;
  line-height: 1.4;
}
.page .site-main {
  margin-top: 160px;
}
.single .site-main {
  margin-top: 120px;
}
@media (max-width: 768px) {
  .page .entry-title {
    margin-top: 120px;
    font-size: 18px;
  }
  .single .entry-title {
    margin-top: 100px;
    font-size: 20px;
  }
  .page .site-main {
    margin-top: 120px;
    font-size: 13px;
  }
  .single .site-main {
    margin-top: 100px;
    font-size: 14px;
  }
}

/* ===============================
   スマホ対応：アクションボタン + ハンバーガー横並び
   =============================== */
@media (max-width: 768px) {

  /* ヘッダー内レイアウト */
  .header-inner {
    padding: 16px 12px;
    justify-content: space-between;
    align-items: center;
  }

  /* インスタ＆予約ボタンの縮小と横並び */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-instagram,
  .btn-reserve {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    line-height: 1.2;
  }

  /* ===============================
     ハンバーガーボタン（統合済み）
     =============================== */
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 34px;       /* ← 22px → 34px に拡大 */
    height: 26px;      /* ← 16px → 26px に拡大 */
    border: none;
    background: transparent;
    cursor: pointer;
    margin-left: 8px;
    padding: 8px;
    border-radius: 4px;
    z-index: 9999;
    transition: background 0.3s;
  }

  .menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #000; /* 白背景でも見える黒線 */
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* メニュー展開時に「×」に変化（オプション） */
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  /* ===============================
     言語切替（JP/EN）非表示
     =============================== */
  .lang-switch {
    display: none !important;
  }

  /* ===============================
     ナビゲーション（展開時）
     =============================== */
  .site-nav {
    display: none;
    position: absolute;
    top: 55px; /* ヘッダー直下 */
    right: 10px;
    background: rgba(255, 255, 255, 0.9); /* 半透明 */
    backdrop-filter: blur(4px);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 8px 14px 6px; /* 下余白少なめ */
    flex-direction: column;
    text-align: right;
    z-index: 9998;
    min-width: 140px;
    animation: slideIn 0.3s ease forwards;
  }

  .site-nav.open {
    display: flex;
  }

  @keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  .site-nav .main-menu {
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
  }

  .site-nav .main-menu li a {
    font-size: 15px;
    color: #000;
    text-decoration: none;
    padding: 4px 0;
  }
}

/* ===============================
   PC時（ハンバーガー非表示）
   =============================== */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
}
