/*
Theme Name: RisTalk
Theme URI: https://ristalk.com/
Description: RisTalk サイト用の子テーマ。TwentyTwentyFive をベースにデザイン微調整（font-size / spacing / button サイズなど）を上書きする。
Template: twentytwentyfive
Author: JOC-NETWORK inc.
Version: 0.8.6
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: ristalk
*/

/* ここに RisTalk 独自の CSS 微調整を追記していく */

/* ------------------------------------------------------------------
   ホームのヒーローバナー（旧 risme-banner-1.png を HTML テキスト化）
   背景画像は themes/ristalk/assets/images/ に配置。
   ------------------------------------------------------------------ */
.ristalk-hero-banner{
	display:block;
	position:relative;
	overflow:hidden;
	border-radius:20px;
	max-width:770px;
	margin:0 auto;
	min-height:280px;
	background-image:url('/wp-content/themes/ristalk/assets/images/ristalk-banner-plain.png');
	background-size:cover;
	background-position:left center;
	color:#fff;
	text-decoration:none;
	font-family:'M PLUS Rounded 1c', sans-serif;
	transition:transform .2s ease;
}
.ristalk-hero-banner:hover{ transform:translateY(-2px); }

.ristalk-hero-banner__ribbon{
	position:absolute;
	top:28px;
	right:-50px;
	width:200px;
	background:#ff8a0c;
	color:#fff;
	text-align:center;
	padding:.4em 0;
	transform:rotate(45deg);
	transform-origin:center center;
	font-weight:bold;
	font-size:.95rem;
	letter-spacing:.05em;
	pointer-events:none;
	z-index:2;
	box-shadow:0 2px 6px rgba(0,0,0,.2);
}

.ristalk-hero-banner__inner{
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:.15em;
	height:100%;
	padding:1.5em 1.5em 1.5em 32%;
	text-align:center;
}
.ristalk-hero-banner__eyebrow{
	color:#ff8a0c;
	font-size:1.4rem;
	margin:0;
	font-weight:bold;
	line-height:1.2;
	letter-spacing:.02em;
}
.ristalk-hero-banner__title{
	color:#fff;
	font-size:2.2rem;
	margin:.1em 0 .25em;
	font-weight:bold;
	line-height:1.15;
	letter-spacing:.02em;
}
.ristalk-hero-banner__desc{
	color:#fff;
	font-size:1.3rem;
	margin:0 0 .5em;
	line-height:1.4;
}

.ristalk-hero-banner__bottom{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:.8em;
	margin-top:.4em;
	width:100%;
	flex-wrap:wrap;
}
.ristalk-hero-banner__cta{
	display:inline-flex;
	align-items:center;
	gap:.5em;
	color:#ff8a0c;
	font-size:1.25rem;
	font-weight:bold;
	margin:0;
	line-height:1.2;
	white-space:nowrap;
}
.ristalk-hero-banner__arrow{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:1.6em;
	height:1.6em;
	background:#ff8a0c;
	color:#fff;
	border-radius:50%;
	font-size:.9em;
	line-height:1;
	font-weight:bold;
}

.ristalk-hero-banner__logo{
	width:150px;
	max-width:28%;
	min-width:110px;
	height:auto;
	flex-shrink:0;
}

@media (max-width:782px){
	.ristalk-hero-banner{ min-height:auto; max-width:100%; }
	.ristalk-hero-banner__inner{ padding:2em 1.5em; gap:.3em; }
	.ristalk-hero-banner__title{ font-size:1.6rem; }
	.ristalk-hero-banner__eyebrow{ font-size:1.1rem; }
	.ristalk-hero-banner__desc{ font-size:1rem; }
	.ristalk-hero-banner__cta{ font-size:1rem; }
	.ristalk-hero-banner__bottom{ flex-direction:column; gap:.6em; }
	.ristalk-hero-banner__logo{ width:130px; max-width:50%; }
	.ristalk-hero-banner__ribbon{ right:-70px; width:200px; font-size:.85rem; top:22px; }
}

/* ------------------------------------------------------------------
   フッターのロゴ位置調整
   タグライン <p> には padding-left:spacing--30 が inline で入っているが
   同じコンテナ内の .wp-block-site-logo には padding が無く、
   ロゴだけ左に寄って見えるので揃える。
   ------------------------------------------------------------------ */
footer.wp-block-template-part .wp-block-site-logo{
	padding-left:var(--wp--preset--spacing--30);
}

/* ============================================================
   トップページ 各セクション微調整 (2026-10-20)
   WordPress が自動生成する wp-container-core-group-is-layout-xxxxxxxx /
   wp-container-content-xxxxxxxx クラスを足がかりにスコープを絞っている。
   インライン style を上書きするため !important を利用。
   ============================================================ */

/* --- Why RisTalk? 3カード: 常時横並び + 約 3/4 に縮小 --- */
.wp-container-core-group-is-layout-912fff43{
	flex-wrap:nowrap !important;
}
.wp-container-content-84caec02{
	padding-top:calc(var(--wp--preset--spacing--50) * 0.75) !important;
	padding-bottom:calc(var(--wp--preset--spacing--50) * 0.75) !important;
	border-radius:75px !important;
	flex:1 1 0 !important;
	min-width:0 !important;
}
.wp-container-content-84caec02 > h2{
	font-size:1.6rem !important;
}
.wp-container-content-84caec02 p{
	font-size:0.95rem !important;
}

/* --- SOS for emergencies: 3タイルを中央寄せ (最小構成) --- */
.wp-container-core-columns-is-layout-7788c425{
	max-width:1100px !important;
	margin-left:auto !important;
	margin-right:auto !important;
	justify-content:center !important;
}

/* --- SOS タイトル行 (h2 + 「スマホの異常検知機能」) を他セクション
   タイトルと同じ constrained content-size max-width に収めて左端 X を揃える --- */
.wp-container-core-group-is-layout-66042007{
	max-width:var(--wp--style--global--content-size, 640px) !important;
	margin-left:auto !important;
	margin-right:auto !important;
}

/* --- トップページ NEWS セクション: 見出し 2/3、日付/タイトル 80% (2026-10-21)
   元: h1 clamp(2.629rem..5rem) / date=medium(1rem) / title=large(1.38rem)
   後: h1 × 2/3。date × 0.8 = 0.8rem、title × 0.8 = 1.104rem               --- */
.wp-container-core-columns-is-layout-75c7b20d h1.wp-block-heading{
	font-size:clamp(1.753rem, 1.753rem + ((1vw - 0.2rem) * 2.479), 3.333rem) !important;
}
.wp-container-core-columns-is-layout-75c7b20d .wp-block-post-date.has-medium-font-size{
	font-size:0.8rem !important;
}
.wp-container-core-columns-is-layout-75c7b20d .wp-block-post-title.has-large-font-size{
	font-size:1.104rem !important;
}

/* --- 「RisTalkをもっと知る」4タイル: ボタンを下寄せ揃え (2026-10-21)
   各タイルの content 高さが違うので flex column + margin-top:auto でボタンを揃え。
   padding-bottom はブロック既定の spacing--40 のまま維持し灰色余白を残す。     --- */
.wp-container-core-columns-is-layout-84f855d9 .wp-block-column{
	display:flex !important;
	flex-direction:column !important;
}
.wp-container-core-columns-is-layout-84f855d9 .wp-block-column .wp-block-buttons{
	margin-top:auto !important;
}

/* --- アルバムプレビュー (page-id-2560): TranslatePress 言語切替フローターを非表示
   /album_preview/ ・ /en/album_preview/ 等全言語 URL で body に .page-id-2560 が付くので
   1 ルールで共通スコープ化。(2026-10-22)                                 --- */
.page-id-2560 .trp-floating-switcher{
	display:none !important;
}

/* ============================================================
   投稿ページ カテゴリーヘッダー帯 (2026-10-21)
   ショートコード [rst_cat_band] (plugins/ris-biz-core) が出力する
   .ristalk-cat-band をスタイル。カテゴリー別の色は BEM modifier
   (.ristalk-cat-band--{slug}) で切替。CSS 疑似要素と wp:post-terms に
   頼らず素の DOM 構造にすることで WP flex 子要素の auto margin や
   TranslatePress の Block Content Restriction による非表示を回避する。
   ============================================================ */
.ristalk-cat-band{
	color:#fff;
	width:100%;
	background:#999;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:0;
	min-height:200px;
	box-sizing:border-box;
}
.ristalk-cat-band__inner{
	display:flex;
	align-items:center;
	gap:1em;
	max-width:100%;
	padding:1.5rem 1rem;
	margin:0;
}
.ristalk-cat-band__icon{
	font-size:3rem;
	line-height:1;
	flex-shrink:0;
}
.ristalk-cat-band__text{
	display:flex;
	flex-direction:column;
	justify-content:center;
	text-align:left;
}
.ristalk-cat-band__name{
	font-size:2.5rem;
	font-weight:bold;
	line-height:1.15;
	margin:0;
	font-family:var(--wp--preset--font-family--m-plus-rounded-1-c, inherit);
}
.ristalk-cat-band__sub{
	font-size:1rem;
	margin-top:.4em;
	opacity:.95;
	letter-spacing:.08em;
	line-height:1.4;
}

/* ============================================================
   関連投稿リスト [rst_cat_posts] (2026-10-21)
   single 投稿下部 + 4 ランディング固定ページで共通利用。
   ============================================================ */
.rst-cat-posts__heading{
	text-align:center;
	margin:0 0 1em;
	font-size:1.4rem;
	font-weight:700;
	letter-spacing:.06em;
	font-family:var(--wp--preset--font-family--m-plus-rounded-1-c, inherit);
}
.rst-cat-posts__heading a{
	color:inherit;
	text-decoration:none;
	border-bottom:2px solid currentColor;
	padding-bottom:.1em;
	transition:opacity .15s ease;
}
.rst-cat-posts__heading a:hover{
	opacity:.7;
}
.rst-cat-posts{
	list-style:none;
	margin:0;
	padding:0;
	font-family:var(--wp--preset--font-family--m-plus-rounded-1-c, inherit);
}
.rst-cat-posts__item{
	border-bottom:1px solid var(--wp--preset--color--accent-6, #ddd);
}
.rst-cat-posts__item:first-child{
	border-top:1px solid var(--wp--preset--color--accent-6, #ddd);
}
.rst-cat-posts__link{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:1em;
	padding:var(--wp--preset--spacing--30, 1rem) 0;
	text-decoration:none;
	color:inherit;
	transition:background .15s ease;
}
.rst-cat-posts__link:hover{
	background:rgba(0,0,0,.03);
}
.rst-cat-posts__title{
	font-size:1.2rem;
	font-weight:700;
	flex:1 1 auto;
}
.rst-cat-posts__date{
	font-size:.9rem;
	color:#777;
	flex-shrink:0;
}
.rst-cat-posts__empty{
	color:#777;
	text-align:center;
	padding:2em 0;
	font-family:var(--wp--preset--font-family--m-plus-rounded-1-c, inherit);
}
@media (max-width:600px){
	.rst-cat-posts__link{ flex-direction:column; align-items:flex-start; gap:.25em; }
	.rst-cat-posts__title{ font-size:1rem; }
}

/* --- カード風 (archive ページ用) --------------------------------- */
.rst-cat-posts--card{
	display:grid;
	grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
	gap:1.5rem;
}
.rst-cat-posts--card .rst-cat-posts__item{
	border:none;
	background:#f3f3f3;
	border-radius:20px;
	overflow:hidden;
	transition:transform .15s ease, box-shadow .15s ease;
}
.rst-cat-posts--card .rst-cat-posts__item:first-child{
	border-top:none;
}
.rst-cat-posts--card .rst-cat-posts__item:hover{
	transform:translateY(-2px);
	box-shadow:0 6px 20px rgba(0,0,0,.08);
}
.rst-cat-posts--card .rst-cat-posts__link{
	flex-direction:column;
	align-items:flex-start;
	justify-content:flex-start;
	gap:.6em;
	padding:1.4rem;
	height:100%;
}
.rst-cat-posts--card .rst-cat-posts__link:hover{
	background:transparent;
}
.rst-cat-posts--card .rst-cat-posts__title{
	font-size:1.15rem;
	line-height:1.4;
	flex:0 0 auto;
}
.rst-cat-posts--card .rst-cat-posts__excerpt{
	font-size:.9rem;
	color:#555;
	line-height:1.55;
	flex:1 1 auto;
}
.rst-cat-posts--card .rst-cat-posts__date{
	font-size:.8rem;
	color:#777;
	margin-top:auto;
}

.ristalk-cat-band--news{ background:#ff8a0c; }
.ristalk-cat-band--about-ristalk{ background:#4a90e2; }
.ristalk-cat-band--use-cases{ background:#4caf50; }
.ristalk-cat-band--tips{ background:#fbc02d; }
.ristalk-cat-band--safety{ background:#7b61c6; }

/* ============================================================
   「RisTalkについて」カテゴリ記事の本文デザイン (2026-10-26)
   投稿詳細 (.entry-content) に対して、章立て記事を読みやすく整形。
   冒頭リード・章見出し・終章・関連リンクピル・CTA ボタンを提供。
   スコープ: body.category-about-ristalk .entry-content
   ============================================================ */
body.category-about-ristalk .entry-content{
	color:#333;
	line-height:1.9;
}
/* 冒頭リード文 (最初の段落) */
body.category-about-ristalk .entry-content > p:first-of-type{
	text-align:center;
	color:#888;
	font-size:0.95rem;
	letter-spacing:0.08em;
	margin:1em auto 3em;
	padding:1.2em 1em;
	max-width:36em;
	border-top:1px solid #eee;
	border-bottom:1px solid #eee;
}
/* 第X章 見出し */
body.category-about-ristalk .entry-content h2{
	margin:3em 0 1em;
	padding:0.3em 0 0.3em 0.9em;
	font-size:1.5rem;
	line-height:1.5;
	font-weight:700;
	color:#222;
	border-left:6px solid #ff8a0c;
	letter-spacing:0.02em;
}
/* 終章 (最後の h2) — カテゴリ帯と同じブルー */
body.category-about-ristalk .entry-content h2:last-of-type{
	border-left-color:#4a90e2;
	color:#4a90e2;
	margin-top:4em;
	padding:0.5em 0.9em;
	background:linear-gradient(90deg,rgba(74,144,226,0.08),transparent);
}
body.category-about-ristalk .entry-content p{
	margin:0 0 1em;
}
body.category-about-ristalk .entry-content ul{
	margin:1.2em 0;
	padding-left:1.4em;
}
body.category-about-ristalk .entry-content ul li{
	margin:0.5em 0;
	line-height:1.85;
}
body.category-about-ristalk .entry-content ul li::marker{
	color:#ff8a0c;
	font-size:1.2em;
}
/* 関連リンク (→ 使い方 / スマートSOS / プライバシー保護 等) をピル化 */
body.category-about-ristalk .entry-content a[href*="ristalk.com/howto"],
body.category-about-ristalk .entry-content a[href*="ristalk.com/safety"],
body.category-about-ristalk .entry-content a[href*="ristalk.com/privacy"],
body.category-about-ristalk .entry-content a[href*="ristalk.com/naming"],
body.category-about-ristalk .entry-content a[href*="ristalk.com/story"],
body.category-about-ristalk .entry-content a[href*="2026/10/21/ristalk"]{
	display:inline-block;
	margin:0.4em 0;
	padding:0.5em 1.3em;
	background:#fff8f0;
	border:1px solid #ff8a0c;
	border-radius:999px;
	color:#ff8a0c;
	text-decoration:none;
	font-weight:700;
	font-size:0.95rem;
	transition:background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
body.category-about-ristalk .entry-content a[href*="ristalk.com/howto"]:hover,
body.category-about-ristalk .entry-content a[href*="ristalk.com/safety"]:hover,
body.category-about-ristalk .entry-content a[href*="ristalk.com/privacy"]:hover,
body.category-about-ristalk .entry-content a[href*="ristalk.com/naming"]:hover,
body.category-about-ristalk .entry-content a[href*="ristalk.com/story"]:hover,
body.category-about-ristalk .entry-content a[href*="2026/10/21/ristalk"]:hover{
	background:#ff8a0c;
	color:#fff;
	transform:translateY(-1px);
}
/* 「今すぐダウンロード」 — 最後の段落のリンクを CTA 化 */
body.category-about-ristalk .entry-content > p:last-of-type a{
	display:inline-block;
	margin:1.5em 0 0;
	padding:0.9em 2.4em;
	background:linear-gradient(135deg,#ff8a0c,#ff6b00);
	color:#fff !important;
	text-decoration:none;
	border-radius:999px;
	font-weight:700;
	font-size:1.1rem;
	box-shadow:0 6px 16px rgba(255,138,12,0.35);
	border:none;
}
body.category-about-ristalk .entry-content > p:last-of-type a:hover{
	transform:translateY(-2px);
	box-shadow:0 8px 20px rgba(255,138,12,0.45);
}
@media (max-width:600px){
	body.category-about-ristalk .entry-content h2{
		font-size:1.25rem;
		padding-left:0.7em;
		border-left-width:4px;
	}
	body.category-about-ristalk .entry-content{
		font-size:0.95rem;
		line-height:1.85;
	}
}

/* ============================================================
   「安心して使える理由」カテゴリ記事の本文デザイン (2026-10-27)
   about-ristalk と同系の章立て整形を safety 用に展開。
   アクセント色はカテゴリ帯の紫 #7b61c6 に揃える。
   スコープ: body.category-safety .entry-content
   ============================================================ */
body.category-safety .entry-content{
	color:#333;
	line-height:1.9;
}
body.category-safety .entry-content > p:first-of-type{
	text-align:center;
	color:#888;
	font-size:0.95rem;
	letter-spacing:0.08em;
	margin:1em auto 3em;
	padding:1.2em 1em;
	max-width:36em;
	border-top:1px solid #eee;
	border-bottom:1px solid #eee;
}
body.category-safety .entry-content h2{
	margin:3em 0 1em;
	padding:0.3em 0 0.3em 0.9em;
	font-size:1.5rem;
	line-height:1.5;
	font-weight:700;
	color:#222;
	border-left:6px solid #7b61c6;
	letter-spacing:0.02em;
}
body.category-safety .entry-content h2:last-of-type{
	border-left-color:#7b61c6;
	color:#7b61c6;
	margin-top:4em;
	padding:0.5em 0.9em;
	background:linear-gradient(90deg,rgba(123,97,198,0.08),transparent);
}
body.category-safety .entry-content p{
	margin:0 0 1em;
}
body.category-safety .entry-content ul{
	margin:1.2em 0;
	padding-left:1.4em;
}
body.category-safety .entry-content ul li{
	margin:0.5em 0;
	line-height:1.85;
}
body.category-safety .entry-content ul li::marker{
	color:#7b61c6;
	font-size:1.2em;
}
body.category-safety .entry-content a[href*="ristalk.com/howto"],
body.category-safety .entry-content a[href*="ristalk.com/privacy"],
body.category-safety .entry-content a[href*="ristalk.com/safety"],
body.category-safety .entry-content a[href*="ristalk.com/story"],
body.category-safety .entry-content a[href*="ristalk.com/why-we-built-ristalk"]{
	display:inline-block;
	margin:0.4em 0;
	padding:0.5em 1.3em;
	background:#f5f1ff;
	border:1px solid #7b61c6;
	border-radius:999px;
	color:#7b61c6;
	text-decoration:none;
	font-weight:700;
	font-size:0.95rem;
	transition:background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
body.category-safety .entry-content a[href*="ristalk.com/howto"]:hover,
body.category-safety .entry-content a[href*="ristalk.com/privacy"]:hover,
body.category-safety .entry-content a[href*="ristalk.com/safety"]:hover,
body.category-safety .entry-content a[href*="ristalk.com/story"]:hover,
body.category-safety .entry-content a[href*="ristalk.com/why-we-built-ristalk"]:hover{
	background:#7b61c6;
	color:#fff;
	transform:translateY(-1px);
}
body.category-safety .entry-content > p:last-of-type a{
	display:inline-block;
	margin:1.5em 0 0;
	padding:0.9em 2.4em;
	background:linear-gradient(135deg,#ff8a0c,#ff6b00);
	color:#fff !important;
	text-decoration:none;
	border-radius:999px;
	font-weight:700;
	font-size:1.1rem;
	box-shadow:0 6px 16px rgba(255,138,12,0.35);
	border:none;
}
body.category-safety .entry-content > p:last-of-type a:hover{
	transform:translateY(-2px);
	box-shadow:0 8px 20px rgba(255,138,12,0.45);
}
@media (max-width:600px){
	body.category-safety .entry-content h2{
		font-size:1.25rem;
		padding-left:0.7em;
		border-left-width:4px;
	}
	body.category-safety .entry-content{
		font-size:0.95rem;
		line-height:1.85;
	}
}

@media (max-width:600px){
	.ristalk-cat-band__icon{ font-size:2.2rem; }
	.ristalk-cat-band__name{ font-size:2rem; }
	.ristalk-cat-band__sub{ font-size:.85rem; }
}

/* ------------------------------------------------------------------
   ダウンロードページ (page-id-683):
   iOS / Android ボタンを PC では横並び中央、モバイルでは縦積みに
   ------------------------------------------------------------------ */
body.page-id-683 .wp-block-buttons:has(a[href*="apps.apple.com"]),
body.page-id-683 .wp-block-buttons:has(a[href*="play.google.com"]){
	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
	justify-content:center;
	align-items:stretch;
	column-gap:var(--wp--preset--spacing--40);
	row-gap:var(--wp--preset--spacing--30);
}
/* ダウンロードボタン: インライン style を剥がして CSS で完全制御 */
body.page-id-683 .wp-block-button__link[href*="apps.apple.com"],
body.page-id-683 .wp-block-button__link[href*="play.google.com"]{
	display:inline-flex !important;
	align-items:center !important;
	justify-content:center !important;
	gap:0.5em !important;
	border:3px solid #bdbdbd !important;
	border-radius:20px !important;
	padding:0.9em 1.6em !important;
	background-color:#ffffff !important;
	color:#1f1f1f !important;
	box-shadow:0 2px 6px rgba(0,0,0,0.08) !important;
	height:auto !important;
	line-height:1.3 !important;
	min-width:280px !important;
	min-height:68px !important;
	box-sizing:border-box !important;
}
body.page-id-683 .wp-block-button__link[href*="apps.apple.com"] img,
body.page-id-683 .wp-block-button__link[href*="play.google.com"] img{
	display:inline-block !important;
	vertical-align:middle !important;
	width:36px !important;
	height:36px !important;
	object-fit:contain !important;
}
/* ヒーローの RisTalk ロゴ画像を 1/2 に縮小 */
body.page-id-683 figure.wp-block-image img.wp-image-2757{
	max-width:400px;
	width:100%;
	height:auto;
}
body.page-id-683 figure.wp-block-image:has(img.wp-image-2757){
	flex-basis:400px !important;
	max-width:400px;
}
@media (max-width:781px){
	body.page-id-683 .wp-block-buttons:has(a[href*="apps.apple.com"]),
	body.page-id-683 .wp-block-buttons:has(a[href*="play.google.com"]){
		flex-direction:column;
		align-items:stretch;
	}
}

/* ------------------------------------------------------------------
   /sos/ ページ (page-id-33): 新コンテンツ用スタイル
   ------------------------------------------------------------------ */
/* 旧コンテンツ対応 (blockquote 縦線除去など、残しておいても害なし) */
body.page-id-33 .wp-block-quote{
	border-width:0 !important;
	padding-left:0 !important;
	padding-right:0 !important;
	font-weight:400;
}

/* --- 新セクション共通 (/sos/, /howto/) --- */
body.page-id-33 .ristalk-sos-section,
body.page-id-400 .ristalk-sos-section,
body.page-id-2303 .ristalk-sos-section{
	padding-left:clamp(1rem, 4vw, 2.5rem);
	padding-right:clamp(1rem, 4vw, 2.5rem);
}

/* 見出し: オレンジの左ボーダー + 絵文字を少し大きく */
body.page-id-33 .ristalk-sos-heading,
body.page-id-400 .ristalk-sos-heading,
body.page-id-2303 .ristalk-sos-heading{
	border-left:5px solid #ff8a0c;
	padding:0.6em 0 0.6em 0.8em;
	margin:0 0 1.2em 0;
	line-height:1.4;
	font-weight:700;
}

/* リード段落（セクション先頭の説明文） */
body.page-id-33 .ristalk-sos-lead,
body.page-id-400 .ristalk-sos-lead,
body.page-id-2303 .ristalk-sos-lead{
	font-size:clamp(1rem, 1.1vw + 0.6rem, 1.15rem);
	line-height:1.9;
	margin:0 0 1.2em 0;
}

/* リスト: デフォルトの中黒を外し、カスタムマーカー */
body.page-id-33 .ristalk-sos-list,
body.page-id-400 .ristalk-sos-list,
body.page-id-2303 .ristalk-sos-list{
	list-style:none;
	padding-left:0;
	margin:0 0 1.4em 0;
}
body.page-id-33 .ristalk-sos-list li,
body.page-id-400 .ristalk-sos-list li,
body.page-id-2303 .ristalk-sos-list li{
	position:relative;
	padding:0.5em 0 0.5em 1.4em;
	font-size:clamp(0.95rem, 0.8vw + 0.7rem, 1.08rem);
	line-height:1.85;
}
body.page-id-33 .ristalk-sos-list li::before,
body.page-id-400 .ristalk-sos-list li::before,
body.page-id-2303 .ristalk-sos-list li::before{
	content:"";
	position:absolute;
	left:0;
	top:1.05em;
	width:0.6em;
	height:0.6em;
	background:#ff8a0c;
	border-radius:50%;
}

/* 利用シーン・補足メモ */
body.page-id-33 .ristalk-sos-usecase,
body.page-id-400 .ristalk-sos-usecase,
body.page-id-2303 .ristalk-sos-usecase{
	margin-top:1.4em;
	padding:0.9em 1.1em;
	background:#fff6ec;
	border-radius:10px;
	font-size:0.98rem;
	line-height:1.8;
}
body.page-id-33 .ristalk-sos-note,
body.page-id-400 .ristalk-sos-note,
body.page-id-2303 .ristalk-sos-note{
	margin-top:1em;
	padding:0.8em 1.1em;
	border-left:3px solid #d9d9d9;
	background:#fafafa;
	font-size:0.95rem;
	line-height:1.85;
	color:#555;
}

/* 2 カラム (text + image) */
body.page-id-33 .ristalk-sos-cols,
body.page-id-400 .ristalk-sos-cols,
body.page-id-2303 .ristalk-sos-cols{
	gap:clamp(1.2rem, 3vw, 2.5rem) !important;
	align-items:center;
}
body.page-id-33 .ristalk-sos-cols .wp-block-image img,
body.page-id-400 .ristalk-sos-cols .wp-block-image img,
body.page-id-2303 .ristalk-sos-cols .wp-block-image img{
	border-radius:14px;
	box-shadow:0 6px 20px rgba(0,0,0,0.08);
	width:100%;
	height:auto;
	display:block;
}

/* 狭い viewport: columns を縦積みに */
@media (max-width:900px){
	body.page-id-33 .wp-block-columns.ristalk-sos-cols,
	body.page-id-400 .wp-block-columns.ristalk-sos-cols{
		flex-wrap:wrap;
	}
	body.page-id-33 .ristalk-sos-cols .wp-block-column,
	body.page-id-400 .ristalk-sos-cols .wp-block-column,
	body.page-id-2303 .ristalk-sos-cols .wp-block-column{
		flex-basis:100% !important;
	}
	body.page-id-33 .ristalk-sos-heading,
	body.page-id-400 .ristalk-sos-heading,
	body.page-id-2303 .ristalk-sos-heading{
		font-size:1.35rem;
	}
}

/* ================================================================
   /kokuban/ (page-id-945) 新コンテンツ用スタイル
   ================================================================ */

body.page-id-945 .ristalk-kokuban-section{
	padding-left:clamp(1rem, 4vw, 2.5rem);
	padding-right:clamp(1rem, 4vw, 2.5rem);
	padding-top:clamp(2.5rem, 5vw, 4.5rem);
	padding-bottom:clamp(2.5rem, 5vw, 4.5rem);
}
body.page-id-945 .ristalk-kokuban-section-alt{
	background:#fff8f0;
}

body.page-id-945 .ristalk-kokuban-heading{
	font-size:clamp(1.4rem, 2.2vw + 0.8rem, 2.2rem) !important;
	line-height:1.4;
	font-weight:700;
	margin:0 auto 1.4em !important;
	max-width:900px;
}
body.page-id-945 .ristalk-kokuban-heading::before{
	content:"";
	display:block;
	width:60px;
	height:4px;
	background:#ff8a0c;
	border-radius:2px;
	margin:0 auto 0.8em;
}
body.page-id-945 .ristalk-kokuban-showcase .ristalk-kokuban-heading{
	text-align:left;
	border-left:5px solid #ff8a0c;
	padding:0.3em 0 0.3em 0.8em;
	margin:0 0 0.8em !important;
}
body.page-id-945 .ristalk-kokuban-showcase .ristalk-kokuban-heading::before{
	display:none;
}

/* 3ステップカード */
body.page-id-945 .ristalk-kokuban-steps{
	gap:clamp(1rem, 2vw, 2rem) !important;
	max-width:1000px;
	margin-left:auto !important;
	margin-right:auto !important;
}
body.page-id-945 .ristalk-kokuban-step{
	background:#fff;
	border:2px dashed #ff8a0c;
	border-radius:24px;
	padding:1.8em 1.2em 1.6em !important;
	text-align:center;
	box-shadow:0 4px 14px rgba(255, 138, 12, 0.08);
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:flex-start;
}
body.page-id-945 .ristalk-kokuban-step-num{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:3rem;
	height:3rem;
	border-radius:50%;
	background:#ff8a0c;
	color:#fff;
	font-weight:700;
	font-size:1.5rem;
	line-height:1;
	margin:0 0 0.8em !important;
}
body.page-id-945 .ristalk-kokuban-step h3{
	font-size:1.1rem !important;
	line-height:1.5;
	margin:0 0 0.4em !important;
}
body.page-id-945 .ristalk-kokuban-step p:not(.ristalk-kokuban-step-num){
	font-size:0.9rem;
	color:#777;
	margin:0 !important;
}

/* 特徴リスト */
body.page-id-945 .ristalk-kokuban-features{
	max-width:780px;
	margin:0 auto !important;
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:1rem 1.2rem;
}
body.page-id-945 .ristalk-kokuban-feature{
	padding:1.1em 1.2em 1em !important;
	background:#fff;
	border-radius:14px;
	box-shadow:0 2px 8px rgba(0,0,0,0.06);
}
body.page-id-945 .ristalk-kokuban-feature h3{
	font-size:1.05rem !important;
	line-height:1.4;
	margin:0 0 0.4em !important;
	display:flex;
	align-items:center;
	gap:0.5em;
}
body.page-id-945 .ristalk-kokuban-feature-icon{
	font-size:1.3em;
	line-height:1;
}
body.page-id-945 .ristalk-kokuban-feature p{
	font-size:0.9rem;
	line-height:1.7;
	margin:0 !important;
	color:#444;
}

/* ショーケース */
body.page-id-945 .ristalk-kokuban-showcase{
	padding-left:clamp(1rem, 4vw, 2.5rem);
	padding-right:clamp(1rem, 4vw, 2.5rem);
	padding-top:clamp(2.5rem, 5vw, 4.5rem);
	padding-bottom:clamp(2.5rem, 5vw, 4.5rem);
	background:linear-gradient(180deg, #fff8f0 0%, #ffffff 100%);
}
body.page-id-945 .ristalk-kokuban-showcase .wp-block-columns{
	align-items:center;
	gap:clamp(1.5rem, 4vw, 3rem) !important;
}
body.page-id-945 .ristalk-kokuban-showcase p{
	font-size:clamp(1rem, 1.5vw, 1.1rem);
	line-height:1.9;
	color:#333;
}
body.page-id-945 .ristalk-kokuban-screenshot img{
	max-width:320px;
	width:100%;
	height:auto;
	display:block;
	margin:0 auto;
	border-radius:28px;
	box-shadow:0 12px 40px rgba(0,0,0,0.18);
}

/* 補足ノート */
body.page-id-945 .ristalk-kokuban-note{
	max-width:720px;
	margin:1.6em auto 0 !important;
	padding:0.9em 1.2em;
	background:#fff6ec;
	border-radius:10px;
	font-size:0.95rem;
	color:#555;
	line-height:1.8;
}

body.page-id-945 .ristalk-kokuban-section .wp-block-buttons{
	margin-top:1.6em !important;
}

/* 本文段落 */
body.page-id-945 .ristalk-kokuban-section > .wp-block-paragraph,
body.page-id-945 .ristalk-kokuban-section > p{
	max-width:760px;
	margin-left:auto !important;
	margin-right:auto !important;
	line-height:1.9;
	font-size:clamp(0.98rem, 1.2vw, 1.1rem);
}

/* 狭い viewport */
@media (max-width:900px){
	body.page-id-945 .wp-block-columns.ristalk-kokuban-steps{
		flex-wrap:wrap;
	}
	body.page-id-945 .ristalk-kokuban-steps .wp-block-column{
		flex-basis:100% !important;
	}
	body.page-id-945 .ristalk-kokuban-features{
		grid-template-columns:1fr;
	}
	body.page-id-945 .ristalk-kokuban-showcase .wp-block-columns{
		flex-wrap:wrap;
	}
	body.page-id-945 .ristalk-kokuban-showcase .wp-block-column{
		flex-basis:100% !important;
	}
	body.page-id-945 .ristalk-kokuban-showcase .ristalk-kokuban-heading{
		text-align:center;
		border-left:none;
		border-top:4px solid #ff8a0c;
		padding:0.6em 0 0;
	}
}

/* ============================================================
   「RisTalkをもっと知る」セクション (ristalk-know-more)
   page / page-no-title / single テンプレート経由で全ページに
   自動挿入されるため、法務・アカウント系ページでは非表示にする。
   (2026-10-28)
   ============================================================ */
body.page-id-6 .ristalk-know-more,     /* プライバシーポリシー */
body.page-id-97 .ristalk-know-more,    /* 利用規約 */
body.page-id-183 .ristalk-know-more,   /* 特定商取引法 */
body.page-id-644 .ristalk-know-more,   /* ログイン画面 */
body.page-id-728 .ristalk-know-more,   /* ユーザー */
body.page-id-730 .ristalk-know-more,   /* アカウント作成 */
body.page-id-733 .ristalk-know-more,   /* アカウント */
body.page-id-734 .ristalk-know-more,   /* パスワードリセット */
body.page-id-768 .ristalk-know-more,   /* ログアウト */
body.page-id-1602 .ristalk-know-more{  /* お問い合わせ */
	display:none !important;
}

/* ============================================================
   ヘッダー右端 CTA ボタン (ristalk-header-cta)
   PC のみ表示。ボタン間の間隔とサイズを少しコンパクトに。
   (2026-10-28)
   ============================================================ */
.ristalk-header-cta{
	align-self:center;
}
.ristalk-header-cta .wp-block-button__link{
	white-space:nowrap;
}

/* ============================================================
   モバイルナビオーバーレイ CTA (ristalk-overlay-cta)
   オーバーレイ下部のプラン・ダウンロード CTA を幅 100% で揃える。
   (2026-10-28)
   ============================================================ */
.ristalk-overlay-cta{
	width:100%;
}
.ristalk-overlay-cta .wp-block-button{
	width:100%;
}
.ristalk-overlay-cta .wp-block-button__link{
	width:100%;
	text-align:center;
}

/* ============================================================
   FAQ ページ (/faq/) — カテゴリ TOC + アコーディオン
   (2026-10-29 追加)
   ============================================================ */
body.page-id-3384 .wp-block-post-content{
	max-width:900px;
	margin-left:auto;
	margin-right:auto;
	padding-left:16px;
	padding-right:16px;
}
.ristalk-faq-toc{
	position:sticky;
	top:0;
	z-index:40;
	background:var(--wp--preset--color--base,#fff);
	padding:12px 8px;
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	justify-content:center;
	border-bottom:1px solid #eee;
	margin-bottom:24px;
}
@media (min-width:768px){
	.ristalk-faq-toc{top:var(--header-height,80px);}
}
.ristalk-faq-toc a{
	display:inline-block;
	padding:6px 14px;
	border-radius:999px;
	background:#f3f4f6;
	color:#333;
	text-decoration:none;
	font-size:0.9rem;
	white-space:nowrap;
	transition:background-color 0.2s,color 0.2s;
}
.ristalk-faq-toc a:hover,
.ristalk-faq-toc a:focus{
	background:#ff8a0c;
	color:#fff;
}
h2.ristalk-faq-category{
	margin-top:48px !important;
	padding-bottom:8px;
	border-bottom:3px solid #ff8a0c;
	font-size:1.6rem;
	scroll-margin-top:80px;
}
@media (min-width:768px){
	h2.ristalk-faq-category{scroll-margin-top:200px;}
}
.ristalk-faq-category-note{
	margin:0 0 16px;
	padding:12px 16px;
	background:#fff7eb;
	border-left:4px solid #ff8a0c;
	border-radius:4px;
	color:#555;
	font-size:0.95em;
}
.ristalk-faq-item{
	margin:8px 0;
	border:1px solid #e5e7eb;
	border-radius:10px;
	padding:12px 16px;
	background:#fafafa;
	transition:background-color 0.2s,border-color 0.2s;
}
.ristalk-faq-item[open]{
	background:#fff;
	border-color:#ff8a0c;
}
.ristalk-faq-item summary{
	cursor:pointer;
	font-weight:600;
	list-style:none;
	padding-left:28px;
	padding-right:24px;
	position:relative;
	line-height:1.6;
}
.ristalk-faq-item summary::-webkit-details-marker{
	display:none;
}
.ristalk-faq-item summary::marker{
	display:none;
}
.ristalk-faq-item summary::before{
	content:"Q.";
	position:absolute;
	left:0;
	top:0;
	color:#ff8a0c;
	font-weight:700;
}
.ristalk-faq-item summary::after{
	content:"＋";
	position:absolute;
	right:0;
	top:0;
	color:#ff8a0c;
	font-weight:700;
}
.ristalk-faq-item[open] summary::after{
	content:"−";
}
.ristalk-faq-answer{
	margin-top:12px;
	padding:12px 0 4px 28px;
	border-top:1px solid #f0f0f0;
	color:#555;
	position:relative;
}
.ristalk-faq-answer::before{
	content:"A.";
	position:absolute;
	left:0;
	top:12px;
	color:#4a90e2;
	font-weight:700;
}
.ristalk-faq-answer p{margin:0.5em 0;}
.ristalk-faq-answer p:first-child{margin-top:0;}
.ristalk-faq-answer p:last-child{margin-bottom:0;}
.ristalk-faq-answer ul,
.ristalk-faq-answer ol{margin:0.5em 0;padding-left:1.5em;}
.ristalk-faq-answer li{margin:0.25em 0;}
.ristalk-faq-cta{
	color:#666;
	font-size:0.95em;
}
@media (max-width:640px){
	.ristalk-faq-toc{
		justify-content:flex-start;
		overflow-x:auto;
		flex-wrap:nowrap;
		scrollbar-width:thin;
		-webkit-overflow-scrolling:touch;
	}
	.ristalk-faq-toc a{flex-shrink:0;}
	h2.ristalk-faq-category{font-size:1.35rem;}
}

/* ------------------------------------------------------------------
   「今すぐダウンロード」白ピル CTA (.my-custom-button):
   ホバーでボタンがオレンジに変わると RisTalk ロゴ (nth-of-type(2))
   が同化して消えるので、DL アイコンと同じ白反転を当てる。
   追加 CSS 側の `filter: none !important;` を後勝ちで上書き。
   ------------------------------------------------------------------ */
.my-custom-button:hover img:nth-of-type(2){
	filter:brightness(0) invert(1) !important;
}
