/* リモデル帖：写真の雑誌の組み。パターンが付ける gpte-j- のクラスにだけ効く。 */
:root { --gpte-j-gutter: var(--wp--preset--spacing--50); --gpte-j-inset: max(var(--gpte-j-gutter), calc((100vw - 1240px) / 2)); }

/* ヘッダー：ロゴを中央に、線を引かず1行のナビを置く */
.gpte-j-header { border-bottom: 0; background: transparent; }
.gpte-j-masthead { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; padding-block: .75rem .25rem; }
.gpte-j-masthead .gpte-brand { display: block; grid-column: 2; grid-row: 1; padding-block: 0; text-align: center; }
.gpte-j-masthead .wp-block-site-title { font-size: 1.25rem; font-weight: 500; letter-spacing: .14em; line-height: 1.5; }
.gpte-j-masthead .gpte-header-search { grid-column: 1; grid-row: 1; }
.gpte-j-masthead .gpte-primary-nav { grid-column: 3; grid-row: 1; justify-self: end; }
@media (min-width: 600px) {
	.gpte-j-masthead { grid-template-columns: 1fr auto 1fr; padding-block: 1.25rem 0; }
	.gpte-j-masthead .wp-block-site-title { font-size: 1.75rem; letter-spacing: .24em; margin-right: -.24em; line-height: 1.4; }
	.gpte-j-masthead .gpte-header-search { grid-column: 3; justify-self: end; }
	.gpte-j-masthead .gpte-primary-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-top: .35rem; border-top: 0; font-weight: 400; letter-spacing: .14em; }
	.gpte-j-masthead .gpte-primary-nav .wp-block-navigation__container { gap: 0 2.75rem; }
}

/* 文字の導入 */
.gpte-j-intro { padding-block: .25rem var(--wp--preset--spacing--40); text-align: center; }
.gpte-j-intro h1 { margin: 0; font-family: inherit; font-weight: 400; color: var(--wp--preset--color--muted); letter-spacing: .12em; line-height: 1.7; }

/* 見出し */
.gpte-j-head { max-width: 40rem; margin: 0 auto var(--wp--preset--spacing--60); text-align: center; }
.gpte-j-head h2 { margin: 0; font-weight: 500; letter-spacing: .14em; line-height: 1.6; }
.gpte-j-head p { margin: .5rem 0 0; }

/* 全幅の写真に題の紙片を重ねる */
.gpte-j-hero .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.gpte-j-hero figure { margin: 0; }
.gpte-j-hero img, .gpte-j-hero .gpte-image-placeholder { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5 !important; object-fit: cover; }
.gpte-j-hero figcaption { position: absolute; top: .5rem; right: .75rem; margin: 0; padding: .1rem .5rem; background: var(--wp--preset--color--base); }
.gpte-j-hero__item { position: relative; }
.gpte-j-slip { position: relative; box-sizing: border-box; margin: -3.5rem var(--gpte-j-gutter) 0; padding: 1.5rem 1.5rem 1.25rem; background: var(--wp--preset--color--base); }
.gpte-j-slip > * { margin-block: 0; }
.gpte-j-slip .wp-block-post-title, .gpte-j-slip h2 { margin-block: .35rem .5rem; font-weight: 500; letter-spacing: .08em; line-height: 1.6; }
.gpte-j-slip .wp-block-post-title a { text-decoration: none; }
.gpte-j-slip .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: .2em; }
.gpte-j-slip .gpte-card-excerpt { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.gpte-j-slip .gpte-card-excerpt p { margin: 0 0 .35rem; }
@media (min-width: 782px) {
	.gpte-j-hero img, .gpte-j-hero .gpte-image-placeholder { aspect-ratio: auto !important; height: clamp(26rem, 50vw, 44rem); }
	.gpte-j-slip { width: 32rem; max-width: calc(100% - 2 * var(--gpte-j-gutter)); margin: -9rem 0 0 var(--gpte-j-inset); padding: 2.25rem 2.5rem 1.75rem; }
}

/* 目的別の入口：大きさと高さを変える */
.gpte-j-purpose { gap: var(--wp--preset--spacing--60); align-items: flex-start !important; margin-bottom: 0; }
.gpte-j-purpose figure { margin: 0 0 .75rem; }
.gpte-j-purpose img { display: block; width: 100%; height: auto; object-fit: cover; }
.gpte-j-purpose .wp-block-column:nth-child(1) img { aspect-ratio: 4 / 5; }
.gpte-j-purpose .wp-block-column:nth-child(2) img { aspect-ratio: 1 / 1; }
.gpte-j-purpose .wp-block-column:nth-child(3) img { aspect-ratio: 3 / 4; }
.gpte-j-purpose :where(h2, h3) { margin: 0 0 .25rem; font-weight: 500; letter-spacing: .08em; line-height: 1.6; }
.gpte-j-purpose :where(h2, h3) a { color: inherit; text-decoration: none; }
.gpte-j-purpose :where(h2, h3) a:hover { text-decoration: underline; text-underline-offset: .2em; }
.gpte-j-purpose p { margin: 0; }
.gpte-photo-note { margin: var(--wp--preset--spacing--40) 0 0; }
@media (min-width: 782px) {
	.gpte-j-purpose .wp-block-column:nth-child(2) { margin-top: 6rem; }
	.gpte-j-purpose .wp-block-column:nth-child(3) { margin-top: 2rem; }
}
/* タブレットは3列のまま小さく、スマホは横に送る。縦長の写真が画面を占め続けないようにする。 */
@media (min-width: 600px) and (max-width: 781px) {
	.gpte-j-purpose { flex-wrap: nowrap !important; gap: var(--wp--preset--spacing--40); }
	.gpte-j-purpose .wp-block-column { flex: 1 1 0 !important; width: auto !important; }
	.gpte-j-purpose .wp-block-column:nth-child(2) { margin-top: 2.5rem; }
}
@media (max-width: 599px) {
	.gpte-j-purpose { flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: .75rem; scrollbar-width: thin; }
	.gpte-j-purpose .wp-block-column { flex: 0 0 72% !important; width: auto !important; scroll-snap-align: start; }
	.gpte-j-purpose .wp-block-column img { aspect-ratio: 4 / 5 !important; }
}

/* 読みもの：比率と幅を位置ごとに変える */
.gpte-j-mosaic .wp-block-post-template { display: grid; gap: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60); margin: 0; padding: 0; list-style: none; }
.gpte-j-story .wp-block-post-featured-image { margin: 0 0 .75rem; }
.gpte-j-story .wp-block-post-featured-image img, .gpte-j-story .gpte-image-placeholder { display: block; width: 100%; height: auto; aspect-ratio: var(--gpte-r, 3 / 2) !important; object-fit: cover; }
.gpte-j-story .wp-block-post-title { margin-block: .15rem .3rem; font-weight: 500; letter-spacing: .06em; line-height: 1.65; }
.gpte-j-story .wp-block-post-title a { text-decoration: none; }
.gpte-j-story .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: .2em; }
.gpte-j-story .gpte-card-excerpt { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.gpte-j-story .gpte-card-excerpt p { margin: 0 0 .25rem; }
.gpte-j-mosaic li:nth-child(5n+2) { --gpte-r: 4 / 5; }
.gpte-j-mosaic li:nth-child(5n+3) { --gpte-r: 3 / 4; }
.gpte-j-mosaic li:nth-child(5n+4) { --gpte-r: 1 / 1; }
.gpte-j-mosaic li:nth-child(5n+5) { --gpte-r: 3 / 4; }
@media (min-width: 782px) {
	.gpte-j-mosaic .wp-block-post-template { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.gpte-j-mosaic li { grid-column: span 4; }
	.gpte-j-mosaic li:nth-child(5n+1) { grid-column: span 7; }
	.gpte-j-mosaic li:nth-child(5n+2) { grid-column: span 5; }
	.gpte-j-mosaic li:nth-child(5n+4) { margin-top: 5rem; }
	.gpte-j-mosaic li:nth-child(5n+3):nth-last-child(2),
	.gpte-j-mosaic li:nth-child(5n+4):last-child { grid-column: span 6; margin-top: 0; --gpte-r: 3 / 2; }
	/* 件数ごとの組み：2件は同じ大きさ、3件は大きな1件の右に2件を重ねる */
	.gpte-j-mosaic .wp-block-post-template:has(> li:nth-child(2):last-child) > li { grid-column: span 6; --gpte-r: 3 / 2; }
	.gpte-j-mosaic .wp-block-post-template:has(> li:nth-child(3):last-child) > li:first-child { grid-column: 1 / span 7; grid-row: 1 / span 2; --gpte-r: 4 / 5; }
	.gpte-j-mosaic .wp-block-post-template:has(> li:nth-child(3):last-child) > li:not(:first-child) { grid-column: 8 / span 5; margin-top: 0; --gpte-r: 3 / 2; }
	/* 端数の1枚（1件、6件目、8件目など）は、写真と文字を横に組んだ1段にして、1枚だけ浮かせない */
	.gpte-j-mosaic li:nth-child(5n+1):last-child,
	.gpte-j-mosaic li:nth-child(5n+3):last-child:not(:nth-child(3)) { grid-column: 1 / -1; margin-top: 0; --gpte-r: 3 / 2; }
	.gpte-j-mosaic li:nth-child(5n+1):last-child > .gpte-j-story:not(:has(> .gpte-noimage)),
	.gpte-j-mosaic li:nth-child(5n+3):last-child:not(:nth-child(3)) > .gpte-j-story:not(:has(> .gpte-noimage)) { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--wp--preset--spacing--60); align-items: center; }
	.gpte-j-mosaic li:nth-child(5n+1):last-child .wp-block-post-featured-image,
	.gpte-j-mosaic li:nth-child(5n+3):last-child .wp-block-post-featured-image { margin: 0; }
}
/* タブレットは2列（先頭だけ全幅）、スマホは先頭だけ大きく、残りは小さな写真の行にする */
@media (min-width: 600px) and (max-width: 781px) {
	.gpte-j-mosaic .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gpte-j-mosaic li { --gpte-r: 4 / 5; }
	.gpte-j-mosaic li:first-child { grid-column: 1 / -1; --gpte-r: 3 / 2; }
}
@media (max-width: 599px) {
	.gpte-j-mosaic .wp-block-post-template { gap: var(--wp--preset--spacing--50); }
	.gpte-j-mosaic li:not(:first-child) { --gpte-r: 1 / 1; }
	.gpte-j-mosaic li:not(:first-child) > .gpte-j-story:not(:has(> .gpte-noimage)) { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .9rem; align-items: start; }
	.gpte-j-mosaic li:not(:first-child) .wp-block-post-featured-image { margin: 0; }
	.gpte-j-mosaic li:not(:first-child) .gpte-card-excerpt { display: none; }
	.gpte-j-mosaic li:not(:first-child) .wp-block-post-title { font-size: var(--wp--preset--font-size--medium) !important; }
}

/* 全幅の特集：題は縦組み */
.gpte-j-feature { margin-top: var(--wp--preset--spacing--80); }
.gpte-j-feature.is-page { margin-top: 0; }
.gpte-j-feature figure { margin: 0; }
.gpte-j-feature img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.gpte-j-vertical { margin: 0; writing-mode: vertical-rl; font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: .2em; line-height: 1.7; }
.gpte-j-feature__panel { position: relative; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 1.5rem; box-sizing: border-box; margin: -4rem var(--gpte-j-gutter) 0; padding: 1.75rem 1.5rem; }
.gpte-j-feature__text { flex: 1 1 auto; align-self: flex-end; min-width: 0; }
.gpte-j-feature__text p:last-of-type { margin-bottom: .5rem; }
@media (min-width: 782px) {
	.gpte-j-feature { display: grid; }
	.gpte-j-feature > * { grid-area: 1 / 1; }
	.gpte-j-feature img { aspect-ratio: auto; height: clamp(34rem, 52vw, 48rem); }
	.gpte-j-feature__panel { justify-self: end; align-self: center; width: 31rem; margin: 3rem var(--gpte-j-inset) 3rem 0; padding: 2.75rem 2.5rem; gap: 2.25rem; }
}

/* 連載：写真の間に置く静かな文字の面 */
.gpte-j-series > * { margin-block: 0; }
.gpte-j-series__row { display: grid; gap: .25rem var(--wp--preset--spacing--60); padding-block: var(--wp--preset--spacing--50); border-top: 1px solid var(--wp--preset--color--line); }
.gpte-j-series__row:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.gpte-j-series__row h3 { margin: 0; font-weight: 500; letter-spacing: .12em; }
.gpte-j-series__row h3 a { color: inherit; text-decoration: none; }
.gpte-j-series__row h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.gpte-j-series__row p { margin: 0; }
@media (min-width: 782px) {
	.gpte-j-series__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; }
}

/* ツールと写真 */
.gpte-j-toolrow { gap: var(--wp--preset--spacing--70); margin-bottom: 0; }
.gpte-j-toolrow figure { margin: 0; }
.gpte-j-toolrow img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.gpte-j-toolrow h2 { margin-top: 0; font-weight: 500; letter-spacing: .1em; }
.gpte-j-toolrow .gpte-tool { background: transparent; border: 0; padding: 0; }

/* 下層の見出し */
.gpte-j-pagehead figure { margin: 0; }
.gpte-j-pagehead img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gpte-j-pagehead figcaption { margin: .35rem var(--gpte-j-gutter) 0; text-align: right; }
.gpte-j-pagehead__text { box-sizing: border-box; max-width: 44rem; margin: var(--wp--preset--spacing--60) auto 0; padding-inline: var(--gpte-j-gutter); text-align: center; }
.gpte-j-pagehead__text p { text-wrap: pretty; }
.gpte-j-pagehead + .gpte-site-guide { margin-top: var(--wp--preset--spacing--70); }
.gpte-j-pagehead__text h1 { margin: 0 0 .75rem; font-weight: 500; letter-spacing: .16em; line-height: 1.6; }
.gpte-j-pagehead__text .wp-block-search { max-width: 28rem; margin: var(--wp--preset--spacing--40) auto; }
.gpte-j-pagehead__text .wp-block-buttons { justify-content: center; }
@media (min-width: 782px) {
	.gpte-j-pagehead img { aspect-ratio: auto; height: clamp(20rem, 34vw, 30rem); }
}

/* 特集の場面：写真と文章を見開きのように組む */
.gpte-j-scene { gap: var(--wp--preset--spacing--70); margin-bottom: var(--wp--preset--spacing--80); }
.gpte-j-scene:last-child { margin-bottom: 0; }
.gpte-j-scene figure { margin: 0; }
.gpte-j-scene img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gpte-j-scene.is-tall img { aspect-ratio: 4 / 5; }
.gpte-j-scene h2 { margin-top: 0; font-weight: 500; letter-spacing: .1em; }
@media (min-width: 782px) {
	.gpte-j-scene .wp-block-column:first-child { flex: 0 0 58%; }
	.gpte-j-scene.is-tall .wp-block-column:first-child { flex-basis: 42%; }
	.gpte-j-scene.is-reverse { flex-direction: row-reverse; }
}

/* 一覧 */
.gpte-j-listhead { max-width: 40rem; margin-inline: auto; text-align: center; padding-top: var(--wp--preset--spacing--50); }
.gpte-j-listhead h1 { font-weight: 500; letter-spacing: .16em; }
.gpte-j-listhead p { margin-inline: auto; }
.gpte-j-listhead .wp-block-search { margin-inline: auto; }

/* 記事：全幅写真、中央の題、1段の本文 */
.gpte-j-article { --gpte-j-measure: 41rem; }
.gpte-j-article > .gpte-article-image { max-width: none; margin: 0 calc(var(--wp--style--root--padding-right) * -1) 0 calc(var(--wp--style--root--padding-left) * -1); }
.gpte-j-article > .gpte-article-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gpte-j-article > .gpte-crumbs { max-width: var(--gpte-j-measure); margin-inline: auto; text-align: center; }
.gpte-j-article .wp-block-breadcrumbs ol { justify-content: center; }
.gpte-j-article > .gpte-article-head { max-width: var(--gpte-j-measure); margin-inline: auto; padding-top: var(--wp--preset--spacing--40); text-align: center; }
.gpte-j-article .gpte-article-head > * { max-width: none; }
.gpte-j-article .gpte-article-head h1 { font-weight: 500; letter-spacing: .08em; line-height: 1.65; }
.gpte-j-article .gpte-article-meta, .gpte-j-article .gpte-article-editor { justify-content: center; border: 0; }
.gpte-j-article > .gpte-article-grid { display: block; max-width: var(--gpte-j-measure); margin-inline: auto; }
.gpte-j-article .wp-block-gpte-article-toc { position: static; max-height: none; margin-bottom: var(--wp--preset--spacing--60); padding: 1rem 1.5rem; border: 0; background: var(--wp--preset--color--surface); }
.gpte-j-article > .gpte-article-end { max-width: var(--gpte-j-measure); margin-inline: auto; }
.gpte-j-article .gpte-article-end > * { max-width: none; }
@media (min-width: 782px) {
	.gpte-j-article > .gpte-article-image img { aspect-ratio: auto; height: clamp(24rem, 46vw, 42rem); }
}
.gpte-j-portrait .wp-block-post-featured-image img, .gpte-j-portrait .gpte-image-placeholder { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5 !important; object-fit: cover; }
.gpte-j-related h2 { font-weight: 500; letter-spacing: .14em; text-align: center; }
/* 関連記事が2件以下のときは共通の組み（style.css の .gpte-related）で列を詰める。縦長は横長に替えて高さを抑える。 */
.gpte-j-related .wp-block-post-template:has(> li:nth-child(2):last-child) .gpte-j-portrait img,
.gpte-j-related .wp-block-post-template:has(> li:only-child) .gpte-j-portrait img { aspect-ratio: 3 / 2 !important; }
@media (max-width: 599px) {
	.gpte-j-portrait .wp-block-post-featured-image img, .gpte-j-portrait .gpte-image-placeholder { aspect-ratio: 1 / 1 !important; }
}

/* フッター */
.gpte-j-footer { text-align: center; }
.gpte-j-footer .wp-block-site-title { font-size: var(--wp--preset--font-size--x-large); font-weight: 500; letter-spacing: .24em; }
.gpte-j-footer .wp-block-site-tagline { margin-top: .25rem; color: var(--wp--preset--color--muted); }
.gpte-j-footer .gpte-footer-nav { margin-top: var(--wp--preset--spacing--50); font-size: var(--wp--preset--font-size--small); }
.gpte-j-footer .gpte-footer-nav .wp-block-navigation__container { gap: 0 2rem; }
.gpte-j-footer__topics { margin-top: var(--wp--preset--spacing--60); font-size: var(--wp--preset--font-size--medium); letter-spacing: .12em; }
.gpte-j-footer__topics .wp-block-navigation__container { gap: .25rem 2.5rem; }
.gpte-j-footer__links { margin-top: var(--wp--preset--spacing--40); font-size: var(--wp--preset--font-size--small); }
.gpte-j-footer__links .wp-block-navigation__container { gap: .25rem 2rem; }
.gpte-j-footer .gpte-footer-legal { text-align: center; }
.gpte-j-footer .gpte-operator-note { margin-inline: auto; color: var(--wp--preset--color--muted); }
.gpte-j-footer .gpte-footer-bottom { justify-content: center !important; color: var(--wp--preset--color--muted); }

/* 特集の紙片：縦組みの題は広い画面だけ。狭い画面では横組みにして、文の上に空きを作らない */
@media (max-width: 781px) {
	.gpte-j-feature__panel { flex-direction: column; gap: .75rem; }
	.gpte-j-feature__panel .gpte-j-vertical { writing-mode: horizontal-tb; font-size: var(--wp--preset--font-size--x-large); letter-spacing: .08em; line-height: 1.6; }
	.gpte-j-feature__text { align-self: stretch; }
}

/* 画像のない記事：一覧の行の高さまで紙面を伸ばし、下に空きを残さない */
.gpte-j-mosaic li > .gpte-j-story:has(> .gpte-noimage) { box-sizing: border-box; height: 100%; }

/* 画像のない記事：地色の紙面に題を大きく置く */
.gpte-j-story:has(> .gpte-noimage) { display: flex !important; flex-direction: column; justify-content: flex-end; min-height: 14rem; padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) !important; border-top: 0 !important; background: var(--wp--preset--color--surface); }
.gpte-j-story:has(> .gpte-noimage) .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large) !important; }
.gpte-j-hero__item:has(> .gpte-noimage) { padding: var(--wp--preset--spacing--70) var(--gpte-j-gutter) !important; border-top: 0 !important; background: var(--wp--preset--color--surface); }
.gpte-j-hero__item:has(> .gpte-noimage) .gpte-j-slip { margin: 0 auto; }
@media (max-width: 599px) {
	.gpte-j-mosaic li:not(:first-child) > .gpte-j-story:has(> .gpte-noimage) { min-height: 0; padding: var(--wp--preset--spacing--40) !important; }
	.gpte-j-mosaic li:not(:first-child) > .gpte-j-story:has(> .gpte-noimage) .wp-block-post-title { font-size: var(--wp--preset--font-size--medium) !important; }
}

/* ==== V5：リモデルルーム（おうち時間をポップに。趣味特集だけ紺の帯） ==== */
/* 飾りの色はパレット（マーカー・飾りの色1〜3）から取る。サイトエディターの配色で変えられる。 */
:root { --gpte-j-blush: var(--wp--preset--color--tint-1); --gpte-j-mint: var(--wp--preset--color--tint-2); --gpte-j-butter: var(--wp--preset--color--tint-3); --gpte-j-sun: var(--wp--preset--color--highlight); }

/* マスキングテープのラベル：少し傾け、端をぎざぎざに切る */
.gpte-j-tape { display: inline-block; margin: 0 0 .65rem !important; padding: .3rem 1.15rem; background: var(--gpte-j-butter); color: var(--wp--preset--color--ink); font-weight: 800; letter-spacing: .08em; line-height: 1.5; transform: rotate(-2deg); clip-path: polygon(0 8%, 5px 0, calc(100% - 5px) 6%, 100% 0, calc(100% - 3px) 50%, 100% 100%, calc(100% - 6px) 94%, 6px 100%, 0 92%, 4px 50%); }
.gpte-j-tape.is-dark { background: var(--gpte-j-sun); }
.gpte-j-purpose .wp-block-column:nth-child(1) .gpte-j-tape { background: var(--gpte-j-blush); }
.gpte-j-purpose .wp-block-column:nth-child(2) .gpte-j-tape { background: var(--gpte-j-mint); transform: rotate(1.5deg); }

/* 導入：大きな丸い見出しと、ひとことの案内 */
.gpte-j-intro { padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50); }
.gpte-j-intro h1 { color: var(--wp--preset--color--ink); font-weight: 800; letter-spacing: .03em; line-height: 1.45; }
.gpte-j-intro__lead { max-width: 42rem; margin: .8rem auto 0 !important; line-height: 1.9; }
.gpte-j-masthead .wp-block-site-title a { text-decoration: none; }
.gpte-j-masthead .wp-block-site-title, .gpte-j-footer .wp-block-site-title { font-weight: 800; letter-spacing: .08em; }
.gpte-j-slip { border-radius: 20px; }
.gpte-j-slip .wp-block-post-title, .gpte-j-slip h2, .gpte-j-story .wp-block-post-title { font-weight: 800; letter-spacing: .02em; }
.gpte-j-article .gpte-article-head h1 { font-weight: 800; letter-spacing: .03em; line-height: 1.5; }

/* 見出し：下に黄色の丸い線 */
.gpte-j-head h2 { font-weight: 800; letter-spacing: .04em; }
.gpte-j-head h2::after { content: ""; display: block; width: 3rem; height: 6px; margin: .6rem auto 0; border-radius: 6px; background: var(--gpte-j-sun); }

/* 分類は丸いラベル */
.gpte-j-slip .wp-block-post-terms a, .gpte-j-story .wp-block-post-terms a { display: inline-block; padding: .1rem .7rem; border-radius: 999px; background: var(--gpte-j-blush); color: var(--wp--preset--color--accent); font-weight: 700; text-decoration: none; }

/* 写真：記事の写真は角を丸く。「どれから楽しむ？」は白い縁で、写真を貼ったように */
.gpte-j-story .wp-block-post-featured-image img, .gpte-j-scene img, .gpte-j-toolrow img { border-radius: 16px; }
.gpte-j-purpose.is-pop figure { padding: .6rem .6rem 1.3rem; border-radius: 6px; background: var(--wp--preset--color--card); box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--wp--preset--color--ink) 50%, transparent); }
.gpte-j-purpose.is-pop .wp-block-column:nth-child(1) figure { transform: rotate(-1.5deg); }
.gpte-j-purpose.is-pop .wp-block-column:nth-child(3) figure { transform: rotate(1.2deg); }
.gpte-j-purpose.is-pop img { border-radius: 4px; }
.gpte-j-purpose :where(h2, h3) { font-weight: 800; letter-spacing: .02em; }
.gpte-j-purpose :where(h2, h3) a::after { content: " →"; color: var(--wp--preset--color--accent); }

/* 特集ページの題：横書きの大きな題 */
.gpte-j-vertical { writing-mode: horizontal-tb; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: .03em; line-height: 1.5; }
.gpte-j-feature__panel { flex-direction: column; justify-content: flex-start; gap: 1rem; border-radius: 22px; }
.gpte-j-feature__text { align-self: stretch; }

/* 旦那さんの趣味特集：紺の帯（本文の色）に、黄色のテープと写真のカード */
.gpte-j-hobbyband { margin-top: var(--wp--preset--spacing--80); }
.gpte-j-hobbyband__inner > * { margin-block: 0; }
.gpte-j-hobbyband__head { gap: var(--wp--preset--spacing--60); margin-bottom: var(--wp--preset--spacing--60) !important; }
.gpte-j-hobbyband__head figure { margin: 0; }
.gpte-j-hobbyband__head img { display: block; width: 100%; height: auto; border-radius: 18px; }
.gpte-j-hobbyband h2 { margin: .35rem 0 .8rem; color: var(--wp--preset--color--base); line-height: 1.45; }
.gpte-j-hobbyband .wp-element-button { background: var(--gpte-j-sun); color: var(--wp--preset--color--ink); }
.gpte-j-hobbyband__note { margin-top: var(--wp--preset--spacing--40) !important; }
.gpte-j-hobbies { display: grid; gap: var(--wp--preset--spacing--40); }
.gpte-j-hobbies > * { margin: 0; }
.gpte-j-hobby { padding: .6rem .6rem 1.1rem; border-radius: 18px; background: var(--wp--preset--color--card); color: var(--wp--preset--color--ink); }
.gpte-j-hobby > * { margin: 0; }
.gpte-j-hobby figure { margin: 0 0 .75rem; }
.gpte-j-hobby img { display: block; width: 100%; height: auto; border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; }
.gpte-j-hobby h3 { margin: 0 .35rem .3rem; font-weight: 800; line-height: 1.5; }
.gpte-j-hobby p { margin: 0 .35rem; color: var(--wp--preset--color--muted); line-height: 1.75; }
.gpte-j-hobbypage .gpte-j-hobby { border: 1px solid var(--wp--preset--color--line); }
.gpte-j-hobbypage .gpte-j-hobbies { margin-top: var(--wp--preset--spacing--50); }
@media (min-width: 600px) {
	.gpte-j-hobbies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.gpte-j-hobbies { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* グッズえらびのポイント：3色のカードと丸い番号 */
.gpte-j-goods { display: grid; gap: var(--wp--preset--spacing--40); margin-top: var(--wp--preset--spacing--50); }
.gpte-j-goods > * { margin: 0; }
.gpte-j-goods__item { padding: 1.5rem 1.4rem 1.3rem; border-radius: 22px; background: var(--gpte-j-blush); }
.gpte-j-goods__item:nth-child(2) { background: var(--gpte-j-mint); }
.gpte-j-goods__item:nth-child(3) { background: var(--gpte-j-butter); }
.gpte-j-goods__item > * { margin: 0; }
.gpte-j-goods__num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--wp--preset--color--card); color: var(--wp--preset--color--accent); font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gpte-j-goods__item h3 { margin: .7rem 0 .4rem; font-weight: 800; }
.gpte-j-goods__item p:last-child { line-height: 1.8; }
.gpte-j-goods__foot { display: grid; gap: .75rem; justify-items: center; margin-top: var(--wp--preset--spacing--50); text-align: center; }
.gpte-j-goods__foot > * { margin: 0; }
@media (min-width: 782px) {
	.gpte-j-goods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* テーマで読む：白いカードに色の丸 */
.gpte-j-series { display: grid; gap: var(--wp--preset--spacing--30); }
.gpte-j-series__row { padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50); border: 0 !important; border-radius: 18px; background: var(--wp--preset--color--card); box-shadow: 0 1px 0 var(--wp--preset--color--line); }
.gpte-j-series__row h3 { font-weight: 800; letter-spacing: .03em; }
.gpte-j-series__row h3 a::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .5em; border-radius: 50%; background: var(--gpte-j-blush); vertical-align: .05em; }
.gpte-j-series__row:nth-child(2) h3 a::before { background: var(--gpte-j-mint); }
.gpte-j-series__row:nth-child(3) h3 a::before { background: var(--gpte-j-sun); }
.gpte-j-series__row h3 a::after { content: " →"; color: var(--wp--preset--color--accent); }

/* 特集ページの場面の見出し */
.gpte-j-scene h2 { font-weight: 800; letter-spacing: .03em; }

/* ヘッダー：上端に強調色の線 */
.gpte-j-header { border-top: 5px solid var(--wp--preset--color--accent); }

/* ツールの帯 */
.gpte-j-toolrow .gpte-tool { border-radius: 20px; }

@media (prefers-reduced-motion: reduce) {
	.gpte-j-tape, .gpte-j-purpose.is-pop figure { transform: none; }
}
