/*
 * 旧サイト CSS (style.css) の上書き。style.css はエディター (Is Active Web Editor) の
 * 出力そのままなので触らず、ズレや余白の調整はこのファイルにまとめる。
 */

/* ---------- 横スクロール防止・基本 ---------- */
/* overflow-x: hidden は body をスクロールコンテナにして慣性スクロールを壊すので使わない。
   clip はスクロールコンテナを作らずにはみ出しだけ切る */
html { overflow-x: clip; }
body { overflow-x: clip; }
img, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { text-wrap: balance; }

/* エディターのサイドメニュー分だった左 40px / 56px の余白を解除（黄色セクションの wrapper） */
.escapesectionmin36, .escapesection, div[style*="rgba(245,210,98"] { padding-left: 0 !important; }
/* 黄色セクションは前ブロックに -36px/-82px 重ねて置かれていた（固定高さ前提の補正）→ 自然に並べる */
.escapesectionmin36, .escapesection { top: 0 !important; }
div[style*="rgba(245,210,98"] { padding-top: .6em; }
.mask1 { left: 0; }
.header-menu-container { box-sizing: border-box; }

/* セクションの左端を揃える（ul のデフォルト padding で 20px ずれていた） */
ul.sortable-list { padding-left: 0; margin-top: 0; margin-bottom: 0; }
.sitecontent { box-sizing: border-box; }

/* ---------- 本文の行間・余白 ---------- */
.sitecontent, .hero-text { line-height: 1.85; }
.sitecontent h2 { line-height: 1.4; margin: 1.6em 0 .9em; }
.sitecontent h3 { line-height: 1.7; margin: 0 0 1.1em; }
.sitecontent p { margin: 0 0 1.1em; }
/* 長文は読みやすい幅に（中央寄せ） */
.sitecontent h3, .sitecontent p, .sitecontent div[align="center"] { max-width: 62em; margin-left: auto; margin-right: auto; }
.grid_1c_std > div > div[align="center"] + div, .grid_1c_std div[align="center"] > div { padding: 0 .5em; }
/* セクション同士の間隔 */
ul.sortable-list > li.item, .sitecontent > li.item { padding: .9em 0; }
li.item.section_caps_collapse { padding: 0; }
/* エディターの空スペーサー li（空 div だけの li）には余白を足さない（ヒーロー上の隙間の原因） */
li.item:has(> div:empty:only-child) { padding: 0; }
/* ヒーロー直下の写真はヒーローに密着させる */
li.item.grid_2c_t1 { padding-top: 0; }
/* ヒーローの前にある 36px のスペーサー li を消し、それを打ち消していた top:-36px もやめる
   （ヒーローの上端が 20px 切れ、下に 36px の隙間ができていた） */
div[style*="min-height"] > ul.sortable-list:first-of-type > li.item:has(> div:empty:only-child) { display: none; }
.slideshow-container { top: 0 !important; }
ul.sortable-list:has(+ .slideshow-container), ul.sortable-list:has(+ style + .slideshow-container) { margin: 0; }
/* ボタンの上下余白 */
.grid_1c_stditem1 > div[style*="padding:1em"], .grid_2c_t1item3 > div[style*="padding:1em"], .grid_2c_t2item3 > div[style*="padding:1em"], .grid_2c_stditem4 > div[style*="padding:1em"] { padding: 1.4em 1em 1.8em !important; }

/* 「本物と伝統の提供」: 固定高さ (.shiftheightup 350px × n + top:-3em) で位置決めしていたのをやめ、
   文章量に応じて自然に伸びるようにする */
.grid_2c_t1item2 .shiftheightup { height: auto; }
.grid_2c_t1item2 div[style*="top: -3em"], .grid_2c_t1item2 div[style*="top:-3em"] { top: 0 !important; }
.grid_2c_t1item2 { padding: 2.5em 0 0; }
@media only screen and (min-width: 886px) {
  /* 写真と文章の間隔 */
  .grid_2c_t1item2, .grid_2c_t1item3 { padding-left: 3.5em; padding-right: 1em; }
}
/* レストラン: タップ表の右の写真は表に対して上下中央に */
.grid_2c_stditem2:has(> img[src*="restaurant-images"]) { align-self: center; }
/* 左の写真は文章の高さいっぱいにトリミング表示（旧: 900px 幅を left:-90px でずらして切っていた） */
.grid_2c_t1item1 { overflow: hidden; }
.grid_2c_t1item1 .hpspecialimg { height: auto !important; float: none !important; top: 0 !important; }
.grid_2c_t1item1 img { position: static !important; left: 0 !important; width: 100% !important; height: auto; object-fit: cover !important; object-position: center; display: block; }
@media only screen and (min-width: 886px) {
  /* 行の高さ（文章側）いっぱいに写真を敷く。% 高さが効かないので absolute で張る */
  .grid_2c_t1item1 { position: relative; min-height: 420px; }
  .grid_2c_t1item1 .hpspecialimg { position: absolute !important; inset: 0; height: auto !important; }
  .grid_2c_t1item1 img { height: 100% !important; }
}
.grid_2c_t1item3 { padding-bottom: 1em; }

/* ---------- ヘッダー ---------- */
/* ホバー時の下線がヘッダー（48px）からはみ出していたので、下線を文字直下に */
.menubar .atag span:hover, .mmenubar .atag span:hover { padding-bottom: 4px; }
/* ヘッダー下部の内側余白を広げる（高さは border-box なので 48px → 58px、ロゴ・メニュー位置は変わらない） */
@media only screen and (min-width: 886px) {
  .header-menu-container { height: 58px; padding-bottom: 1em; }
}
@media only screen and (max-width: 885px) {
  .header-menu-container { padding-bottom: 1em; }
}

/* ---------- フッター ---------- */
.footer-content > div:not(.social) { display: flex; flex-wrap: wrap; justify-content: center; gap: 1em 4em; width: auto !important; max-width: 1200px; margin: 0 auto; padding: 2.2em 16px 2.4em; box-sizing: border-box; }
.footer-content div ul { padding: 0; margin: 0; min-width: 11em; line-height: 1.9; }
.footer-content div ul li:first-child { margin-bottom: .3em; }
.social { padding: 1.2em 0 .4em; }
/* SNS アイコンのホバー: 旧 CSS は 2 秒かけて拡大しつつ 10px 浮く → 短く軽い動きに */
.social a img { width: 35px !important; height: 35px !important; top: 0 !important; transition: transform .18s ease, opacity .18s ease; }
.social a img:hover { transform: translateY(-2px) scale(1.08); opacity: .85; }
.footer > div[style*="height: 30px"] { height: auto !important; padding: 1.2em 1em 1.6em !important; line-height: 1.6; }

/* ---------- ヒーロー / スライダー（矢印は SVG シェブロン） ---------- */
.prev, .next {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin-top: -22px;
  border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff;
  opacity: .8; transition: opacity .2s, background .2s;
}
.prev { left: 16px; border-radius: 50%; }
.next { right: 16px; border-radius: 50%; }
.prev:hover, .next:hover { opacity: 1; background: rgba(0, 0, 0, .6); }
.prev svg, .next svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
/* スライドが 1 枚だけのページでは矢印を出さない */
.slideshow-container:not(:has(.mySlides:nth-of-type(2))) .prev,
.slideshow-container:not(:has(.mySlides:nth-of-type(2))) .next { display: none; }

/* ---------- レストラン: タップリスト ---------- */
.tap-list { max-width: 520px; margin: 0 auto; }
.tap-list h2 { text-align: center; }
.tap-list table { width: 100%; border-collapse: collapse; }
.tap-list th, .tap-list td { padding: 6px 2px; vertical-align: middle; }
.tap-list td:nth-child(2) { white-space: nowrap; }
/* 受賞メダル列: 高さを揃えて横に並べる。1 個ずつの正方形画像でも、メダルを横に並べた 1 枚の画像（2:1, 3:1）でも
   メダル 1 個あたりの大きさが同じになるよう、幅は画像の比率に任せる（3 個ぶん = 98px が列に収まる） */
.tap-list td:first-child { width: 116px; padding-right: 12px; box-sizing: border-box; }
.tap-list .awards { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.tap-list .awards img { display: block; height: 30px; width: auto; max-width: 100%; object-fit: contain; }
.tap-list td:nth-child(5) svg { display: block; margin: 0 auto; }

/* ---------- 営業カレンダー（restaurant.html のインライン style から移動。管理画面のプレビューでも使う） ---------- */
/* 左右中央。上下は 0（グリッド直下の要素で margin:auto を使うと上下中央寄せになり、隣の長文の列に対して下にずれる） */
.calendar { width: 350px; margin: 0 auto; }
.dayofweek { background-color: #f5d262; border: 1px solid white; }
.day, .noday, .dayofweek { width: 3em; display: table-cell; text-align: center; }
.noday { background-color: #c6c6c6; border: 1px solid #bbb; color: #939393; }
.closed { background-color: #666666; border: 1px solid #bbb !important; color: #939393; }
.day { border: 1px solid #bbb; }
.event { background-color: #c1d0e8; border: 1px solid #e6b65a !important; }
.event:hover { border: 1px solid #c87b49 !important; background-color: #f9e6b2; }
.eventtext { position: absolute; display: none; background: #ffffff; border: 1px solid #e6b65a; padding: .5em; }
.event:hover div .eventtext, .eventtext:hover { display: unset; }
/* 月送り（公開サイトのみ。管理画面のプレビューには出ない）: 見出しの両脇に矢印 */
/* h2 の上下マージン（1.6em / 0.9em @24px）は行の側に持たせる。h2 自身に残すと非対称なぶん矢印が文字より上にずれる */
.cal-head { display: flex; align-items: center; width: 350px; margin: 38.4px auto 21.6px; gap: 6px; }
.cal-head h2 { flex: 1; width: auto !important; text-align: center; margin: 0; }
.cal-arrow { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #c87b49; background: none; color: #c87b49; font-size: 22px; line-height: 1; padding: 0 0 3px; cursor: pointer; }
.cal-arrow:hover:not(:disabled) { background: #c87b49; color: #fff; }
.cal-arrow:disabled { opacity: .25; cursor: default; }
/* カレンダー下のイベント・臨時休業の一覧 */
/* 最低 2 行ぶんの高さを確保し、イベントの有無で下のコンテンツが上下しないようにする */
.calendar-events { list-style: none; margin: 1em 0 0; padding: 0; font-size: .9em; text-align: left; min-height: 6em; }
.calendar-events .ce-none { display: block; color: #888; padding: .35em 0; border: 0; }
.calendar-events li { display: grid; grid-template-columns: 6.5em auto 1fr; gap: 0 .6em; align-items: baseline; padding: .35em 0; border-top: 1px solid #ddd; }
.calendar-events li:last-child { border-bottom: 1px solid #ddd; }
.calendar-events .ce-date { font-weight: 700; white-space: nowrap; }
.calendar-events .ce-time { white-space: nowrap; color: #555; }
.calendar-events .ce-event .ce-date { color: #a96b1a; }
.calendar-events .ce-closed .ce-title { color: #666; }

/* ---------- 季節限定ビール ---------- */
.seasonal-gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.5em 2.5em; margin: .5em auto 2em; }
.seasonal-gallery figure { margin: 0; width: 220px; text-align: center; }
.seasonal-gallery .seasonal-label { display: block; width: 100%; height: auto; }
.seasonal-gallery figcaption { margin-top: .6em; font-size: .95em; line-height: 1.5; }

/* ---------- お問い合わせフォーム ---------- */
[data-contact-form] label { display: inline-block; margin-bottom: .25em; }
[data-contact-form] .tp3rdinput { box-sizing: border-box; }
[data-contact-form] textarea { min-height: 8em; }
[data-contact-form] button[type="submit"] { font: inherit; cursor: pointer; }
[data-contact-form] [data-status] { text-align: center; min-height: 1.5em; }
[data-contact-form] [data-status].notificationgreen,
[data-contact-form] [data-status].notificationred { padding: .6em 1em; border-radius: 6px; }

/* ---------- 問い合わせ・レストラン詳細のボタン間隔 ---------- */
.grid_4c_std > div > div[style*="padding:1em"] { padding: .5em 1em !important; }

/* ヒーローのアクションボタン: 下にゆとりを持たせる（上の汎用ルールより後ろに置いて優先） */
.hero-text .grid_4c_std > div > div[style*="padding:1em"] { padding: .5em 1em 2.4em !important; }

/* ---------- スマホ ---------- */
@media only screen and (max-width: 1240px) {
  .sitecontent { width: 100%; max-width: 1200px; left: 0 !important; }
}
@media only screen and (max-width: 885px) {
  .menubar { width: 100% !important; }
  .header-menu-container { width: 100% !important; }
  /* 左右の余白を全ブロック 16px に統一（旧 CSS の 80vw/85vw/90vw・5vw padding・左:-1em を全部打ち消す） */
  .sitecontent, ul.sortable-list, div.sitecontent { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; }
  /* 「本物と伝統の提供」は ul ではなく div 直下にあるので li 自身に余白を持たせる */
  li.item.grid_2c_t1 { padding: 0 16px .9em !important; }
  li.item { box-sizing: border-box; }
  /* フッターのリンク列はスマホでは 2 列グリッド（SNS アイコンの行は除く） */
  .footer-content > div:not(.social) { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4em 1.5em; justify-items: start; }
  .footer-content > .social { display: block; text-align: center; }
  .footer-content div ul { min-width: 0; }
  .grid_1c_stditem1 { width: 100% !important; }
  li.item > div[class*="item"] { width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
  li.item > div[class*="item"] > div, li.item > div[class*="item"] > div > div { width: auto !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
  .grid_1c_std div[align="center"] > div { padding: 0; }
  .hero-text { width: calc(100% - 32px) !important; }
  /* ボタンは親の text-align:center で中央に（旧 CSS の left:45%/50% + translate(-50%) は
     親が中央揃えだと二重にずれて右に寄る） */
  .twinpeaksmountainbrewing_btn_full, .twinpeaksmountainbrewing_btn_ondark, .twinpeaksmountainbrewing_btn_white { position: static !important; left: auto !important; transform: none !important; }
  li.item div[style*="padding:1em"], li.item div[style*="padding: 1em"] { text-align: center; }
  /* 2〜4 カラムのグリッドは縦積み（旧 CSS は areas だけ変えて columns が残っていた） */
  .grid_2c_std, .grid_2c_t1, .grid_2c_t2, .grid_3c_std, .grid_4c_std, .grid_3c_t1_w4 { grid-template-columns: minmax(0, 1fr) !important; width: 100% !important; }
  .grid_2c_stditem1 > div, .grid_2c_stditem2 > div, .grid_2c_stditem3 > div, .grid_2c_stditem4 > div { width: auto; }
  .calendar h2 { width: auto !important; }
  .grid_2c_std > div, .grid_2c_t1 > div, .grid_2c_t2 > div { width: 100% !important; box-sizing: border-box; }
  /* 固定幅・位置指定の写真を幅いっぱいに */
  img[src*="german-owned-and-operated"], img[src*="restaurant-images"], img[src*="location-map"] {
    position: static !important; left: 0 !important; width: 100% !important; height: auto !important;
  }
  .calendar, .tap-list, .cal-head { max-width: 100%; }
  .footer-content { padding-left: 0 !important; }
  .footer-content > div { gap: 1.2em 2.5em; padding: 1.8em 16px 2em; }
  .footer-content div ul { min-width: 9em; }
  h2 { font-size: 22px; }
  /* 矢印を見出しに重ねない */
  .prev, .next { top: 14%; margin-top: 0; padding: 10px; }
  .tap-list td:nth-child(2) { white-space: normal; }
  .tap-list td:first-child { width: 112px; padding-right: 8px; }
  .seasonal-gallery { gap: 1.2em 1.5em; }
  .seasonal-gallery figure { width: calc(50% - .75em); max-width: 220px; }
}
@media only screen and (max-width: 600px) {
  .tp3rdinput { padding-right: 0; }
  .form_full, .form_full_textarea, [data-contact-form] input, [data-contact-form] textarea { width: 100% !important; box-sizing: border-box; }
}

/* 法的ページ（プライバシーポリシー・酒類販売管理者標識） */
.legal { max-width: 820px; margin: 0 auto; padding: 0 16px 3em; line-height: 1.8; color: #222; font-size: 15px; text-align: left; }
.legal h1 { text-align: center; margin-bottom: 1.2em; }
.legal h2 { font-size: 18px; margin: 2.2em 0 .6em; width: auto; }
.legal p, .legal li { margin: 0 0 .8em; }
.legal ul { padding-left: 1.4em; margin: 0 0 1em; }
.legal .meta { color: #666; font-size: 13px; text-align: right; }
.legal table { border-collapse: collapse; width: 100%; margin: 1em 0 1.2em; font-size: 14px; }
.legal th, .legal td { border: 1px solid #d6d2c8; padding: .6em .8em; text-align: left; vertical-align: top; }
.legal th { background: #faf6ea; width: 30%; font-weight: 600; }
.legal a { text-decoration: underline; }
/* 標識本体: 掲示物らしく二重枠で囲む */
.legal .sign { border: 3px double #222; padding: 1.4em 1.6em .4em; margin: 1.6em auto 1.8em; max-width: 640px; background: #fff; }
.legal .sign h2 { text-align: center; margin: 0 0 1em; font-size: 20px; letter-spacing: .08em; }
.legal .sign th { width: 42%; background: #f3f3f3; }
.privacy-note { font-size: 13px; color: #555; line-height: 1.7; margin: 1.2em 0 0; }
.privacy-note a { text-decoration: underline; }
@media only screen and (max-width: 600px) {
  .legal { font-size: 14px; }
  .legal th, .legal td { display: block; width: auto !important; border-top: 0; }
  .legal tr:first-child th { border-top: 1px solid #d6d2c8; }
  .legal table tr th:first-child { border-top: 1px solid #d6d2c8; }
  .legal .sign { padding: 1em 1em .2em; }
}
/* 受講証の画像（標識の下） */
.legal .cert { margin: 0 auto 1.8em; max-width: 520px; text-align: center; }
.legal .cert img { display: block; width: 100%; height: auto; border: 1px solid #d6d2c8; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.legal .cert figcaption { font-size: 13px; color: #666; margin-top: .5em; }

/* フッターのニュースレター登録フォーム（Brevo 連携、旧 Klaviyo 埋め込みの置き換え） */
.footer .newsletter { background: #1e1e1e; color: #fff; padding: 2.4em 16px 1.4em; text-align: center; }
.newsletter form { max-width: 540px; margin: 0 auto; }
.newsletter label { display: block; font-size: 15px; margin-bottom: 1em; }
.newsletter .nl-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 14px; border: 0; border-radius: 4px; font-size: 15px; box-sizing: border-box; }
.newsletter button { height: 48px; min-width: 200px; padding: 0 1.4em; background: transparent; color: #e4b159; border: 2px solid #e4b159; border-radius: 4px; font-size: 15px; cursor: pointer; }
.newsletter button:hover { color: #c87b49; border-color: #c87b49; }
.newsletter button:disabled { opacity: .5; cursor: default; }
.newsletter .nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter .nl-status { min-height: 1.4em; margin: .9em 0 0; font-size: 14px; color: #ccc; }
.newsletter .nl-status.is-ok { color: #9ad59a; }
.newsletter .nl-status.is-error { color: #f09a9a; }
.newsletter .nl-note { margin: .3em 0 0; font-size: 12px; color: #8a8a8a; }
.newsletter .nl-note a { color: #aaa; text-decoration: underline; }
