/* ============================================
   RESTAURANT WINEBAR TEMPLATE
   自然派ワインバー — 白い紙 × ワインの赤紫 × オレンジワインの琥珀
   雑誌の表紙のようなヒーロー・ページ番号の見出し・開栓リストの絞り込み
============================================ */

:root {
  /* Color */
  --bg: #faf8f4; /* 白い紙（地） */
  --paper: #f2eee6;
  --plum: #5c2a4a; /* ワインの赤紫（メイン） */
  --plum-deep: #421d35;
  --amber: #c98a2b; /* オレンジワインの琥珀（差し色） */
  --ink: #241d22;
  --muted: #6a6066;
  --line: rgba(36, 29, 34, 0.16);
  --accent: var(--plum);

  /* ワインの色（凡例の丸） */
  --w-bubble: #e6dca0;
  --w-white: #efe4b0;
  --w-orange: #d99a4a;
  --w-rose: #e8a2a6;
  --w-red: #7a1f3a;

  /* Font */
  --font-body: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-display: "DM Serif Display", Georgia, serif; /* 誌名・ページ番号・価格 */

  --container: 1140px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --header-h: 60px;
  --section-space: clamp(72px, 10vw, 120px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

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

h1,
h2,
h3,
h4 {
  font-weight: inherit;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  top: 8px;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.sp-only {
  display: none;
}

@media (max-width: 600px) {
  .sp-only {
    display: inline;
  }
  .pc-only {
    display: none;
  }
}

/* ---------- スクロール出現（JSが動いたときだけ隠す） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- アコーディオン（高さは grid で開閉） ---------- */
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.acc__panel > div {
  overflow: hidden;
  min-height: 0;
}

[data-acc].is-open .acc__panel {
  grid-template-rows: 1fr;
}

.acc__icon {
  transition: transform 0.3s var(--ease);
}

[data-acc].is-open .acc__icon {
  transform: rotate(45deg);
}

/* ---------- カレンダー（共通の骨組み） ---------- */
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal__wd {
  text-align: center;
  font-size: 13px;
  padding: 4px 0;
}

.cal__day {
  min-height: 56px;
  padding: 6px;
  font-size: 14px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal__note {
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .cal__day {
    min-height: 46px;
    padding: 4px 3px;
  }
  .cal__note {
    font-size: 11px;
    letter-spacing: 0;
  }
}

/* ---------- 地図 ---------- */
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

/* ---------- ヒーローの文字：読み込み時に順に出る（CSSのみ・JS不要） ---------- */
.hero-in {
  animation: hero-in 0.8s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 0.12s + 0.1s);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 共通パーツ ---------- */
.section {
  padding-block: var(--section-space);
}

.page-head {
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 640px;
}

.page-head__no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--amber);
}

.page-head__title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  margin: 4px 0 12px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
}

.page-head__lead {
  font-size: 15px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn--plum {
  background: var(--plum);
  color: #fff;
}

.btn--plum:hover {
  background: var(--plum-deep);
}

.btn--line {
  border: 1.5px solid var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  color: var(--bg);
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-right: 6px;
  vertical-align: -1px;
}

.dot--bubble {
  background: var(--w-bubble);
}

.dot--white {
  background: var(--w-white);
}

.dot--orange {
  background: var(--w-orange);
}

.dot--rose {
  background: var(--w-rose);
}

.dot--red {
  background: var(--w-red);
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}

.header__inner {
  height: var(--header-h);
  width: min(100% - var(--gutter) * 2, 1240px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
}

.logo b {
  font-weight: 400;
  color: var(--plum);
}

.nav__list {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.nav__list a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 0;
}

.nav__list span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--amber);
  font-size: 13px;
}

.nav__list a:hover {
  color: var(--plum);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle span:first-child {
  top: 19px;
}

.nav-toggle span:last-child {
  top: 27px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--bg);
    padding: 16px var(--gutter) 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    font-size: 18px;
  }
  .nav__list a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- 表紙（HERO） ---------- */
.cover {
  padding: clamp(20px, 3vw, 32px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--ink);
}

.cover__inner {
  width: min(100% - var(--gutter) * 2, 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "issue issue"
    "mast mast"
    "photo lines";
  gap: 0 40px;
}

.cover__issue {
  grid-area: issue;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 13px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.cover__issue span:first-child {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--plum);
}

/* 誌名：画面幅いっぱいの大きな文字 */
.cover__mast {
  grid-area: mast;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(120px, 24vw, 330px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--plum);
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin: 16px 0 24px;
}

.cover__mast span {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--ink);
  padding-bottom: 0.4em;
  writing-mode: vertical-rl;
}

.cover__photo {
  grid-area: photo;
  margin-top: -40px;
  position: relative;
}

.cover__photo img {
  aspect-ratio: 10 / 9;
  object-fit: cover;
  width: 100%;
}

.cover__lines {
  grid-area: lines;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.cover__feature {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.4;
}

.cover__feature small {
  display: inline-block;
  font-size: 14px;
  background: var(--amber);
  color: #fff;
  padding: 2px 12px;
  margin-bottom: 10px;
}

.cover__feature span {
  display: inline-block;
}

.cover__sub li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.cover__sub b {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  margin-right: 10px;
}

.cover__time {
  font-size: 15px;
  font-weight: 600;
  color: var(--plum);
}

@media (max-width: 860px) {
  .cover__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "issue"
      "mast"
      "photo"
      "lines";
  }
  .cover__photo {
    margin-top: 0;
  }
  .cover__lines {
    padding-top: 24px;
  }
}

/* ---------- 今夜の開栓 ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.filter button {
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.filter button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.wines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  border-top: 1px solid var(--ink);
}

.wines li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  grid-template-areas:
    "type name price"
    "type note price";
  column-gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.wines__type {
  grid-area: type;
  font-size: 13px;
  color: var(--muted);
}

.wines h3 {
  grid-area: name;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.wines h3 small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.wines p {
  grid-area: note;
  font-size: 14px;
  margin-top: 4px;
}

.wines__price {
  grid-area: price;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--plum);
}

.tonight__photos {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(48px, 7vw, 80px);
}

.tonight__photos img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.tonight__photos figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* 引用（プルクオート） */
.pull {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.9;
  font-weight: 600;
  border-left: 4px solid var(--amber);
  padding-left: 24px;
}

.pull cite {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

@media (max-width: 860px) {
  .wines {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .wines li {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "type price"
      "name price"
      "note note";
  }
  .tonight__photos {
    grid-template-columns: 1fr;
  }
  .tonight__photos img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- チーズと小皿 ---------- */
.food {
  background: var(--paper);
}

.food__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.6fr;
  grid-template-areas:
    "head head head"
    "a menu b";
  gap: 0 clamp(24px, 4vw, 48px);
  align-items: start;
}

.food .page-head {
  grid-area: head;
}

.food__photo--a {
  grid-area: a;
}

.food__photo--b {
  grid-area: b;
  margin-top: 120px;
}

.food__photo img {
  object-fit: cover;
  width: 100%;
}

.food__photo--a img {
  aspect-ratio: 9 / 7;
}

.food__photo--b img {
  aspect-ratio: 1;
}

.food__menu {
  grid-area: menu;
}

.food__menu h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--plum);
}

.food__menu h3 + .plist {
  margin-bottom: 24px;
}

.plist > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.plist dd {
  font-family: var(--font-display);
  font-size: 18px;
}

@media (max-width: 860px) {
  .food__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head head"
      "a a"
      "menu menu";
    gap: 24px;
  }
  .food__photo--b {
    display: none;
  }
}

/* ---------- ペアリング ---------- */
.pairing__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pairing__list li {
  border: 1px solid var(--ink);
  padding: 24px;
  position: relative;
  background: #fff;
}

.pairing__no {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--amber);
}

.pairing__wine,
.pairing__food {
  font-size: 19px;
  font-weight: 700;
}

.pairing__wine {
  color: var(--plum);
  margin-top: 12px;
}

.pairing__x {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--muted);
}

.pairing__memo {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .pairing__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- 店のきまり ---------- */
.rules {
  background: var(--plum);
  color: #f3e9ef;
}

.rules .page-head__title {
  border-bottom-color: #f3e9ef;
}

.rules__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
}

.rules__photo {
  margin-top: 16px;
}

.rules__photo img {
  aspect-ratio: 7 / 5.2;
  object-fit: cover;
  width: 100%;
}

.rules__list {
  counter-reset: rule;
}

.rules__list li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 40px 7em 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(243, 233, 239, 0.25);
  font-size: 15px;
}

.rules__list li::before {
  content: counter(rule, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--amber);
}

.rules__list b {
  font-weight: 700;
}

@media (max-width: 760px) {
  .rules__grid {
    grid-template-columns: 1fr;
  }
  .rules__list li {
    display: block;
    position: relative;
    padding-left: 44px;
  }
  .rules__list li::before {
    position: absolute;
    left: 0;
    top: 14px;
  }
  .rules__list b {
    display: block;
  }
}

/* ---------- 営業日 ---------- */
.days__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
}

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal__head p {
  font-family: var(--font-display);
  font-size: 22px;
}

.cal__head button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  font-size: 18px;
}

.cal__day {
  border-top: 1px solid var(--ink);
}

.cal__day.is-empty {
  border-top-color: transparent;
}

.cal__day.is-closed {
  background: var(--plum);
  color: #fff;
}

.cal__day.is-special {
  background: #f4e1c2;
}

.cal__day.is-today .cal__num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
}

.cal__wd.is-sun {
  color: var(--plum);
}

@media (max-width: 760px) {
  .days__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- アクセス ---------- */
.info {
  background: var(--paper);
}

.info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}

.info__list > div {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.info__list dt {
  color: var(--muted);
}

.info__list a {
  text-decoration: underline;
}

.info__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.map {
  min-height: 360px;
}

@media (max-width: 760px) {
  .info__grid {
    grid-template-columns: 1fr;
  }
  .info__btns .btn {
    flex: 1 1 100%;
  }
}

/* ---------- フッター ---------- */
.footer {
  background: var(--ink);
  color: #cfc5cc;
  padding: 36px 0 26px;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: baseline;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
}

.footer__logo b {
  font-weight: 400;
  color: var(--amber);
}

.footer a {
  text-decoration: underline;
}

.footer__note,
.footer__copy {
  width: 100%;
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
