/*
Theme Name: pomepome
Theme URI: https://pomepome.net
Description: ポメラニアン特化アフィリエイトメディア pomepome のオリジナルテーマ
Version: 1.0.0
Author: pomepome
Text Domain: pomepome
*/

/* =============================================
   CSS Variables
   ============================================= */
:root {
	--ink:    #59483f;
	--orange: #e89760;
	--light:  #fff8ef;
	--line:   #f1dfcf;
}

/* =============================================
   Reset / Base
   ============================================= */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fdfaf5;
	color: var(--ink);
	font-family: 'Zen Maru Gothic', sans-serif;
	font-size: 14px;
	line-height: 1.9;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	cursor: pointer;
}

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

/* =============================================
   Header
   ============================================= */
.site-header {
	background: #fff;
	border-bottom: 1px solid #f2e8dc;
}

.header-inner {
	max-width: 1180px;
	margin: auto;
	height: 94px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
}

/* Logo */
.site-logo {
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -2px;
	color: #dd9361;
	line-height: 1;
}

.site-logo span {
	color: #edb887;
}

.site-logo small {
	display: block;
	font-size: 9px;
	letter-spacing: 1.5px;
	color: #a78e7a;
	margin-top: 8px;
}

/* Logo image */
.site-logo--img {
	display: flex;
	align-items: center;
}

.site-logo--img img {
	max-height: 50px;
	width: auto;
	display: block;
}

/* Nav */
.site-nav {
	display: flex;
	gap: 38px;
	font-size: 13px;
	font-weight: 700;
}

.site-nav a:hover {
	color: var(--orange);
}

.site-nav em {
	display: block;
	text-align: center;
	font-size: 9px;
	letter-spacing: 1px;
	color: #d8aa86;
	font-style: normal;
}

/* WordPress nav menu */
.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 38px;
}

.site-nav ul li a {
	font-size: 13px;
	font-weight: 700;
}

/* =============================================
   Layout
   ============================================= */
.wrap {
	max-width: 1180px;
	margin: auto;
	padding: 0 24px;
}

.breadcrumb {
	font-size: 11px;
	color: #b49e8c;
	padding: 25px 0;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 55px;
}

/* =============================================
   Article
   ============================================= */
.eyebrow {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 2px;
	color: #da925f;
}

.article-title {
	font-size: 30px;
	line-height: 1.65;
	letter-spacing: .04em;
	margin: 10px 0 13px;
	font-weight: 900;
	color: #59483f;
}

.article-meta {
	color: #b9a596;
	font-size: 11px;
	display: flex;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
}

.pill {
	background: #f8e9dd;
	color: #d28d60;
	border-radius: 50px;
	padding: 3px 13px;
	font-weight: 700;
}

.article-hero {
	height: 350px;
	margin: 23px 0 26px;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	background: #eee4d5;
}

.article-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-intro {
	line-height: 2.2;
	margin: 0 0 26px;
}

.entry-content p {
	line-height: 2.2;
}

.entry-content h2 {
	border-bottom: 2px solid #edc4a4;
	font-size: 20px;
	font-weight: 900;
	padding: 0 0 12px;
	margin: 42px 0 18px;
}

.entry-content h2::before {
	content: '✿';
	color: #e7a374;
	margin-right: 10px;
}

.entry-content h3 {
	font-size: 17px;
	font-weight: 900;
	margin: 28px 0 10px;
	padding-left: 13px;
	border-left: 4px solid #e9ad80;
	line-height: 1.5;
}

.tip-box {
	background: #fff;
	border: 1px solid #f2dfcf;
	border-radius: 16px;
	padding: 18px 22px;
	margin: 25px 0;
}

.tip-box b {
	color: #db9565;
}

/* =============================================
   Dialogue
   ============================================= */
.dialogue {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 20px 0;
}

.dialogue.dialogue-right {
	flex-direction: row-reverse;
}

.dialogue-avatar {
	text-align: center;
	flex: 0 0 66px;
	font-size: 10px;
	color: #a58d7d;
}

.dialogue-avatar .face {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: #f6e6d5;
	display: grid;
	place-items: center;
	font-size: 32px;
	border: 3px solid white;
	box-shadow: 0 0 0 1px #ecd9c7;
	margin: 0 auto 4px;
	overflow: hidden;
}

/* 画像アイコン */
.dialogue-avatar .face--img {
	background: transparent;
	font-size: 0;
}

.dialogue-avatar .face--img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.dialogue-bubble {
	position: relative;
	background: #fff3e4;
	border-radius: 18px;
	padding: 17px 21px;
	line-height: 1.9;
	flex: 1;
}

.dialogue-bubble p {
	margin: 0;
}

.dialogue-bubble::before {
	content: "";
	position: absolute;
	top: 21px;
	left: -10px;
	width: 0;
	height: 0;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-right: 12px solid #fff3e4;
}

.dialogue-right .dialogue-bubble {
	background: #fbe5d6;
}

.dialogue-right .dialogue-bubble::before {
	left: auto;
	right: -10px;
	border-right: 0;
	border-left: 12px solid #fbe5d6;
}

/* =============================================
   Article List
   ============================================= */

.entry-content ul,
.entry-content ol {
	margin: 2em 0;
	padding: 20px 24px;
	border: 1px solid #f1dfcf;
	border-radius: 16px;
	background: #fffaf5;
	color: #59483f;
	font-size: 14px;
	line-height: 1.9;
	list-style: none;
}

.entry-content ul li,
.entry-content ol li {
	position: relative;
	padding-left: 30px;
}

.entry-content ul li + li,
.entry-content ol li + li {
	margin-top: 12px;
}

/* 箇条書き */
.entry-content ul li::before {
	position: absolute;
	top: 0.72em;
	left: 3px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #e89760;
	content: "";
}

/* 番号付き */
.entry-content ol {
	counter-reset: article-list-number;
}

.entry-content ol li {
	counter-increment: article-list-number;
}

.entry-content ol li::before {
	position: absolute;
	top: 0.15em;
	left: 0;
	display: flex;
	width: 22px;
	height: 22px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e89760;
	color: #fff;
	content: counter(article-list-number);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

@media (max-width: 600px) {
	.entry-content ul,
	.entry-content ol {
		padding: 16px 18px;
		font-size: 13px;
	}
}

/* =============================================
   Article Table
   ============================================= */

.article-table-wrap {
	max-width: 100%;
	margin: 2em 0;
	overflow-x: auto;
	border: 1px solid #f1dfcf;
	border-radius: 16px;
	background: #fff;
}

.article-table-wrap table {
	width: 100%;
	min-width: 520px;
	border-collapse: separate;
	border-spacing: 0;
	color: #59483f;
	font-size: 14px;
	line-height: 1.7;
	text-align: left;
}

.article-table-wrap table caption {
	padding: 16px 20px;
	background: #fff8ef;
	color: #59483f;
	font-size: 15px;
	font-weight: 700;
	text-align: left;
}

.article-table-wrap table th,
.article-table-wrap table td {
	padding: 14px 18px;
	border-top: 1px solid #f1dfcf;
	vertical-align: top;
}

.article-table-wrap table thead th {
	background: #fbe9dc;
	color: #8b5a40;
	font-weight: 700;
	white-space: nowrap;
}

.article-table-wrap table tbody th {
	width: 25%;
	background: #fffaf5;
	font-weight: 700;
	white-space: nowrap;
}

.article-table-wrap table tbody tr:nth-child(even) td {
	background: #fffcf9;
}

.article-table-wrap table th + th,
.article-table-wrap table td + td,
.article-table-wrap table th + td {
	border-left: 1px solid #f1dfcf;
}

@media (max-width: 600px) {
	.article-table-wrap table {
		font-size: 13px;
	}

	.article-table-wrap table th,
	.article-table-wrap table td {
		padding: 12px 14px;
	}
}

/* =============================================
   Sidebar
   ============================================= */
.sidebar-section {
	margin-bottom: 36px;
}

.side-title {
	font-size: 15px;
	font-weight: 900;
	letter-spacing: .04em;
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.side-title::after {
	content: '';
	height: 1px;
	background: #efdfd1;
	flex: 1;
}

/* Profile */
.profile-card {
	background: #fff;
	border: 1px solid #f4e9dd;
	border-radius: 20px;
	padding: 23px;
	text-align: center;
}

.profile-photo {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 12px;
	border: 4px solid #eeb284;
	padding: 4px;
	background: white;
}

.profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.profile-name {
	font-size: 17px;
	font-weight: 900;
	margin: 0;
}

.profile-sub {
	color: #dca076;
	font-size: 10px;
	letter-spacing: 1px;
}

.profile-bio {
	font-size: 12px;
	text-align: left;
	line-height: 2;
	margin: 14px 0;
}

.profile-link {
	color: #d99262;
	font-size: 12px;
	font-weight: 900;
}

/* CTA Banner */
.cta-banner {
	margin: 24px 0 32px;
	background: #e9a574;
	color: white;
	border-radius: 18px;
	padding: 22px 20px;
	position: relative;
	overflow: hidden;
}

.cta-banner .banner-eyebrow {
	font-size: 10px;
	letter-spacing: 1px;
}

.cta-banner strong {
	display: block;
	font-size: 18px;
	line-height: 1.5;
	margin: 7px 0 13px;
}

.cta-banner a {
	display: inline-block;
	background: white;
	color: #d88d5c;
	border-radius: 50px;
	padding: 6px 15px;
	font-size: 11px;
	font-weight: 900;
}

.cta-banner .banner-deco {
	position: absolute;
	right: 16px;
	bottom: 5px;
	font-size: 68px;
	opacity: .22;
	transform: rotate(-18deg);
}

/* Popular Posts */
.popular-post {
	display: flex;
	gap: 12px;
	margin: 0 0 15px;
	align-items: center;
}

.popular-post-thumb {
	width: 82px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: #eee;
}

.popular-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.popular-post-title {
	font-size: 12px;
	line-height: 1.6;
	font-weight: 700;
}

.popular-post-cat {
	display: block;
	color: #c7aa94;
	font-size: 10px;
	margin-top: 4px;
}

/* Category Tags */
.category-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.category-tags a {
	background: #fff;
	border: 1px solid #efdfd1;
	border-radius: 50px;
	padding: 5px 12px;
	font-size: 11px;
}

.category-tags a:hover {
	background: var(--light);
	border-color: var(--orange);
	color: var(--orange);
}

/* =============================================
   Archive / Card Grid
   ============================================= */
.archive-header {
	padding: 32px 0 10px;
}

.archive-title {
	font-size: 26px;
	font-weight: 900;
	margin: 0 0 4px;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	padding: 28px 0 48px;
}

.post-card {
	background: #fff;
	border-radius: 17px;
	overflow: hidden;
	box-shadow: 0 7px 25px rgba(141, 107, 75, .05);
	transition: transform .2s;
}

.post-card:hover {
	transform: translateY(-4px);
}

.post-card-thumb {
	height: 175px;
	background: #eee;
	overflow: hidden;
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-body {
	padding: 17px 20px 21px;
}

.post-card-cat {
	color: #dd9b6c;
	font-size: 10px;
}

.post-card-title {
	font-size: 15px;
	line-height: 1.7;
	margin: 6px 0;
	font-weight: 700;
	color: var(--ink);
}

.post-card-date {
	font-size: 10px;
	color: #bda99a;
}

/* =============================================
   Related Articles
   ============================================= */
.related-section {
	margin: 70px 0 75px;
}

.related-header {
	text-align: center;
	margin-bottom: 28px;
}

.related-header small {
	color: #dc9e71;
	font-weight: 900;
	letter-spacing: 2px;
}

.related-header h2 {
	font-size: 24px;
	margin: 0;
}

.related-header h2::before {
	display: none;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
	background: #f7eee4;
	padding: 35px 24px;
	text-align: center;
	color: #b59b88;
	font-size: 11px;
}

.site-footer .footer-logo {
	font-size: 26px;
	font-weight: 900;
	letter-spacing: -2px;
	color: #dd9361;
	margin-bottom: 15px;
}

.site-footer .footer-logo span {
	color: #edb887;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 800px) {
	.site-nav {
		gap: 15px;
	}

	.content-layout {
		grid-template-columns: 1fr;
	}

	.sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.cta-banner {
		margin: 0;
	}

	.article-title {
		font-size: 25px;
	}

	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.header-inner {
		height: auto;
		padding: 20px;
		display: block;
	}

	.site-nav,
	.site-nav ul {
		margin-top: 20px;
		justify-content: space-between;
		gap: 4px;
		font-size: 11px;
	}

	.site-nav em {
		display: none;
	}

	.article-hero {
		height: 250px;
	}

	.sidebar {
		display: block;
	}

	.cta-banner {
		margin: 20px 0;
	}

	.card-grid {
		grid-template-columns: 1fr;
	}

	.article-title {
		font-size: 22px;
	}

	.wrap {
		padding: 0 18px;
	}
}
