/* SAKE i — sakei.asia  V01 2026-10-26 */
:root {
  --ink: #2b2b2e;
  --ink-soft: #55565b;
  --grey: #8e9196;
  --line: #dcdde0;
  --logo-grey: #c9cacb;
  --paper: #ffffff;
  --paper-2: #f4f4f5;
  --red: #b3202a;
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Noto Sans TC", "Noto Sans JP", "Microsoft JhengHei", "PingFang TC",
    "Hiragino Sans", "Yu Gothic UI", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.ja { font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; padding: 12px 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand span { font-size: 14px; color: var(--grey); letter-spacing: .08em; }
nav.menu { margin-left: auto; display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
nav.menu a { text-decoration: none; color: var(--ink); font-size: 18px; font-weight: 500; }
nav.menu a:hover, nav.menu a.on { color: var(--red); }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; right: 0; top: 100%; padding-top: 10px; min-width: 140px; z-index: 60; }
.dd-menu a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 16px; font-size: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.08); white-space: nowrap; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
@media (max-width: 1180px) { .brand span { display: none; } nav.menu { gap: 18px; } nav.menu a { font-size: 17px; } }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 64px 16px 56px;
  background: url("asanoha.png") repeat, var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.hero img { width: 260px; margin: 0 auto 18px; }
.hero h1 { font-size: 22px; font-weight: 500; letter-spacing: .12em; }
.hero p { color: var(--ink-soft); margin-top: 6px; font-size: 15px; }

/* ---------- page head / breadcrumb ---------- */
.crumb { font-size: 13px; color: var(--grey); padding: 18px 0 0; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--red); }
.page-head { padding: 10px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.page-head h1 { font-size: 28px; font-weight: 600; letter-spacing: .04em; }
.page-head h1 .dot { color: var(--red); }
.page-head .sub { color: var(--ink-soft); font-size: 15px; }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { padding-bottom: 64px; flex: 1 0 auto; width: 100%; }
section.block { padding: 40px 0; }
h2.sec { font-size: 18px; font-weight: 600; letter-spacing: .1em; margin-bottom: 18px; }
h2.sec::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: middle; }

/* ---------- grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile {
  display: block; text-decoration: none;
  background: var(--paper-2); border-radius: 8px; padding: 18px 18px 16px;
  transition: background .15s;
}
a.tile:hover { background: #ebebed; }
.tile .t { font-size: 18px; font-weight: 600; }
.tile .s { font-size: 13px; color: var(--grey); }
.tile .n { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.tile.off { opacity: .5; }
.tile .prefs { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }

/* brewery list */
.blist { list-style: none; border-top: 1px solid var(--line); }
.blist li { border-bottom: 1px solid var(--line); }
.blist a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 4px; text-decoration: none; }
.blist a:hover { background: var(--paper-2); }
.blist .name { font-size: 17px; font-weight: 600; }
.blist .brand-name { color: var(--ink-soft); font-size: 14px; }
.blist .city { color: var(--grey); font-size: 13px; text-align: right; }
.city-group { margin-bottom: 28px; }
.city-group h3 { font-size: 14px; color: var(--grey); font-weight: 500; letter-spacing: .1em; margin-bottom: 6px; }

/* ---------- brewery page ---------- */
.kana { font-size: 14px; color: var(--grey); letter-spacing: .1em; }
.tw-name { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
table.facts { width: 100%; border-collapse: collapse; }
table.facts th, table.facts td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { width: 8em; color: var(--grey); font-weight: 500; font-size: 14px; white-space: nowrap; }
table.facts td { overflow-wrap: anywhere; }
table.facts td a { color: var(--ink); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--paper-2); color: var(--ink-soft); margin-right: 6px; }
.tag.yes { background: #f6e7e8; color: var(--red); }
.vnote { display: block; color: var(--ink-soft); font-size: 13px; margin: 4px 0 6px; }

.map { margin: 8px 0 4px; aspect-ratio: 16 / 10; max-height: 480px; width: 100%; background: var(--paper-2); border-radius: 8px; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-links { font-size: 13px; color: var(--grey); }
.map-links a { color: var(--ink-soft); margin-right: 14px; }
.note { font-size: 13px; color: var(--grey); margin-top: 22px; line-height: 1.7; }
.note a { color: var(--grey); }

/* ---------- 台灣買得到 ---------- */
.notice { font-size: 14px; color: var(--ink-soft); background: var(--paper-2); border-left: 3px solid var(--red); padding: 10px 14px; border-radius: 4px; }
.tile.imp img { height: 56px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 10px; }
.imp-logo { height: 72px; width: auto; margin-bottom: 10px; }
.kura-top { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.kura-photo { width: 100%; border-radius: 8px; }
.brand-h { font-size: 17px; margin: 22px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pcard { background: var(--paper-2); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.pcard img, .pcard .noimg { width: 100%; aspect-ratio: 1 / 1; max-height: 300px; object-fit: contain; background: #fff; }
.kura-photo { max-height: 320px; object-fit: contain; }
.pbody { padding: 12px 14px 14px; font-size: 14px; }
.pname { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
table.specs { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
table.specs th { color: var(--grey); font-weight: 500; text-align: left; padding: 1px 12px 1px 0; white-space: nowrap; }
.pdesc p { color: var(--ink-soft); font-size: 13px; margin: 6px 0; }
.pimp { font-size: 13px; color: var(--grey); margin-top: 8px; }

/* ---------- 右側選單版面（要改到左側：把 .with-side .side 的 order 改成 -1） ---------- */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 18vw, 240px); gap: clamp(20px, 3vw, 40px); align-items: start; }
.with-side .side { padding: 4px 0 18px 20px; border-left: 1px solid var(--line); }
.side details > summary { display: none; }
.flabel { font-size: 14px; color: var(--grey); padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.area-side .sg > a { display: flex; justify-content: space-between; text-decoration: none; font-weight: 600; padding: 4px 0; }
.area-side .sg > a.on, .area-side .sub a.on { color: var(--red); }
.area-side small { color: var(--grey); font-weight: 400; font-size: 12px; }
.area-side .sub { display: flex; flex-direction: column; padding: 0 0 6px 12px; font-size: 14px; }
.area-side .sub a { display: flex; justify-content: space-between; text-decoration: none; padding: 2px 0; }
.area-side .sub span { color: #b9babd; padding: 2px 0; }
.area-side a:hover { color: var(--red); }

/* ---------- 篩選 + 分頁 ---------- */
.fgroup { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 18px; }
.fgroup button { background: none; border: 0; font: inherit; font-size: 15px; color: var(--ink); padding: 4px 0; cursor: pointer; text-align: left; }
.fgroup button.on { color: var(--red); font-weight: 600; }
.fgroup button:hover { color: var(--red); }
.fgroup.hbar { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.fgroup.hbar .flabel { border: 0; margin: 0 8px 0 0; padding: 0; }
.count { font-size: 13px; color: var(--grey); margin: 0 0 12px; }
.pager { margin: 32px 0 0; text-align: center; }
.pg-row { display: inline-flex; flex-wrap: nowrap; gap: 6px; align-items: center; max-width: 100%; }
.pager button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); background: #fff; border-radius: 4px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.pager button:hover:not(:disabled):not(.on) { border-color: var(--red); color: var(--red); }
.pager button.on { background: var(--ink); color: #fff; border-color: var(--ink); cursor: default; }
.pager button:disabled { opacity: .4; cursor: default; }
.pg-gap { color: var(--grey); padding: 0 2px; }
.pg-info { font-size: 13px; color: var(--grey); margin-top: 8px; }
@media (max-width: 600px) { .pager button { min-width: 34px; height: 34px; padding: 0 7px; font-size: 13px; } .pg-row { gap: 4px; } }
.items.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(14px, 2vw, 28px); }
@media (max-width: 1000px) { .items.grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.item[hidden] { display: none !important; }

.logo-tile { display: block; text-decoration: none; text-align: center; padding: 10px; border-radius: 8px; }
.logo-tile:hover { background: var(--paper-2); }
.logo-tile img, .logo-tile .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.logo-tile .t { font-size: 17px; font-weight: 600; margin-top: 10px; }
.logo-tile .s { font-size: 13px; color: var(--grey); }

.sake { text-align: center; font-size: 14px; }
.sake .bottle { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }
.sake .kura { display: block; font-weight: 600; font-size: 15px; margin-top: 8px; text-decoration: none; }
.sake .pname { font-size: 15px; margin: 4px 0 8px; line-height: 1.5; min-height: 3em; }
.sake .specs { list-style: none; text-align: left; display: block; width: fit-content; margin: 0 auto; font-size: 14px; line-height: 1.75; }
.sake .specs span { color: var(--grey); display: inline-block; min-width: 5em; }
.sake .pdesc { text-align: left; }
.sake .pimp { text-align: left; }

.imp-top { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; margin: 18px 0 8px; align-items: start; }
.imp-top .imp-logo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.imp-top h1 { font-size: 26px; margin-bottom: 8px; }

/* ---------- 首頁三列輪播（一次 3 個） ---------- */
.gcar { position: relative; padding: 0 40px; }
.gview { overflow: hidden; }
.gtrack { display: flex; transition: transform .6s ease; }
.gitem { flex: 0 0 33.3333%; padding: 0 10px; text-decoration: none; text-align: center; }
.gitem img, .gitem .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.gitem.sake-item img { aspect-ratio: 3 / 4; max-height: 340px; }
.gitem .t { display: block; font-size: 17px; font-weight: 600; margin-top: 10px; }
.gitem .s { display: block; font-size: 13px; color: var(--grey); }
.gitem:hover .t { color: var(--red); }
.gcar .prev, .gcar .next { position: absolute; top: 40%; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.gcar .prev { left: 0; }
.gcar .next { right: 0; }
.gcar .prev:hover, .gcar .next:hover { color: var(--red); border-color: var(--red); }
.gcar .dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.gcar .dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #c9cacb; cursor: pointer; }
.gcar .dots button.on { background: var(--red); }
table.contact .en { color: var(--grey); letter-spacing: .08em; font-size: 14px; }

/* ---------- 首頁輪播 ---------- */
.car-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.car-head { display: flex; justify-content: space-between; align-items: baseline; }
.car-head h2.sec { margin-bottom: 10px; }
.car-head a { font-size: 13px; color: var(--grey); }
.carousel { position: relative; background: var(--paper-2); border-radius: 8px; overflow: hidden; }
.carousel .slides { position: relative; aspect-ratio: 1 / 1; }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; text-decoration: none; display: flex; flex-direction: column; }
.carousel .slide.on { opacity: 1; z-index: 1; }
.carousel .slide img, .carousel .slide .noimg { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #fff; }
.carousel .cap { background: rgba(60, 60, 64, .85); color: #fff; font-size: 14px; text-align: center; padding: 8px 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carousel .prev, .carousel .next { position: absolute; bottom: 0; z-index: 2; width: 34px; height: 37px; border: 0; background: none; color: #fff; font-size: 22px; cursor: pointer; }
.carousel .prev { left: 0; }
.carousel .next { right: 0; }
.carousel .dots { position: absolute; bottom: 44px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.carousel .dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #c9cacb; cursor: pointer; }
.carousel .dots button.on { background: var(--red); }

.about { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.about .prose p { font-size: 16px; color: var(--ink); line-height: 2; }

/* ---------- article ---------- */
.prose h2 { font-size: 20px; margin: 34px 0 10px; }
.prose p { margin: 10px 0; color: var(--ink-soft); }
.placeholder { color: var(--grey); font-size: 14px; background: var(--paper-2); border-radius: 8px; padding: 14px 16px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 14px 16px 16px; text-align: center; font-size: 13px; line-height: 1.7; color: var(--grey); background: var(--paper-2); }
footer .warn { color: var(--ink-soft); font-weight: 600; letter-spacing: .06em; }
footer .copy { color: var(--ink-soft); }
footer .sep { margin: 0 8px; color: #c4c5c8; }
@media (max-width: 600px) { footer .copy .sep { display: block; height: 0; overflow: hidden; } }
footer a { color: var(--grey); }

@media (max-width: 600px) {
  .page-head h1 { font-size: 23px; }
  .hero img { width: 200px; }
  table.facts th { width: 6em; }
  .kura-top { grid-template-columns: 1fr; }
  .items.grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .catalog .items.grid3:has(.sake) { grid-template-columns: 1fr; }
  .sake .bottle { max-height: 360px; }
  .imp-top, .about { grid-template-columns: 1fr; }
  .imp-top .imp-logo { max-width: 200px; }
}
@media (max-width: 860px) {
  .with-side { grid-template-columns: 1fr; }
  .with-side .side { order: -1; border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
  .side details > summary { display: list-item; cursor: pointer; font-weight: 600; padding: 6px 0; }
  .side details:not([open]) > .fbody { display: none; }
  .area-side .sub { flex-direction: row; flex-wrap: wrap; gap: 2px 14px; }
  .catalog.with-side .fgroup { flex-direction: row; flex-wrap: wrap; gap: 2px 14px; margin-bottom: 8px; }
  .catalog.with-side .fgroup .flabel { width: 100%; }
  .car-row { grid-template-columns: 1fr; }
  .gitem { flex-basis: 100%; }
  .gcar { padding: 0 34px; }
  .dd-menu { position: static; display: inline-block; padding: 0 0 0 10px; min-width: 0; }
  .dd-menu a { display: inline; border: 0; box-shadow: none; padding: 0; font-size: 15px; color: var(--grey); }
  .dd { display: flex; align-items: baseline; }
  .brand img { height: 44px; }
  nav.menu { gap: 14px; margin-left: 0; width: 100%; }
}
