/* リセット＆ボックスサイズ */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #fffef8;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }

/* ヘッダー */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 2px solid #e0e0c0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10000;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none;}
.logo__img { height: 60px; }
.logo__title { height: 40px; }
.logo:hover {
  opacity: 0.8;
}

/* ナビ */
.site-nav .main-nav {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav .main-nav a {
  text-decoration: none;
  background: #f3f0c0;
  color: #333;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
}
.site-nav .main-nav a:hover {
  background: linear-gradient(90deg, #f6e58d, #ffbe76);
  color: #444;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

/* ヒーロー */
.hero { position: relative; width: 100%; height: 100vh; overflow: hidden; margin-top: 80px; height: calc(100vh - 80px);   }
.hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__text {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-weight: bold; color: #fff; font-size: 32px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(5px);
  padding: 18px 26px; border-radius: 10px; text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
}
.highlight { color: #ff8b61; font-weight: 700; letter-spacing: 0.05em; }

/* セクションタイトル */
.section__title {
  font-size: 24px;
  display: inline-block;
  padding: 10px 20px;
  border-top: 2px dashed #16a085;
  border-bottom: 2px dashed #16a085;
  margin-bottom: 20px;
  background: rgba(22,160,133,0.05);
  border-radius: 1px;
}

.section.latest{ text-align: center; }

/* ショップカード */
.shop-card {
  display: flex;
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  min-height: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shop-card__figure {
  flex: 0 0 30%;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 300px;
}
.shop-card__figure img { width: 100%; height: 100%; object-fit: cover; }
.shop-card__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.shop-card__title { font-size: 22px; margin: 6px 0 12px; letter-spacing: 1px; }
.shop-card__desc { flex-grow: 1; font-size: 18px; line-height: 1.6; margin-bottom: 12px; }



.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  background-color: #f0f9f5; 
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* 偶数カードのみ左右反転 */
.shop-card-container > a:nth-of-type(even) .shop-card {
  flex-direction: row-reverse;
}

.shop-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* デフォルト（PC含む）は非表示） */
.detail-btn {
  display: none;
  text-decoration: none;
  color: inherit;
}


/* タグ */
.shop-card__tags { display: flex; gap: 14px; flex-wrap: wrap; }
.tag { background: #2f835f; color: #fff; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px; }
.tag:active { transform: translateY(1px); }

/* ======  店舗紹介 ====== */
.shop-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center; /* 2列目のカードを中央に寄せるのに効く */
  margin-top: 18px;
}

/* grid 用カード */
.shop-card.grid {
  flex-direction: column; 
  align-items: stretch;
  width: calc((100% - 48px) / 3); /* desktop: 3列 */
  min-width: 260px; /* 最大でも小さすぎない */
  max-width: 340px;
  padding: 16px;
}

/* grid 内の画像を小さめに調整 */
.shop-card.grid .shop-card__figure { flex: 0 0 auto; height: 220px; }
.shop-card.grid .shop-card__figure img { height: 100%; width: 100%; object-fit: cover; }
.shop-card.grid .shop-card__title { font-size: 22px; margin: 10px 0; }
.shop-card.grid .shop-card__desc { font-size: 18px; line-height: 1.45; margin-bottom: 10px; }

/* グリッド内での左右反転を防ぐ */
.shop-grid .shop-card:nth-of-type(even) { flex-direction: column; }

/* フッター */
.site-footer {
  padding: 18px;
  text-align: center;
  font-size: 14px;
  color: #666;
  border-top: 2px solid #e0e0c0;
}

.site-footer a {
  color: #666;
  text-decoration: none;
  display: block;   
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .shop-card {
    /* 2列表示の場合: (100% - (ギャップの数 * ギャップ幅)) / 1列あたりのカード数 */
    /* 20pxのギャップが1つなので、合計20pxを引く */
    flex: 0 0 calc(50% - (20px / 2)); /* 2列表示 */
    max-width: calc(50% - (20px / 2));
  }
}
@media (max-width: 680px) {
  .shop-card {
    flex: 0 0 100%; /* 1列表示 */
    max-width: 100%;
  }
  /* スマホでのカードコンテナのパディング調整 */
  .shop-card-container {
    padding: 0 15px; /* スマホでは左右の余白を少し増やす */
  }
}

/* ハンバーガーメニュー */
.nav-toggle { display: none; }
.hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 22px; cursor: pointer; z-index: 10001;
}
.hamburger span { display: block; height: 3px; width: 100%; background: #333; border-radius: 2px; transition: all 0.3s ease; }
.close-btn { display: none; position: absolute; top: 16px; right: 22px; font-size: 28px; cursor: pointer; color: #333; }

/* スマホ対応 */
@media (max-width: 800px) { /* このブレークポイントは680pxと重複する部分があるので注意 */
  .hamburger { display: flex; }
  .site-nav { position: fixed; top:0; right:0; width:70%; height:100%; background:#fffef8; transform:translateX(100%); box-shadow:-3px 0 8px rgba(0,0,0,0.2); padding-top:80px; transition:0.4s; z-index:10000; }
  .site-nav .main-nav { flex-direction: column; align-items: flex-start; padding-left:30px; gap:20px; }
  .nav-toggle:checked ~ .site-nav { transform: translateX(0); }
  .nav-toggle:checked ~ .site-nav .close-btn { display:block; }
  .nav-toggle:checked + .hamburger span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
  .nav-toggle:checked + .hamburger span:nth-child(2) { opacity:0; }
  .nav-toggle:checked + .hamburger span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

  .hero { height: 42vh; }
  .hero__text { font-size: 20px; padding: 12px 16px; top: 50%; }
  .shop-card { flex-direction: column; align-items: center; text-align: center; }
  .shop-card__figure { width: 95%; height: auto; }
  .shop-card__title { font-size: 24px; }
  .shop-card__desc { font-size: 15px; }
  .shop-card__tags { justify-content: center; }
  /* ショップカード（特集）を縦並びに */
  .shop-card {
    flex-direction: column !important;
    gap: 12px;
  }

  .shop-card__figure {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }

  .shop-card__title {
    font-size: 20px;
  }

  .shop-card__desc {
    font-size: 15px;
  }

  /* ===== 店舗紹介（grid部分） ===== */
  .shop-card.grid {
    width: 100%;   /* 1列表示に */
    max-width: 100%;
  }

  .shop-card.grid .shop-card__figure {
    height: 200px;
  }

  .shop-card.grid .shop-card__title {
    font-size: 18px;
  }

  .detail-btn {
    display: inline-block;
    padding: 10px 16px;
    margin-top: 12px;
    background: #f3f0c0;
    color: #333;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
  }
}

/* ==============================
   📱 超小型スマホ（480px以下）
============================== */
@media (max-width: 480px) {
  .shop-card__title {
    font-size: 18px;
    line-height: 1.4;
  }
  .shop-card__desc {
    font-size: 14px;
  }
  :root {
    --slider-height: 200px;
  }
}

/* ===== タブレット対応 ===== */
@media (min-width: 801px) and (max-width: 1024px) {
  .hero {
    height: 65vh; /* タブレットでは画面いっぱいより少し短めに */
  }
  .hero__text {
    font-size: 26px;
  } 
    .shop-card {
    flex: 1 1 100%; /* ←これに変更！ 2列強制禁止 */
    max-width: 100%;
  }

    .detail-btn {
    display: inline-block;
    padding: 10px 16px;
    margin-top: 12px;
    background: #f3f0c0;
    color: #333;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
  }
}