/* =========================================================
   炭ジンビアガーデン LP
   参考: 日本式ビアガーデン告知LP（黄色ベース＋白カード＋赤アクセント）
   Palette: #FFC800 / #FFFBF0 / #241D16 / #E60012 / #06C755
   ========================================================= */

:root {
  --y1: #ffc800;
  --y2: #ffd84d;
  --ink: #241d16;
  --ink2: #3b322a;
  --red: #e60012;
  --cream: #fffbf0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- ページ外側の木目テクスチャ（CSSのみ／画像不使用） ---------- */
.bg-wood {
  background-color: #b98a52;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, 0.06) 0 2px,
      rgba(255, 255, 255, 0.04) 2px 5px,
      rgba(0, 0, 0, 0.03) 5px 11px),
    repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.05) 0 90px,
      rgba(0, 0, 0, 0.12) 90px 94px),
    linear-gradient(160deg, #c79a63 0%, #a9764a 100%);
}

/* =========================================================
   HERO
   ========================================================= */

/* ガーランド（三角旗の連なり） */
.garland {
  background-image:
    linear-gradient(135deg, var(--red) 25%, transparent 25%),
    linear-gradient(225deg, var(--red) 25%, transparent 25%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 0;
  background-repeat: repeat-x;
  opacity: 0.9;
}

/* 下端のジグザグ（黄色の三角波） */
.zigzag-down {
  height: 14px;
  background-color: var(--y1);
  -webkit-mask-image:
    linear-gradient(135deg, #000 25%, transparent 25%),
    linear-gradient(225deg, #000 25%, transparent 25%);
  mask-image:
    linear-gradient(135deg, #000 25%, transparent 25%),
    linear-gradient(225deg, #000 25%, transparent 25%);
  -webkit-mask-size: 20px 14px;
  mask-size: 20px 14px;
  -webkit-mask-position: 0 0, 10px 0;
  mask-position: 0 0, 10px 0;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  transform: rotate(180deg);
  margin-top: -1px;
}

/* アーチ状の小見出し */
.arch-label {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* =========================================================
   炭ジン BEER GARDEN ロゴ（ヒーロー）
   - 和文＝主役：RocknRoll One（ポップな丸ゴシック／太ストロークで塊感を補う）
   - 欧文＝説明：Anton（欧文専用。和文には絶対に当てない＝グリフ無しで
     Noto Sans JP に黙ってフォールバックし「単調な太ゴシック」になるため）
   - 重なり対策：line-height に頼らず、行ごとに独立ブロック化し
     和文側に上下パディングを持たせて仮想ボディのはみ出しを吸収する
   ========================================================= */
.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* --- 和文：炭ジン --- */
.logo-jp {
  display: block;
  font-family: "RocknRoll One", "Noto Sans JP", sans-serif;
  font-weight: 400; /* RocknRoll One は単一ウェイト。bold 指定は合成太りの原因になるので固定 */
  font-size: 3.7rem;
  /* 濁点・ハネの張り出しをパディングで確実に確保（line-height 依存を排除）。
     line-height を 1 に固定し、アキは padding で持つことで、
     ウェブフォント読込失敗時もレイアウトが動かない */
  line-height: 1;
  padding: 0.12em 0 0.08em;
  letter-spacing: 0.06em;
  text-indent: 0.06em; /* letter-spacing の右アキ分を戻して光学中央に */
  color: #fff;
  /* RocknRoll One は中肉の丸ゴシック。Anton と並べても負けないよう
     ストロークを太めに取り、袋文字として塊感を出す */
  -webkit-text-stroke: 3.5px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    4px 4px 0 rgba(36, 29, 22, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.55);
}

/* --- 欧文：BEER GARDEN --- */
.logo-en {
  display: block;
  /* 和文ブロックと物理的に離す（負マージンを使わない＝重なり構造的にゼロ） */
  margin-top: 0.1rem;
  font-size: 3.3rem;
  /* Anton は欧文専用なので詰めて組み、2行で塊感を出す */
  line-height: 0.86;
  letter-spacing: -0.005em;
  color: var(--y1);
  -webkit-text-stroke: 3.5px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    4px 4px 0 rgba(36, 29, 22, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.55);
}

/* 旧クラス互換（他セクションで参照されている場合の保険） */
.logo-outline {
  color: #fff;
  -webkit-text-stroke: 3.5px var(--ink);
  paint-order: stroke fill;
}
.logo-outline-y {
  color: var(--y1);
}

/* =========================================================
   共通パーツ
   ========================================================= */

/* 白い紙カード（太めの枠＋角丸） */
.paper-card {
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 3px 3px 0 rgba(36, 29, 22, 0.22);
}

/* セクション見出し（黒帯風・かすれ感） */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.section-title > span {
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.55);
}

.section-title > small {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--ink2);
  opacity: 0.75;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 9px);
  opacity: 0.5;
  transform: translateY(-0.35rem);
}

/* メイン訴求の強調 */
.hook-em {
  position: relative;
  display: inline-block;
  color: var(--red);
}

.hook-em::after {
  content: "";
  position: absolute;
  inset-inline: -2px;
  bottom: 0.05em;
  height: 0.42em;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 2px;
  z-index: -1;
}

/* 黄色マーカー */
.marker-y {
  background: linear-gradient(transparent 58%, var(--y2) 58%);
  font-weight: 900;
}

/* スタンプ風ロゴ（丸） */
.stamp-logo {
  display: flex;
  height: 3.4rem;
  width: 3.4rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--y1);
  color: var(--ink);
  text-align: center;
}

/* 看板風（TERRACE SEAT） */
.signboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  background: var(--ink);
  padding: 0.4rem 0.55rem;
  color: var(--y1);
}

/* キラキラ装飾 */
.deco-sparkle {
  position: absolute;
  top: -0.2rem;
  width: 34px;
  opacity: 0.85;
  pointer-events: none;
}

.deco-sparkle--l { left: 0.6rem; transform: rotate(-12deg); }
.deco-sparkle--r { right: 0.6rem; transform: rotate(14deg) scaleX(-1); }

/* =========================================================
   5カラム写真タイル
   ========================================================= */
.tile {
  display: block;
  text-align: center;
}

.tile img {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 3px;
  border: 2px solid #fff;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.tile span {
  display: block;
  margin-top: 0.2rem;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
}

/* =========================================================
   TIME：黒いリボン帯（両端に切り欠き）
   ========================================================= */
.ribbon-black {
  position: relative;
  border-radius: 6px;
  background: var(--ink);
  padding: 1.1rem 1.5rem;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(36, 29, 22, 0.22);
  clip-path: polygon(
    0 0, 100% 0, 100% 100%, 0 100%
  );
}

.ribbon-black::before,
.ribbon-black::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 22px;
  background: var(--y1);
  transform: translateY(-50%);
}

.ribbon-black::before {
  left: -1px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.ribbon-black::after {
  right: -1px;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

/* =========================================================
   PRICE
   ========================================================= */

/* チケット風タグ（上部ギザギザ） */
.ticket-tag {
  position: relative;
  display: flex;
  width: 4.2rem;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--y1);
  padding: 0.65rem 0.35rem;
  text-align: center;
  color: var(--ink);
}

.ticket-tag::before {
  content: "";
  position: absolute;
  inset-inline: 2px;
  top: 2px;
  height: 6px;
  background: var(--cream);
  -webkit-mask-image: linear-gradient(135deg, #000 25%, transparent 25%), linear-gradient(225deg, #000 25%, transparent 25%);
  mask-image: linear-gradient(135deg, #000 25%, transparent 25%), linear-gradient(225deg, #000 25%, transparent 25%);
  -webkit-mask-size: 8px 6px;
  mask-size: 8px 6px;
  -webkit-mask-position: 0 0, 4px 0;
  mask-position: 0 0, 4px 0;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.price-label {
  font-size: 11.5px;
  font-weight: 900;
  color: var(--ink2);
}

.price-val {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.price-val > small {
  margin-right: 1px;
  font-size: 15px;
  font-weight: 900;
}

.price-val-sm {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
}

/* 名物メニュー */
.menu-item {
  display: flex;
  gap: 0.6rem;
}

.menu-no {
  display: flex;
  height: 1.35rem;
  width: 1.35rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  font-family: Inter, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
}

.menu-name {
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--ink);
}

.menu-desc {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink2);
  opacity: 0.9;
}

/* =========================================================
   3つの魅力
   ========================================================= */
.feature-card {
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--cream);
  padding: 0.85rem 1rem 0.95rem;
  box-shadow: 3px 3px 0 rgba(36, 29, 22, 0.18);
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}

.feature-badge {
  display: flex;
  height: 1.5rem;
  width: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--ink);
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--y1);
}

.feature-body {
  margin-top: 0.45rem;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.85;
  color: var(--ink2);
}

/* 帯写真＋キャッチ */
.band-photo {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(36, 29, 22, 0.18);
}

.band-photo img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.band-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 29, 22, 0.82) 0%, rgba(36, 29, 22, 0.35) 62%, rgba(36, 29, 22, 0.15) 100%);
}

.band-text {
  position: absolute;
  top: 50%;
  left: 1rem;
  z-index: 1;
  transform: translateY(-50%);
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.55;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   注記ボックス（雨天時）
   ========================================================= */
.note-box {
  border-radius: 10px;
  border: 2px dashed var(--ink);
  background: rgba(255, 255, 255, 0.5);
  padding: 0.8rem 1rem;
  color: var(--ink2);
}

.note-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-item {
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--cream);
}

.faq-q {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 2.2rem 0.7rem 0.85rem;
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::before {
  content: "Q.";
  margin-right: 0.3rem;
  font-family: Inter, sans-serif;
  font-weight: 800;
  color: var(--red);
}

.faq-q::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.85rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-q::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item[open] .faq-q {
  background: rgba(255, 200, 0, 0.28);
}

.faq-a {
  padding: 0.15rem 0.85rem 0.8rem;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink2);
}

.faq-a::before {
  content: "A.";
  margin-right: 0.3rem;
  font-family: Inter, sans-serif;
  font-weight: 800;
  color: var(--ink);
}

/* =========================================================
   LINE / Instagram
   ========================================================= */
.line-box {
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: #06c755;
  padding: 1rem;
  box-shadow: 3px 3px 0 rgba(36, 29, 22, 0.22);
}

.line-icon {
  display: flex;
  height: 3.2rem;
  width: 3.2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #06c755;
}

.insta-box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: linear-gradient(100deg, #f9a03f 0%, #e4405f 48%, #9b3fbd 100%);
  padding: 0.8rem 1rem;
  color: #fff;
  box-shadow: 3px 3px 0 rgba(36, 29, 22, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insta-box:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(36, 29, 22, 0.28);
}

/* 緑背景上のプレースホルダー */
.placeholder-text-w {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.75);
  color: #fff;
  font-weight: 900;
}

/* =========================================================
   SHOP INFO / CTA
   ========================================================= */
.tel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--y1);
  padding: 0.7rem 0.5rem;
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(36, 29, 22, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tel-btn:hover,
.tel-btn:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(36, 29, 22, 0.3);
}

.map-embed {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
}

.cta-box {
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: var(--cream);
  padding: 1.3rem 1.1rem 1.4rem;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(36, 29, 22, 0.25);
}

.btn-primary,
.btn-line,
.btn-hpg {
  display: block;
  border-radius: 9999px;
  border: 2px solid var(--ink);
  padding: 0.85rem 1rem;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  box-shadow: 3px 3px 0 rgba(36, 29, 22, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary { background: var(--red); }
.btn-line    { background: #06c755; }
/* ホットペッパーグルメ：ブランド色のオレンジで電話（赤）・LINE（緑）と役割を見分けさせる */
.btn-hpg     { background: #f60; }

.btn-primary:hover, .btn-primary:focus-visible,
.btn-line:hover,    .btn-line:focus-visible,
.btn-hpg:hover,     .btn-hpg:focus-visible {
  transform: translate(-1px, -2px);
  filter: brightness(1.05);
  box-shadow: 5px 6px 0 rgba(36, 29, 22, 0.32);
}

/* 未確定テキストのマーカー */
.placeholder-text {
  border-bottom: 1px dashed currentColor;
  opacity: 0.95;
}

/* =========================================================
   追従CTA
   ========================================================= */
#sticky-cta.is-shown { transform: translateY(0); }

/* =========================================================
   Reveal アニメーション
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* JS未実行時の保険 */
html:not(.js-reveal) .reveal {
  opacity: 1;
  transform: none;
}

/* =========================================================
   用語定義ボックス（「炭ジン」とは？）
   ========================================================= */
.define-box {
  position: relative;
  border-radius: 8px;
  border: 2px dashed var(--ink);
  background: rgba(255, 200, 0, 0.16);
  padding: 0.9rem 0.85rem 0.8rem;
}

.define-label {
  position: absolute;
  top: -0.72rem;
  left: 0.7rem;
  border-radius: 999px;
  background: var(--ink);
  padding: 0.15rem 0.65rem;
  font-size: 10px;
  font-weight: 900;
  color: var(--y1);
  letter-spacing: 0.02em;
}

.define-body {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--ink2);
}

/* =========================================================
   サッポロクラシック訴求ブロック
   ========================================================= */
.classic-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background: var(--cream);
  padding: 1rem 1rem 1.05rem;
  box-shadow: 4px 4px 0 rgba(36, 29, 22, 0.2);
}

.classic-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 10px,
    var(--y1) 10px 20px
  );
}

.classic-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  background: var(--red);
  padding: 0.2rem 0.7rem;
  font-size: 9.5px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
}

.classic-name {
  margin-top: 0.5rem;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
}

.classic-name small {
  display: block;
  margin-top: 0.15rem;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink2);
  opacity: 0.75;
}

.classic-body {
  margin-top: 0.6rem;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.85;
  color: var(--ink2);
}

.classic-points {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.35rem;
}

.classic-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

.classic-points li::before {
  content: "✓";
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 900;
  color: var(--green, #1b8a3a);
}

/* フォーカスリング */
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   prefers-reduced-motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn-primary:hover, .btn-line:hover, .btn-hpg:hover,
  .tel-btn:hover, .insta-box:hover {
    transform: none;
  }

  #sticky-cta { transition: none; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   小さめ端末の調整
   ========================================================= */
@media (max-width: 360px) {
  .logo-jp { font-size: 3.1rem; -webkit-text-stroke-width: 3px; }
  .logo-en { font-size: 2.8rem; -webkit-text-stroke-width: 3px; }
  .price-val { font-size: 26px; }
  .tile span { font-size: 7.5px; }
}

/* =========================================================
   開催終了までの残日数バッジ
   - 期間限定LPは「あと何日」が最後のひと押しになる
   - 終了後は煽りを消してトーンを落とす（--ended）
   ========================================================= */
.countdown {
  display: inline-block;
  border-radius: 9999px;
  border: 2px solid var(--ink);
  background: var(--red);
  padding: 0.3rem 0.9rem;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  box-shadow: 2px 2px 0 rgba(36, 29, 22, 0.28);
}

/* 最終日：黄色反転でさらに目立たせる */
.countdown--last {
  background: var(--y1);
  color: var(--ink);
}

/* 終了後：煽りを消して事実だけ伝える */
.countdown--ended {
  background: #e8e3da;
  color: #6b6259;
  border-color: #b9b0a4;
  box-shadow: none;
}
