/*
Theme Name: Pet Care Lab
Theme URI: https://pet-care-lab.com
Author: Pet Care Lab
Author URI: https://pet-care-lab.com
Description: ペットの悩み解決に特化したWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: pet-care-lab
*/

/* =========================
  Design Tokens
========================= */
:root {
	--pcl-main: #2f7d6d;
	/* 落ち着いたグリーン */
	--pcl-accent: #f4a261;
	/* やさしいオレンジ */
	--pcl-bg: #f7f9fb;
	/* 背景 */
	--pcl-surface: #ffffff;
	/* カード面 */
	--pcl-text: #1f2937;
	/* 本文 */
	--pcl-muted: #6b7280;
	/* 補足 */
	--pcl-border: #e5e7eb;
	/* 枠線 */
	--pcl-shadow: 0 10px 28px rgba(0, 0, 0, .07);
	--pcl-radius: 16px;
	--pcl-radius-sm: 12px;

	--pcl-max: 980px;
	--pcl-pad: 16px;
}

/* =========================
  Base
========================= */
* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.85;
	color: var(--pcl-text);
	background: var(--pcl-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
}

a:hover {
	opacity: .95;
}

img {
	max-width: 100%;
	height: auto;
}

.container,
.pcl-section,
.pcl-hero__inner,
.pcl-archive-hero__inner,
.pcl-archive-summary__inner,
.pcl-archive-posts__inner,
.pcl-archive-popular,
.site-header__inner,
.site-footer__inner {
	max-width: var(--pcl-max);
	margin: 0 auto;
	padding-left: var(--pcl-pad);
	padding-right: var(--pcl-pad);
}

h1,
h2,
h3 {
	line-height: 1.35;
	letter-spacing: .01em;
}

h1 {
	font-size: 32px;
	margin: 0 0 10px;
}

h2 {
	font-size: 22px;
	margin: 0 0 12px;
}

h3 {
	font-size: 18px;
	margin: 0 0 8px;
}

p {
	margin: 0 0 14px;
	color: var(--pcl-text);
}

small {
	color: var(--pcl-muted);
}

/* WP content (single / page) */
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	background: var(--pcl-surface);
	border: 1px solid var(--pcl-border);
	border-radius: var(--pcl-radius);
	overflow: hidden;
}

.wp-block-table th,
.wp-block-table td {
	border-bottom: 1px solid var(--pcl-border);
	padding: 10px 12px;
	font-size: 14px;
	vertical-align: top;
}

.wp-block-table th {
	background: rgba(47, 125, 109, .08);
	font-weight: 800;
}

.wp-block-table tr:last-child td {
	border-bottom: 0;
}

/* =========================
  Header / Footer
========================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--pcl-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-logo {
	font-size: 18px;
	font-weight: 900;
	letter-spacing: .03em;
	text-decoration: none;
	color: var(--pcl-main);
}

.site-footer {
	border-top: 1px solid var(--pcl-border);
	margin-top: 44px;
	background: #fff;
}

.site-footer__inner {
	padding-top: 18px;
	padding-bottom: 18px;
	color: var(--pcl-muted);
}

/* =========================
  Top Page (Hero)
========================= */
.pcl-hero {
	padding: 34px 0 26px;
	background: linear-gradient(180deg, #e9f5f2 0%, var(--pcl-bg) 100%);
	border-bottom: 1px solid var(--pcl-border);
}

.pcl-hero__title {
	font-size: 34px;
	line-height: 1.25;
	margin: 0 0 10px;
}

.pcl-hero__lead {
	margin: 0 0 16px;
	color: var(--pcl-muted);
	font-size: 16px;
}

.pcl-search {
	display: flex;
	gap: 10px;
	margin: 14px 0 14px;
}

.pcl-search__input {
	flex: 1;
	padding: 12px 14px;
	border: 1px solid var(--pcl-border);
	border-radius: var(--pcl-radius-sm);
	background: #fff;
	outline: none;
}

.pcl-search__input:focus {
	border-color: rgba(47, 125, 109, .55);
	box-shadow: 0 0 0 4px rgba(47, 125, 109, .15);
}

.pcl-search__btn {
	padding: 12px 16px;
	border-radius: var(--pcl-radius-sm);
	background: var(--pcl-main);
	color: #fff;
	border: 0;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(47, 125, 109, .20);
}

.pcl-search__btn:hover {
	filter: brightness(.98);
}

.pcl-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.pcl-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--pcl-border);
	text-decoration: none;
	color: var(--pcl-text);
	font-size: 13px;
	font-weight: 700;
}

.pcl-chip:hover {
	border-color: rgba(47, 125, 109, .35);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

/* Section spacing */
.pcl-section {
	padding-top: 22px;
	padding-bottom: 22px;
}

.pcl-section__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 900;
}

/* =========================
  Category cards (Top / hubs)
========================= */
.pcl-catgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.pcl-catcard {
	display: block;
	border: 1px solid var(--pcl-border);
	border-radius: var(--pcl-radius);
	padding: 14px;
	text-decoration: none;
	background: var(--pcl-surface);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pcl-catcard:hover {
	transform: translateY(-3px);
	box-shadow: var(--pcl-shadow);
	border-color: rgba(47, 125, 109, .30);
}

.pcl-catcard__name {
	font-weight: 900;
	margin-bottom: 6px;
	color: var(--pcl-main);
}

.pcl-catcard__desc {
	font-size: 13px;
	color: var(--pcl-muted);
	margin-bottom: 12px;
}

.pcl-catcard__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 900;
	color: var(--pcl-text);
}

/* =========================
  Post cards (Top / archive)
========================= */
.pcl-postgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.pcl-postcard {
	border: 1px solid var(--pcl-border);
	border-radius: var(--pcl-radius);
	overflow: hidden;
	background: var(--pcl-surface);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pcl-postcard:hover {
	transform: translateY(-3px);
	box-shadow: var(--pcl-shadow);
	border-color: rgba(47, 125, 109, .28);
}

.pcl-postcard__link {
	display: block;
	text-decoration: none;
	color: var(--pcl-text);
}

.pcl-postcard__thumb img {
	width: 100%;
	display: block;
	aspect-ratio: 16/10;
	object-fit: cover;
}

.pcl-postcard__body {
	padding: 12px 12px 14px;
}

.pcl-postcard__cat {
	margin: 0 0 6px;
	font-size: 12px;
	color: var(--pcl-muted);
	font-weight: 700;
}

.pcl-postcard__title {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 900;
}

.pcl-postcard__excerpt {
	margin: 0;
	font-size: 13px;
	color: var(--pcl-muted);
	line-height: 1.7;
}

/* =========================
  Archive page
========================= */
.pcl-archive-hero {
	background: linear-gradient(180deg, #eef6ff 0%, var(--pcl-bg) 100%);
	border-bottom: 1px solid var(--pcl-border);
}

.pcl-archive-hero__inner {
	padding-top: 28px;
	padding-bottom: 22px;
}

.pcl-archive-hero__title {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 900;
}

.pcl-archive-hero__lead {
	margin: 0;
	color: var(--pcl-muted);
}

.pcl-archive-summary {
	background: var(--pcl-surface);
	border-bottom: 1px solid var(--pcl-border);
}

.pcl-archive-summary__inner {
	padding-top: 18px;
	padding-bottom: 18px;
}

.pcl-archive-summary ul {
	margin: 10px 0 0;
	padding-left: 18px;
}

.pcl-archive-summary li {
	margin: 6px 0;
	color: var(--pcl-text);
}

.pcl-pagination {
	margin-top: 22px;
}

/* Popular posts area */
.pcl-archive-popular {
	padding-top: 12px;
}

.pcl-archive-popular h2 {
	font-size: 18px;
	margin: 14px 0 12px;
	font-weight: 900;
}

/* =========================
  Rakuten Card / Grid
========================= */
.rk-card {
	margin: 16px 0;
}

.rk-card__inner {
	display: flex;
	gap: 14px;
	border: 1px solid var(--pcl-border);
	border-radius: var(--pcl-radius);
	padding: 14px;
	background: var(--pcl-surface);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
	position: relative;
}

.rk-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	font-size: 12px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--pcl-accent);
	color: #111;
	font-weight: 900;
}

.rk-card__media {
	width: 120px;
	flex: 0 0 120px;
}

.rk-card__media img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 14px;
	border: 1px solid #eee;
}

.rk-card__ph {
	width: 120px;
	height: 120px;
	border-radius: 14px;
	border: 1px dashed #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: var(--pcl-muted);
}

.rk-card__title {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 900;
}

.rk-card__title a {
	text-decoration: none;
	color: var(--pcl-text);
}

.rk-card__note {
	margin: 0 0 10px;
	color: var(--pcl-muted);
	font-size: 14px;
}

.rk-card__meta {
	font-size: 13px;
	color: var(--pcl-muted);
	margin-bottom: 12px;
}

.rk-card__price strong {
	font-size: 16px;
	color: var(--pcl-text);
}

.rk-card__actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.rk-card__btn {
	display: inline-block;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--pcl-main);
	color: #fff;
	text-decoration: none;
	font-weight: 900;
	box-shadow: 0 10px 24px rgba(47, 125, 109, .18);
}

.rk-card__btn:hover {
	filter: brightness(.98);
}

.rk-card__small {
	font-size: 12px;
	color: var(--pcl-muted);
}

/* Grid */
.rk-grid {
	display: grid;
	gap: 16px;
	margin: 16px 0;
}

.rk-grid--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rk-grid--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* In grid: stack vertically */
.rk-grid .rk-card__inner {
	flex-direction: column;
}

.rk-grid .rk-card__media {
	width: 100%;
	flex: 0 0 auto;
}

.rk-grid .rk-card__media img {
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
}

/* =========================
  Responsive
========================= */
@media (max-width: 980px) {

	.pcl-catgrid,
	.pcl-postgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {

	.rk-grid--cols-2,
	.rk-grid--cols-3 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.pcl-search {
		flex-direction: column;
	}

	.pcl-hero__title {
		font-size: 30px;
	}

	.pcl-catgrid,
	.pcl-postgrid {
		grid-template-columns: 1fr;
	}

	.rk-card__inner {
		flex-direction: column;
	}

	.rk-card__media {
		width: 100%;
		flex: 0 0 auto;
	}

	.rk-card__media img,
	.rk-card__ph {
		width: 100%;
		height: auto;
		aspect-ratio: 1/1;
	}
}