/* 記事（投稿）の見た目（0.4.0）：元デザイン Codex 04-blog-article に合わせる。CSS で並べ替え・飾りだけ（HTML の順番・h タグは SWELL のまま）
   2案：body の gr-head-a / -b（記事の頭）・gr-h2c-a / -b（見出しのキャラ）。キャラの絵は --gr-char（functions で記事ごとに入る） */
.gr-site.single-post { --gr-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }

/* ========== 記事の頭（A＝元デザインどおり：カテゴリのオレンジの札 → 太字の黒い題 → カレンダーの印＋日付の横並び） ========== */
.single-post .l-mainContent__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; }
.single-post .l-mainContent__inner > * { grid-column: 1 / -1; order: 10; min-width: 0; }
.single-post .l-mainContent__inner > .gw-prTop { order: 0; }
.single-post .p-articleMetas.-top { display: contents; }
.single-post .p-articleMetas.-top > * { grid-column: 1 / -1; order: 3; }
.single-post .p-articleMetas.-top > .c-categoryList { order: 1; grid-column: 1; align-self: center; margin: 4px 0 10px; }
.single-post .p-articleMetas.-top > .c-prNotation { order: 1; grid-column: 2; align-self: center; justify-self: start; margin: 4px 0 10px; }
.single-post .l-mainContent__inner > .p-articleHead { order: 2; margin: 0 0 14px; }
.single-post .p-articleMetas.-top > .c-postTimes { order: 3; margin: 0 0 22px; }
.single-post .l-mainContent__inner > .p-articleThumb { order: 4; }

/* カテゴリ：オレンジの札＋斜めの短冊 */
.single-post .p-articleMetas.-top .c-categoryList { display: flex; flex-wrap: wrap; gap: 6px; }
.single-post .p-articleMetas.-top .c-categoryList__link { position: relative; display: inline-block; margin: 0 0 0 14px; padding: 3px 14px 3px 12px; border-radius: 0; background: var(--gr-orange); color: #fff; font-size: 14px; font-weight: 800; line-height: 1.5; letter-spacing: .04em;
	clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.single-post .p-articleMetas.-top .c-categoryList__link::before { content: none; }
.single-post .p-articleMetas.-top .c-categoryList::before { content: ""; width: 8px; height: 24px; margin-right: -12px; align-self: center; background: var(--gr-orange); transform: skewX(-14deg); }
/* 題 */
.single-post .c-postTitle { display: block; }
.single-post .c-postTitle__ttl { margin: 0; font-size: clamp(24px, 2.9vw, 40px); font-weight: 900; line-height: 1.4; letter-spacing: .01em; color: #161616; }
.single-post .c-postTitle__date { display: none; } /* SWELL の大きな日付（aria-hidden の飾り）は下の日付と重なるので隠す */
/* 日付：カレンダーの印＋横並び・右に一言 */
.single-post .p-articleMetas.-top .c-postTimes { display: flex; align-items: center; gap: 18px; font-family: var(--gr-en); font-size: 15px; color: #666; }
.single-post .p-articleMetas.-top .c-postTimes time { display: inline-flex; align-items: center; gap: 8px; }
.single-post .p-articleMetas.-top .c-postTimes time::before { content: ""; font-family: inherit; width: 18px; height: 18px; margin: 0; background: #666; -webkit-mask: var(--gr-calendar) center / contain no-repeat; mask: var(--gr-calendar) center / contain no-repeat; }
.single-post .p-articleMetas.-top .c-postTimes::after { content: "バイクは、もっと面白くなる。"; margin-left: auto; padding-left: 18px; font-family: "Noto Sans JP", sans-serif; font-size: 13px; color: #555;
	background: linear-gradient(var(--gr-orange), var(--gr-orange)) 0 50% / 3px 16px no-repeat; }
.single-post .p-articleThumb { margin-bottom: 2.4em; }
@media (max-width: 767px) {
	.single-post .p-articleMetas.-top .c-postTimes::after { content: none; }
	.single-post .p-articleMetas.-top .c-postTimes { font-size: 13px; margin-bottom: 16px; }
	.single-post .p-articleMetas.-top .c-categoryList__link { font-size: 12px; }
}

/* B＝題を少し傾けて、オレンジの下線（トップの見出しの雰囲気） */
.gr-head-b.single-post .c-postTitle__ttl { display: inline; font-style: italic; transform: none; text-decoration: underline 7px var(--gr-orange); text-underline-offset: 9px; text-decoration-skip-ink: none; line-height: 1.6; }
.gr-head-b.single-post .p-articleHead { transform: rotate(-1.6deg) skewX(-4deg); transform-origin: left center; margin: 6px 0 22px; }

/* ========== 本文の見出し ========== */
/* h2：オレンジの斜めの短冊（0.3.0 から）＋右にキャラ（A・B 共通） */
.gr-site.single-post .post_content h2:not(.gr-tip h2) { padding-right: 58px; min-height: 52px; display: flex; align-items: center; }
.gr-site.single-post .post_content h2:not(.gr-tip h2)::after { content: ""; position: absolute; display: block; right: 0; bottom: -2px; width: 46px; height: 46px; background: var(--gr-char) center bottom / contain no-repeat; border: 0; transform: none; opacity: 1; }
/* h3：B だけキャラ（約 30px） */
.gr-h2c-b.single-post .post_content h3 { position: relative; padding-right: 40px; }
.gr-h2c-b.single-post .post_content h3::after { content: ""; position: absolute; display: block; left: auto; right: 0; bottom: 2px; width: 30px; height: 30px; background: var(--gr-char) center bottom / contain no-repeat; border: 0; transform: none; opacity: 1; }
@media (max-width: 767px) {
	.gr-site.single-post .post_content h2:not(.gr-tip h2) { padding-right: 44px; min-height: 40px; }
	.gr-site.single-post .post_content h2:not(.gr-tip h2)::after { width: 36px; height: 36px; }
	.gr-h2c-b.single-post .post_content h3 { padding-right: 34px; }
	.gr-h2c-b.single-post .post_content h3::after { width: 26px; height: 26px; }
}

/* ========== まとめ＝GORILLA's TIP!（左にキャラ・オレンジの斜めの札・大きな一言＝h2・説明・右に薄い歯車・オレンジの細い枠） ========== */
.gr-tip { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: end; gap: 0 22px; margin: 3.2em 0 2.4em; padding: 0 28px 0 0; border: 2px solid var(--gr-orange); border-radius: 6px; background: #fff; overflow: visible; }
.gr-tip::after { content: ""; position: absolute; right: 20px; top: 50%; width: 88px; height: 88px; margin-top: -44px; pointer-events: none; opacity: .13;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23666' d='M43 4h14l2 12a35 35 0 0 1 9 4l10-7 10 10-7 10a35 35 0 0 1 4 9l12 2v14l-12 2a35 35 0 0 1-4 9l7 10-10 10-10-7a35 35 0 0 1-9 4l-2 12H43l-2-12a35 35 0 0 1-9-4l-10 7-10-10 7-10a35 35 0 0 1-4-9L3 57V43l12-2a35 35 0 0 1 4-9l-7-10 10-10 10 7a35 35 0 0 1 9-4zM50 32a18 18 0 1 0 0 36 18 18 0 1 0 0-36z'/%3E%3C/svg%3E") center / contain no-repeat; }
.gr-tip__char { align-self: end; margin: -34px 0 0 6px; }
.gr-tip__char img { display: block; width: 100%; height: auto; }
.gr-tip__body { position: relative; z-index: 1; padding: 22px 96px 22px 0; }
.gr-tip__label { display: inline-block; margin: 0 0 6px; padding: 3px 16px 3px 12px; background: var(--gr-orange); color: #fff; font-family: var(--gr-en); font-style: italic; font-weight: 800; font-size: 15px; letter-spacing: .04em; line-height: 1.4; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.gr-site.single-post .post_content .gr-tip h2 { margin: 0 0 .5em; padding: 0; min-height: 0; display: block; font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; line-height: 1.35; color: #161616; background: none; border: 0; }
.gr-site.single-post .post_content .gr-tip h2::before, .gr-site.single-post .post_content .gr-tip h2::after { content: none; }
.gr-tip__body > :last-child { margin-bottom: 0; }
.gr-tip__body p { font-size: .95em; line-height: 1.9; color: #333; }
@media (max-width: 767px) {
	.gr-tip { grid-template-columns: 96px minmax(0, 1fr); gap: 0 10px; padding: 0 14px 0 0; margin-top: 2.6em; }
	.gr-tip__char { margin: -22px 0 0 4px; align-self: start; padding-top: 0; }
	.gr-tip__body { padding: 16px 0 16px; }
	.gr-tip::after { width: 60px; height: 60px; right: 8px; top: 18px; margin-top: 0; }
	.gr-tip__label { font-size: 13px; }
}

/* ========== 記事の下の見出し（この記事を書いた人・関連記事）：オレンジの短冊＋右へ伸びる線 ========== */
.gr-site.single-post .l-articleBottom__title.c-secTitle { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 0 0 0 20px; background: none; color: #161616; border: 0; font-size: 22px; font-weight: 900; text-align: left; }
.gr-site.single-post .l-articleBottom__title.c-secTitle::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 24px; margin-top: -12px; background: var(--gr-orange); transform: skewX(-14deg); border: 0; opacity: 1; }
.gr-site.single-post .l-articleBottom__title.c-secTitle::after { content: ""; position: static; flex: 1; height: 1px; background: var(--gr-orange); opacity: .7; border: 0; transform: none; }

/* ========== この記事を書いた人（TIP と同じ形） ========== */
.gr-profile { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 26px; padding: 26px 30px 26px 26px; border: 2px solid var(--gr-orange); border-radius: 6px; background: #fff; }
.gr-profile::after { content: ""; position: absolute; right: 22px; top: 22px; width: 80px; height: 80px; opacity: .1; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23666' d='M43 4h14l2 12a35 35 0 0 1 9 4l10-7 10 10-7 10a35 35 0 0 1 4 9l12 2v14l-12 2a35 35 0 0 1-4 9l7 10-10 10-10-7a35 35 0 0 1-9 4l-2 12H43l-2-12a35 35 0 0 1-9-4l-10 7-10-10 7-10a35 35 0 0 1-4-9L3 57V43l12-2a35 35 0 0 1 4-9l-7-10 10-10 10 7a35 35 0 0 1 9-4zM50 32a18 18 0 1 0 0 36 18 18 0 1 0 0-36z'/%3E%3C/svg%3E") center / contain no-repeat; }
.gr-profile__face { align-self: start; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; background: #f3efe9; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--gr-orange); }
.gr-profile__face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.gr-profile--photo .gr-profile__face img { object-position: center; }
.gr-profile__body { position: relative; z-index: 1; min-width: 0; }
.gr-profile__label { display: inline-block; margin: 0 0 8px; padding: 3px 16px 3px 12px; background: var(--gr-orange); color: #fff; font-family: var(--gr-en); font-style: italic; font-weight: 800; font-size: 14px; letter-spacing: .04em; line-height: 1.4; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.gr-profile__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 4px; }
.gr-profile__name a { font-size: 24px; font-weight: 900; color: #161616; text-decoration: none; }
.gr-profile__name a:hover { color: var(--gr-orange); }
.gr-profile__pos { font-size: 13px; font-weight: 700; color: #666; }
.gr-profile__catch { margin: 0 0 8px; font-size: 20px; font-weight: 900; color: #161616; line-height: 1.5; }
.gr-profile__desc { margin: 0 0 14px; font-size: 14px; line-height: 1.9; color: #333; }
.gr-profile__sns { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.gr-profile__sns li { margin: 0; padding: 0; }
.gr-profile__sns li::before { content: none !important; }
.gr-profile__sns a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid #d5d5d5; border-radius: 999px; color: #222; font-size: 13px; font-weight: 700; text-decoration: none; background: #fff; }
.gr-profile__sns a:hover { border-color: var(--gr-orange); color: var(--gr-orange); }
.gr-profile__sns svg { flex: none; }
.gr-profile__btns { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.gr-profile__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: #161616; color: #fff !important; font-size: 14px; font-weight: 800; text-decoration: none; }
.gr-profile__btn--base { background: var(--gr-orange); }
.gr-profile__btn:hover { opacity: .85; }
@media (max-width: 767px) {
	.gr-profile { grid-template-columns: 84px minmax(0, 1fr); gap: 0 14px; padding: 18px 16px; }
	.gr-profile__face { width: 84px; height: 84px; border-width: 3px; }
	.gr-profile__body { display: contents; }
	.gr-profile__label, .gr-profile__name { grid-column: 2; }
	.gr-profile__label { align-self: end; justify-self: start; }
	.gr-profile__face { grid-row: 1 / span 2; }
	.gr-profile__catch, .gr-profile__desc, .gr-profile__sns, .gr-profile__btns { grid-column: 1 / -1; position: relative; z-index: 1; }
	.gr-profile__catch { margin-top: 12px; font-size: 18px; }
	.gr-profile__name a { font-size: 20px; }
	.gr-profile::after { width: 56px; height: 56px; right: 10px; top: 10px; }
	.gr-profile__btn { flex: 1 1 100%; }
}

/* ========== 関連記事（写真＋左下にカテゴリのオレンジの札＋題＋日付） ========== */
.single-post .p-relatedPosts.-type-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; margin: 0; }
.single-post .p-relatedPosts .p-postList__item { width: auto; margin: 0; padding: 0; }
.single-post .p-relatedPosts .p-postList__link { display: block; color: inherit; text-decoration: none; }
.single-post .p-relatedPosts .p-postList__thumb { position: relative; margin: 0 0 10px; border-radius: 3px; overflow: hidden; box-shadow: none; }
.single-post .p-relatedPosts .c-postThumb__figure { margin: 0; aspect-ratio: 16 / 9; padding: 0; }
.single-post .p-relatedPosts .c-postThumb__figure::before { content: none; }
.single-post .p-relatedPosts .c-postThumb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.single-post .p-relatedPosts .p-postList__link:hover .c-postThumb__img { transform: scale(1.04); }
.single-post .p-relatedPosts .gr-relcat { position: absolute; left: 0; bottom: 0; top: auto; right: auto; z-index: 2; display: inline-block; padding: 3px 14px 3px 10px; background: var(--gr-orange); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.5; border-radius: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.single-post .p-relatedPosts .gr-relcat::before { content: none; }
.single-post .p-relatedPosts .p-postList__body { padding: 0; }
.single-post .p-relatedPosts .p-postList__title { margin: 0 0 6px; font-size: 15px; font-weight: 800; line-height: 1.55; color: #161616; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.single-post .p-relatedPosts .p-postList__meta { margin: 0; }
.single-post .p-relatedPosts .c-postTimes { font-family: var(--gr-en); font-size: 12px; color: #888; }
.single-post .p-relatedPosts .c-postTimes time { display: inline-flex; align-items: center; gap: 6px; }
.single-post .p-relatedPosts .c-postTimes time::before { content: ""; font-family: inherit; width: 14px; height: 14px; margin: 0; background: #888; -webkit-mask: var(--gr-calendar) center / contain no-repeat; mask: var(--gr-calendar) center / contain no-repeat; }
@media (max-width: 767px) {
	.single-post .p-relatedPosts.-type-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.single-post .p-relatedPosts .p-postList__title { font-size: 13px; }
}
.single-post .l-mainContent__inner > .p-articleThumb { margin: 0 0 1.6em; }
.single-post .l-mainContent__inner > .post_content { margin-top: 0; }
@media (max-width: 767px) { .gr-profile::after { top: auto; bottom: 120px; } }
/* スマホのまとめ：上の段＝キャラ＋札＋一言、下の段＝本文を枠いっぱいに */
@media (max-width: 767px) {
	.gr-tip { grid-template-columns: 92px minmax(0, 1fr); align-items: start; padding: 0 14px 16px 0; }
	.gr-tip__body { display: contents; }
	.gr-tip__char { grid-column: 1; grid-row: 1 / span 2; margin: -22px 0 0 4px; }
	.gr-tip__label { grid-column: 2; grid-row: 1; justify-self: start; align-self: end; margin-top: 16px; position: relative; z-index: 1; }
	.gr-site.single-post .post_content .gr-tip h2 { grid-column: 2; grid-row: 2; position: relative; z-index: 1; font-size: 20px; }
	.gr-tip__body > :not(.gr-tip__label):not(h2) { grid-column: 1 / -1; margin-left: 14px; position: relative; z-index: 1; }
}

/* ===== 0.4.13：🦎の総点検の直し（記事まわり） ===== */
/* 8 まとめ（TIP）：薄い歯車は壊れたアイコンに見えた → 外す。キャラは左上から（左上が空いて左下の隅だけだった） */
.gr-tip::after, .gr-profile::after { content: none !important; }
.gr-tip { align-items: start; padding-bottom: 0; }
.gr-tip__char { align-self: start; margin: 18px 0 0 10px; position: sticky; top: 16px; }
.gr-tip__body { padding: 22px 28px 24px 0; }
/* 5 本文のボタン（SWELL のボタン・アフィリのリンク）：サイトの共通ボタンと同じオレンジの丸・幅をそろえる・ことばの途中で折り返さない（リンク先・rel は変えない） */
.post_content .swell-block-button { text-align: center; }
.post_content .swell-block-button__link, .post_content .swell-block-button.blue_ .swell-block-button__link, .post_content .swell-block-button.red_ .swell-block-button__link {
	display: inline-flex !important; align-items: center; justify-content: center; gap: .5em; box-sizing: border-box; width: min(100%, 520px); min-height: 52px; padding: .7em 2em !important;
	border: 2px solid var(--gr-orange) !important; border-radius: 999px !important; background: var(--gr-orange) !important; color: #fff !important;
	font-weight: 700; font-size: 16px; line-height: 1.45; text-align: center; text-wrap: balance; word-break: auto-phrase; box-shadow: 0 6px 16px rgba(255,89,0,.28) !important; transition: background .2s, transform .15s; }
.post_content .swell-block-button__link:hover { background: var(--gr-orange2) !important; border-color: var(--gr-orange2) !important; transform: translateY(-1px); }
.post_content .swell-block-button__link::after { content: "→"; font-weight: 700; }
.post_content .swell-block-button__link span { display: inline; }
/* 10 ボタンの上の「＼ 題 ／」：小さく長い一行 → 読める大きさで、ことばの切れ目で折り返す */
.post_content p.has-text-align-center.u-mb-0:has(+ .swell-block-button) { max-width: 560px; margin-left: auto; margin-right: auto; font-weight: 700; color: #333; text-wrap: balance; word-break: auto-phrase; line-height: 1.6; }
.post_content p.has-text-align-center.u-mb-0:has(+ .swell-block-button) .swl-fz { font-size: 15px; }
/* 9 比較表：1列目が狭く1〜2字で折り返していた・左上の空のセルが暗い箱 */
.post_content table th:first-child, .post_content table td:first-child { min-width: 6.5em; word-break: auto-phrase; }
.post_content table thead th:first-child:empty, .post_content table tr:first-child th:first-child:empty { background: transparent !important; border-color: transparent !important; }
/* 6 右の目次（追従）：箱の下で切れて続きがあると分からなかった → 細いスクロールバーを見せ、下にフェード */
.w-fixSide { scrollbar-width: thin; scrollbar-color: var(--gr-orange) rgba(0,0,0,.06); }
.w-fixSide::-webkit-scrollbar { width: 6px; } .w-fixSide::-webkit-scrollbar-thumb { background: var(--gr-orange); border-radius: 3px; }
.w-fixSide .widget_swell_index { position: relative; }
.w-fixSide { max-height: calc(100vh - 24px) !important; overflow-y: auto; -webkit-mask: linear-gradient(#000 calc(100% - 28px), rgba(0,0,0,.25)); mask: linear-gradient(#000 calc(100% - 28px), rgba(0,0,0,.25)); padding-bottom: 28px; }
/* 7 サイドバーの人気記事：順位の印がサムネのカテゴリの札に重なっていた → 札を右へ */
.-w-ranking .c-postThumb__cat, .p-postList.-w-ranking .p-postList__cat { left: auto !important; right: 0 !important; }
/* 9 の続き：スマホでは表を横にスクロール（列を押しつぶして1〜2字で折り返さない） */
@media (max-width: 600px) {
	.post_content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
	.post_content table th, .post_content table td { min-width: 8.5em; }
	.post_content table th:first-child, .post_content table td:first-child { min-width: 5.5em; }
}
/* 7 の続き：順位の印はサムネの外（左上の角の外側）へ。サムネの絵の中の札にかぶらない */
.p-postList.-w-ranking .p-postList__item { position: relative; }
.p-postList.-w-ranking .p-postList__item::before { top: -10px !important; left: -10px !important; z-index: 3; width: 30px !important; height: 30px !important; line-height: 30px !important; border-radius: 50%; background: var(--gr-orange) !important; color: #fff !important; font-weight: 800; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
