/* ========================
   全体共通
   ======================== */
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fafafa;
  color: #333;
}

header,
footer {
  background-color: #004d99;
  color: white;
  padding: 1rem;
  text-align: center;
}

a {
  color: #004d99;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========================
   コンテナ
   ======================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

/* ========================
   検索フォーム
   ======================== */
.search-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}

.search-box input,
.search-box select {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-box button {
  background-color: #004d99;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.search-box button:hover {
  background-color: #0066cc;
}

/* ========================
   店舗カード（一覧ページ）
   ======================== */
.store-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.store-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 一覧の画像：カード幅いっぱい・16:9 で統一 */
.store-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.store-card .info {
  padding: 10px;
}

.store-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #004d99;
}

/* ========================
   店舗詳細ページの画像
   ======================== */
/*
  PC：
    ・最大 800px 幅で表示
    ・画像は中央寄せ
  スマホ：
    ・画面幅（コンテンツ幅）100% にフィット
  共通：
    ・縦横比 16:9 を維持
*/
.store-image {
  width: 100%;          /* 画面幅にフィット（スマホで効く） */
  max-width: 800px;     /* PC では 800px を上限にする */
  aspect-ratio: 16 / 9; /* 16:9 の比率を維持 */
  object-fit: cover;    /* 枠いっぱい、はみ出した部分はトリミング */
  display: block;
  margin: 0 auto 16px;  /* 中央寄せ＋下に余白 */
  border-radius: 8px;
}

/* ========================
   管理画面
   ======================== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.admin-table th {
  background-color: #eee;
}

/* ========================
   店舗詳細ページ：メニュー一覧
   ======================== */
.menu-section {
  margin: 24px 0;
}

.menu-section h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
}

.menu-main {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.95rem;
}

.menu-name {
  font-weight: 600;
}

.menu-price {
  white-space: nowrap;
}

.menu-link a {
  font-size: 0.85rem;
}

.menu-note {
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
}
/* =========================
   店舗詳細ページ
   ========================= */
.store-detail {
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 0 16px 40px;
}

/* 上部のメイン画像 */
.store-hero {
  margin-top: 16px;
}
.store-hero-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* セクション共通 */
.section-title {
  font-size: 18px;
  margin: 24px 0 12px;
  padding-left: 8px;
  border-left: 4px solid #004d99;
}

/* ギャラリー（スライダー） */
.store-gallery-section {
  margin-top: 24px;
}

.store-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #eee;
}

.store-gallery-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.store-gallery-item.is-active {
  position: relative;
  opacity: 1;
}

.store-gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .store-gallery-item img {
    height: 360px;
  }
}

/* 店舗紹介エリア */
.store-intro-section {
  margin-top: 32px;
}

.store-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.store-intro-text p {
  line-height: 1.8;
  font-size: 14px;
}

.store-intro-image-wrapper {
  max-width: 480px;
}

.store-intro-image {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

@media (min-width: 768px) {
  .store-intro {
    flex-direction: row;
    align-items: flex-start;
  }
  .store-intro-text {
    flex: 2;
  }
  .store-intro-image-wrapper {
    flex: 1;
  }
}

/* メニューエリア */
.store-menu-section {
  margin-top: 32px;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.menu-image-wrapper {
  flex: 0 0 90px;
}

.menu-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.menu-body {
  flex: 1;
}

.menu-name-price {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.menu-name {
  font-weight: 600;
}

.menu-price {
  font-weight: 600;
  color: #c00;
  white-space: nowrap;
}

.menu-note {
  font-size: 13px;
  color: #555;
  margin: 2px 0 4px;
}

.menu-link {
  font-size: 13px;
  color: #004d99;
}

/* 基本情報エリア */
.store-basic-section {
  margin-top: 32px;
}

.store-basic {
  display: grid;
  grid-template-columns: 90px 1fr;
  row-gap: 6px;
  column-gap: 8px;
  font-size: 14px;
}

.store-basic dt {
  font-weight: 600;
  color: #555;
}

.store-basic dd {
  margin: 0;
}

/* マップエリア */
.store-map-section {
  margin-top: 32px;
}

.store-map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.store-map-iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

@media (min-width: 768px) {
  .store-map-iframe {
    height: 380px;
  }
}
/* =========================
   画面幅に応じた調整（レスポンシブ）
   ========================= */

/* 768px 以上：タブレット〜小さめPC向け */
@media (min-width: 768px) {
  /* 全体の文字を少し大きく */
  body {
    font-size: 15px;
  }

  .section-title {
    font-size: 20px;
  }

  /* 詳細ページの左右余白を少し広げる */
  .store-detail {
    padding: 0 24px 48px;
  }

  /* 上部のメイン画像を少し大きく見せる */
  .store-hero-image {
    max-height: 420px;
  }

  /* ギャラリー画像も少し高く */
  .store-gallery-item img {
    height: 320px;
  }

  /* 店舗紹介エリアは横並び（テキスト + 画像） */
  .store-intro {
    flex-direction: row;
    align-items: flex-start;
  }
  .store-intro-text {
    flex: 2;
    font-size: 15px;
  }
  .store-intro-image-wrapper {
    flex: 1;
    max-width: 380px;
  }

  /* メニューエリア：余白や文字サイズを少しアップ */
  .menu-item {
    padding: 14px;
    gap: 16px;
  }
  .menu-name-price {
    font-size: 15px;
  }
  .menu-note {
    font-size: 14px;
  }

  /* 基本情報エリア：行間を少しゆったり */
  .store-basic {
    row-gap: 8px;
  }
}

/* 1024px 以上：ノートPC〜大きめPC向け */
@media (min-width: 1024px) {
  /* 全体をもう少し大きめに */
  body {
    font-size: 16px;
  }

  .section-title {
    font-size: 22px;
  }

  .store-detail {
    max-width: 1100px;
    padding: 0 32px 56px;
  }

  .store-hero-image {
    max-height: 480px;
  }

  .store-gallery-item img {
    height: 380px;
  }

  /* メニュー画像を少し大きく */
  .menu-image-wrapper {
    flex: 0 0 110px;
  }
  .menu-image {
    width: 110px;
    height: 110px;
  }

  .menu-name-price {
    font-size: 16px;
  }
  .menu-note {
    font-size: 15px;
  }

  /* マップも少し高く */
  .store-map-iframe {
    height: 420px;
  }
}
/* ========== 共通ヘッダー ========== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ロゴ部分 */

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0078d4, #00a3a3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.site-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #222222;
}

/* ナビゲーション */

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav-link {
  text-decoration: none;
  color: #0078d4;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-nav-link:hover {
  background-color: #f0f6ff;
  border-color: #c2ddff;
}

.site-nav-separator {
  color: #999999;
}

.site-nav-current {
  max-width: 40vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #555555;
}

/* スマホ向け調整 */

@media (max-width: 600px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo-text {
    font-size: 16px;
  }

  .site-nav {
    justify-content: flex-start;
  }
}
