* { box-sizing: border-box; }

a { color: inherit; }

.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background:#111;
  color:#fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration:none;
  cursor:pointer;
}

/*  Shops Index（店舗一覧） */
.shops-page{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* ヘッダー */
.shops-header{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.shops-title{
  font-size: 22px;
  font-weight: 900;
  margin: 0;
}

.shops-subtitle{
  font-size: 13px;
  color:#666;
  margin: 4px 0 0;
}

/* 右側（トグル + 追加ボタン） */
.shops-open-btn{
  display:flex;
  align-items:center;
  gap: 12px;
}

.btn-add-shop{
  background:#ffd400;
  color:#111;
  font-weight:900;
  font-size:13px;
  padding: 10px 14px;
  border-radius:10px;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,0.05);
}

/* 検索 */
.shop-search{
  display:flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0 18px;
}
.search-box{
  flex:1;
  display:flex;
  align-items:center;
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:10px;
  padding: 8px 10px;
}
.search-icon{
  margin-right: 6px;
  opacity: 0.6;
}
.search-input{
  border:none;
  outline:none;
  width:100%;
  font-size:14px;
  background: transparent;
}
.search-select{
  border:1px solid #e5e5e5;
  border-radius:10px;
  padding: 8px 10px;
  background:#fff;
  font-size: 14px;
}
.shop-btn-search{
  background:#111;
  color:#fff;
  font-weight:800;
  font-size:13px;
  padding: 9px 14px;
  border-radius:10px;
  border:none;
  cursor:pointer;
}

/* 店舗リスト（縦並びのカード） */
.shops-page .shop-list{
  list-style:none;
  padding:0;
  margin:0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shops-page .shop-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  overflow: hidden;
}

.shops-page .shop-card-link{
  display:flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  text-decoration:none;
  color:inherit;
}

/* 画像 */
.shops-page .shop-thumb{
  width: 84px;
  height: 84px;
  border-radius:12px;
  overflow:hidden;
  flex-shrink:0;
  background:#f3f3f3;
  display:flex;
  align-items:center;
  justify-content:center;
}
.shops-page .shop-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.shops-page .no-image{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color:#999;
}

/* 本文 */
.shops-page .shop-info2{
  flex:1;
  min-width:0;
}
.shops-page .shop-name-row{
  display:flex;
  align-items:center;
  gap: 8px;
}

.shops-page .shop-name{
  font-size:16px;
  font-weight:900;
  margin:0;
}
.shops-page .shop-rating{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #ffe08a;
  background: #fff5c2;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.shops-page .shop-address{
  font-size:13px;
  color:#e53935;
  margin-top: 4px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.shops-page .shop-desc{
  font-size:13px;
  color:#666;
  margin-top: 6px;
  line-height:1.4;
}
/* 右端の矢印（空divでも表示される） */
.shops-page .shop-arrow{
  flex-shrink:0;
  color:#bbb;
  font-size: 24px;
  line-height: 1;
}
.shops-page .shop-arrow::before{
  content: "›";
}

/* モバイル */
@media (max-width: 640px){
  .shop-search{
    flex-wrap: wrap;
  }
  .search-box{ flex-basis: 100%; }
  .shops-page .shop-thumb{
    width: 72px;
    height: 72px;
  }
  .shops-page .shop-card-link{
    gap: 10px;
  }
}

/* 
   今空いているお店のみ　店舗一覧 */
.toggle-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.toggle-btn input{ display:none; }
.toggle-btn-ui{
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #ddd;
  transition: 0.2s;
}
.toggle-btn-ui::after{
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}
.toggle-btn input:checked + .toggle-btn-ui{
  background: #22c55e;
}
.toggle-btn input:checked + .toggle-btn-ui::after{
  transform: translateX(18px);
}
.toggle-label{
  font-size: 14px;
  color: #111;
}

/*  Shop Show（店舗詳細）*/
.review_shop_detail{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}
.shop-show {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.shop-show .shop-name{
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 10px;
}

/* 上段レイアウト */
.shop-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: flex-start;
}
/* 建物の写真/show */
.main-photo {
  width: 400px;
  height: 250px;
  border-radius: 8px;
  margin-bottom: 16px;
  object-fit: cover;
}
.menu-photo {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

/* 店舗情報カード/show */
.shop-info-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.shop-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.shop-info-card li {
  margin-bottom: 12px;
  font-size: 14px;
}
/* 説明 */
.shop-description {
  margin: 30px 0;
  font-size: 15px;
}
/* 口コミ */
.review-btn {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: #f5a623;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.review-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.review-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.review-images img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}
.to_detailed_btn{
   display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: orange;
  color: black;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  margin-left: 16px;
  
}
/* 
   Shop New（店舗登録） */
.shop-form-page{
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  position: relative;
  z-index: 1;
}

.shop-form-header h1{
  font-size: 24px;
  margin: 0 0 6px;
}

.shop-form-lead{
  margin: 0 0 16px;
  color: #666;
  font-size: 13px;
}

.shop-form-card{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.form-errors{
  background:#fff3f3;
  border:1px solid #ffd0d0;
  color:#b10000;
  border-radius:10px;
  padding:10px 12px;
  margin-bottom:12px;
  font-size: 13px;
}

.form-errors ul{ margin:0; padding-left:18px; }

.form-group{ margin-bottom: 14px; }

.form-label{
  display:inline-block;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
}

.req{
  display:inline-block;
  margin-left: 8px;
  font-size: 11px;
  color:#d11;
  font-weight: 800;
}

.form-control{
  width:100%;
  padding: 10px 12px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fff;
  outline: none;
  font-size: 14px;
}

.form-control:focus{
  border-color: #cfcfcf;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.form-section-title{
  margin: 16px 0 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f1f1;
  font-weight: 900;
  font-size: 13px;
  color:#111;
}

/* 写真アップロード */
.upload-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  
}

.upload-box{
  border: 1px dashed #d9d9d9;
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}

.upload-title{
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 8px;
  color:#111;
}

.file-input{
  width:100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  font-size: 13px;
}

.upload-hint{
  margin-top: 6px;
  font-size: 11px;
  color:#777;
}

.form-actions{
  display:flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.btn-cancel{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background:#fff;
  color:#333;
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
}

/* 
   Photos（写真一覧：shops#photos想定） */
.photos-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:16px;
}

.photo-card{
  border:1px solid #ddd;
  border-radius:12px;
  padding: 20px;
  background:#fff;
}

.photo-link{
  text-decoration:none;
  color:inherit;
  display:block;
}

.photo-thumb{
  aspect-ratio:4 / 3;
  overflow:hidden;
  border-radius:10px;
  background:#f3f3f3;
}

.photo-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.photo-meta{
  margin-top:10px;
  font-weight:900;
}

.photo-shop-address{
  margin-top:4px;
  font-weight:400;
  color:#666;
}
.shop-rating2{
  display: flex;
  align-items: center;
}

.shop-rating2 .stars,
.shop-rating2 .avg,
.shop-rating2 .count{
  margin-right: 6px;
}
