/*
Theme Name: Yellow Grill
Description: Steak × Spice × Sake YELLOW のトップページ用テーマ（デザインB案 Night Grill）。
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: yellow-grill
Update URI: false
*/

:root {
	--yg-bg: #17120f;
	--yg-bg-alt: #1f1814;
	--yg-card: #241c17;
	--yg-line: #3a2f27;
	--yg-line-strong: #6b5a4c;
	--yg-text: #f3ece2;
	--yg-text-sub: #d6cbbe;
	--yg-text-mute: #b8a99a;
	--yg-accent: #e8b44a;
	--yg-red: #ad0119;
	--yg-serif: 'Shippori Mincho B1', serif;
	--yg-sans: 'Noto Sans JP', sans-serif;
	--yg-label: 'Oswald', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--yg-sans); color: var(--yg-text); background: var(--yg-bg); line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--yg-accent); }
a:hover { color: #f5cf7e; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.yg-wrap { max-width: 1200px; margin: 0 auto; padding: 88px 24px; }
.yg-alt { background: var(--yg-bg-alt); }

/* Header */
.yg-header { background: var(--yg-red); position: sticky; top: 0; z-index: 50; }
.admin-bar .yg-header { top: 32px; }
.yg-header__inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.yg-header__logo { display: flex; align-items: center; }
.yg-header__logo img { height: 56px; width: auto; display: block; }
.yg-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; }
.yg-nav a { padding: 12px 14px; text-decoration: none; color: #fff; }
.yg-nav a:hover { color: #fff; text-decoration: underline; }
.yg-nav a.yg-nav__cta { padding: 12px 20px; color: var(--yg-red); background: #fff; border-radius: 4px; }
.yg-nav a.yg-nav__cta:hover { text-decoration: none; background: #f3ece2; }

/* Section headings */
.yg-eyebrow { margin: 0; font-family: var(--yg-label); font-size: 14px; letter-spacing: 0.4em; color: var(--yg-accent); }
.yg-h2 { margin: 0; font-family: var(--yg-serif); font-weight: 800; font-size: 40px; line-height: 1.4; }
.yg-head { display: flex; flex-direction: column; gap: 10px; }
.yg-head--center { align-items: center; text-align: center; }
.yg-head--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

/* Buttons */
.yg-btn { display: inline-block; padding: 16px 32px; border-radius: 4px; text-decoration: none; font-weight: 700; }
.yg-btn--accent { background: var(--yg-accent); color: var(--yg-bg); }
.yg-btn--accent:hover { color: var(--yg-bg); background: #f5cf7e; }
.yg-btn--ghost { border: 1px solid var(--yg-line-strong); color: var(--yg-text); font-weight: 400; }
.yg-btn--ghost:hover { color: var(--yg-text); border-color: var(--yg-text-mute); }
.yg-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.yg-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 72px; }
.yg-hero__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 28px; }
.yg-hero__title { margin: 0; font-family: var(--yg-serif); font-weight: 800; font-size: 60px; line-height: 1.35; }
.yg-hero__title span { display: inline-block; }
.yg-hero__title span:first-child { display: block; }
.yg-hero__lead { margin: 0; font-size: 17px; line-height: 2; color: var(--yg-text-sub); max-width: 32em; }
.yg-hero__photos { flex: 1 1 460px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.yg-hero__photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; display: block; }
.yg-hero__photos img:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }

/* Steak list */
.yg-steaks { display: flex; flex-direction: column; gap: 1px; background: var(--yg-line); border: 1px solid var(--yg-line); margin-top: 48px; }
.yg-steak { background: var(--yg-bg-alt); display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 20px; }
.yg-steak img { width: 200px; max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; display: block; }
.yg-steak__body { flex: 1 1 260px; }
.yg-steak__name { margin: 0 0 6px; font-family: var(--yg-serif); font-size: 24px; }
.yg-steak__detail { margin: 0; color: var(--yg-text-mute); }
.yg-steak__price { margin: 0; font-family: var(--yg-label); font-size: 28px; color: var(--yg-accent); }
.yg-note { margin: 32px 0 0; text-align: center; color: var(--yg-text-mute); }

/* Sauce */
.yg-split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.yg-split__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 18px; }
.yg-split__text p { margin: 0; line-height: 2; color: var(--yg-text-sub); }
.yg-split__media { flex: 1 1 520px; }
.yg-split__media img { width: 100%; border-radius: 4px; display: block; }

/* Menu boards */
.yg-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; }
.yg-board { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--yg-text); }
.yg-board:hover { color: var(--yg-accent); }
.yg-board img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 4px; display: block; border: 1px solid var(--yg-line); }
.yg-board span { font-family: var(--yg-serif); font-size: 18px; }

/* Image modal (assets/js/lightbox.js) */
.yg-split__media a { display: block; cursor: zoom-in; }
.yg-board { cursor: zoom-in; }
.yg-lightbox-open { overflow: hidden; }
.yg-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--yg-text); }
.yg-lightbox::backdrop { background: rgba(10, 8, 6, 0.92); }
.yg-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.yg-lightbox__figure { margin: 0; padding: 56px 72px 24px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.yg-lightbox__img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6); }
.yg-lightbox__caption { font-family: var(--yg-serif); font-size: 18px; text-align: center; }
.yg-lightbox__btn { position: absolute; width: 52px; height: 52px; border: 1px solid var(--yg-line-strong); border-radius: 50%; background: rgba(23, 18, 15, 0.8); color: var(--yg-text); font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.yg-lightbox__btn:hover, .yg-lightbox__btn:focus-visible { border-color: var(--yg-accent); color: var(--yg-accent); outline: none; }
.yg-lightbox__btn[hidden] { display: none; }
.yg-lightbox__close { top: 16px; right: 16px; }
.yg-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.yg-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Embeds (EmbedSocial / map) */
.yg-embed { margin-top: 36px; }
.yg-map { flex: 1 1 460px; min-height: 360px; }
.yg-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: 4px; display: block; }

/* Access */
.yg-access { display: flex; flex-wrap: wrap; gap: 48px; }
.yg-access__info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 24px; }
.yg-dl { margin: 0; display: grid; grid-template-columns: 6em 1fr; gap: 14px 16px; }
.yg-dl dt { color: var(--yg-text-mute); }
.yg-dl dd { margin: 0; }
.yg-links { display: flex; flex-wrap: wrap; gap: 20px; }
.yg-links a { padding: 12px 0; }

/* Footer */
.yg-footer { border-top: 1px solid var(--yg-line); }
.yg-footer__inner { max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--yg-text-mute); }
.yg-footer__tag { font-family: var(--yg-label); letter-spacing: 0.2em; }

/* Generic pages (お客様の声・テイクアウト注文フォームなど) */
.yg-page { max-width: 960px; margin: 0 auto; padding: 56px 24px 88px; }
.yg-page__title { margin: 0 0 24px; font-family: var(--yg-serif); font-weight: 800; font-size: 36px; }
.yg-page__body { background: #fff; color: #222; border-radius: 4px; padding: 32px; }
.yg-page__body a { color: var(--yg-red); }

@media (max-width: 782px) {
	.admin-bar .yg-header { top: 46px; }
}
@media (max-width: 720px) {
	.yg-wrap { padding: 56px 20px; }
	.yg-hero { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
	.yg-hero__title { font-size: 36px; }
	.yg-h2 { font-size: 30px; }
	.yg-header { position: static; }
	.yg-header__inner { padding: 12px 16px; }
	.yg-header__logo img { height: 44px; }
	.yg-nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0; font-size: 13px; }
	.yg-nav a { padding: 12px 6px; white-space: nowrap; }
	.yg-nav a.yg-nav__cta { padding: 10px 12px; }
	.yg-lightbox__figure { padding: 64px 8px 80px; }
	.yg-lightbox__img { max-height: calc(100vh - 170px); }
	.yg-lightbox__prev, .yg-lightbox__next { top: auto; bottom: 16px; transform: none; }
	.yg-lightbox__prev { left: calc(50% - 64px); }
	.yg-lightbox__next { right: calc(50% - 64px); }
	.yg-page { padding-top: 32px; }
	.yg-page__title { font-size: 26px; }
	.yg-page__body { padding: 20px; }
}
