:root {
  --wine: #4b0e12;
  --wine-dark: #2b070a;
  --wine-mid: #6d1c1f;
  --gold: #b99148;
  --gold-light: #d3b36e;
  --paper: #fffaf1;
  --cream: #f7efe3;
  --line: #e3d4bd;
  --text: #3b2923;
  --muted: #8a7568;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(90deg, #fbf7ed 0, #fffdf8 9%, #fffdf8 91%, #fbf7ed 100%);
  color: var(--text);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.6;
}

.endo-top-page .layout_wrapper {
  width: 100%;
  max-width: none;
  background: transparent;
}

.endo-top-page .layout_header,
.endo-top-page .layout_footer {
  display: none;
}

.endo-top-page .layout_container {
  width: 100%;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ========== Top Alert ========== */
.top-alert {
  background: var(--wine-dark);
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-alert a:hover { text-decoration: underline; }

/* ========== Header ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.header-inner {
  width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(540px, 1fr) 350px;
  align-items: center;
  gap: 20px;
  padding: 18px 0 12px;
}

.brand img {
  height: 50px;
  width: 280px;
  object-fit: contain;
  object-position: left center;
}

.header-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.header-benefits .benefit {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #6f5650;
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
}

.header-benefits .benefit span {
  display: block;
  min-width: 0;
}

.header-benefits img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.search {
  display: flex;
  border: 1px solid var(--line);
  height: 38px;
  background: #fff;
  min-width: 190px;
}

.search input {
  border: 0;
  padding: 0 10px;
  width: 150px;
  outline: 0;
  color: var(--text);
}

.search button {
  width: 36px;
  border: 0;
  background: #fff;
  color: var(--wine);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tool {
  font-size: 12px;
  color: #5d4540;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  position: relative;
  white-space: nowrap;
}

.tool span { font-size: 19px; height: 20px; }

.tool.cart em {
  position: absolute;
  right: 2px;
  top: -8px;
  background: #9b101b;
  color: #fff;
  border-radius: 50%;
  font-style: normal;
  font-size: 10px;
  line-height: 16px;
  width: 16px;
  height: 16px;
  text-align: center;
}

.tool.cart em:empty { display: none; }

/* ========== Global Nav ========== */
.global-nav {
  border-top: 1px solid var(--line);
  width: 1180px;
  margin: 0 auto;
  height: 46px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  text-align: center;
}

.global-nav a {
  border-left: 1px solid #eee1cd;
  padding: 13px 4px;
  color: #3a2b26;
  font-size: 13px;
  font-weight: 600;
}

.global-nav a:last-child { border-right: 1px solid #eee1cd; }
.global-nav a:hover { background: #fbf3e6; color: var(--wine); }

/* ========== Page Shell (3-column layout) ========== */
.page-shell {
  width: 1180px;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 180px 1fr 145px;
  gap: 16px;
  align-items: start;
}

.left-sidebar, .right-sidebar { position: relative; }

/* ========== Left Sidebar ========== */
.side-free-shipping {
  height: auto;
  background: linear-gradient(135deg, #681016, #8a1c20);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  padding: 12px 6px;
  gap: 3px;
  line-height: 1.5;
}

.side-free-shipping strong {
  font-size: 11px;
  letter-spacing: .01em;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 5px;
  margin-bottom: 2px;
  width: 100%;
}

.side-free-shipping span {
  font-size: 10px;
  color: #f0d5cb;
}

.side-box {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.side-box h2,
.right-ranking h2,
.side-banners h2 {
  margin: 0;
  background: var(--wine);
  color: #fff;
  font-size: 13px;
  padding: 8px 12px;
  letter-spacing: .03em;
}

.side-box ul {
  list-style: none;
  margin: 0;
  padding: 7px 10px;
}

.side-box li + li { border-top: 1px solid #f1e7d9; }

.side-box a {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  color: #4c3a35;
}

.side-box a:after { content: "\203A"; color: #9d7f52; }

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  display: block;
  margin-bottom: 12px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
}

.side-card img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  margin: 0 auto 5px;
}

.side-card b {
  display: block;
  background: var(--wine);
  color: #fff;
  padding: 6px;
  margin-top: 8px;
}

.guide {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  text-align: left;
  align-items: center;
}

.guide img { margin: 0; }

.vineyard {
  display: block;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
}

.vineyard img {
  height: 120px;
  width: 100%;
  object-fit: cover;
}

/* ========== Main Content ========== */
.content { min-width: 0; }

.hero-block { background: #fff; }

.hero {
  display: block;
  border: 1px solid var(--line);
}

.hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: opacity .4s ease;
}

.small-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 16px;
}

.small-banners a {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.small-banners img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity .4s ease;
}

/* ========== Section Title ========== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin: 0 0 8px;
}

.section-title h2 {
  margin: 0;
  color: #6c2f2b;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .08em;
}

.section-title a {
  font-size: 12px;
  color: #755a4d;
  padding-top: 10px;
}

.section-title.center {
  justify-content: center;
  position: relative;
}

.section-title.center h2 {
  font-size: 22px;
  text-align: center;
  background: #fffdf8;
  padding: 0 18px;
}

.section-title.center a {
  position: absolute;
  right: 0;
  bottom: 4px;
}

/* ========== Tabs ========== */
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 0;
  border-left: 1px solid var(--line);
}

.tabs button {
  background: #f8f0e3;
  border: 1px solid var(--line);
  border-left: 0;
  color: #7b6257;
  padding: 8px 0;
  font-size: 12px;
}

/* ========== Product Grid ========== */
.product-grid {
  display: grid;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.product-grid.five { grid-template-columns: repeat(5, 1fr); }
.product-grid.six { grid-template-columns: repeat(6, 1fr); }

.product-card {
  position: relative;
  text-align: center;
  min-width: 0;
  padding: 12px 10px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.product-card img {
  height: 158px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 8px;
}

.product-card .product-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.product-card .product-link:hover h3 { color: var(--wine); }

.product-card h3 {
  font-size: 12px;
  line-height: 1.35;
  margin: 0 auto 4px;
  min-height: 34px;
  color: #49332d;
  font-weight: 600;
}

.product-card .price {
  margin: 0;
  color: #7a1116;
  font-size: 16px;
  font-weight: 700;
}

.product-card small { font-size: 10px; color: #7f6a61; }

.product-card .tag {
  display: inline-block;
  font-size: 10px;
  background: #f8ece8;
  color: #8b3a33;
  border: 1px solid #e4cec5;
  padding: 1px 5px;
  margin-top: 5px;
}

/* ========== Ranking Badges ========== */
.crown {
  position: absolute;
  top: 7px;
  left: 9px;
  color: #b68b39;
  font-size: 20px;
}

.crown.silver { color: #b6b2aa; }
.crown.bronze { color: #bd7544; }

.rank {
  position: absolute;
  top: 34px;
  right: 10px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
}

.rank.red { background: #8d1618; }
.rank.green { background: #7f9a7b; }
.rank.gold { background: #a78a4a; border-radius: 12px; width: auto; padding: 0 6px; }
.rank.white { background: #ddca8e; color: #5e4a16; }

.label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #9b171c;
  color: #fff;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 10px;
}

.label.gold { background: #b18a3a; }

.product-grid.compact .product-card img { height: 132px; }

/* ========== Feature Row ========== */
.feature-row {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
}

.feature-row.three { grid-template-columns: repeat(3, 1fr); }
.feature-row.two { grid-template-columns: 1fr 1fr; }

.feature-row a,
.feature-row > div {
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.feature-row.three img { height: 105px; width: 100%; object-fit: cover; }
.feature-row.two img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }

/* ========== Wine Sets ========== */
.sets .section-title { margin-top: 20px; }
.set-grid .product-card img { height: 120px; }

.round {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #d7a94d;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1.2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ========== Food Pairing ========== */
.food-section { margin-top: 22px; }

.food-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.food-grid a {
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  padding-bottom: 8px;
}

.food-grid img { width: 100%; height: 100px; object-fit: cover; }
.food-grid strong { display: block; font-size: 13px; color: #6b2f2b; margin: 6px 2px 0; }
.food-grid span { font-size: 11px; color: #7f665b; }

/* ========== Info Grid ========== */
.info-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.info-area,
.top-info,
.middle-info,
.bottom-info {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-area,
.bottom-info { margin-bottom: 18px; }

.info-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  padding: 14px;
  min-height: 168px;
  position: relative;
  overflow: hidden;
}

.info-card h3 {
  margin: 0 0 7px;
  color: #6b2f2b;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: .03em;
}

.info-card h3 span { font-size: 10px; color: #917869; margin-left: 5px; }
.info-card p, .info-card li { font-size: 12px; line-height: 1.7; margin: 0 0 4px; color: #5b453d; }
.info-card ul { margin: 5px 0 0; padding-left: 15px; }

.info-card a {
  display: inline-block;
  background: var(--wine);
  color: #fff;
  font-size: 12px;
  padding: 5px 15px;
  margin-top: 8px;
  position: relative;
}

.top-info .media-card,
.info-area .media-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
}

.top-info .media-card img,
.info-area .media-card img { height: 124px; width: 96px; object-fit: cover; }

.middle-info .info-card.store,
.bottom-info .info-card,
.info-area .info-card.store,
.info-area .info-card.line,
.info-area .info-card.mail {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
}

.info-card.store img { height: 102px; width: 104px; object-fit: cover; }

.payment img {
  height: 34px;
  width: 100%;
  object-fit: contain;
  object-position: left center;
  margin: 8px 0 7px;
}

.faq p { border-bottom: 1px dotted #d9c9b5; padding: 4px 0; }

.line img, .mail img {
  height: 76px !important;
  width: 76px !important;
  object-fit: contain !important;
}

.bottom-info .info-card,
.info-area .line,
.info-area .mail {
  grid-template-columns: 86px minmax(0, 1fr);
}
.bottom-info .info-card h3,
.info-area .line h3,
.info-area .mail h3 { font-size: 16px; }
.bottom-info .info-card p, .bottom-info .info-card li,
.info-area .line p, .info-area .line li,
.info-area .mail p, .info-area .mail li { font-size: 12px; }
.bottom-info .mail-form,
.info-area .mail-form {
  width: 100%;
  max-width: 260px;
}

.mail-form {
  display: flex;
  margin-top: 10px;
  border: 1px solid var(--line);
  height: 36px;
  min-width: 0;
  background: #fff;
}

.mail-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 8px;
  background: #fff;
}

.mail-form button {
  flex: 0 0 82px;
  border: 0;
  background: var(--wine);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

/* ========== Mobile Welcome (TOP page only, hidden on PC) ========== */
.mobile-welcome { display: none; }

/* ========== Right Sidebar ========== */
.store-visit-banner {
  display: block;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.store-visit-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.right-ranking {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.right-ranking ol {
  list-style: none;
  counter-reset: r;
  margin: 0;
  padding: 8px;
}

.right-ranking li {
  counter-increment: r;
  border-bottom: 1px solid #eee1d1;
  padding: 7px 0;
}

.right-ranking li a {
  display: grid;
  grid-template-columns: 24px 42px 1fr;
  gap: 5px;
  align-items: center;
}

.right-ranking li a:before {
  content: counter(r);
  background: #bd8f3a;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 11px;
}

.right-ranking img { height: 46px; width: 42px; object-fit: contain; }
.right-ranking span { font-size: 10px; line-height: 1.35; }
.right-ranking b { color: #7d1117; }
.right-ranking .more { display: block; text-align: center; font-size: 11px; padding: 7px; color: #6b2f2b; }

.side-banners {
  background: #fff;
  border: 1px solid var(--line);
  padding-bottom: 8px;
}

.side-banners a { display: block; margin: 8px; }
.side-banners img { width: 100%; height: 68px; object-fit: cover; border: 1px solid #eadfce; }
.side-banners a:last-child img { height: 135px; }

/* ========== Footer ========== */
.footer {
  background: linear-gradient(135deg, #331014, #43151a 50%, #2a0b0e);
  color: #f9efe6;
  margin-top: 0;
}

.footer-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding: 30px 24px 24px;
  box-sizing: border-box;
}

.footer-brand img {
  width: 280px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 8px;
}

.footer p, .footer a, .footer address {
  font-size: 12px;
  color: #f1dbd2;
  font-style: normal;
}

.footer address {
  align-self: stretch;
  min-width: 0;
  box-sizing: border-box;
  background: rgba(30, 7, 10, .76);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
  padding: 14px 16px;
  line-height: 1.75;
}

.footer address p {
  margin: 0 0 12px;
  color: #f8e9dd;
}

.footer address p:last-child {
  margin-bottom: 0;
}

.sns { display: flex; gap: 12px; margin-top: 14px; }
.sns img { width: 26px; height: 26px; }

.footer h3 { font-size: 15px; margin: 0 0 8px; color: #fff; }
.footer-nav a { display: block; padding: 2px 0; }
.footer a:hover { text-decoration: underline; }

.footer-store-btn {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff !important;
  font-size: 12px;
  padding: 7px 18px;
  margin-top: 10px;
  letter-spacing: .05em;
}
.footer-store-btn:hover {
  background: rgba(255,255,255,.25);
  text-decoration: none !important;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 12px 0 18px;
  font-size: 11px;
  color: #d7c5bf;
}

/* ========== Search Results Page ========== */
.endo-search .layout_wrapper{width:100%;max-width:none;background:transparent}
.endo-search .layout_header,.endo-search .layout_footer{display:none}
.endo-search .layout_container{width:100%;margin:0}

.prd_lst_block{width:1180px;max-width:calc(100% - 40px);margin:0 auto;padding:20px 0 40px}

.srh-breadcrumb{display:flex;align-items:center;gap:6px;padding:16px 0 8px;font-size:12px;color:#8d7770}
.srh-breadcrumb a:hover{text-decoration:underline}

.prd_lst_block .ttl_h2{margin:0 0 4px;color:#4b0e12;font-size:28px;font-weight:600;letter-spacing:.08em;border:none;padding:0;background:transparent;text-align:left}

.prd_lst_block .prd_search_hit{margin:0 0 6px;font-size:14px;color:#6b5550}

.prd_lst_block .prd_lst_sort{display:flex;align-items:center;justify-content:flex-end;margin-bottom:14px;font-size:0}
.prd_lst_block .prd_lst_sort::before{display:none}
.prd_lst_block .prd_lst_sort a,.prd_lst_block .prd_lst_sort strong{font-size:13px;padding:5px 12px;border:1px solid #d8c8bc;background:#fff;color:#5a4640;font-weight:normal;text-decoration:none}
.prd_lst_block .prd_lst_sort a:hover{background:#fbf3e6}
.prd_lst_block .prd_lst_sort strong{border:1px solid #4b0e12;background:#4b0e12;color:#fff}

.prd_lst.prd_lst_s{list-style:none;padding:0;margin:0 0 24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}

.prd_lst_unit.prd_lst_unit_s{position:relative;background:#fff;border:1px solid #e4d8cd;padding:14px 12px;box-shadow:0 3px 10px rgba(100,55,29,.03);transition:.2s ease;display:flex;flex-direction:column;float:none;width:auto;text-align:left;min-width:0}
.prd_lst_unit.prd_lst_unit_s:hover{box-shadow:0 8px 20px rgba(100,55,29,.12);transform:translateY(-2px)}

.prd_lst_unit .prd_lst_link{height:185px;display:flex;align-items:center;justify-content:center;margin:0 0 10px}
.prd_lst_unit .prd_lst_img{max-height:184px;width:auto;max-width:100%;filter:drop-shadow(0 6px 8px rgba(0,0,0,.18));float:none;margin:0}

.prd_lst_unit .prd_lst_brand{display:block;font-size:10px;color:#8b5a43;letter-spacing:.04em;font-weight:700;margin:0 0 2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

.prd_lst_unit .prd_lst_name{display:block;min-width:0}
.prd_lst_unit .prd_lst_name a{font-size:14.5px;line-height:1.5;min-height:40px;display:block;margin:0 0 6px;color:#6a2625;font-weight:700;overflow-wrap:break-word;word-break:break-word}
.prd_lst_unit .prd_lst_name a:hover{color:#4b0e12}

.prd_lst_unit .prd_lst_price{font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Times New Roman",serif;font-size:22px;line-height:1;font-weight:700;color:#7a1118;text-align:right;margin-top:auto;padding-top:8px;display:block}
.prd_lst_unit .prd_lst_price .prd-price-num{font-family:inherit;font-size:22px;letter-spacing:.02em;color:#7a1118}
.prd_lst_unit .prd_lst_price .prd-price-unit{font-size:12px;color:#7a1118;margin-left:2px}

.prd_lst_pager{margin:0}
.prd_lst_pager ul{list-style:none;padding:0;margin:28px 0 8px;display:flex;justify-content:center;align-items:center;gap:8px}
.prd_lst_pager li{float:none}
.prd_lst_pager a,.prd_lst_pager span.icon{min-width:42px;height:38px;padding:0 12px;border:1px solid #e0d3c9;background:#fff;display:grid;place-items:center;color:#6c554d;font-size:13px}
.prd_lst_pager a:hover{background:#fbf3e6}
.prd_lst_pager .icon_prev_dis,.prd_lst_pager .icon_next_dis{color:#c9bdb5;pointer-events:none}
.prd_lst_pos{font-size:13px;color:#8d7770}
.sp_prd_lst_pos{text-align:center;margin:0;font-size:13px;color:#8d7770}

/* ========== Tablet (max-width: 1220px) ========== */
@media (max-width: 1220px) {
  .header-inner,
  .global-nav,
  .page-shell,
  .footer-inner {
    width: 96%;
  }

  .header-inner {
    grid-template-columns: 230px minmax(500px, 1fr) 325px;
    gap: 14px;
  }

  .page-shell {
    grid-template-columns: 165px 1fr 135px;
    gap: 12px;
  }

  .hero img { height: 260px; }
  .product-card img { height: 145px; }
  .product-grid.compact .product-card img { height: 124px; }
}

/* ========== Mobile Landscape (max-width: 900px) ========== */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand img { margin: 0 auto; }
  .header-benefits { display: none; }

  .header-tools {
    justify-content: center;
    flex-wrap: wrap;
  }

  .global-nav {
    width: 100%;
    overflow: auto;
    display: flex;
  }

  .global-nav a { min-width: 130px; }

  .page-shell { grid-template-columns: 1fr; }
  .left-sidebar, .right-sidebar { display: none; }

  .hero img { height: 230px; }

  .small-banners,
  .feature-row.three,
  .feature-row.two,
  .top-info,
  .middle-info,
  .bottom-info {
    grid-template-columns: 1fr;
  }

  .product-grid.five,
  .product-grid.six {
    grid-template-columns: repeat(2, 1fr);
  }

  .food-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ========== Mobile Portrait (max-width: 520px) ========== */
@media (max-width: 520px) {
  .product-grid.five,
  .product-grid.six,
  .food-grid {
    grid-template-columns: 1fr;
  }

  .search { width: 100%; }
  .search input { flex: 1; width: auto; background: #f6f1eb; }
  .search button { width: 42px; background: var(--wine); color: #fff; }

  .header-tools {
    display: grid;
    grid-template-columns: 1fr repeat(2, auto);
    gap: 8px;
  }

  .footer-inner { grid-template-columns: 1fr; }
  .hero img { height: 180px; }
  .feature-row.two img { height: 160px; }
  .small-banners img { height: 76px; }

  .top-alert {
    font-size: 11px;
    height: 28px;
    padding: 0 8px;
  }

  .brand img {
    height: 50px;
    width: 180px;
  }

  .header-inner {
    padding: 10px 0 8px;
    gap: 8px;
  }

  .global-nav a {
    min-width: 100px;
    font-size: 12px;
    padding: 10px 4px;
  }

  .footer-inner {
    padding: 20px 16px;
    gap: 18px;
  }

  .footer-brand img {
    width: 180px;
    height: 60px;
  }

  .footer h3 { font-size: 14px; }

  .copyright {
    font-size: 10px;
    padding: 10px 8px 14px;
  }
}

/* ============================================================
   TOP Page - Mobile Layout (.endo-top-page only)
   PC表示には一切影響しません
   ============================================================ */

/* Desktop: hide mobile-only elements */
.bistro-mobile { display: none; }
.side-box .nav-icon { display: none; }

@media (max-width: 900px) {

  /* --- Page Shell: single-column reorderable --- */
  .endo-top-page .page-shell {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 10px !important;
    margin-top: 0 !important;
  }

  .endo-top-page .content {
    display: contents;
  }

  /* --- Section order --- */
  .endo-top-page #heroSlider         { order: 1; }
  .endo-top-page #heroThumbs         { order: 2; }
  .endo-top-page .left-sidebar       { order: 3; }
  .endo-top-page .ranking            { order: 4; }
  .endo-top-page .recommend          { order: 5; }
  .endo-top-page .right-sidebar      { order: 6; }
  .endo-top-page .feature-row.three  { order: 7; }
  .endo-top-page .feature-row.two    { order: 8; }
  .endo-top-page .info-grid.top-info { order: 9; }

  /* --- Mobile Welcome Image (above hero) --- */
  .endo-top-page .mobile-welcome {
    display: block;
    order: 0;
    margin-bottom: 16px;
  }

  /* --- Hero slider --- */
  .endo-top-page #heroSlider {
    width: 100% !important;
    border: none !important;
  }

  .endo-top-page #heroThumbs {
    gap: 6px !important;
    margin: 8px 0 4px !important;
  }

  /* ==============================
     ? Left Sidebar → Category Buttons
     ============================== */
  .endo-top-page .left-sidebar {
    display: block !important;
    margin: 12px 0 4px;
  }

  .endo-top-page .left-sidebar > div:first-child,
  .endo-top-page .left-sidebar .vineyard {
    display: none !important;
  }

  .endo-top-page .left-sidebar .side-box {
    border: none;
    background: transparent;
    margin-bottom: 10px;
  }

  .endo-top-page .left-sidebar .side-box h2 {
    background: transparent !important;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    padding: 4px 0 6px !important;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .endo-top-page .left-sidebar .side-box h2::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--wine);
    border-radius: 1px;
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  .endo-top-page .left-sidebar .side-box ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 !important;
    margin: 0;
  }

  .endo-top-page .left-sidebar .side-box li {
    border: none !important;
  }

  .endo-top-page .left-sidebar .side-box li + li {
    border-top: none !important;
  }

  .endo-top-page .left-sidebar .side-box a {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line) !important;
    border-radius: 8px;
    padding: 10px 4px 8px !important;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    gap: 4px;
    min-height: 56px;
  }

  .endo-top-page .left-sidebar .side-box a::after {
    display: none !important;
    content: none !important;
  }

  /* SVG icon styles */
  .endo-top-page .left-sidebar .nav-icon {
    display: block !important;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .endo-top-page .left-sidebar .flag-icon {
    width: 28px;
    height: 19px;
    border-radius: 2px;
    overflow: hidden;
  }

  /* ==============================
     ? Ranking: 2×2 grid, numbered
     ============================== */
  .endo-top-page .ranking {
    margin: 8px 0;
  }

  .endo-top-page .ranking .section-title h2 {
    font-size: 18px;
    font-weight: 700;
  }

  .endo-top-page .ranking .product-grid.five {
    grid-template-columns: repeat(2, 1fr) !important;
    counter-reset: mrank;
  }

  .endo-top-page .ranking .product-card:nth-child(n+5) {
    display: none;
  }

  .endo-top-page .ranking .product-card {
    counter-increment: mrank;
  }

  .endo-top-page .ranking .product-card .crown {
    display: none;
  }

  .endo-top-page .ranking .product-card::before {
    content: counter(mrank);
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    background: var(--wine);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    z-index: 2;
    line-height: 1;
  }

  .endo-top-page .ranking .product-card img {
    height: 140px;
  }

  /* ==============================
     ? おすすめワイン: horizontal cards
     ============================== */
  .endo-top-page .recommend {
    margin: 8px 0;
  }

  .endo-top-page .recommend .section-title {
    background: #4b0e12;
    padding: 6px 10px;
    border-bottom: none;
  }

  .endo-top-page .recommend .section-title h2 {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
  }

  .endo-top-page .recommend .product-grid.five {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    border: none !important;
    border-left: none !important;
    border-top: none !important;
  }

  .endo-top-page .recommend .product-card:nth-child(n+5) {
    display: none !important;
  }

  .endo-top-page .recommend .product-card {
    display: grid !important;
    grid-template-columns: 80px 1fr;
    gap: 0 12px;
    text-align: left;
    border: 1px solid var(--line) !important;
    border-top: none !important;
    padding: 10px;
  }

  .endo-top-page .recommend .product-card:first-child {
    border-top: 1px solid var(--line) !important;
  }

  .endo-top-page .recommend .product-card .label {
    display: none;
  }

  .endo-top-page .recommend .product-link {
    display: contents;
  }

  .endo-top-page .recommend .product-card img {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 80px !important;
    width: 80px !important;
    object-fit: contain;
    margin-bottom: 0 !important;
  }

  .endo-top-page .recommend .product-card h3 {
    grid-column: 2;
    grid-row: 1;
    min-height: auto;
    font-size: 12px;
    margin: 0;
    align-self: end;
  }

  .endo-top-page .recommend .product-card .price {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 14px;
    margin-top: 2px;
  }

  /* ==============================
     ? Right sidebar → セレクション特集 4列
     ============================== */
  .endo-top-page .right-sidebar {
    display: block !important;
    margin: 12px 0 4px;
  }

  .endo-top-page .right-sidebar .store-visit-banner {
    display: none !important;
  }

  .endo-top-page .right-sidebar > div:last-child {
    margin-bottom: 0 !important;
  }

  .endo-top-page .right-sidebar > div:last-child > h2 {
    font-size: 14px !important;
    padding: 6px 10px !important;
  }

  .endo-top-page .right-sidebar > div:last-child > div {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    padding-top: 6px !important;
  }

  /* ==============================
     ? Feature Row 3列（商品バナー）
     ============================== */
  .endo-top-page .feature-row.three {
    grid-template-columns: repeat(3, 1fr) !important;
    margin: 8px 0 !important;
    gap: 6px !important;
  }

  .endo-top-page .feature-row.three img {
    height: auto !important;
  }

  /* ==============================
     ? Feature Row 2列（今月のおすすめ等）
     ============================== */
  .endo-top-page .feature-row.two {
    grid-template-columns: 1fr 1fr !important;
    margin: 8px 0 !important;
    gap: 6px !important;
  }

  .endo-top-page .feature-row.two img {
    height: auto !important;
    aspect-ratio: auto !important;
  }

  /* ==============================
     ? Info Section: お支払(横長) / 実店舗+ビストロ
     ============================== */
  .endo-top-page .info-grid.top-info {
    grid-template-columns: 1fr 1fr !important;
    margin: 12px 0 16px;
    gap: 8px !important;
  }

  .endo-top-page .info-card.payment {
    grid-column: 1 / -1;
  }

  .endo-top-page .info-card {
    min-height: auto;
    padding: 12px;
  }

  .endo-top-page .info-card h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .endo-top-page .info-card h3 span {
    display: none;
  }

  .endo-top-page .info-card p,
  .endo-top-page .info-card li {
    font-size: 11px;
    line-height: 1.5;
  }

  .endo-top-page .info-card ul {
    margin: 2px 0 0;
    padding-left: 12px;
  }

  .endo-top-page .payment img {
    height: 28px;
    margin: 4px 0;
  }

  /* Bistro mobile card */
  .endo-top-page .bistro-mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px !important;
  }

  .endo-top-page .bistro-mobile .bistro-link {
    display: block;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit;
  }

  .endo-top-page .bistro-mobile img {
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 4px;
  }
}

/* ========== TOP Page - Narrow Phone (max-width: 520px) ========== */
@media (max-width: 520px) {
  .endo-top-page .ranking .product-card img {
    height: 110px;
  }

  .endo-top-page .ranking .section-title h2,
  .endo-top-page .recommend .section-title h2 {
    font-size: 15px;
  }

  .endo-top-page .left-sidebar .side-box h2 {
    font-size: 15px;
  }

  .endo-top-page .right-sidebar > div:last-child > h2 {
    font-size: 15px !important;
  }

  .endo-top-page .left-sidebar .side-box a {
    font-size: 11px;
    padding: 8px 2px 6px !important;
    min-height: 50px;
  }

  .endo-top-page .left-sidebar .side-box:first-of-type li a::before {
    width: 16px;
    height: 16px;
  }

  .endo-top-page .left-sidebar .side-box:last-of-type li a::before {
    width: 20px;
    height: 14px;
  }

  .endo-top-page .info-card h3 {
    font-size: 12px;
  }

  .endo-top-page .info-card p,
  .endo-top-page .info-card li {
    font-size: 10px;
  }
}

/* ========== Search Results - Responsive ========== */
@media(max-width:1100px){
  .prd_lst.prd_lst_s{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .prd_lst_block{max-width:calc(100% - 24px);padding-bottom:28px}
  .prd_lst_block .ttl_h2{font-size:22px;letter-spacing:.06em}
  .prd_lst_block .prd_lst_sort{justify-content:flex-start;flex-wrap:wrap}
  .prd_lst_block .prd_lst_sort a,.prd_lst_block .prd_lst_sort strong{padding:6px 10px;font-size:12px}
  .prd_lst.prd_lst_s{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .prd_lst_unit.prd_lst_unit_s{padding:10px 8px}
  .prd_lst_unit .prd_lst_link{height:140px;margin-bottom:8px}
  .prd_lst_unit .prd_lst_img{max-height:138px}
  .prd_lst_unit .prd_lst_name a{font-size:12px;min-height:34px;line-height:1.4;margin-bottom:4px}
  .prd_lst_unit .prd_lst_price{font-size:18px;padding-top:6px}
  .prd_lst_unit .prd_lst_price .prd-price-num{font-size:18px}
  .prd_lst_unit .prd_lst_price .prd-price-unit{font-size:11px}
  .srh-breadcrumb{flex-wrap:wrap;gap:3px 6px;padding:12px 0 6px;font-size:11px}
  .prd_lst_pager ul{margin:20px 0 6px}
  .prd_lst_pager a,.prd_lst_pager span.icon{min-width:48px;height:42px;font-size:14px}
  .sp_prd_lst_pos{font-size:12px}
}
@media(max-width:420px){
  .prd_lst_block{max-width:calc(100% - 16px)}
  .prd_lst_block .ttl_h2{font-size:20px}
  .prd_lst_unit .prd_lst_link{height:120px}
  .prd_lst_unit .prd_lst_img{max-height:118px}
  .prd_lst_unit .prd_lst_name a{font-size:11px;min-height:30px}
  .prd_lst_unit .prd_lst_price{font-size:16px}
  .prd_lst_unit .prd_lst_price .prd-price-num{font-size:16px}
}
