/*
Theme Name: PORCHLIGHT
Theme URI: https://gamma-design.com/
Author: がんまデザイン
Description: 架空のカジュアルバー「BAR PORCHLIGHT」の1枚物サイト（がんまデザインの制作サンプル）。店舗情報・メニュー・写真は「外観 → カスタマイズ → PORCHLIGHT の設定」から変更できます。
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: porchlight
*/

:root {
  --bg: #0D0B0A;
  --wood: #15100D;
  --panel: #120E0C;
  --panel2: #1C1612;
  --line: #2B211A;
  --text: #E8DDCB;
  --muted: #A99A87;
  --bulb: #F2B35E;
  --blue: #6FB6FF;
  --red: #F0605D;
  --neon: 'Monoton', cursive;
  --en: 'Oswald', sans-serif;
  --ja: 'Zen Kaku Gothic New', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ja);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bulb); }
a:hover { color: #FFD08F; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 8px 14px; background: var(--bulb); color: var(--bg); border-radius: 4px; }

/* お知らせ帯 */
.pl-notice { background: #070605; color: var(--muted); font-size: 12px; text-align: center; padding: 8px 16px; }

/* ヘッダー */
.pl-header { max-width: 1160px; margin: 0 auto; padding: 28px 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pl-logo { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pl-logo__name { font-family: var(--neon); font-size: 56px; line-height: 1; white-space: nowrap; color: var(--bulb); text-shadow: 0 0 10px var(--bulb), 0 0 28px rgba(242,179,94,.7); }
.pl-logo__sub { font-family: var(--en); font-weight: 600; font-size: 18px; line-height: 1; letter-spacing: .5em; padding-left: .5em; color: var(--red); text-shadow: 0 0 12px rgba(240,96,93,.7); }
.pl-logo:hover .pl-logo__name { color: var(--bulb); }
.pl-nav { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.pl-nav a { color: var(--text); text-decoration: none; font-family: var(--en); font-weight: 600; font-size: 15px; letter-spacing: .08em; }
.pl-nav a:hover { color: var(--bulb); }

/* 共通 */
.pl-wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.pl-section { padding: 110px 28px; }
.pl-section--wood { background: var(--wood); }
.pl-section--panel { background: var(--panel); }
.pl-inner { max-width: 1060px; margin: 0 auto; display: flex; flex-direction: column; gap: 44px; }
.pl-inner--wide { max-width: 1160px; }
.pl-head { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.pl-head__en { margin: 0; font-family: var(--neon); font-size: 46px; line-height: 1.2; color: var(--bulb); text-shadow: 0 0 8px var(--bulb), 0 0 24px rgba(242,179,94,.65); }
.pl-head__ja { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .2em; color: var(--text); }

/* ヒーロー */
.pl-hero { max-width: 1160px; margin: 0 auto; padding: 0 28px 110px; }
.pl-hero__box { position: relative; border-radius: 10px; overflow: hidden; }
.pl-hero__img { width: 100%; height: 620px; object-fit: cover; }
.pl-hero__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(transparent, rgba(7,6,5,.95)); }
.pl-hero__title { margin: 0; font-weight: 900; font-size: 50px; line-height: 1.45; }
.pl-hero__badge { margin: 0; font-family: var(--en); font-weight: 600; font-size: 15px; letter-spacing: .16em; color: var(--blue); text-shadow: 0 0 12px rgba(111,182,255,.6); }
.pl-hero__lead { margin: 0; font-size: 16px; color: var(--muted); }

/* はじめての方へ */
.pl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.pl-card__en { margin: 0; font-family: var(--en); font-weight: 700; font-size: 15px; letter-spacing: .12em; color: var(--blue); }
.pl-card__title { margin: 0; font-size: 20px; font-weight: 700; }
.pl-card__text { margin: 0; font-size: 15px; color: var(--muted); }

/* メニュー */
.pl-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.pl-menu__title { margin: 0 0 4px; font-family: var(--en); font-weight: 700; font-size: 26px; letter-spacing: .06em; }
.pl-menu ul { margin: 0; padding: 0; list-style: none; }
.pl-menu li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pl-menu__name { font-size: 16px; }
.pl-menu__dots { flex: 1; border-bottom: 1px dotted #4A3B30; transform: translateY(-5px); }
.pl-menu__price { font-family: var(--en); font-weight: 600; font-size: 18px; color: var(--bulb); white-space: nowrap; }
.pl-note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }

/* イベント */
.pl-events { display: flex; gap: 24px; flex-wrap: wrap; }
.pl-event { flex: 1 1 300px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--bulb)); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.pl-event__when { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
.pl-event__title { margin: 0; font-family: var(--en); font-weight: 700; font-size: 30px; letter-spacing: .04em; color: var(--c, var(--bulb)); }
.pl-event__text { margin: 0; font-size: 15px; color: var(--muted); }
.pl-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pl-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }

/* アクセス */
.pl-access { display: flex; gap: 40px; flex-wrap: wrap; }
.pl-info { flex: 1 1 400px; margin: 0; display: grid; grid-template-columns: 6em 1fr; font-size: 15px; }
.pl-info dt { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--bulb); font-weight: 700; }
.pl-info dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pl-map { flex: 1 1 400px; min-height: 320px; border-radius: 6px; overflow: hidden; background: var(--panel2); color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; padding: 16px; }
.pl-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.3) brightness(.85); }
.pl-map--embed { padding: 0; }

/* フッター */
.pl-footer { padding: 48px 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pl-footer__name { margin: 0; font-family: var(--neon); font-size: 28px; line-height: 1.2; color: var(--bulb); text-shadow: 0 0 8px rgba(242,179,94,.6); }
.pl-footer__sns { margin: 0; font-family: var(--en); font-weight: 600; letter-spacing: .1em; font-size: 14px; }
.pl-footer__copy { margin: 0; font-size: 12px; color: var(--muted); }
.pl-footer__copy a { color: var(--muted); }

/* 固定ページ・投稿（予備） */
.pl-page { max-width: 760px; margin: 0 auto; padding: 40px 28px 110px; }
.pl-page h1 { font-size: 32px; line-height: 1.5; }

/* スマホ */
@media (max-width: 760px) {
  .pl-header { padding: 22px 16px 18px; gap: 14px; }
  .pl-logo__name { font-size: 34px; }
  .pl-logo__sub { font-size: 13px; }
  .pl-nav { gap: 20px; }
  .pl-nav a { font-size: 14px; }
  .pl-hero { padding: 0 16px 72px; }
  .pl-hero__img { height: 460px; }
  .pl-hero__text { padding: 28px 22px; }
  .pl-hero__title { font-size: 28px; }
  .pl-hero__lead { font-size: 14px; }
  .pl-section { padding: 72px 16px; }
  .pl-inner { gap: 32px; }
  .pl-head__en { font-size: 32px; }
  .pl-menu { grid-template-columns: 1fr; gap: 36px; }
  .pl-menu li { gap: 6px; }
  .pl-cards, .pl-events { gap: 16px; }
  .pl-event { flex-basis: 100%; }
  .pl-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pl-info { flex-basis: 100%; grid-template-columns: 5.5em 1fr; font-size: 14px; }
  .pl-map { flex-basis: 100%; }
}

/* ------------------------------------------------------------
 * フローティングヘッダー（v1.0.2）
 * スクロールしても上に残り、少し進むと細い帯に縮む
 * ---------------------------------------------------------- */
.pl-header {
  position: sticky; top: 0; z-index: 100;
  max-width: none;
  padding-left: max(28px, calc((100% - 1104px) / 2));
  padding-right: max(28px, calc((100% - 1104px) / 2));
  background: rgba(13, 11, 10, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding .25s ease, border-color .25s ease;
}
.pl-header.is-scrolled {
  flex-direction: row; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
  border-bottom-color: var(--line);
}
.pl-header.is-scrolled .pl-logo { flex-direction: row; align-items: baseline; gap: 12px; }
.pl-header.is-scrolled .pl-logo__name { font-size: 26px; text-shadow: 0 0 8px var(--bulb); }
.pl-header.is-scrolled .pl-logo__sub { font-size: 11px; }
body.admin-bar .pl-header { top: 32px; }
section[id] { scroll-margin-top: 84px; }
@media (max-width: 782px) {
  body.admin-bar .pl-header { top: 46px; }
}
@media (max-width: 760px) {
  .pl-header { padding-left: 16px; padding-right: 16px; }
  .pl-header.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
  .pl-header.is-scrolled .pl-logo__name { font-size: 20px; }
  .pl-header.is-scrolled .pl-logo__sub { display: none; }
  .pl-header.is-scrolled .pl-nav { gap: 14px; }
  .pl-header.is-scrolled .pl-nav a { font-size: 12px; }
}
@media (max-width: 600px) {
  body.admin-bar .pl-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-header { transition: none; }
}
