/* ============================================
   RESTAURANT BREWPUB TEMPLATE
   クラフトビールのブルーパブ — クラフト紙 × 黒 × ホップの黄緑
   タップリストが主役のヒーロー・度数と苦みのバー・スタイルの絞り込み
============================================ */

:root {
  /* Color */
  --bg: #e9dfcb; /* クラフト紙（地） */
  --kraft-2: #ddd0b6;
  --black: #151515; /* 黒（タップボード・文字） */
  --black-2: #232320;
  --hop: #a6c437; /* ホップの黄緑（差し色） */
  --hop-deep: #7f9a1f;
  --chalk: #f0ece2;
  --ink: #151515;
  --muted: #5d574b;
  --line: rgba(21, 21, 21, 0.2);
  --accent: var(--hop-deep);

  /* Font */
  --font-body: "IBM Plex Sans JP", "Hiragino Sans", sans-serif;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif; /* 英字の見出し */
  --font-mono: "IBM Plex Mono", ui-monospace, monospace; /* 数字・度数 */

  --container: 1180px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --header-h: 64px;
  --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);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--hop-deep);
  font-weight: 600;
}

.title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  margin: 6px 0 18px;
}

.section p,
.flight p,
.growler p {
  font-size: 15px;
}

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

.btn--hop {
  background: var(--hop);
  color: var(--black);
}

.btn--hop:hover {
  background: var(--black);
  color: var(--hop);
}

.btn--line:hover {
  background: var(--black);
  color: var(--chalk);
}

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

.header__inner {
  height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--black);
  color: var(--hop);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.logo__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-top: 3px;
}

.nav__list {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.nav__list a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.nav__list a:hover {
  border-bottom-color: var(--hop-deep);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  position: relative;
  background: var(--black);
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--hop);
  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: 960px) {
  .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 {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- HERO（タップボード） ---------- */
.hero {
  background: var(--black);
  color: var(--chalk);
}

/* 細い写真の帯 */
.hero__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 120px;
}

.hero__strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.hero__inner {
  width: min(100% - var(--gutter) * 2, 1240px);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
}

.hero__head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8px 48px;
  align-items: end;
  margin-bottom: 28px;
}

.hero__date {
  grid-column: 1 / 3;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--hop);
}

.hero__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.3;
}

.hero__title span {
  display: inline-block;
}

.hero__lead {
  font-size: 15px;
  color: #bdb8ac;
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.filter button {
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid #55534d;
  font-size: 14px;
  font-weight: 700;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

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

.taps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  border-top: 2px solid var(--chalk);
}

.taps li {
  display: grid;
  grid-template-columns: 44px 1fr 150px;
  grid-template-areas:
    "no name spec"
    "no price spec";
  column-gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #3a3935;
  align-items: center;
}

.taps__no {
  grid-area: no;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  color: var(--hop);
  line-height: 1;
}

.taps__name {
  grid-area: name;
}

.taps__name h2 {
  font-size: 17px;
  font-weight: 700;
}

.taps__name p {
  font-size: 13px;
  color: #a8a397;
}

.taps__price {
  grid-area: price;
  font-family: var(--font-mono);
  font-size: 14px;
}

/* 度数と苦みの小さなバー */
.taps__spec {
  grid-area: spec;
  display: grid;
  gap: 6px;
}

.taps__spec > div {
  display: grid;
  grid-template-columns: 34px 1fr 44px;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.taps__spec dt {
  color: #a8a397;
}

.taps__spec dd {
  text-align: right;
  order: 3;
}

.taps__spec > div::after {
  content: "";
  order: 2;
  height: 5px;
  background: linear-gradient(var(--hop), var(--hop)) left / var(--w) 100% no-repeat, #3a3935;
}

.taps__spec > div:first-child {
  --w: calc(var(--abv) * 10%);
}

.taps__spec > div:last-child {
  --w: calc(var(--ibu) * 1%);
}

.taps__note {
  margin-top: 12px;
  font-size: 13px;
  color: #a8a397;
}

@media (max-width: 960px) {
  .taps {
    grid-template-columns: 1fr;
  }
  .hero__head {
    grid-template-columns: 1fr;
  }
  .hero__date {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .hero__strip {
    grid-template-columns: repeat(2, 1fr);
    height: 90px;
  }
  .hero__strip img:nth-child(n + 3) {
    display: none;
  }
  .taps li {
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "no name"
      "no spec"
      "no price";
    row-gap: 8px;
  }
}

/* ---------- 醸造所 ---------- */
.brewery__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.brewery__photo img {
  aspect-ratio: 9 / 11;
  object-fit: cover;
  width: 100%;
  border: 2px solid var(--black);
}

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

.brewery__nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  border: 2px solid var(--black);
}

.brewery__nums > div {
  padding: 14px 16px;
}

.brewery__nums > div + div {
  border-left: 2px solid var(--black);
}

.brewery__nums dt {
  font-size: 13px;
  color: var(--muted);
}

.brewery__nums dd {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.1;
}

.brewery__nums small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  margin-left: 2px;
}

@media (max-width: 760px) {
  .brewery__grid {
    grid-template-columns: 1fr;
  }
  .brewery__photo img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .brewery__nums {
    grid-template-columns: 1fr;
  }
  .brewery__nums > div + div {
    border-left: 0;
    border-top: 2px solid var(--black);
  }
}

/* ---------- フライト ---------- */
.flight {
  background: var(--kraft-2);
  padding-block: clamp(56px, 8vw, 96px);
  border-block: 2px solid var(--black);
}

.flight__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.flight__photo img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.happy {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--black);
  color: var(--chalk);
}

.happy__time {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--hop);
  margin-bottom: 4px;
}

.happy__time b {
  font-family: var(--font-display);
  font-size: 26px;
  margin-left: 8px;
}

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

/* ---------- フード ---------- */
.food__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.food__item {
  background: var(--chalk);
  border: 2px solid var(--black);
}

.food__item img {
  aspect-ratio: 7 / 5.2;
  object-fit: cover;
  width: 100%;
  border-bottom: 2px solid var(--black);
}

.food__item--wide img {
  aspect-ratio: 10 / 6;
}

.food__item > div {
  padding: 14px 16px;
}

.food__item h3 {
  font-size: 17px;
  font-weight: 700;
}

.section .food__item p {
  font-size: 14px;
  color: var(--muted);
}

.food__list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

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

.food__list dd {
  font-family: var(--font-mono);
}

@media (max-width: 860px) {
  .food__grid {
    grid-template-columns: 1fr 1fr;
  }
  .food__item--wide {
    grid-column: 1 / 3;
  }
}

@media (max-width: 560px) {
  .food__grid,
  .food__list {
    grid-template-columns: 1fr;
  }
  .food__item--wide {
    grid-column: auto;
  }
}

/* ---------- 量り売り ---------- */
.growler {
  background: var(--hop);
  padding-block: clamp(48px, 7vw, 80px);
  border-block: 2px solid var(--black);
}

.growler .kicker {
  color: var(--black);
}

.growler__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px 48px;
  align-items: center;
}

.growler__table th,
.growler__table td {
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid rgba(21, 21, 21, 0.3);
  text-align: left;
  font-size: 15px;
}

.growler__table td {
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
}

.growler .btn {
  grid-column: 1 / 3;
  justify-self: start;
  background: var(--black);
  color: var(--hop);
}

@media (max-width: 760px) {
  .growler__inner {
    grid-template-columns: 1fr;
  }
  .growler .btn {
    grid-column: 1;
    justify-self: stretch;
  }
}

/* ---------- 貸切 ---------- */
.party__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.party__photo img {
  aspect-ratio: 10 / 7;
  object-fit: cover;
  width: 100%;
  border: 2px solid var(--black);
}

.party__list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.party__list b {
  display: inline-block;
  min-width: 4em;
  color: var(--hop-deep);
}

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

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

/* ---------- アクセス ---------- */
.info {
  background: var(--black);
  color: var(--chalk);
  padding-block: clamp(48px, 7vw, 80px);
}

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

.info__list > div {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #3a3935;
  font-size: 15px;
}

.info__list dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--hop);
  padding-top: 2px;
}

.info__list a {
  text-decoration: underline;
}

.map {
  min-height: 320px;
  border: 2px solid var(--chalk);
}

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

/* ---------- フッター ---------- */
.footer {
  background: var(--black);
  color: #a8a397;
  padding: 0 0 28px;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: baseline;
  border-top: 1px solid #3a3935;
  padding-top: 24px;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--hop);
}

.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;
  }
}
