/* ==========================================================
   うるツヤLab. — design layer on top of JIN
   ========================================================== */
:root {
	--uru-bg: #FFF9F6;
	--uru-surface: #FFFFFF;
	--uru-header-bg: #FFFDFB;
	--uru-tint: #FDF3F1;
	--uru-ink: #3A2C2E;
	--uru-ink-2: #6B5658;
	--uru-muted: #8A7375;
	--uru-line: #F3E2E4;
	--uru-pink: #C65C74;
	--uru-pink-2: #E88CA0;
	--uru-pink-soft: #FBE5E9;
	--uru-thumb: #F6E3E6;
	--uru-gold: #C9A227;
	--uru-gold-light: #E9C766;
	--uru-gold-pale: #F1D383;
	--uru-gold-deep: #B8891E;
	--uru-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
	--uru-serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
	--uru-gutter: 72px;
}

/* ---------- Base (overrides JIN defaults) ---------- */
html body.uru-theme {
	background: var(--uru-bg);
	color: var(--uru-ink);
	font-family: var(--uru-sans);
}
body.uru-theme #wrapper,
body.uru-theme #scroll-content { background: transparent; }
body.uru-theme a { color: inherit; }
.uru-serif { font-family: var(--uru-serif); }
.uru-front *, .uru-header *, .uru-footer * { box-sizing: border-box; }

.uru-gold-rule {
	height: 2px; width: 56px; border-radius: 2px;
	background: linear-gradient(90deg, var(--uru-gold-light), var(--uru-gold-deep));
}
.uru-label { color: var(--uru-gold-deep); font-size: 13px; font-weight: 700; letter-spacing: .1em; }

/* ---------- Header ---------- */
.uru-header {
	background: var(--uru-header-bg);
	border-bottom: 1px solid var(--uru-line);
	position: relative; z-index: 50;
}
.uru-header__inner {
	max-width: 1440px; margin: 0 auto; height: 96px;
	padding: 0 var(--uru-gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.uru-logo { display: block; flex-shrink: 0; line-height: 0; }
.uru-logo img { height: 62px; width: auto; display: block; }
.uru-nav { flex: 1; display: flex; justify-content: flex-end; }
.uru-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; align-items: center; }
.uru-nav__list li { margin: 0; padding: 0; list-style: none; }
.uru-nav__list li::before { display: none; }
.uru-nav__list a {
	font-size: 15px; font-weight: 500; color: var(--uru-ink); text-decoration: none;
	padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
	white-space: nowrap;
}
.uru-nav__list a:hover,
.uru-nav__list .current-menu-item > a { color: var(--uru-pink); border-bottom-color: var(--uru-gold-light); }

.uru-search { position: relative; flex-shrink: 0; }
.uru-search summary {
	list-style: none; cursor: pointer;
	width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--uru-line); background: #fff; color: var(--uru-muted);
	display: flex; align-items: center; justify-content: center;
}
.uru-search summary::-webkit-details-marker { display: none; }
.uru-search summary .uru-icon { width: 18px; height: 18px; stroke-width: 2; }
.uru-search__form {
	position: absolute; right: 0; top: 50px; z-index: 60;
	display: flex; gap: 8px; padding: 12px; width: 320px;
	background: #fff; border: 1px solid var(--uru-line); border-radius: 16px;
	box-shadow: 0 12px 30px rgba(58, 44, 46, .12);
}
.uru-search__form input,
.uru-cta__form input {
	flex: 1; min-width: 0; font: inherit; font-size: 14px;
	padding: 10px 16px; border-radius: 999px; border: 1px solid var(--uru-line); background: #fff; color: var(--uru-ink);
}
.uru-search__form button {
	font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
	padding: 10px 18px; border: none; border-radius: 999px; background: var(--uru-pink); color: #fff;
}

/* ---------- Front page ---------- */
body.uru-theme.home #contents,
body.uru-theme.home #contents.uru-full {
	max-width: none; width: 100%; margin: 0; padding: 0;
	display: block; float: none; background: transparent;
}
body.uru-theme.home #breadcrumb { display: none; }
.uru-front { width: 100%; color: var(--uru-ink); font-family: var(--uru-sans); }
.uru-front h1, .uru-front h2, .uru-front h3 {
	margin: 0; padding: 0; border: 0; background: none; color: inherit; box-shadow: none;
}
.uru-front h1::before, .uru-front h1::after,
.uru-front h2::before, .uru-front h2::after,
.uru-front h3::before, .uru-front h3::after { content: none; display: none; }
.uru-front p { margin: 0; }
.uru-front a { text-decoration: none; }
.uru-front img { max-width: 100%; }

/* Hero */
.uru-hero {
	position: relative; overflow: hidden;
	padding: 96px var(--uru-gutter) 80px;
	background: linear-gradient(135deg, #FDEEF0 0%, #FBE4E8 45%, #F6D9DF 100%);
}
.uru-hero > .uru-hero__text, .uru-hero > .uru-hero__visual { position: relative; z-index: 1; }
.uru-hero {
	display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
@media (min-width: 1441px) {
	.uru-hero { padding-left: calc((100% - 1296px) / 2); padding-right: calc((100% - 1296px) / 2); }
}
.uru-hero__text { max-width: 600px; display: flex; flex-direction: column; gap: 24px; }
.uru-badge {
	display: inline-flex; width: fit-content; padding: 6px 16px; border-radius: 999px;
	background: linear-gradient(90deg, var(--uru-gold-light), var(--uru-gold));
	color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .05em;
}
.uru-front .uru-hero__title { font-family: var(--uru-serif); font-size: 48px; line-height: 1.5; font-weight: 700; color: var(--uru-ink); }
.uru-hero__lead { font-size: 16px; line-height: 1.9; color: var(--uru-ink-2); }
.uru-btn {
	margin-top: 8px; width: fit-content;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 16px 32px; border-radius: 999px;
	background: var(--uru-pink); color: #fff !important;
	font-size: 15px; font-weight: 700;
	border: 1px solid rgba(233, 199, 102, .5);
	box-shadow: 0 8px 20px rgba(198, 92, 116, .25);
	transition: transform .2s, box-shadow .2s;
}
.uru-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(198, 92, 116, .32); }
.uru-hero__visual {
	width: 420px; height: 420px; flex-shrink: 0;
	border-radius: 24px; overflow: hidden;
	border: 3px solid var(--uru-gold-pale);
	box-shadow: 0 16px 40px rgba(198, 92, 116, .2);
	background: #FBE4E8;
}
.uru-hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uru-hero__bubble {
	position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
	border-radius: 50%; background: rgba(255, 255, 255, .2); z-index: 0;
}

/* Sections */
.uru-section {
	padding: 88px var(--uru-gutter);
	display: flex; flex-direction: column; gap: 40px;
}
@media (min-width: 1441px) {
	.uru-section { padding-left: calc((100% - 1296px) / 2); padding-right: calc((100% - 1296px) / 2); }
}
.uru-section--tint { background: var(--uru-tint); }
.uru-section__head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.uru-front .uru-section__title { font-family: var(--uru-serif); font-size: 32px; font-weight: 700; line-height: 1.4; }
.uru-section__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.uru-more { font-size: 14px; font-weight: 700; color: var(--uru-pink) !important; white-space: nowrap; }

.uru-grid { display: grid; gap: 28px; }
.uru-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.uru-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uru-grid--cats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }

/* Cards */
.uru-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--uru-surface); border-radius: 20px;
	border: 1px solid var(--uru-line);
	box-shadow: 0 6px 18px rgba(58, 44, 46, .05);
	color: var(--uru-ink) !important;
	transition: transform .2s, box-shadow .2s;
}
.uru-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(58, 44, 46, .09); }
.uru-card--top { border: 1.5px solid var(--uru-gold-light); box-shadow: 0 8px 20px rgba(201, 162, 39, .2); }
.uru-card__thumb {
	position: relative; height: 180px; background: #FBE9EC;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.uru-card__thumb--wide { height: 190px; background: var(--uru-thumb); }
.uru-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uru-card__noimg { font-size: 34px; color: var(--uru-gold-light); opacity: .8; }
.uru-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.uru-card__cat {
	width: fit-content; padding: 4px 12px; border-radius: 999px;
	background: var(--uru-pink-soft); color: var(--uru-pink);
	font-size: 11px; font-weight: 700;
}
.uru-front .uru-card__title { font-family: var(--uru-sans); font-size: 16px; font-weight: 700; line-height: 1.6; }
.uru-card__date { font-size: 12px; color: #A08C8E; }
.uru-rank {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	width: 32px; height: 32px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #E4A5B2; color: #fff; font-size: 15px; font-weight: 700;
}
.uru-rank--1 { background: linear-gradient(135deg, var(--uru-gold-pale), var(--uru-gold)); box-shadow: 0 2px 6px rgba(201, 162, 39, .4); }

/* Category cards */
.uru-cat {
	background: var(--uru-surface); border-radius: 20px; border: 1px solid var(--uru-line);
	padding: 32px 20px; text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	color: var(--uru-ink) !important;
	transition: transform .2s, border-color .2s;
}
.uru-cat:hover { transform: translateY(-3px); border-color: var(--uru-gold-light); }
.uru-cat .uru-icon { color: var(--uru-pink); }
.uru-cat__name { font-size: 16px; font-weight: 700; }
.uru-cat__desc { font-size: 13px; color: var(--uru-muted); line-height: 1.7; }

/* Search CTA */
.uru-cta {
	margin: 0 var(--uru-gutter) 88px; padding: 56px 64px;
	border-radius: 28px; border: 2px solid var(--uru-gold-light);
	background: linear-gradient(120deg, var(--uru-pink), var(--uru-pink-2));
	color: #fff;
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
@media (min-width: 1441px) { .uru-cta { max-width: 1296px; margin-left: auto; margin-right: auto; } }
.uru-cta__text { display: flex; flex-direction: column; gap: 10px; }
.uru-front .uru-cta__title { font-family: var(--uru-serif); font-size: 26px; font-weight: 700; color: #fff; }
.uru-cta__text p { font-size: 14px; color: #FFE9EE; line-height: 1.8; }
.uru-cta__form { display: flex; gap: 12px; flex-shrink: 0; }
.uru-cta__form input { width: 260px; border: none; padding: 14px 18px; }
.uru-cta__form button {
	font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
	padding: 14px 28px; border: none; border-radius: 999px; background: var(--uru-ink); color: #fff;
}

.uru-empty-hint {
	padding: 18px 22px; border-radius: 16px; border: 1px dashed var(--uru-gold-light);
	background: #fff; color: var(--uru-ink-2); font-size: 14px; line-height: 1.8; text-align: center;
}
.uru-empty-hint span { display: block; font-size: 12px; color: var(--uru-muted); }
.uru-empty { color: var(--uru-muted); font-size: 14px; }

/* ---------- Footer ---------- */
.uru-footer { background: var(--uru-ink); color: #E9DBDC; margin-top: 0; }
.uru-footer__inner {
	max-width: 1440px; margin: 0 auto; padding: 56px var(--uru-gutter) 40px;
	display: flex; flex-direction: column; gap: 32px;
}
.uru-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.uru-footer__logo { font-family: var(--uru-serif); font-size: 22px; font-weight: 700; color: #fff !important; text-decoration: none; }
.uru-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 13px; }
.uru-footer__links li { list-style: none; margin: 0; padding: 0; }
.uru-footer__links li::before { display: none; }
.uru-footer__links a { color: #E9DBDC !important; text-decoration: none; }
.uru-footer__links a:hover { color: var(--uru-gold-light) !important; }
.uru-footer__rule { height: 1px; background: rgba(85, 69, 71, .8); }
.uru-footer__copy { margin: 0; font-size: 12px; color: #B39A9C; line-height: 1.8; }

/* ---------- Article pages (JIN templates) ---------- */
body.uru-theme.single #contents,
body.uru-theme.page #contents { background: transparent; }
body.uru-theme.single #sidebar { display: none; }
body.uru-theme.single #main-contents {
	float: none; width: auto; max-width: 820px; margin: 56px auto 80px;
	background: transparent; box-shadow: none;
}
body.uru-theme.single .cps-post-box,
body.uru-theme.single .cps-post {
	background: transparent; box-shadow: none; border: none;
}
body.uru-theme .cps-post-header { padding-left: 0; padding-right: 0; }
body.uru-theme .cps-post-cat a {
	display: inline-block; padding: 5px 14px; border-radius: 999px;
	background: var(--uru-pink-soft) !important; color: var(--uru-pink) !important;
	font-size: 12px; font-weight: 700; border: none;
}
body.uru-theme .cps-post-title {
	font-family: var(--uru-serif); font-weight: 700; color: var(--uru-ink);
	font-size: 32px; line-height: 1.6; letter-spacing: .01em;
}
body.uru-theme .cps-post-meta { color: var(--uru-muted); font-size: 13px; }
body.uru-theme .cps-post-thumb img { border-radius: 20px; }
body.uru-theme .cps-post-main,
body.uru-theme .cps-post-main p { color: #4A3A3C; font-size: 16px; line-height: 2; }
body.uru-theme .cps-post-main a { color: var(--uru-pink); }

/* Headings: reset JIN's h2/h3 styles, then apply the design */
body.uru-theme .cps-post-main h2,
body.uru-theme .cps-post-main h3,
body.uru-theme .cps-post-main h4 {
	background: none; box-shadow: none; border: none; border-radius: 0; color: var(--uru-ink);
	font-family: var(--uru-serif); font-weight: 700;
}
body.uru-theme .cps-post-main h2::before, body.uru-theme .cps-post-main h2::after,
body.uru-theme .cps-post-main h3::before, body.uru-theme .cps-post-main h3::after,
body.uru-theme .cps-post-main h4::before, body.uru-theme .cps-post-main h4::after { content: none; display: none; }
body.uru-theme .cps-post-main h2 {
	font-size: 24px; line-height: 1.6; margin: 56px 0 24px; padding: 14px 18px;
	border-left: 5px solid var(--uru-gold); background: linear-gradient(90deg, #FDF0F2, rgba(253, 240, 242, 0));
	border-radius: 0 12px 12px 0;
}
body.uru-theme .cps-post-main h3 {
	font-size: 20px; line-height: 1.6; margin: 40px 0 20px; padding: 0 0 10px 4px;
	border-bottom: 2px dotted #E4A5B2;
}
body.uru-theme .cps-post-main h4 {
	font-size: 17px; margin: 32px 0 16px; padding-left: 26px; position: relative;
}
body.uru-theme .cps-post-main h4::before {
	content: '✦'; display: inline; position: absolute; left: 0; top: 0; color: var(--uru-gold);
}
body.uru-theme .cps-post-main blockquote {
	background: var(--uru-tint); border-left: 4px solid var(--uru-gold-light); border-radius: 0 16px 16px 0;
}
body.uru-theme .cps-post-main table th { background: var(--uru-pink-soft); color: var(--uru-ink); }

/* Profile card, prev/next, breadcrumb */
body.uru-theme .profile-card { border: 1px solid var(--uru-line); border-radius: 20px; background: #fff; }
body.uru-theme .profile-title { color: var(--uru-gold-deep); }
body.uru-theme #breadcrumb { background: transparent; color: var(--uru-muted); }
body.uru-theme #breadcrumb a { color: var(--uru-muted); }

/* Archive / category pages keep JIN's layout, with the site colours */
body.uru-theme.archive #contents,
body.uru-theme.search #contents { background: transparent; }

/* Rakuten / affiliate buttons written as <a class="uru-rakuten-btn"> */
.uru-rakuten-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px;
	background: #BF0000; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	:root { --uru-gutter: 40px; }
	.uru-grid--cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.uru-nav__list { gap: 24px; }
	.uru-hero__visual { width: 360px; height: 360px; }
	.uru-front .uru-hero__title { font-size: 40px; }
}
@media (max-width: 960px) {
	.uru-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uru-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uru-hero { flex-direction: column; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
	.uru-hero__visual { width: 100%; height: auto; aspect-ratio: 16 / 9; }
	.uru-cta { flex-direction: column; align-items: flex-start; }
	.uru-cta__form { width: 100%; }
	.uru-cta__form input { flex: 1; width: auto; }
}
@media (max-width: 768px) {
	:root { --uru-gutter: 16px; }
	.uru-header__inner { height: auto; padding-top: 10px; padding-bottom: 0; flex-wrap: wrap; gap: 0; }
	.uru-logo img { height: 46px; }
	.uru-search { margin-left: auto; }
	.uru-search__form { width: min(320px, calc(100vw - 32px)); }
	.uru-nav {
		order: 3; flex: 0 0 calc(100% + 2 * var(--uru-gutter)); justify-content: flex-start;
		overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
		margin: 6px calc(-1 * var(--uru-gutter)) 0; padding: 0 var(--uru-gutter);
	}
	.uru-nav::-webkit-scrollbar { display: none; }
	.uru-nav__list { gap: 20px; padding: 8px 0 10px; }
	.uru-nav__list a { font-size: 14px; }
	.uru-hero { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
	.uru-hero__text { gap: 18px; }
	.uru-front .uru-hero__title { font-size: 30px; }
	.uru-hero__lead { font-size: 15px; }
	.uru-section { padding-top: 56px; padding-bottom: 56px; gap: 28px; }
	.uru-front .uru-section__title { font-size: 24px; }
	.uru-grid { gap: 16px; }
	.uru-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.uru-grid--cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.uru-cat { padding: 22px 12px; gap: 10px; }
	.uru-cat .uru-icon { width: 30px; height: 30px; }
	.uru-cat__desc { font-size: 12px; }
	.uru-card__thumb { height: 140px; }
	.uru-card__body { padding: 14px 14px 16px; gap: 8px; }
	.uru-front .uru-card__title { font-size: 14px; }
	.uru-grid--3 .uru-card__thumb { height: 190px; }
	.uru-grid--3 .uru-card__title { font-size: 16px; }
	.uru-cta { margin-bottom: 56px; padding: 32px 22px; border-radius: 22px; gap: 20px; }
	.uru-front .uru-cta__title { font-size: 22px; }
	.uru-cta__form { flex-direction: column; }
	.uru-cta__form input, .uru-cta__form button { width: 100%; }
	.uru-footer__inner { padding-top: 40px; padding-bottom: 32px; gap: 24px; }
	body.uru-theme.single #main-contents { margin: 28px 16px 56px; }
	body.uru-theme .cps-post-title { font-size: 24px; }
	body.uru-theme .cps-post-main h2 { font-size: 20px; margin-top: 44px; }
	body.uru-theme .cps-post-main h3 { font-size: 18px; }
}
