:root {
  --ink: #4a3028;
  --muted: #806d66;
  --wine: #9b3f5c;
  --wine-dark: #7f304a;
  --line: #eadbd3;
  --soft: #fbf7f4;
  --cream: #fffaf6;
  --page: #fffdfb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: "Noto Sans JP", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(92%, 1180px); margin-inline: auto; }

.hero-count { display: grid; justify-items: end; }
.hero-count strong { color: var(--wine); font-family: "Noto Serif JP", serif; font-size: 42px; font-weight: 500; line-height: 1; }
.hero-count span { margin-top: 8px; color: var(--muted); font-size: 10px; letter-spacing: .18em; }

.map-tools { padding: 26px 0; background: #fff; border-bottom: 1px solid var(--line); }
.tools-panel { display: grid; grid-template-columns: minmax(260px, 1.6fr) 1fr 1fr auto; align-items: end; gap: 14px; }
.tool-field { display: grid; gap: 7px; }
.tool-field span { font-size: 12px; font-weight: 600; }
.tool-field input, .tool-field select { width: 100%; min-height: 46px; padding: 0 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.tool-field input:focus, .tool-field select:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(155,63,92,.08); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.button--primary { color: #fff; background: var(--wine); border: 1px solid var(--wine); }
.button--primary:hover { background: var(--wine-dark); }
.button--secondary { color: var(--wine); background: #fff; border: 1px solid #c998a8; }

.map-section { padding: 42px 0 54px; }
.map-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; width: min(94%, 1380px); margin-inline: auto; }
.region-panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 26px rgba(91,62,51,.045); }
.panel-heading h2 { margin: 0; font-family: "Noto Serif JP", serif; font-size: 24px; font-weight: 500; }
.region-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 22px; }
.region-buttons button { min-height: 42px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.region-buttons button:hover, .region-buttons button.is-active { color: #fff; background: var(--wine); border-color: var(--wine); }
.region-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.map-frame { position: relative; min-height: 610px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 26px rgba(91,62,51,.045); }
.map-status { position: absolute; z-index: 600; top: 16px; left: 50%; padding: 8px 13px; color: var(--muted); background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; transform: translateX(-50%); }
.map-status[hidden] { display: none; }
.custom-pin { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--wine); border: 3px solid #fff; border-radius: 50% 50% 50% 0; box-shadow: 0 5px 16px rgba(91,62,51,.22); transform: rotate(-45deg); }
.custom-pin span { font-size: 15px; transform: rotate(45deg); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 10px 28px rgba(74,48,40,.16); }
.map-popup { min-width: 190px; }
.map-popup strong { display: block; font-family: "Noto Serif JP", serif; font-size: 16px; }
.map-popup p { margin: 7px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.map-popup button { padding: 7px 12px; color: #fff; background: var(--wine); border: 0; border-radius: 999px; font-size: 12px; cursor: pointer; }

.shop-list-section { padding: 58px 0 90px; background: #fff; border-top: 1px solid var(--line); }
.list-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.list-heading h2 { margin: 0; font-family: "Noto Serif JP", serif; font-size: 30px; font-weight: 500; }
.list-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shop-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.shop-card__image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.shop-card__image img { width: 100%; height: 100%; object-fit: cover; }
.shop-card__body { padding: 18px; }
.shop-card__location { margin: 0 0 7px; color: var(--wine); font-size: 12px; font-weight: 600; }
.shop-card h3 { margin: 0; font-family: "Noto Serif JP", serif; font-size: 19px; font-weight: 500; line-height: 1.5; }
.shop-card__address { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.shop-card__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.shop-card__meta span { padding: 5px 9px; color: #7d5b51; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.shop-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.shop-card__footer small { color: var(--muted); font-size: 11px; }
.shop-card__footer button { padding: 8px 13px; color: var(--wine); background: #fff; border: 1px solid #c998a8; border-radius: 999px; cursor: pointer; }
.empty-state { padding: 70px 20px; text-align: center; background: var(--soft); border-radius: 16px; }
.empty-state h3 { margin: 0 0 8px; font-family: "Noto Serif JP", serif; font-size: 22px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }

.shop-dialog { width: min(920px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; background: transparent; border: 0; }
.shop-dialog::backdrop { background: rgba(45,29,24,.55); backdrop-filter: blur(3px); }
.shop-detail { position: relative; display: grid; grid-template-columns: 42% 58%; overflow: hidden; background: #fff; border-radius: 22px; }
.dialog-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f4b45;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
}
.dialog-close:hover {background: #faf6f3;border-color: #d8c6bc;}
.detail-image-wrap { min-height: 100%; background: var(--soft); }
.detail-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { padding: 34px; }
.detail-location { margin: 0 0 7px; color: var(--wine); font-size: 12px; font-weight: 600; }
.detail-body h2 { margin: 0; font-family: "Noto Serif JP", serif; font-size: 29px; font-weight: 500; }
.detail-description { margin: 16px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.detail-list { margin: 0; border-top: 1px solid var(--line); }
.detail-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { font-size: 12px; font-weight: 700; }
.detail-list dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.detail-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.related-discover { margin-top: 30px; }
.related-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.related-heading h3 { margin: 0; font-family: "Noto Serif JP", serif; font-size: 19px; font-weight: 500; }
.related-heading a { color: var(--wine); font-size: 12px; }
.related-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related-post { overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.related-post img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.related-post p { margin: 0; padding: 8px; font-size: 11px; line-height: 1.5; }

@media (max-width: 1000px) {
  .tools-panel { grid-template-columns: 1fr 1fr; }
  .tools-panel .button { width: 100%; }
  .map-layout { grid-template-columns: 1fr; }
  .region-panel { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
  .region-buttons { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
  .region-note { display: none; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .tools-panel { grid-template-columns: 1fr; }
  .region-panel { display: block; }
  .region-buttons { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
  .shop-grid { grid-template-columns: 1fr; }
  .list-heading { align-items: flex-start; flex-direction: column; }
  .shop-detail { grid-template-columns: 1fr; }
  .detail-image-wrap { height: 250px; }
  .detail-body { padding: 25px 20px 28px; }
  .detail-body h2 { font-size: 25px; }
  .related-posts { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { align-items: center; flex-direction: column; gap: 14px; }
  .footer-bottom nav { flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
}

/* 地図全体 */
#shopMap {
  width: 100%;
  overflow: hidden;
  background: #f8f3ef;
}

/* 地図を淡いベージュ寄りにする */
#shopMap .leaflet-tile-pane {
  filter:
    saturate(0.42)
    sepia(0.12)
    brightness(1.04)
    contrast(0.92);
}

/* ズームボタン */
#shopMap .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid #e3d4cc;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(79, 53, 45, 0.08);
}

#shopMap .leaflet-control-zoom a {
  width: 38px;
  height: 38px;
  color: var(--wine);
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #eaded7;
  font-size: 20px;
  line-height: 38px;
}

#shopMap .leaflet-control-zoom a:hover {
  background: #fff8f4;
}

/* Leafletの右下表記を控えめに */
#shopMap .leaflet-control-attribution {
  padding: 3px 7px;
  color: #9b8a82;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.shop-marker-icon {
  background: transparent;
  border: 0;
}

.shop-marker {
  position: relative;

  width: 32px;
  height: 32px;

  background: var(--wine);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 10px;

  transform: rotate(-45deg);

  box-shadow:
    0 5px 15px rgba(103, 49, 66, 0.28);
}

.shop-marker__dot {
  position: absolute;
  top: 8px;
  left: 8px;

  width: 10px;
  height: 10px;

  background: #f8d8bd;
  border-radius: 50%;
}

@media (max-width: 768px) {
  #shopMap {
    height: 430px;
    border-radius: 16px;
  }
}

/* =========================================================
   MAP — premium mobile layout only
========================================================= */
@media (max-width: 700px) {
  .map-tools { padding: 15px 0; }
  .tools-panel { gap: 9px; }
  .tool-field { gap: 4px; }
  .tool-field span { font-size: 11px; }
  .tool-field input, .tool-field select { min-height: 41px; padding: 0 10px; font-size: 12px; }
  .tools-panel .button { min-height: 41px; font-size: 12px; }

  .map-section { padding: 22px 0 34px; }
  .map-layout { width: calc(100% - 28px); gap: 12px; }
  .region-panel { padding: 14px; border-radius: 15px; }
  .panel-heading h2 { font-size: 21px; }
  .region-buttons { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 12px; }
  .region-buttons button { min-height: 36px; padding: 0 3px; font-size: 10px; border-radius: 8px; }
  .region-note { display: none; }
  .shop-list-section { padding: 38px 0 60px; }
  .list-heading { flex-direction: row; align-items: flex-end; margin-bottom: 15px; }
  .list-heading h2 { font-size: 23px; }
  .list-heading > p { font-size: 11px; }
  .shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .shop-card { min-width: 0; border-radius: 14px; }
  .shop-card__image { aspect-ratio: 1/1; }
  .shop-card__body { padding: 10px; }
  .shop-card__location { margin-bottom: 4px; font-size: 9px; }
  .shop-card h3 { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .shop-card__address { display: -webkit-box; margin-top: 5px; overflow: hidden; font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .shop-card__meta { display: none; }
  .shop-card__footer { display: block; margin-top: 9px; padding-top: 8px; }
  .shop-card__footer small { display: block; max-height: 3em; overflow: hidden; font-size: 9px; line-height: 1.5; }
  .shop-card__footer button { width: 100%; margin-top: 7px; padding: 7px 5px; border-radius: 8px; font-size: 10px; }

  .shop-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .shop-detail { border-radius: 17px; }
  .detail-image-wrap { height: 210px; }
  .detail-body { padding: 20px 14px 22px; }
  .detail-body h2 { padding-right: 38px; font-size: 23px; }
  .detail-description { margin: 11px 0 16px; font-size: 12px; line-height: 1.75; }
  .detail-list > div { grid-template-columns: 72px 1fr; gap: 8px; padding: 10px 0; }
  .detail-list dt, .detail-list dd { font-size: 11px; }
  .detail-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .detail-links .button { min-height: 41px; padding: 7px 8px; border-radius: 8px; font-size: 11px; }
  .dialog-close { top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 8px; }
}

/* ===== MOTTO OIMO MAP RENEWAL ===== */
body{overflow-x:clip;background:#fff}
.map-hero__photo img{width:100%;height:100%;object-fit:cover;object-position:center 47%;filter:saturate(.84) contrast(.96)}
.map-hero__copy{max-width:650px}
.map-hero .eyebrow{margin-bottom:8px;color:#f2dbe2}
.map-hero .hero-count {position: absolute;right: 24px;bottom: 24px;margin: 0;}
.map-hero .hero-count strong{color:#fff7ea;font-size:38px;text-shadow:0 2px 8px rgba(30,15,10,.24)}
.map-hero .hero-count span{color:rgba(255,255,255,.72)}

.map-tools{padding:24px 0 26px;background:#fff;border-bottom:1px solid var(--line)}
.map-tools__heading{margin-bottom:13px}
.map-tools__heading .eyebrow{margin:0 0 4px;font-size:10px}
.map-tools__heading h2{margin:0;font-family:"Noto Serif JP",serif;font-size:22px;font-weight:500}
.tools-panel{grid-template-columns:minmax(260px,1.6fr) 1fr 1fr auto;gap:10px}
.tool-field{gap:5px}
.tool-field span{color:var(--muted);font-size:11px}
.tool-field input,.tool-field select{min-height:43px;padding:0 12px;background:#fff;border:1px solid var(--line);border-radius:11px;font-size:12px}
.tool-field input:focus,.tool-field select:focus{border-color:rgba(155,63,92,.48);box-shadow:0 0 0 3px rgba(155,63,92,.07)}
.button{min-height:41px;padding:0 16px;border-radius:999px;font-size:12px}
.button--secondary{color:var(--wine);background:#fff;border-color:rgba(155,63,92,.28)}

.map-section{padding:30px 0 44px;background:var(--soft)}
.map-layout{grid-template-columns:225px minmax(0,1fr);gap:16px;width:min(96%,1180px)}
.region-panel{padding:20px 18px;border-radius:18px;box-shadow:none}
.panel-heading h2{font-size:22px}
.region-buttons{gap:7px;margin-top:17px}
.region-buttons button{min-height:38px;padding:0 6px;font-size:11px;border-radius:999px;transition:color .18s ease,background .18s ease,border-color .18s ease}
.region-buttons button:hover,.region-buttons button.is-active{color:#fff;background:var(--wine);border-color:var(--wine)}
.map-frame,#shopMap{height:560px;min-height:560px}
.map-frame{border-radius:20px;box-shadow:0 12px 32px rgba(81,54,49,.065)}
#shopMap{border:0;border-radius:20px;box-shadow:none}

.shop-list-section{padding:54px 0 78px}
.list-heading{margin-bottom:20px}
.list-heading h2{font-size:29px}
.shop-grid{gap:16px}
.shop-card{border-radius:16px;box-shadow:0 8px 22px rgba(75,45,35,.045);transition:border-color .18s ease,box-shadow .18s ease}
.shop-card:hover{border-color:rgba(155,63,92,.22);box-shadow:0 9px 24px rgba(75,45,35,.055)}
.shop-card__footer button{padding:7px 12px;color:var(--wine);background:#fff;border:1px solid rgba(155,63,92,.28);border-radius:999px;font-size:11px}

.shop-detail{border-radius:20px}
.detail-links{gap:8px}
.detail-links .button{min-height:40px;padding:7px 12px;border-radius:8px!important;box-shadow:none}
.detail-links .button--primary{color:#fff;background:var(--wine);border:1px solid var(--wine)}
.detail-links .button--secondary{color:var(--wine);background:#fff;border:1px solid rgba(155,63,92,.30)}

@media(max-width:700px){
  .map-hero__photo img{object-position:center 45%}

  .map-tools{padding:14px 0 16px}
  .map-tools__heading{display:none}
  .tools-panel{grid-template-columns:1fr 1fr;gap:8px}
  .tool-field--wide{grid-column:1/-1}
  .tool-field{gap:3px}
  .tool-field span{font-size:10px}
  .tool-field input,.tool-field select{min-height:39px;padding:0 9px;font-size:11px}
  .tools-panel .button{grid-column:1/-1;justify-self:end;width:auto;min-height:32px;padding:5px 11px;font-size:10px}

  .map-section{padding:14px 0 30px}
  .map-layout{display:flex;width:100%;flex-direction:column;gap:10px}
  .region-panel{width:100%;padding:0;overflow:visible;background:transparent;border:0;border-radius:0;box-shadow:none}
  .region-panel .panel-heading,.region-note{display:none}
  .region-buttons{display:flex;width:100%;gap:7px;margin:0;padding:0 14px 2px;overflow-x:auto;scrollbar-width:none}
  .region-buttons::-webkit-scrollbar{display:none}
  .region-buttons button{flex:0 0 auto;min-height:34px;padding:0 12px;font-size:10px;border-radius:999px;white-space:nowrap}
  .map-frame{width:calc(100% - 20px);height:360px;min-height:360px;margin-inline:auto;border-radius:16px}
  #shopMap{width:100%;height:360px;min-height:360px;border-radius:16px}
  .map-status{top:10px;max-width:calc(100% - 24px);padding:6px 10px;font-size:10px;white-space:nowrap}

  .shop-list-section{padding:34px 0 54px}
  .list-heading{align-items:flex-end;flex-direction:row;gap:10px;margin-bottom:14px}
  .list-heading h2{font-size:23px}
  .list-heading>p{font-size:10px}
  .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .shop-card{min-width:0;border-radius:14px}
  .shop-card__image{aspect-ratio:1/1}
  .shop-card__body{padding:10px}
  .shop-card__location{margin-bottom:4px;font-size:9px}
  .shop-card h3{display:-webkit-box;overflow:hidden;font-size:13px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .shop-card__address{display:-webkit-box;margin-top:5px;overflow:hidden;font-size:10px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .shop-card__meta{display:none}
  .shop-card__footer{display:block;margin-top:8px;padding-top:8px}
  .shop-card__footer small{display:block;max-height:3em;overflow:hidden;font-size:9px;line-height:1.5}
  .shop-card__footer button{width:auto;min-height:31px;margin-top:7px;padding:5px 10px;border-radius:999px;font-size:9.5px}

  .shop-dialog{width:calc(100% - 14px);max-height:calc(100dvh - 14px)}
  .shop-detail{border-radius:17px}
  .detail-image-wrap{height:205px}
  .detail-body{padding:19px 14px 22px}
  .detail-body h2{padding-right:40px;font-size:22px}
  .detail-description{margin:10px 0 15px;font-size:12px}
  .detail-list>div{grid-template-columns:70px 1fr;gap:8px;padding:9px 0}
  .detail-list dt,.detail-list dd{font-size:11px}
  .detail-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .detail-links .button{min-height:39px;padding:7px 8px;border-radius:8px!important;font-size:11px}
  .dialog-close{top:9px;right:9px;width:38px;height:38px;border-radius:8px}

  .footer-top{padding:32px 0 17px}
  .footer-logo img{height:65px}
  .footer-bottom{align-items:center;flex-direction:column;gap:11px;padding-bottom:22px}
  .footer-bottom nav{flex-wrap:wrap;justify-content:center;gap:9px 17px;font-size:11px}
}

[hidden] {display: none !important;}