/*
Theme Name: 裏エステ図鑑
Theme URI: https://wordpress.org/
Description: Twenty Twenty-Five の子テーマ。メンズエステ体験談メディア「裏エステ図鑑」用。
Author: 
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.6.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ura-esthe-zukan
*/

/*
 * サイト固有の上書きはこのファイルに追加してください。
 * ブロックテーマの全体デザインは親の theme.json / サイトエディタと併用できます。
 */

/* --- レビューアーカイブ: フィルタフォーム --- */
.ura-review-filters {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 8px;
}

.ura-review-filters__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 0.75rem 1rem;
	margin: 0;
}

.ura-review-filters__field {
	margin: 0;
}

.ura-review-filters__field label {
	display: block;
	font-size: 0.8rem;
	margin-bottom: 0.25rem;
	opacity: 0.85;
}

.ura-review-filters__field input,
.ura-review-filters__field select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ura-review-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin: 1rem 0 0;
}

/* --- プライマリナビ: 2分割ボタン --- */
.ura-hub-feed__nav,
.ura-site-primary-nav {
	margin-bottom: 0.25rem;
}

.ura-split-nav {
	width: 100%;
}

.ura-split-nav__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	align-items: stretch;
}

@media (min-width: 600px) {
	.ura-split-nav__grid {
		gap: 1rem;
	}
}

.ura-split-nav__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.35rem;
	padding: 1rem 1.1rem;
	margin: 0;
	font-size: clamp(1rem, 2.8vw, 1.25rem);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	border-radius: 10px;
	border: 2px solid transparent;
	box-shadow: 0 4px 18px color-mix(in srgb, #000 35%, transparent);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
	cursor: pointer;
	list-style: none;
	box-sizing: border-box;
}

.ura-split-nav__tile::-webkit-details-marker {
	display: none;
}

.ura-split-nav__tile::marker {
	content: '';
}

.ura-split-nav__tile--new {
	color: #111111;
	background: linear-gradient(145deg, #e8d4b0 0%, #c4a574 45%, #a68552 100%);
	border-color: color-mix(in srgb, #c4a574 70%, #fff);
}

.ura-split-nav__tile--new:hover,
.ura-split-nav__tile--new:focus-visible {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 6px 22px color-mix(in srgb, #c4a574 45%, transparent);
	outline: none;
}

.ura-split-nav__tile--rank {
	color: #f5f2ed;
	background: linear-gradient(145deg, #3a3530 0%, #252220 50%, #1a1816 100%);
	border-color: color-mix(in srgb, #c4a574 55%, transparent);
	width: 100%;
}

.ura-split-nav__tile--rank:hover,
.ura-split-nav__details[open] > .ura-split-nav__tile--rank {
	filter: brightness(1.08);
}

.ura-split-nav__details {
	position: relative;
	min-width: 0;
}

.ura-split-nav__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 0.35rem);
	z-index: 30;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0.35rem;
	margin: 0;
	border-radius: 10px;
	background: #1c1c1c;
	border: 1px solid color-mix(in srgb, #c4a574 35%, transparent);
	box-shadow: 0 12px 28px color-mix(in srgb, #000 50%, transparent);
}

.ura-split-nav__panel a {
	display: block;
	padding: 0.65rem 0.85rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #f5f2ed;
	text-decoration: none;
	border-radius: 6px;
}

.ura-split-nav__panel a:hover,
.ura-split-nav__panel a:focus-visible {
	background: color-mix(in srgb, #c4a574 18%, transparent);
	color: #fff;
	outline: none;
}

/* --- ヘッダー検索（ボタン内蔵・広め） --- */
.ura-header-search .wp-block-search__inside-wrapper {
	max-width: min(420px, 100%);
	width: min(420px, 100%);
	min-height: 2.75rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--ura-surface, #2d2d2d) 88%, transparent);
	overflow: hidden;
}

.ura-header-search .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.65rem 1rem;
	font-size: 1rem;
	border: none;
	background: transparent;
	color: inherit;
}

.ura-header-search .wp-block-search__input:focus {
	outline: none;
}

.ura-header-search .wp-block-search__button {
	margin: 0.2rem 0.35rem 0.2rem 0;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	border: none;
	background: #c4a574;
	color: #111;
}

.ura-header-search .wp-block-search__button:hover {
	filter: brightness(1.05);
}

/* --- フッター（おすすめブログ・お問い合わせ） --- */
.ura-footer-blog__list {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.ura-footer-blog__item {
	margin: 0 0 0.5rem;
	padding: 0;
}

.ura-footer-blog__link {
	font-size: 0.95rem;
	text-decoration: none;
}

.ura-footer-blog__link:hover {
	text-decoration: underline;
}

.ura-footer-blog__empty {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	opacity: 0.85;
}

.ura-footer-contact {
	margin-top: 0.75rem;
	max-width: 36rem;
}

.ura-footer-contact__field {
	margin: 0 0 0.85rem;
}

.ura-footer-contact__field label {
	display: block;
	font-size: 0.85rem;
	margin-bottom: 0.3rem;
	font-weight: 600;
}

.ura-footer-contact__field input,
.ura-footer-contact__field textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.65rem;
	border-radius: 6px;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	background: color-mix(in srgb, #111 40%, var(--wp--preset--color--ura-surface, #2d2d2d));
	color: inherit;
	font: inherit;
}

.ura-footer-contact__field textarea {
	resize: vertical;
	min-height: 6rem;
}

.ura-footer-contact__req {
	color: #c4a574;
}

.ura-footer-contact__hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.ura-footer-contact__actions {
	margin: 1rem 0 0;
}

.ura-footer-contact__submit {
	padding: 0.55rem 1.35rem;
	border-radius: 999px;
	border: none;
	font-weight: 700;
	cursor: pointer;
	background: #c4a574;
	color: #111;
}

.ura-footer-contact__submit:hover {
	filter: brightness(1.06);
}

.ura-footer-contact__notice {
	margin: 0 0 0.75rem;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	font-size: 0.9rem;
}

.ura-footer-contact__notice--ok {
	background: color-mix(in srgb, #c4a574 22%, transparent);
	border: 1px solid color-mix(in srgb, #c4a574 45%, transparent);
}

.ura-footer-contact__notice--err {
	background: color-mix(in srgb, #c44 15%, transparent);
	border: 1px solid color-mix(in srgb, #c44 35%, transparent);
}

/* --- レビューカード（一覧） --- */
.ura-review-card {
	border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.ura-review-card--list .ura-review-list-row {
	margin-bottom: 0;
}

.ura-review-card--list .ura-review-list-row__thumb img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
	object-fit: cover;
}

.ura-review-card--list .ura-review-list-row__tags {
	font-size: 0.85rem;
}

.ura-review-card--list .ura-review-list-row__tags .wp-block-post-terms a {
	display: inline-block;
	margin: 0 0.35rem 0.25rem 0;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	text-decoration: none;
	opacity: 0.95;
}

.ura-review-card--list .ura-review-list-row__tags .wp-block-post-terms a:hover {
	opacity: 1;
}

@media (min-width: 782px) {
	.ura-review-card--list .ura-review-list-row__thumb {
		max-width: 220px;
	}
}

/* --- スペック表（詳細） --- */
.ura-review-specs {
	margin: 1.5rem 0 2rem;
	padding: 1.25rem 1.5rem;
	border-radius: 8px;
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.ura-review-specs__grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.35rem 1.25rem;
	margin: 0;
}

.ura-review-specs__grid dt {
	margin: 0;
	font-weight: 600;
	font-size: 0.85rem;
	opacity: 0.85;
}

.ura-review-specs__grid dd {
	margin: 0;
	font-size: 0.95rem;
}

.ura-review-specs__oneline {
	margin: 1rem 0 0;
	font-size: 1rem;
	line-height: 1.5;
}

.ura-review-specs__tags {
	margin-top: 0.75rem;
	font-size: 0.9rem;
}

.ura-review-specs__tags a {
	margin-right: 0.5rem;
}

.ura-review-specs__radar-note {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
	font-size: 0.8rem;
	opacity: 0.7;
}

/* --- ランキングショートコード --- */
.ura-review-ranking {
	margin: 0;
	padding-left: 1.25rem;
	list-style: decimal;
}

.ura-review-ranking__item {
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.ura-review-ranking__shop,
.ura-review-ranking__score {
	display: inline-block;
	margin-left: 0.35rem;
	font-size: 0.85rem;
	opacity: 0.8;
}

.ura-review-ranking__empty {
	margin: 0;
	font-size: 0.95rem;
	opacity: 0.85;
}

/* --- タグ・エリアピル --- */
.ura-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.65rem;
	justify-content: center;
	margin: 0.5rem 0 0;
}

.ura-pills--areas {
	justify-content: flex-start;
}

.ura-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	font-size: 0.85rem;
	text-decoration: none;
	border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
	background: color-mix(in srgb, currentColor 6%, transparent);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.ura-pill:hover {
	border-color: color-mix(in srgb, currentColor 40%, transparent);
	background: color-mix(in srgb, currentColor 12%, transparent);
}

.ura-pills__empty {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	opacity: 0.8;
}

/* --- レーダー --- */
.ura-review-specs__radar {
	margin-top: 1.25rem;
	max-width: 320px;
}

.ura-review-specs__radar .ura-radar {
	width: 100%;
	height: auto;
	display: block;
}

.ura-review-specs__radar-note {
	margin: 1rem 0 0;
	font-size: 0.8rem;
	opacity: 0.65;
	line-height: 1.5;
}

/* --- X タイムライン --- */
.ura-x-timeline {
	margin-top: 0.75rem;
	min-height: 120px;
}

.ura-x-timeline__empty {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	opacity: 0.8;
	line-height: 1.5;
}

/* --- モバイル下部ドック（782px 以下） --- */
@media (max-width: 782px) {
	body {
		padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
	}
}

.ura-mobile-dock {
	display: none;
}

@media (max-width: 782px) {
	.ura-mobile-dock {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100000;
		justify-content: space-around;
		align-items: stretch;
		gap: 0;
		padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
		margin: 0;
		background: color-mix(in srgb, #111111 92%, transparent);
		backdrop-filter: blur(10px);
		border-top: 1px solid color-mix(in srgb, #f5f2ed 12%, transparent);
		box-sizing: border-box;
	}

	.ura-mobile-dock__link {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.15rem;
		min-height: 3rem;
		padding: 0.2rem;
		font-size: 0.65rem;
		text-decoration: none;
		color: inherit;
		opacity: 0.92;
	}

	.ura-mobile-dock__link:hover,
	.ura-mobile-dock__link:focus-visible {
		opacity: 1;
	}

	.ura-mobile-dock__link--disabled {
		opacity: 0.35;
		pointer-events: none;
	}

	.ura-mobile-dock__icon {
		font-size: 1.1rem;
		line-height: 1;
	}

	.ura-mobile-dock__label {
		line-height: 1.2;
		text-align: center;
	}
}

/* --- パンくず --- */
.ura-breadcrumb {
	margin: 0 0 1rem;
	font-size: 0.8rem;
	opacity: 0.85;
}

.ura-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ura-breadcrumb__item {
	margin: 0;
}

.ura-breadcrumb__sep {
	list-style: none;
	margin: 0;
	opacity: 0.45;
	user-select: none;
}

.ura-breadcrumb__link {
	text-decoration: none;
}

.ura-breadcrumb__link:hover {
	text-decoration: underline;
}

.ura-breadcrumb__current {
	opacity: 0.95;
}

/* --- レビュー 2 カラム --- */
@media (min-width: 783px) {
	.ura-review-layout {
		align-items: flex-start;
	}
}

.ura-sidebar-review-wrap {
	position: sticky;
	top: 1rem;
}

.ura-sidebar-review__block {
	margin-bottom: 1.75rem;
}

.ura-sidebar-review__block:last-child {
	margin-bottom: 0;
}

.ura-sidebar-review__heading {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 0.65rem;
	letter-spacing: 0.02em;
}

.ura-sidebar-review .search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ura-sidebar-review .search-form label {
	flex: 1 1 100%;
}

.ura-sidebar-review .search-field {
	width: 100%;
	box-sizing: border-box;
	padding: 0.45rem 0.65rem;
}

.ura-sidebar-review .ura-pills {
	justify-content: flex-start;
}

/* --- 共有 --- */
.ura-share {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin: 1rem 0 1.5rem;
}

.ura-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 1rem;
	font-size: 0.85rem;
	border-radius: 6px;
	text-decoration: none;
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	background: color-mix(in srgb, currentColor 8%, transparent);
	cursor: pointer;
	color: inherit;
	font-family: inherit;
}

.ura-share__btn--x:hover,
.ura-share__btn--copy:hover {
	opacity: 0.92;
}

/* --- 関連レビュー --- */
.ura-related {
	margin: 2rem 0;
	padding-top: 1.5rem;
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.ura-related__title {
	font-size: 1.1rem;
	margin: 0 0 0.75rem;
}

.ura-related__list {
	margin: 0;
	padding-left: 1.2rem;
}

.ura-related__item {
	margin-bottom: 0.35rem;
}

.ura-related__score {
	font-size: 0.85rem;
	opacity: 0.75;
}

/* --- 検索ヒット --- */
.ura-search-hit {
	border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.ura-search-hit:last-child {
	border-bottom: none;
}

/* --- ヘッダー: 検索を右上 --- */
.ura-site-header__bar {
	gap: 1rem;
}

.ura-site-header__actions {
	flex: 1 1 auto;
	justify-content: flex-end;
	min-width: 0;
}

@media (max-width: 782px) {
	.ura-site-header__bar {
		flex-direction: column;
		align-items: stretch !important;
	}

	.ura-site-header__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.ura-header-search .wp-block-search__inside-wrapper {
		max-width: none;
		width: 100%;
	}
}

/* --- トップ: メイン + 右カラム --- */
@media (min-width: 783px) {
	.ura-home-split {
		align-items: flex-start;
	}

	.ura-home-aside-sticky {
		position: sticky;
		top: 1rem;
	}
}

.ura-home-aside .ura-pills {
	justify-content: flex-start;
}

.ura-home-aside .ura-pills--areas {
	justify-content: flex-start;
}

.ura-home-aside .ura-x-timeline {
	max-width: 100%;
	overflow: hidden;
}
