/*
Theme Name: Gourmet Release
Theme URI: https://example.com/
Author: Gourmet Release
Author URI: https://example.com/
Description: グルメメディア向けのモダンなカードレイアウトテーマ。大きなアイキャッチ画像を活かしたシズル感のある一覧表示です。
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.5.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gourmet-release
Tags: blog, food-and-drink, custom-menu, featured-images, full-width-template, translation-ready
*/

/*
 * ベース：Noto Sans JP + レイアウトの下地
 */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
	background-color: #ffffff;
	color: #171717;
}

/* Tailwind 未適用時の最低レイアウト（投稿ページの素の HTML 表示を防ぐ） */
.hidden {
	display: none !important;
}

#gr-nav-drawer {
	visibility: hidden;
	pointer-events: none;
}

#gr-nav-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

#gr-nav-drawer .gr-nav-backdrop {
	opacity: 0;
	transition: opacity 0.28s ease;
}

#gr-nav-drawer.is-open .gr-nav-backdrop {
	opacity: 1;
}

#gr-nav-drawer .gr-nav-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: min(85vh, 32rem);
	overflow: hidden;
	border-bottom: 1px solid rgba(253, 230, 138, 0.45);
	border-radius: 0 0 1.85rem 1.85rem;
	box-shadow: 0 12px 40px -8px rgba(120, 53, 15, 0.12);
	transform: translate3d(0, -100%, 0);
	transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

#gr-nav-drawer.is-open .gr-nav-drawer-panel {
	transform: translate3d(0, 0, 0);
}

@media (min-width: 640px) {
	#gr-nav-drawer .gr-nav-drawer-panel {
		top: 0;
		right: 0;
		left: auto;
		width: min(100%, 28rem);
		height: 100%;
		max-height: none;
		border-bottom: 0;
		border-left: 1px solid rgba(253, 230, 138, 0.45);
		border-radius: 1.85rem 0 0 1.85rem;
		box-shadow: -12px 0 40px -8px rgba(120, 53, 15, 0.12);
		transform: translate3d(100%, 0, 0);
	}

	#gr-nav-drawer.is-open .gr-nav-drawer-panel {
		transform: translate3d(0, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	#gr-nav-drawer .gr-nav-backdrop,
	#gr-nav-drawer .gr-nav-drawer-panel {
		transition: none;
	}
}

.min-h-screen > header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid rgba(245, 245, 245, 0.8);
	background-color: rgba(255, 255, 255, 0.95);
}

.min-h-screen > header > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 64rem;
	margin: 0 auto;
	padding: 1rem 1.5rem;
}

.gr-header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.gr-header-search {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	width: clamp(8.5rem, 24vw, 15rem);
	padding: 0.3rem 0.35rem 0.3rem 0.85rem;
	border: 1px solid rgba(253, 230, 138, 0.55);
	border-radius: 9999px;
	background: rgba(255, 251, 235, 0.75);
	box-shadow: 0 1px 2px rgba(180, 83, 9, 0.06);
}

.gr-header-search-field {
	width: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.35rem 0;
	font: inherit;
	font-size: 0.8125rem;
	color: #44403c;
}

.gr-header-search-field::placeholder {
	color: #a8a29e;
}

.gr-header-search-field:focus {
	outline: none;
}

.gr-header-search-submit {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 9999px;
	background: #f59e0b;
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.18s ease;
}

.gr-header-search-submit:hover,
.gr-header-search-submit:focus-visible {
	background: #d97706;
	outline: none;
}

.gr-header-search-icon {
	width: 1rem;
	height: 1rem;
}

@media (min-width: 640px) {
	.gr-header-actions {
		gap: 0.75rem;
	}

	.gr-header-search {
		width: clamp(11rem, 28vw, 16rem);
		padding-left: 1rem;
	}

	.gr-header-search-field {
		font-size: 0.875rem;
	}
}

.gr-site-shell {
	max-width: 64rem;
	margin: 0 auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.gr-single-shell {
	max-width: 64rem;
	margin: 0 auto;
	padding: 2rem 1rem 4rem;
}

.gr-single-layout {
	display: grid;
	gap: 2.5rem;
}

.gr-single-layout--with-sidebar {
	align-items: start;
}

.gr-single-sidebar {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	border-top: 1px solid #f5f5f5;
	padding-top: 2rem;
}

.gr-single-layout:not(.gr-single-layout--with-sidebar) .gr-single-main {
	max-width: 48rem;
	margin-left: auto;
	margin-right: auto;
}

.gr-single-sidebar-section {
	border-top: 1px solid #f5f5f5;
	padding-top: 2rem;
}

.gr-single-sidebar-section:first-child {
	border-top: 0;
	padding-top: 0;
}

.gr-sidebar-post a {
	text-decoration: none;
}

@media (min-width: 1024px) {
	.gr-single-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr) 17.5rem;
	}

	.gr-single-sidebar {
		position: sticky;
		top: 6rem;
		border-top: 0;
		padding-top: 0;
	}

	.gr-single-sidebar-section:first-child {
		border-top: 0;
		padding-top: 0;
	}

	.gr-single-sidebar-section + .gr-single-sidebar-section {
		border-top: 1px solid #f5f5f5;
		padding-top: 2rem;
	}
}

.gr-single-head {
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(229, 229, 229, 0.85);
}

.gr-single-kicker {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #f59e0b;
}

.gr-single-title {
	margin: 1rem 0 0;
	font-size: clamp(1.65rem, 4.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.45;
	color: #171717;
}

.gr-single-lead {
	margin: 1.25rem 0 0;
	font-size: 1rem;
	line-height: 1.8;
	color: #525252;
}

.gr-single-meta {
	margin-top: 1.5rem;
	font-size: 0.875rem;
	color: #737373;
}

.gr-single-visual {
	margin: 2rem 0 0;
	padding: 0;
}

.gr-single-visual-image {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid rgba(245, 245, 245, 0.95);
	border-radius: 0.25rem;
	background-color: #fafafa;
}

.gr-single-body {
	padding-top: 2rem;
}

.gr-single-nav {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 3.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid #f5f5f5;
}

@media (min-width: 640px) {
	.gr-single-shell {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.gr-single-nav {
		flex-direction: row;
		justify-content: space-between;
	}
}

/* トップ・横長ヒーロー */
#gr-home-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
}

#gr-home-hero > div {
	position: relative;
	width: 100%;
	min-height: 9.5rem;
	max-height: 13.5rem;
	aspect-ratio: 21 / 9;
}

@media (min-width: 640px) {
	#gr-home-hero > div {
		min-height: 11rem;
		max-height: 15rem;
	}
}

@media (min-width: 1024px) {
	#gr-home-hero > div {
		min-height: 12rem;
		max-height: 17rem;
	}
}

#gr-home-hero .absolute.inset-0 {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 42%;
	background-repeat: no-repeat;
}

#gr-home-hero .gr-home-hero-subtitle {
	font-size: 0.9375rem;
	line-height: 1.5;
}

#gr-home-hero .gr-home-hero-title {
	font-size: clamp(1.875rem, 5vw, 2.65rem);
	line-height: 1.25;
}

@media (min-width: 640px) {
	#gr-home-hero .gr-home-hero-subtitle {
		font-size: 1rem;
	}
}

@media (min-width: 1024px) {
	#gr-home-hero .gr-home-hero-subtitle {
		font-size: 1.125rem;
	}
}

.gr-thumb-landscape,
.aspect-video {
	aspect-ratio: 16 / 9;
}

/* サイトロゴ */
.gr-site-logo-link {
	display: inline-flex;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 72%;
	padding-right: 0.5rem;
}

.gr-site-logo {
	display: block;
	width: auto;
	height: 3.5rem;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
}

@media (min-width: 640px) {
	.gr-site-logo-link {
		flex: 0 1 auto;
		max-width: 24rem;
		padding-right: 0;
	}

	.gr-site-logo {
		height: 4rem;
	}
}

@media (min-width: 1024px) {
	.gr-site-logo {
		height: 4.5rem;
	}
}

/* ロゴ横のサイト名（明朝で品格） */
.gr-logo-text {
	font-family: "Noto Serif JP", "Noto Sans JP", serif;
	font-weight: 500;
	letter-spacing: 0.08em;
}

/* ハンバーガードロワー（暖色・中央揃え・ゆったり） */
#gr-nav-drawer nav .menu {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 17rem;
	width: 100%;
}

#gr-nav-drawer nav .menu > li {
	border: none;
	width: 100%;
	text-align: center;
}

#gr-nav-drawer nav .menu a,
#gr-nav-drawer .gr-nav-drawer-link {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 1.05rem 1.85rem;
	text-align: center;
	text-decoration: none;
	color: #57534e;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.5;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(253, 230, 138, 0.45);
	box-shadow: 0 2px 8px rgba(180, 83, 9, 0.06);
	transition:
		background 0.22s ease,
		color 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease,
		transform 0.18s ease;
}

#gr-nav-drawer nav .menu a:hover,
#gr-nav-drawer nav .menu a:focus-visible,
#gr-nav-drawer .gr-nav-drawer-link:hover,
#gr-nav-drawer .gr-nav-drawer-link:focus-visible {
	color: #9a3412;
	background: rgba(254, 243, 199, 0.72);
	border-color: rgba(251, 191, 36, 0.45);
	box-shadow: 0 4px 14px rgba(180, 83, 9, 0.1);
	transform: translateY(-1px);
	outline: none;
}

#gr-nav-drawer nav .menu .sub-menu {
	margin-top: 0.5rem;
	padding-left: 0;
	list-style: none;
}

#gr-nav-drawer nav .menu .sub-menu a {
	font-size: 0.9rem;
	padding: 0.65rem 1.25rem;
	border-radius: 1rem;
}

/* スクリーンリーダー向け（検索ラベルなど） */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ページネーション（2ページ目以降の一覧用） */
.navigation.pagination {
	display: flex;
	justify-content: center;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	font-size: 0.875rem;
	color: #737373;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	min-width: 2.25rem;
	justify-content: center;
	border-radius: 9999px;
	padding: 0.35rem 0.65rem;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
	background-color: rgba(245, 158, 11, 0.15);
	color: #d97706;
}

/* 投稿・固定ページ本文 */
.gr-entry-content {
	font-size: 1rem;
	line-height: 2;
	color: #262626;
}

.gr-entry-content > *:first-child {
	margin-top: 0;
}

.gr-entry-content > *:last-child {
	margin-bottom: 0;
}

.gr-entry-content p,
.gr-entry-content ul,
.gr-entry-content ol,
.gr-entry-content blockquote,
.gr-entry-content figure,
.gr-entry-content .wp-block-image,
.gr-entry-content .wp-block-gallery {
	margin: 0 0 1.35rem;
}

.gr-entry-content h2,
.gr-entry-content h3,
.gr-entry-content h4 {
	margin: 2.25rem 0 0.85rem;
	font-weight: 600;
	line-height: 1.45;
	color: #171717;
}

.gr-single .gr-entry-content h2 {
	margin-top: 2.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e5e5;
}

.gr-entry-content h2 {
	font-size: 1.5rem;
}

.gr-entry-content h3 {
	font-size: 1.25rem;
}

.gr-entry-content h4 {
	font-size: 1.125rem;
}

.gr-entry-content a {
	color: #d97706;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	transition: color 0.2s ease;
}

.gr-entry-content a:hover,
.gr-entry-content a:focus-visible {
	color: #b45309;
}

.gr-entry-content ul,
.gr-entry-content ol {
	padding-left: 1.35rem;
}

.gr-entry-content li + li {
	margin-top: 0.35rem;
}

.gr-entry-content blockquote {
	border-left: 3px solid rgba(245, 158, 11, 0.45);
	padding-left: 1rem;
	color: #525252;
}

.gr-entry-content img,
.gr-entry-content video {
	max-width: 100%;
	height: auto;
	border-radius: 1rem;
}

.gr-entry-content .alignwide,
.gr-entry-content .alignfull {
	width: 100%;
}

.gr-entry-pages .page-numbers {
	display: inline-flex;
	min-width: 2.25rem;
	justify-content: center;
	border-radius: 9999px;
	padding: 0.35rem 0.65rem;
	margin: 0 0.2rem;
	text-decoration: none;
	color: #737373;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.gr-entry-pages .page-numbers:hover,
.gr-entry-pages .page-numbers.current {
	background-color: rgba(245, 158, 11, 0.15);
	color: #d97706;
}

/* トップのアクセスランキング期間切替 */
[data-gr-home-ranking] .gr-home-ranking-toggle {
	border-color: #e5e5e5;
	background-color: #fff;
	color: #525252;
}

[data-gr-home-ranking] .gr-home-ranking-toggle[aria-selected="true"] {
	border-color: #fcd34d;
	background-color: #fffbeb;
	color: #b45309;
}

@media (hover: hover) {
	[data-gr-home-ranking] .gr-home-ranking-toggle[aria-selected="false"]:hover {
		border-color: #fde68a;
		background-color: rgba(255, 251, 235, 0.7);
		color: #b45309;
	}
}

.gr-home-ranking-panel {
	display: none;
}

.gr-home-ranking-panel.is-active,
.gr-home-ranking-panel.is-leaving,
.gr-home-ranking-panel.is-entering {
	display: block;
}

.gr-home-ranking-panel.is-leaving {
	animation: gr-home-ranking-fade-out 180ms ease forwards;
}

.gr-home-ranking-panel.is-entering {
	animation: gr-home-ranking-fade-in 280ms ease;
}

@keyframes gr-home-ranking-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes gr-home-ranking-fade-out {
	from {
		opacity: 1;
		transform: translateY(0);
	}

	to {
		opacity: 0;
		transform: translateY(-6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gr-home-ranking-panel.is-leaving,
	.gr-home-ranking-panel.is-entering {
		animation: none;
	}
}

.gr-home-compact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) {
	.gr-home-compact-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.gr-home-compact-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}
