/*
Theme Name: しごと帖
Theme URI: https://zeirishihojo.com/
Author: ゆずまる
Description: 「税理士補助スタッフのしごと帖」のためのオリジナルテーマ。クリーム地にティール・ピンク・イエローの幾何学模様をあしらった、明るくやわらかな投稿メインのブログテーマです。
Version: 1.4.5
Requires at least: 6.3
Tested up to: 6.8
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: shigotocho
*/

/* ==========================================================
   変数・ベース
   ========================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-ja);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: .04em;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: var(--teal-dark); text-underline-offset: .2em; }
a:hover { color: var(--pink-dark); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.5; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 300;
	background: var(--brown); color: #fff; padding: 8px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }
/* 本文に幅の広いものが入っても、スマホでページが左右に動かないようにする（clip非対応の古いブラウザはhidden） */
.site-main { overflow-x: hidden; overflow-x: clip; }
.icon { width: 1em; height: 1em; display: block; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   ボタン・ラベル
   ========================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	padding: .8em 2em; border: 0; border-radius: 999px;
	background: var(--teal-dark); color: #fff; font-weight: 700; text-decoration: none; line-height: 1.4;
	box-shadow: 5px 5px 0 var(--yellow);
	transition: transform .2s, box-shadow .2s;
}
.btn::after { content: "›"; font-family: var(--font-en); font-size: 1.2em; line-height: 1; }
.btn:hover { color: #fff; transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--yellow); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: 5px 5px 0 var(--pink); }
.btn--ghost:hover { color: var(--ink); box-shadow: 2px 2px 0 var(--pink); }

.pill {
	display: inline-block; padding: .25em 1.1em; border-radius: 999px;
	background: var(--accent-pale); color: var(--accent-dark);
	font-size: .8rem; font-weight: 700; text-decoration: none; line-height: 1.6;
}
a.pill:hover { background: var(--accent); color: #fff; }

/* ==========================================================
   ヘッダー
   ========================================================== */
.site-header { position: relative; z-index: 20; }
.site-header__inner {
	width: min(1280px, 100% - 40px); margin-inline: auto; padding: 22px 0;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.home:not(.paged) .site-header { position: absolute; inset: 0 0 auto 0; }
.home:not(.paged) .site-branding { visibility: hidden; }

.site-branding__link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.4; }
.site-branding__mark {
	flex: none; width: 34px; height: 34px; border-radius: 10px 10px 10px 0;
	background:
		radial-gradient(circle at 50% 50%, #fff 0 5px, transparent 6px),
		linear-gradient(135deg, var(--teal) 0 50%, var(--pink) 50% 100%);
	box-shadow: 4px 4px 0 var(--yellow);
}
.custom-logo { max-height: 56px; width: auto; }

.gnav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 28px; }
.gnav__list a {
	position: relative; display: block; padding: 4px 0;
	color: var(--teal-dark); font-weight: 700; font-size: .95rem; text-decoration: none;
}
.gnav__list li:nth-child(3n+2) a { color: var(--pink-dark); }
.gnav__list li:nth-child(3n) a { color: var(--brown); }
.gnav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; border-radius: 4px;
	background: currentColor; opacity: .35; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.gnav__list a:hover::after,
.gnav__list .current-menu-item a::after { transform: scaleX(1); }

/* 丸メニューボタン */
.menu-toggle {
	position: fixed; top: 0; right: 0; z-index: 120;
	width: 104px; height: 104px; padding: 0 0 14px 18px; border: 0;
	border-radius: 0 0 0 100%;
	background: var(--brown); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .2s;
}
.menu-toggle:hover { background: #6f5a53; }
.menu-toggle__bars { display: grid; gap: 7px; width: 30px; }
.menu-toggle__bars i { display: block; height: 4px; border-radius: 4px; background: var(--teal); transition: transform .3s; }
.menu-toggle__bars i + i { background: var(--pink); }
.menu-toggle__label { font-family: var(--font-en); font-weight: 700; font-size: .78rem; letter-spacing: .14em; line-height: 1; }
.is-drawer-open .menu-toggle__bars i { transform: translateY(5.500px) rotate(35deg); }
.is-drawer-open .menu-toggle__bars i + i { transform: translateY(-5.500px) rotate(-35deg); }

/* ドロワー */
.drawer {
	position: fixed; inset: 0; z-index: 110; overflow-y: auto;
	background: rgba(130, 107, 99, .97); color: #fff;
	display: grid; place-items: center; padding: 110px 24px 60px;
	opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.is-drawer-open .drawer { opacity: 1; visibility: visible; }
.is-drawer-open body { overflow: hidden; }
.drawer__inner { width: min(520px, 100%); text-align: center; }
.drawer__en { font-family: var(--font-en); font-size: 3.4rem; font-weight: 700; letter-spacing: .2em; line-height: 1; color: rgba(255, 255, 255, .16); margin-bottom: 20px; text-transform: uppercase; }
.drawer__list a {
	display: block; padding: 14px 0; color: #fff; font-size: 1.2rem; font-weight: 700; text-decoration: none;
	border-bottom: 2px dotted rgba(255, 255, 255, .35);
}
.drawer__list a:hover { color: var(--yellow); }
.drawer__search { margin-top: 32px; }

/* 右端の固定ボタン */
.side-cta { position: fixed; right: 0; top: 56%; z-index: 90; display: none; flex-direction: column; gap: 14px; }
.side-cta__btn {
	width: 84px; height: 84px; border: 0; padding: 0;
	display: grid; place-items: center; text-align: center;
	background: var(--teal); color: #fff; font-weight: 700; font-size: .88rem; line-height: 1.45; text-decoration: none;
	box-shadow: -5px 5px 0 var(--yellow);
	transition: transform .2s, box-shadow .2s;
}
.side-cta__btn--teal { background: var(--teal-dark); }
.side-cta__btn--pink { background: var(--pink-dark); }
.side-cta__btn:hover { color: #fff; transform: translate(-3px, 3px); box-shadow: -2px 2px 0 var(--yellow); }

/* ==========================================================
   メインビジュアル
   ========================================================== */
.hero {
	position: relative; overflow: hidden;
	min-height: clamp(520px, 78vh, 720px);
	display: grid; place-items: center; padding: 110px 20px 70px;
}
.hero__mosaic { position: absolute; width: clamp(170px, 30vw, 400px); height: auto; }
.hero__mosaic--tl { top: 0; left: 0; }
.hero__mosaic--br { right: 0; bottom: 0; transform: rotate(180deg); }
.hero__dots { position: absolute; width: clamp(80px, 12vw, 160px); height: auto; }
.hero__dots--a { top: 16%; right: 22%; }
.hero__dots--b { bottom: 12%; left: 14%; transform: rotate(160deg); opacity: .8; filter: hue-rotate(300deg) saturate(.9); }

.hero__cloud {
	position: relative; z-index: 1;
	width: min(600px, 100%); aspect-ratio: 1 / .82;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 8% 10%;
}
.hero__cloud::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: #fff;
	border-radius: 46% 54% 52% 48% / 55% 50% 50% 45%;
	box-shadow: -120px 60px 0 -90px #fff, 130px -40px 0 -100px #fff;
	animation: shigotocho-float 9s ease-in-out infinite alternate;
}
@keyframes shigotocho-float {
	to { border-radius: 52% 48% 46% 54% / 48% 55% 45% 52%; transform: translateY(-8px); }
}
.hero .bunting { width: 150px; margin-bottom: 4px; }
.hero__title { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero__small { font-size: clamp(1rem, 2.6vw, 1.35rem); color: var(--brown); letter-spacing: .14em; }
.hero__big { font-size: clamp(2.8rem, 10.500vw, 5rem); font-weight: 900; line-height: 1.25; letter-spacing: .08em; margin-right: -.08em; white-space: nowrap; }
.hero__big .c1 { color: var(--teal); }
.hero__big .c2 { color: var(--pink); }
.hero__big .c3 { color: var(--yellow-dark); }
.hero__en {
	position: relative; margin-top: 6px; padding-bottom: 14px;
	font-family: var(--font-en); font-weight: 700; font-size: clamp(.8rem, 2vw, 1rem); letter-spacing: .42em; margin-right: -.42em; color: var(--brown);
}
.hero__en::after {
	content: ""; position: absolute; left: 0; right: .42em; bottom: 0; height: 5px; border-radius: 5px;
	background: linear-gradient(90deg, var(--teal) 0 34%, var(--yellow) 34% 67%, var(--pink) 67%);
}
.hero__lead { margin-top: 18px; font-weight: 700; font-size: clamp(.84rem, 2.2vw, 1rem); line-height: 1.9; text-wrap: balance; word-break: auto-phrase; }

.bunting { display: block; width: 120px; height: auto; margin-inline: auto; }

/* 新着のお知らせバー */
.news {
	position: relative; z-index: 2;
	display: flex; align-items: center; gap: 16px; margin: -28px auto 0; width: min(760px, 100%);
	padding: 14px 26px; background: #fff; border-radius: 999px; color: var(--ink); text-decoration: none;
	box-shadow: 6px 6px 0 var(--teal-pale);
	transition: transform .2s, box-shadow .2s;
}
.news:hover { color: var(--ink); transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--teal-pale); }
.news__label { flex: none; font-family: var(--font-en); font-weight: 700; letter-spacing: .12em; color: var(--pink-dark); }
.news__label::after { content: " ..."; }
.news__date { flex: none; font-family: var(--font-en); font-weight: 700; font-size: .9rem; color: var(--brown); }
.news__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; font-size: .92rem; }

/* ==========================================================
   セクション共通
   ========================================================== */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--cats { padding-bottom: 0; }

.sec-title { position: relative; text-align: center; margin-bottom: clamp(36px, 5vw, 56px); padding-top: clamp(26px, 4vw, 44px); }
.sec-title::before {
	content: attr(data-en); position: absolute; top: 0; left: 0; right: 0;
	display: flex; justify-content: center; overflow: hidden; padding-left: .18em;
	font-family: var(--font-en); font-weight: 700; font-size: clamp(2.2rem, 11vw, 7rem); line-height: 1;
	letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
	color: rgba(18, 181, 185, .11); pointer-events: none;
}
.sec-title__ja {
	position: relative; display: inline-flex; align-items: center; gap: 16px;
	font-size: clamp(1.3rem, 3.4vw, 1.75rem); letter-spacing: .14em;
}
.sec-title__ja::before,
.sec-title__ja::after { content: ""; flex: none; width: 46px; height: 18px; background: var(--bunting) center / contain no-repeat; }
.sec-title__ja::after { transform: scaleX(-1); }

/* ==========================================================
   ブラウザで遊べるゲームへの案内（トップページ）。記事より目立ちすぎないよう、小さめのカードを並べる
   ========================================================== */
.games { margin-top: clamp(22px, 4vw, 36px); }
.games__label { margin: 0 0 10px; font-size: .82rem; font-weight: 700; color: var(--brown); }
.games__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.game {
	display: flex; align-items: center; gap: 14px; height: 100%; padding: 10px 16px 10px 10px;
	background: #fff; border-radius: 18px; color: var(--ink); text-decoration: none;
	box-shadow: 4px 4px 0 var(--accent-pale); transition: transform .2s, box-shadow .2s;
}
.game:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent-pale); }
.game__img { flex: none; display: block; width: 116px; height: auto; border-radius: 10px; }
.game__body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.game__title { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.game__text { font-size: .78rem; line-height: 1.5; color: var(--brown); }
.game__go { flex: none; font-size: .78rem; font-weight: 700; color: var(--accent-dark); }
.game__go::after { content: " →"; }

/* ==========================================================
   人気の記事（記事ページの横・トップページ）。閲覧数の数字は出さない
   ========================================================== */
.popular__list { margin: 0; padding: 0; list-style: none; }
.popular__link { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.popular__thumb { position: relative; flex: none; display: block; width: 104px; aspect-ratio: 40 / 21; border-radius: 10px; background: var(--accent-pale); }
.popular__thumb img,
.popular__noimg { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.popular__noimg { display: grid; place-items: center; font-size: 24px; color: var(--accent-dark); }
.popular__rank {
	position: absolute; left: -8px; top: -8px; display: grid; place-items: center; width: 26px; height: 26px;
	border-radius: 50%; background: var(--brown); color: #fff; box-shadow: 0 0 0 2px #fff;
	font-family: var(--font-en); font-weight: 700; font-size: .8rem; line-height: 1;
}
.popular__item:nth-child(1) .popular__rank { background: var(--yellow-dark); }
.popular__item:nth-child(2) .popular__rank { background: var(--teal); }
.popular__item:nth-child(3) .popular__rank { background: var(--pink); }
.popular__title {
	flex: 1; min-width: 0; font-size: .86rem; font-weight: 700; line-height: 1.55;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.popular--side .popular__item { padding: .75em 0; }
.popular--side .popular__link:hover { color: var(--accent-dark); }

/* トップページ：パソコンでは小さめのカードを5つ横に並べる */
.section--popular { padding-bottom: 0; }
.popular--top .popular__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.popular--top .popular__link {
	flex-direction: column; align-items: stretch; gap: 0; height: 100%;
	background: #fff; border-radius: 18px; box-shadow: 4px 4px 0 var(--accent-pale); transition: transform .2s, box-shadow .2s;
}
.popular--top .popular__link:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent-pale); }
.popular--top .popular__thumb { width: 100%; border-radius: 18px 18px 0 0; }
.popular--top .popular__noimg { font-size: 40px; }
.popular--top .popular__rank { left: -6px; top: -10px; width: 32px; height: 32px; font-size: .95rem; }
/* 下の余白は padding ではなく margin でとる（padding だと、隠した4行目・5行目が余白にはみ出して見える） */
.popular--top .popular__title { margin: 12px 14px 14px; -webkit-line-clamp: 4; }

/* ==========================================================
   カテゴリーカード
   ========================================================== */
/* PC・タブレットでは、カテゴリーの数にかかわらず1行に並べる（幅は等分）。スマホは下のレスポンシブで横長の行にする */
.cat-grid { display: flex; justify-content: center; gap: 18px; }
.cat-grid > li { flex: 1 1 0; min-width: 0; max-width: 220px; }
.cat-card {
	display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%;
	padding: 20px 10px 16px; background: #fff; border-radius: var(--radius);
	color: var(--ink); text-decoration: none; text-align: center;
	box-shadow: 5px 5px 0 var(--accent);
	transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { color: var(--ink); transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--accent); }
.cat-card__icon {
	flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	background: var(--accent-pale); color: var(--accent-dark); font-size: 30px;
	transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.cat-card:hover .cat-card__icon { transform: rotate(-8deg) scale(1.06); }
.cat-card__name { font-size: .9rem; font-weight: 700; line-height: 1.5; }
.cat-card__count { font-family: var(--font-en); font-size: .74rem; font-weight: 700; color: var(--accent-dark); margin-top: auto; }

/* ==========================================================
   記事カード
   ========================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 40px 32px; }
.card { min-width: 0; }
.card__link {
	display: flex; flex-direction: column; height: 100%;
	background: #fff; border-radius: var(--radius); color: var(--ink); text-decoration: none;
	transition: transform .25s, box-shadow .25s;
	box-shadow: 0 0 0 transparent;
}
.card__link:hover { color: var(--ink); transform: translateY(-6px); box-shadow: 8px 8px 0 var(--accent-pale); }
.card__thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) 0 0; }
.card__thumb img,
.card__noimg { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.card__noimg {
	display: grid; place-items: center; font-size: 64px; color: var(--accent-dark);
	background:
		radial-gradient(circle at 12% 20%, var(--accent) 0 14px, transparent 15px),
		radial-gradient(circle at 88% 78%, #fff 0 22px, transparent 23px),
		radial-gradient(circle at 82% 18%, var(--yellow) 0 8px, transparent 9px),
		var(--accent-pale);
}
.card__cat {
	position: absolute; left: 18px; bottom: -13px; max-width: calc(100% - 36px);
	padding: .2em 1.1em; border-radius: 999px; background: var(--accent-dark); color: #fff;
	font-size: .76rem; font-weight: 700; line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 28px 22px 22px; }
.card__date { font-family: var(--font-en); font-weight: 700; font-size: .82rem; color: var(--brown); letter-spacing: .08em; }
.card__title { font-size: 1.05rem; line-height: 1.65; margin-top: 4px; }
.card__excerpt { font-size: .84rem; line-height: 1.8; color: #6b655f; margin-top: 10px; }
.card__more {
	align-self: flex-end; margin-top: auto; padding-top: 14px;
	display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--accent-dark);
}
.card__more::after {
	content: "›"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
	background: var(--accent-dark); color: #fff; font-family: var(--font-en); line-height: 1; padding-bottom: 2px;
	transition: transform .25s;
}
.card__link:hover .card__more::after { transform: translateX(4px); }

/* ページネーション */
.pagination { margin-top: 56px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.page-numbers {
	min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center;
	background: #fff; color: var(--ink); font-family: var(--font-en); font-weight: 700; text-decoration: none;
}
.page-numbers.current { background: var(--teal-dark); color: #fff; box-shadow: 4px 4px 0 var(--yellow); }
a.page-numbers:hover { background: var(--pink-pale); color: var(--pink-dark); }
.page-numbers.dots { background: none; }

.no-posts { background: #fff; border-radius: var(--radius); padding: 40px 28px; text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; margin-bottom: 80px; }
.section .no-posts { margin-bottom: 0; }

/* ==========================================================
   プロフィール（トップ）
   ========================================================== */
.about { background: var(--teal-pale); border-radius: clamp(40px, 8vw, 100px) clamp(40px, 8vw, 100px) 0 0; }
.about__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.about__catch { font-size: clamp(1.3rem, 3.6vw, 1.9rem); font-weight: 700; color: var(--pink-dark); line-height: 2; letter-spacing: .22em; text-align: center; }
.about .sec-title::before { color: rgba(255, 255, 255, .8); }
.about__card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; background: #fff; border-radius: 32px; padding: clamp(26px, 5vw, 44px); text-align: center; }
.about__img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; background: var(--yellow-pale); box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--yellow); }
.about__name { font-size: 1.3rem; font-weight: 700; }
.about__text { margin-top: 10px; font-size: .95rem; text-align: left; }
.about__links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 24px; }

/* ==========================================================
   下層ページの見出し帯
   ========================================================== */
.page-head { position: relative; text-align: center; padding: clamp(40px, 7vw, 76px) 0 clamp(36px, 6vw, 60px); overflow: hidden; }
.page-head__en {
	font-family: var(--font-en); font-weight: 700; font-size: clamp(2.2rem, 12vw, 7.500rem); line-height: 1;
	display: flex; justify-content: center; padding-left: .18em; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
	color: rgba(18, 181, 185, .12); margin-bottom: -.42em;
}
.page-head .bunting { position: relative; }
.page-head__title { position: relative; font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: .1em; margin-top: 8px; }
.page-head__desc { margin: 16px auto 0; max-width: 640px; font-size: .92rem; }
.page-head + .section { padding-top: 12px; }

/* ==========================================================
   記事ページ
   ========================================================== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 8px 0 clamp(64px, 9vw, 100px); }
.entry { min-width: 0; background: #fff; border-radius: 32px; padding: clamp(22px, 5vw, 56px); }
.entry--page { margin-bottom: clamp(64px, 9vw, 100px); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--brown); margin-bottom: 18px; }
.breadcrumb a { color: var(--brown); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.entry__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.entry__title { font-size: clamp(1.4rem, 4.2vw, 2rem); line-height: 1.6; letter-spacing: .05em; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; padding-bottom: 22px; font-family: var(--font-en); font-weight: 700; font-size: .85rem; color: var(--brown); border-bottom: 3px dotted var(--line); }
.entry__updated { font-family: var(--font-ja); }
.entry__eyecatch { margin: 28px 0 0; }
.entry__eyecatch img { width: 100%; border-radius: var(--radius); }

.entry-content { margin-top: 32px; }
.entry-content .alignwide, .entry-content .alignfull { margin-inline: calc(clamp(22px, 5vw, 56px) * -0.5); max-width: none; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.page-links { display: flex; gap: 10px; justify-content: center; font-family: var(--font-en); font-weight: 700; }

/* 目次 */
.toc { background: #fff; border: 3px dotted var(--teal); border-radius: 22px; padding: 1.1em 1.5em; font-size: .93rem; line-height: 1.8; }
.toc__title { cursor: pointer; font-weight: 700; letter-spacing: .2em; color: var(--teal-dark); display: flex; align-items: center; gap: 12px; list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc__title::before { content: ""; width: 46px; height: 18px; background: var(--bunting) center / contain no-repeat; }
.toc__title::after { content: "＋"; margin-left: auto; color: var(--brown); letter-spacing: 0; }
.toc[open] .toc__title::after { content: "－"; }
.toc__list { margin-top: .9em; padding-top: .9em; border-top: 2px solid var(--teal-pale); counter-reset: toc; }
.toc__item { margin: 0 !important; padding: .28em 0; }
.toc__item--h2 { counter-increment: toc; display: flex; gap: .7em; }
.toc__item--h2::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-en); font-weight: 700; color: var(--pink-dark); }
.toc__item--h3 { padding-left: 2.6em; font-size: .94em; }
.toc__item a { color: var(--ink); text-decoration: none; }
.toc__item a:hover { color: var(--teal-dark); text-decoration: underline; }

/* タグ・シェア */
.entry__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.entry__tags a { padding: .15em 1em; border-radius: 999px; border: 2px solid var(--line); color: var(--brown); font-size: .8rem; font-weight: 700; text-decoration: none; }
.entry__tags a::before { content: "#"; }
.entry__tags a:hover { border-color: var(--pink); color: var(--pink-dark); }

.share { margin-top: 48px; text-align: center; }
.share__title { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: .1em; }
.share__title::before, .share__title::after { content: ""; width: 46px; height: 18px; background: var(--bunting) center / contain no-repeat; }
.share__title::after { transform: scaleX(-1); }
.share__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.share__btn {
	display: block; padding: .5em 1.4em; border: 2px solid var(--teal); border-radius: 999px; background: #fff;
	color: var(--teal-dark); font-size: .85rem; font-weight: 700; text-decoration: none; line-height: 1.6;
	transition: background .2s, color .2s;
}
.share__btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

/* プロフィールボックス */
.profile-box { background: var(--yellow-pale); border-radius: var(--radius); padding: 26px; }
.profile-box--entry { margin-top: 48px; display: flex; gap: 24px; align-items: flex-start; }
.profile-box--side { text-align: center; background: #fff; }
.profile-box__img { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--yellow); }
.profile-box--side .profile-box__img { margin: 6px auto 16px; display: block; }
.profile-box__label { font-size: .74rem; font-weight: 700; color: var(--pink-dark); letter-spacing: .14em; }
.profile-box__name { font-size: 1.15rem; font-weight: 700; }
.profile-box__text { margin-top: 8px; font-size: .86rem; line-height: 1.85; text-align: left; }
.profile-box__more { display: inline-block; margin-top: 10px; font-size: .86rem; font-weight: 700; }

/* 前後の記事 */
.post-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 40px; }
.post-nav__item a {
	display: block; height: 100%; padding: 14px 20px; border-radius: 18px; background: var(--bg);
	color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 700; line-height: 1.6;
	transition: background .2s;
}
.post-nav__item a:hover { background: var(--teal-pale); }
.post-nav__item span { display: block; font-size: .74rem; color: var(--teal-dark); letter-spacing: .1em; }
.post-nav__item--next { text-align: right; }
.post-nav__item--prev span::before { content: "‹ "; }
.post-nav__item--next span::after { content: " ›"; }

.section--related { background: #fff; border-radius: clamp(40px, 8vw, 100px) clamp(40px, 8vw, 100px) 0 0; }
.section--related .card__link { background: var(--bg); }

/* ==========================================================
   サイドバー・ウィジェット
   ========================================================== */
.sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: start; min-width: 0; }
.widget { background: #fff; border-radius: var(--radius); padding: 24px; font-size: .9rem; line-height: 1.7; }
.widget__title,
.widget .wp-block-heading,
.widget .wp-block-search__label {
	display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px;
	font-size: 1rem; font-weight: 700; letter-spacing: .1em; border-bottom: 3px dotted var(--line);
}
.widget__title::before,
.widget .wp-block-heading::before { content: ""; flex: none; width: 38px; height: 15px; background: var(--bunting) center / contain no-repeat; }
.widget li { padding: .55em 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget li a { color: var(--ink); text-decoration: none; }
.widget li a:hover { color: var(--teal-dark); }
.widget_categories li, .widget_archive li, .wp-block-categories li, .wp-block-archives li { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-en); color: var(--brown); }
.widget_categories li a, .widget_archive li a, .wp-block-categories li a, .wp-block-archives li a { font-family: var(--font-ja); }
.widget_categories li a::before, .wp-block-categories li a::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .7em; border-radius: 50%; background: var(--teal); vertical-align: .12em; }
.widget_categories li:nth-child(3n+2) a::before, .wp-block-categories li:nth-child(3n+2) a::before { background: var(--pink); }
.widget_categories li:nth-child(3n) a::before, .wp-block-categories li:nth-child(3n) a::before { background: var(--yellow); }
.widget select { width: 100%; padding: .6em 1em; border: 2px solid var(--line); border-radius: 999px; background: #fff; }

/* 検索フォーム */
.search-form, .wp-block-search__inside-wrapper { display: flex; background: #fff; border: 2px solid var(--teal); border-radius: 999px; overflow: hidden; width: 100%; max-width: 480px; margin-inline: auto; }
.search-form__input, .wp-block-search__input { flex: 1 1 0; width: 0; min-width: 0; border: 0 !important; background: none; padding: .7em 0 .7em 1.3em; color: var(--ink); outline-offset: -4px; }
.search-form__btn, .wp-block-search__button { flex: none; width: 54px; margin: 0; border: 0; background: var(--teal-dark); color: #fff; display: grid; place-items: center; padding: 0; }
.wp-block-search__button { width: auto; padding: 0 1.2em; font-weight: 700; }
.search-form__btn svg { width: 22px; height: 22px; }
.search-form__btn:hover, .wp-block-search__button:hover { background: var(--pink-dark); }

/* ==========================================================
   コメント
   ========================================================== */
.comments { margin-top: 56px; padding-top: 40px; border-top: 3px dotted var(--line); }
.comments__title { font-size: 1.15rem; margin-bottom: 20px; }
.comments__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 40px; }
.comments__list .children { margin: 18px 0 0 24px; display: grid; gap: 18px; }
.comment-body { background: var(--bg); border-radius: 18px; padding: 18px 20px; font-size: .92rem; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: .76rem; margin: 4px 0 8px; }
.comment-metadata a { color: var(--brown); }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.comment-form label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .7em 1em; border: 2px solid var(--line); border-radius: 14px; background: var(--bg);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--teal); outline: none; background: #fff; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 500; margin: 0; }
.comment-notes, .logged-in-as { font-size: .82rem; }

/* ==========================================================
   お問い合わせフォーム（Contact Form 7）
   ========================================================== */
.wpcf7-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.wpcf7-form p { margin: 0; }
.wpcf7-form label { display: block; font-size: .9rem; font-weight: 700; }
.wpcf7-form label br { display: none; }
.wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form input[type="url"],
.wpcf7-form input[type="number"], .wpcf7-form input[type="date"], .wpcf7-form select, .wpcf7-form textarea {
	width: 100%; padding: .7em 1em; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); font-weight: 500;
}
.wpcf7-form textarea { min-height: 11em; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { border-color: var(--teal); outline: none; background: #fff; }
.wpcf7-form p:has(> .wpcf7-submit) { margin-top: 8px; text-align: center; }
/* 送信ボタンは .btn と同じ見た目 */
.wpcf7-form .wpcf7-submit {
	padding: .8em 3.2em; border: 0; border-radius: 999px;
	background: var(--teal-dark); color: #fff; font-weight: 700; line-height: 1.4;
	box-shadow: 5px 5px 0 var(--yellow); cursor: pointer;
	transition: transform .2s, box-shadow .2s;
}
.wpcf7-form .wpcf7-submit:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--yellow); }
.wpcf7-form .wpcf7-spinner { position: absolute; }
.wpcf7-not-valid-tip { margin-top: 4px; font-size: .82rem; font-weight: 700; color: var(--pink-dark); }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: .9em 1.2em; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); font-size: .9rem; font-weight: 700; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--teal); background: var(--teal-pale); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: var(--pink); background: var(--pink-pale); }

/* ==========================================================
   フッター
   ========================================================== */
.site-footer { position: relative; overflow: hidden; background: #fff; text-align: center; padding: 70px 20px 44px; }
.about + .site-footer { border-radius: 0; }
.site-footer__mosaic { position: absolute; left: 0; bottom: 0; width: clamp(120px, 20vw, 260px); height: auto; transform: scaleY(-1); opacity: .9; }
.site-footer__inner { position: relative; }
.site-footer__name { margin-top: 12px; font-size: 1.25rem; font-weight: 700; letter-spacing: .1em; }
.site-footer__name a { color: var(--ink); text-decoration: none; }
.site-footer__desc { font-size: .84rem; color: var(--brown); margin-top: 4px; }
.site-footer__nav { margin-top: 26px; }
.site-footer__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.site-footer__list a { color: var(--ink); font-size: .88rem; font-weight: 700; text-decoration: none; }
.site-footer__list a:hover { color: var(--teal-dark); }
.site-footer__info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-top: 18px; }
.site-footer__info a { color: var(--brown); font-size: .8rem; text-decoration: none; }
.site-footer__info a:hover { color: var(--teal-dark); text-decoration: underline; }
.site-footer__copy { margin-top: 36px; font-family: var(--font-en); font-size: .76rem; font-weight: 700; letter-spacing: .1em; color: var(--brown); }

.page-top {
	position: fixed; right: 16px; bottom: 16px; z-index: 80;
	width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
	background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--brown);
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s;
}
.page-top svg { width: 24px; height: 24px; }
.is-scrolled .page-top { opacity: 1; visibility: visible; transform: none; }
.page-top:hover { color: var(--ink); transform: translateY(-4px); }

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width: 959px) {
	.gnav { display: none; }
	.site-header__inner { padding-right: 84px; min-height: 84px; }
	.menu-toggle { width: 88px; height: 88px; }
	.news { border-radius: 22px; flex-wrap: wrap; gap: 2px 14px; padding: 12px 20px; }
	.news__title { flex-basis: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.hero__dots--a { right: 6%; top: 12%; }
	.hero__dots--b { left: 4%; }
	.profile-box--entry { flex-direction: column; align-items: center; text-align: center; }
	.cat-grid { gap: 12px; }
	.cat-card { padding: 16px 6px 12px; border-radius: 18px; }
	.cat-card__icon { width: 48px; height: 48px; font-size: 26px; }
	.cat-card__name { font-size: .8rem; }
	.popular--top .popular__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
	body { font-size: 15px; }
	.hero { padding-top: 120px; }
	.hero__cloud { aspect-ratio: auto; padding: 56px 20px; }
	.games__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.game { gap: 12px; padding: 8px 12px 8px 8px; }
	.game__img { width: 84px; border-radius: 8px; }
	.game__title { font-size: .95rem; }
	.game__text { font-size: .72rem; }
	/* 人気の記事（トップ）は、スマホでは小さい画像と題名の行をたてに積む */
	.popular--top .popular__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.popular--top .popular__link { flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; }
	.popular--top .popular__thumb { width: 104px; border-radius: 10px; }
	.popular--top .popular__rank { left: -8px; top: -8px; width: 26px; height: 26px; font-size: .8rem; }
	.popular--top .popular__title { margin: 0; -webkit-line-clamp: 3; }
	/* スマホでは、小さいアイコン・名前・記事数を横に並べた行にして、たてに積む */
	.cat-grid { flex-direction: column; gap: 12px; }
	.cat-grid > li { flex: none; max-width: none; }
	.cat-card { flex-direction: row; gap: 14px; padding: 10px 18px 10px 12px; border-radius: 999px; text-align: left; box-shadow: 4px 4px 0 var(--accent); }
	.cat-card__icon { width: 44px; height: 44px; font-size: 24px; }
	.cat-card__name { flex: 1; min-width: 0; font-size: .95rem; }
	.cat-card__count { margin-top: 0; }
	.sec-title__ja::before, .sec-title__ja::after { width: 34px; }
}

@media (min-width: 960px) {
	.side-cta { display: flex; }
	.menu-toggle { transform: translate(100%, -100%); }
	.is-scrolled .menu-toggle,
	.is-drawer-open .menu-toggle { transform: none; }
	.page-top { right: 24px; bottom: 24px; }
	.about__inner { grid-template-columns: auto minmax(0, 1fr); gap: 72px; align-items: center; }
	.about__catch { writing-mode: vertical-rl; text-align: left; line-height: 2.3; }
	.about .sec-title { text-align: left; }
	.about .sec-title::before { justify-content: flex-start; padding-left: 0; }
	.about__card { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; gap: 36px; }
	.about__links { justify-content: flex-start; }
	.post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-nav__item--next { grid-column: 2; }
}

@media (min-width: 1040px) {
	.has-sidebar .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
}

/* ---------- 広告（Google AdSense） ---------- */

/* 出せる広告がなかった枠は、空白のまま残さない（Google が案内している書き方） */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* アフィリエイトのリンクがある記事の、はじめに出すお知らせ（functions.php の shigotocho_pr_note） */
.pr-note { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 9px 16px; background: var(--bg); border-radius: 12px; font-size: .84rem; color: var(--brown); }
.pr-note__label { flex: none; padding: 1px 11px; background: var(--brown); border-radius: 999px; font-family: var(--font-en); font-size: .74rem; font-weight: 700; letter-spacing: .1em; color: #fff; }

/* アフィリエイトの商品リンク（ASP が出すコードは中身を変えずに、この枠でまん中に寄せる） */
.aff-box { display: flex; flex-direction: column; align-items: center; margin: 1.8em 0; }
.aff-box table { margin: 0; background: #fff; border-radius: 8px; }

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

@media print {
	.menu-toggle, .drawer, .side-cta, .page-top, .sidebar, .share, .hero__mosaic, .site-footer__mosaic { display: none !important; }
}
