/*
Theme Name: 50START Journal
Theme URI: https://50start.club/
Author: やすひろ
Description: 50START のための、読みやすさと落ち着いた雰囲気を大切にしたブログテーマ。トップページに新着記事・note・YouTube・学びとサービスの入口を並べます。
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fiftystart
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #faf6f0;
	--surface: #ffffff;
	--cream: #f3ebdf;
	--text: #2b2622;
	--muted: #6b625a;
	--line: #e7ddd0;
	--accent: #b85a35;
	--accent-dark: #974526;
	--accent-soft: #f6e4da;
	--green: #5f7a5a;
	--green-soft: #e7eee3;
	--sand: #efe3cf;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 6px 18px rgba(60, 40, 20, .06);
	--serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
	--container: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.8;
	letter-spacing: .02em;
	overflow-wrap: anywhere;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.45; letter-spacing: .03em; margin: 0; }
p { margin: 0; }
.icon { flex: none; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 100;
	top: 8px; left: 8px; padding: 8px 14px; background: var(--surface); border-radius: 8px; box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 22px; border-radius: 999px;
	font-weight: 600; font-size: .94rem; border: 1px solid transparent;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--ghost { border-color: var(--line); background: rgba(255, 255, 255, .7); }
.btn--ghost:hover { border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
	background: rgba(250, 246, 240, .94);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 50;
	backdrop-filter: saturate(1.2) blur(8px);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.logo { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; letter-spacing: .06em; line-height: 1; color: var(--text); }
.logo__num { color: var(--accent); }
.custom-logo { max-height: 48px; width: auto; }
.brand__tagline { font-size: .78rem; color: var(--muted); letter-spacing: .08em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-menu a { display: block; padding: 8px 12px; font-size: .92rem; font-weight: 600; border-radius: 8px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--accent); background: var(--accent-soft); }
.header-search { position: relative; display: flex; }
.header-search input {
	width: 170px; height: 40px; padding: 0 40px 0 14px; border: 1px solid var(--line);
	border-radius: 999px; background: var(--surface); font: inherit; font-size: .88rem; transition: width .2s;
}
.header-search input:focus { width: 220px; outline: none; border-color: var(--accent); }
.header-search button {
	position: absolute; right: 2px; top: 2px; width: 36px; height: 36px; border: 0;
	background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 48px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: stretch; }
.hero__text { align-self: center; }
.hero__title { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.45; letter-spacing: .06em; }
.hero__lead { margin-top: 22px; color: var(--muted); line-height: 2; }
.hero__sign { margin-top: 18px; font-family: var(--serif); color: var(--accent); font-size: .95rem; letter-spacing: .06em; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual {
	position: relative; min-height: 360px; border-radius: 22px; overflow: hidden;
	background:
		radial-gradient(120% 90% at 85% 15%, rgba(255, 255, 255, .75), transparent 60%),
		linear-gradient(160deg, #f4ece0 0%, #ead9c3 100%);
}
.hero__visual::after {
	content: ""; position: absolute; left: 8%; right: 8%; bottom: 10%; height: 28%;
	border-radius: 50% 50% 0 0 / 30% 30% 0 0; background: rgba(95, 122, 90, .16);
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--image .hero__visual::after { display: none; }
.hero__band {
	position: absolute; top: 0; bottom: 0; right: 14%; z-index: 1;
	padding: 36px 22px; background: rgba(184, 90, 53, .94);
}
.hero__quote {
	writing-mode: vertical-rl; font-family: var(--serif); font-size: 1.15rem; line-height: 2.2; letter-spacing: .22em; color: #fff;
}
.hero__quote br { display: block; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-bottom: 72px; }
.layout--inner { padding-top: 28px; }
.mobile-profile { display: none; }

/* ---------- Sections ---------- */
.section { margin-bottom: 56px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section__title { font-size: 1.45rem; display: flex; align-items: baseline; gap: 12px; }
.section__title::before { content: ""; width: 6px; height: 1.1em; background: var(--accent); border-radius: 3px; align-self: center; }
.section__sub { font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .1em; }
.section__link { font-size: .9rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.section__more { margin-top: 28px; text-align: center; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs__btn {
	font: inherit; font-size: .86rem; font-weight: 600; color: var(--muted); cursor: pointer;
	min-height: 36px; padding: 4px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.tabs__btn:hover { color: var(--accent); border-color: var(--accent); }
.tabs__btn.is-active { background: var(--text); border-color: var(--text); color: #fff; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.card-grid--2, .card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid[data-limit]:not(.is-ready) .card:nth-child(n+7) { display: none; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60, 40, 20, .06), 0 12px 28px rgba(60, 40, 20, .1); }
.card__image { display: block; aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__image img { transform: scale(1.03); }
.thumb-placeholder { display: grid; place-items: center; height: 100%; font-family: var(--serif); color: var(--accent); font-size: 1.05rem; }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.02rem; line-height: 1.6; }
.card__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__excerpt { font-size: .86rem; color: var(--muted); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.meta__cat { color: var(--accent); background: var(--accent-soft); padding: 1px 10px; border-radius: 999px; font-weight: 600; }
a.meta__cat:hover { background: var(--accent); color: #fff; }

/* note / YouTube */
.ext-grid { display: grid; gap: 20px; }
.ext-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ext-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ext-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ext-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cream); }
.ext-card__thumb { position: relative; display: block; }
.ext-card__play { position: absolute; inset: 0; display: grid; place-items: center; }
.ext-card__play .icon { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; stroke: none; }
.ext-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.ext-card__title { font-weight: 700; font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
	display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.service-card__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.service-card--2 .service-card__icon { background: var(--green-soft); color: var(--green); }
.service-card--3 .service-card__icon { background: var(--sand); color: #8a6a3a; }
.service-card__icon .icon { width: 24px; height: 24px; }
.service-card__title { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; }
.service-card__text { font-size: .88rem; color: var(--muted); line-height: 1.75; flex: 1; }
.service-card__more { font-size: .86rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.service-card__more .icon { width: 16px; height: 16px; }

/* Ads */
.wide-ad, .side-ad, .after-ad, .in-feed-ad { margin: 0 0 48px; text-align: center; min-height: 1px; }
.in-feed-ad { grid-column: 1 / -1; margin: 0; }
.ad-widget-box { max-width: 100%; overflow: hidden; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.profile-card {
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 26px 24px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.profile-card__label { font-family: var(--serif); font-weight: 700; font-size: 1rem; align-self: stretch; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 6px; }
.profile-card__avatar { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--cream); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-mark { display: grid; place-items: center; width: 100%; height: 100%; background: var(--accent); color: #fff; font-family: var(--serif); font-size: 2rem; font-weight: 700; }
.profile-card__name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.profile-card__bio { font-size: .88rem; color: var(--muted); line-height: 1.8; text-align: left; }
.profile-card .btn { margin-top: 6px; }
.profile-card .social { margin-top: 4px; }

.side-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 18px; }
.side-box__title { font-size: 1rem; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rank-list a { display: grid; grid-template-columns: auto 64px 1fr; gap: 10px; align-items: center; }
.rank-list__num { width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.rank-list li:nth-child(1) .rank-list__num { background: var(--accent); }
.rank-list__thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--cream); }
.rank-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-list__title { font-size: .84rem; font-weight: 600; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--line); font-size: .9rem; font-weight: 600; }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list .icon { color: var(--accent); width: 18px; height: 18px; }
.cat-list__count { margin-left: auto; font-size: .75rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 0 9px; }
.side-box ul:not(.cat-list):not(.rank-list) { list-style: none; padding: 0; margin: 0; }
.side-box ul:not(.cat-list):not(.rank-list) li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; line-height: 1.6; }
.side-box h2:not(.side-box__title), .side-box .wp-block-heading { font-size: 1rem; margin-bottom: 10px; }
.side-box .wp-block-search__label { font-weight: 700; font-size: .9rem; }
.side-box .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.side-box .wp-block-search__input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; font: inherit; }
.side-box .wp-block-search__button { height: 42px; border: 0; border-radius: 999px; padding: 0 16px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; margin: 0; }

.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.social a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Breadcrumb / archive ---------- */
.breadcrumb ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .8rem; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { display: inline-block; max-width: 24em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.archive-head { margin-bottom: 26px; }
.archive-head__title { font-size: 1.6rem; }
.archive-head__desc { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.empty { margin: 24px 0; color: var(--muted); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.pagination .page-numbers.current { background: var(--text); border-color: var(--text); color: #fff; }

.search-form { display: flex; max-width: 480px; margin: 18px 0; }
.search-form input { flex: 1; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; font: inherit; background: var(--surface); }
.search-form button { width: 54px; border: 0; border-radius: 0 999px 999px 0; background: var(--accent); color: #fff; cursor: pointer; }

/* ---------- Single ---------- */
.entry { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 40px 48px 48px; }
.entry__head { margin-bottom: 26px; }
.entry__head .meta { margin-bottom: 14px; }
.entry__title { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.55; }
.ad-notice--entry { margin-top: 14px; font-size: .75rem; color: var(--muted); }
.meta__updated { display: inline-flex; gap: 4px; }
.entry__thumb { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.entry__thumb img { width: 100%; }
.entry__content { font-size: 1.04rem; line-height: 2; }
.entry__content > * { margin-top: 0; margin-bottom: 1.6em; }
.entry__content > *:last-child { margin-bottom: 0; }
.entry__content h2 {
	font-size: 1.45rem; margin: 2.6em 0 1.1em; padding: .7em 1em; background: var(--cream);
	border-left: 6px solid var(--accent); border-radius: 0 10px 10px 0;
}
.entry__content h3 { font-size: 1.2rem; margin: 2.2em 0 .9em; padding-bottom: .4em; border-bottom: 2px solid var(--line); }
.entry__content h4 { font-size: 1.05rem; margin: 1.8em 0 .8em; color: var(--accent-dark); }
.entry__content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry__content a:hover { color: var(--accent); }
.entry__content ul, .entry__content ol { padding-left: 1.5em; }
.entry__content li + li { margin-top: .4em; }
.entry__content blockquote { margin-left: 0; margin-right: 0; padding: 1.2em 1.4em; background: var(--bg); border-left: 4px solid var(--line); border-radius: 0 10px 10px 0; color: var(--muted); }
.entry__content figure { margin-left: 0; margin-right: 0; }
.entry__content figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .6em; }
.entry__content img { border-radius: 10px; }
.entry__content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry__content code { background: var(--bg); padding: .1em .4em; border-radius: 4px; font-size: .9em; }
.entry__content pre { background: #2b2622; color: #f5efe6; padding: 1.2em; border-radius: 10px; overflow-x: auto; font-size: .88rem; line-height: 1.7; }
.entry__content pre code { background: none; padding: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry__content table { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.7; }
.entry__content th, .entry__content td { border: 1px solid var(--line); padding: .7em .9em; text-align: left; vertical-align: top; }
.entry__content th, .entry__content thead td { background: var(--cream); font-weight: 700; }
.entry__content .wp-block-table { margin: 0 0 1.6em; }
.entry__content .wp-block-button__link { background: var(--accent); color: #fff; text-decoration: none; border-radius: 999px; padding: .8em 1.8em; font-weight: 700; }
.entry__content .wp-block-button__link:hover { background: var(--accent-dark); color: #fff; }
.entry__content .is-style-outline .wp-block-button__link { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.entry__content .wp-block-embed iframe { width: 100%; }
.entry__content .has-background { padding: 1.2em 1.4em; border-radius: 12px; }
.alignwide { margin-left: -24px; margin-right: -24px; }
.alignfull { margin-left: -48px; margin-right: -48px; max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.4em; }
.alignright { float: right; margin-left: 1.4em; }
.tag-list { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--bg); font-size: .82rem; color: var(--muted); }
.tag-list a:hover { color: var(--accent); }
.after-ad { margin: 36px 0 0; }
.author-box { margin: 36px 0 48px; }
.author-box .profile-card { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; gap: 12px 20px; }
.author-box .profile-card__label { flex-basis: 100%; }
.author-box .profile-card__name { margin-right: auto; }
.author-box .profile-card__bio { flex-basis: 100%; }
.related { margin-bottom: 40px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; height: 100%; padding: 16px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; line-height: 1.6; }
.post-nav span { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; margin-bottom: 4px; }
.post-nav__next { grid-column: 2; text-align: right; }
.entry--page .entry__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.not-found { text-align: center; }
.not-found__code { font-family: var(--serif); font-size: 4rem; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.not-found p { margin-top: 14px; color: var(--muted); }
.not-found .search-form { margin: 24px auto; }

/* ---------- Footer ---------- */
.site-footer { background: #2f2925; color: #e9e1d6; padding: 48px 0 28px; }
.site-footer a:hover { color: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 48px; }
.site-footer__brand p { margin-top: 10px; font-size: .84rem; color: #bfb3a5; }
.logo--footer { color: #fff; font-size: 1.5rem; }
.logo--footer .logo__num { color: #e88a62; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .88rem; }
.site-footer .social { margin-left: auto; }
.site-footer .social a { background: transparent; border-color: rgba(255, 255, 255, .25); color: #e9e1d6; }
.site-footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .78rem; color: #a99d8f; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.primary-menu a { padding: 8px 8px; font-size: .88rem; }
	.header-search input { width: 130px; }
	.layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.site-header__inner { min-height: 64px; }
	.brand__tagline { display: none; }
	.menu-toggle {
		display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px;
		border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer;
	}
	.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after {
		content: ""; display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
	}
	.menu-toggle__bar::before { position: absolute; top: -6px; }
	.menu-toggle__bar::after { position: absolute; top: 6px; }
	.nav-open .menu-toggle__bar { background: transparent; }
	.nav-open .menu-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .menu-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
		flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 24px 24px;
		background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(60, 40, 20, .08);
	}
	.nav-open .site-nav { display: flex; }
	.primary-menu { flex-direction: column; }
	.primary-menu a { padding: 12px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.header-search input, .header-search input:focus { width: 100%; height: 46px; }

	.hero { padding: 32px 0 36px; }
	.hero__inner { grid-template-columns: 1fr; gap: 28px; }
	.hero__visual { min-height: 220px; }
	.hero__band { padding: 22px 16px; right: 10%; }
	.hero__quote { font-size: 1rem; }

	.layout { grid-template-columns: minmax(0, 1fr); }
	.mobile-profile { display: block; margin-bottom: 44px; }
	.layout__main + .sidebar .profile-card { display: none; }
	.single .layout__main + .sidebar .profile-card, .page .layout__main + .sidebar .profile-card { display: none; }
	.service-grid, .ext-grid--3 { grid-template-columns: 1fr; }
	.ext-grid--3 .ext-card { flex-direction: row; }
	.ext-grid--3 .ext-card__thumb { width: 42%; flex: none; }
	.entry { padding: 28px 22px 32px; border-radius: 14px; }
	.alignfull { margin-left: -22px; margin-right: -22px; }
	.alignwide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 600px) {
	.container { padding: 0 16px; }
	.logo { font-size: 1.5rem; }
	.hero__title { font-size: 1.8rem; }
	.hero__lead br { display: none; }
	.hero__actions .btn { flex: 1; }
	.card-grid, .card-grid--2, .card-grid--list, .ext-grid--2 { grid-template-columns: 1fr; }
	.card { flex-direction: row; }
	.card__image { width: 38%; flex: none; aspect-ratio: auto; min-height: 110px; }
	.card__body { padding: 12px 14px 14px; gap: 6px; }
	.card__title { font-size: .95rem; }
	.card__excerpt { display: none; }
	.section__title { font-size: 1.3rem; }
	.tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.tabs__btn { flex: none; }
	.entry { margin: 0 -16px; border-radius: 0; box-shadow: none; padding: 24px 16px 28px; }
	.entry__content { font-size: 1rem; }
	.entry__content h2 { font-size: 1.25rem; margin-left: -16px; margin-right: -16px; border-radius: 0; }
	.alignfull { margin-left: -16px; margin-right: -16px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__next { grid-column: 1; }
	.author-box .profile-card { flex-direction: column; text-align: center; }
	.site-footer .social { margin-left: 0; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .sidebar, .site-footer, .after-ad, .wide-ad, .related, .post-nav { display: none; }
	.layout { display: block; }
	.entry { box-shadow: none; padding: 0; }
}
