@charset "utf-8";

/* =============================================================
   pages.css
   baserCMSテーマ（unitek_theme）の style.css の後に読み込む追加スタイル。
   テーマの既存クラス（.ta1 / .btn / .faq / .bg1 など）はそのまま使い、
   ここではページ固有のレイアウトと、baserCMS 5.4 向けの互換調整を定義する。

   構成（関連する @media は、それぞれの指定の直後に置く）
     1. 共通の土台・ユーティリティ
     2. 部品（複数ページで使うもの）
     3. ページ別
     4. 末尾に置く指定（カスケード順を保つため、位置を変えない）
   ============================================================= */

/* =============================================================
   1. 共通の土台・ユーティリティ
   ============================================================= */

/* ---- ページ共通：注釈 ---- */
.note {
	font-size: 0.95em;
	color: #888;
	margin: -10px 20px 24px;
}

/* ---- ページ共通ユーティリティ：スマホで区切りよく改行する（.sp-br） ----
   PCではそのまま1行表示。スマホ（〜768px）では <span class="sp-br"> の位置で
   改行する。中に文字を入れるとスマホでは非表示になる。
   ① 区切り文字を消して改行（例：スラッシュ）→ 文字を中に入れる
      …お見積り<span class="sp-br">／</span>有償：…
      PC →「…お見積り／有償：…」／ SP →「…お見積り」＋「有償：…」の2行
   ② 文字は残して手前で改行だけ（例：カッコ）→ 空のスパンを手前に置く
      テキスト<span class="sp-br"></span>（補足説明）
      PC →「テキスト（補足説明）」／ SP →「テキスト」＋「（補足説明）」の2行 */
.sp-br {
	/* PCでは特別な指定なし（中身をそのまま表示） */
}
@media screen and (max-width: 768px) {
	.sp-br {
		display: block;   /* その位置で改行させる */
		font-size: 0;     /* 中の文字（区切り記号など）は非表示にする */
		line-height: 0;   /* 余分な行高を出さない */
	}
}

/* ---- スクロール表示アニメーション ----
   pages-inview.js 用（IntersectionObserver）。
   JavaScript が利用できる場合だけ body に .js-motion-enabled を付けるため、
   JS未読込時・動きを減らす設定時にもコンテンツは必ず表示される。 */
@media (prefers-reduced-motion: no-preference) {
	.js-motion-enabled .js-inview,
	.js-motion-enabled .js-inview-group .js-inview-item {
		opacity: 0;
		transition: opacity .55s ease, transform .55s ease;
	}
	.js-motion-enabled .js-inview--up,
	.js-motion-enabled .js-inview-group .js-inview-item {
		transform: translateY(12px);
	}
	.js-motion-enabled .js-inview--left { transform: translateX(-20px); }
	.js-motion-enabled .js-inview--right { transform: translateX(20px); }
	.js-motion-enabled .js-inview--scale { transform: scale(.97); }
	.js-motion-enabled .js-inview.is-inview,
	.js-motion-enabled .js-inview-group .js-inview-item.is-inview {
		opacity: 1;
		transform: translate(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.js-inview,
	.js-inview-group .js-inview-item {
		transition: none !important;
		transform: none !important;
	}
}

/* ---- アンカーリンクの移動先が固定ヘッダーに隠れないようにする ---- */
#for-owner,
#for-partner,
#for-domain,
#faq {
	scroll-margin-top: 90px;
}
#site-migration { scroll-margin-top: 90px; }

/* ---- パンくずリスト：スマホで現在のページ名を2行までにする ----
   style.css（899px以下）で各階層に white-space: nowrap を付けているため、
   最後の項目（技術ブログの記事タイトルなど）が長いと1行のまま伸び、
   ページ全体に横スクロールが出る。最後の項目だけ折り返しを許し、
   2行を超えたら「…」で省略する（全文は直下の h1 で表示される）。 */
@media screen and (max-width: 899px) {
	.bs-crumbs ul li:last-child {
		white-space: normal;
		min-width: 0;
		max-width: 100%;	/* 短い名前は前の階層と同じ行、長い名前だけ次の行へ送る */
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}
}

/* =============================================================
   2. 部品（複数ページで使うもの）
   ============================================================= */

/* ======== ページヒーロー・主見出し ======== */

/* ページヒーロー */
.page-hero {
	text-align: center;
	padding: 60px 5% 40px;
	background: var(--grad-hero);
}
.page-hero .en {
	display: block;
	font-size: 0.85em;
	letter-spacing: 0.25em;
	color: var(--c-primary-dark);
	margin-bottom: 10px;
}
.bs-main-contents .page-hero h2,
.bge-contents .page-hero h2 {
	border: none !important;
	margin-bottom: 16px !important;
	text-align: center;
}
.page-hero h2::after { content: none; }
.page-hero .lead {
	color: #666;
	margin: 0;
}

/* ---- ページ主見出し h1 ----
   既存 h2 の見た目に近づける。下線はJSに依存せず常時表示。 */
.bs-main-contents .page-hero h1,
.bge-contents .page-hero h1 {
	font-family: inherit;
	font-size: 1.5em;
	font-weight: bold;
	line-height: normal;
	letter-spacing: 0.1em;
	margin: 0.83em 0;
	padding: 0;
	background: transparent;
	overflow: visible;
	position: relative;
	border-bottom: 3px solid #f5f5f5;
}
.bs-main-contents .page-hero h1,
.bge-contents .page-hero h1 {
	border: none;
	margin-bottom: 16px;
	text-align: center;
}
.page-hero h1 .uline {
	display: inline-block;
	position: relative;
	padding: 10px 20px;
	bottom: -3px;
}
.page-hero h1 .uline::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: #9ddbf8;
	transform: none;
}

/* ---- ヒーローのキャッチコピー ---- */
.catch {
	margin: 0 0 14px !important;
	font-size: 1.6em;
	font-weight: bold;
	line-height: 1.5;
	color: var(--c-primary);
	letter-spacing: 0.02em;
}

/* ---- ヒーローのメタ情報（対象・対応エリアの一行明示） ---- */
.hero-meta {
	margin: 0 0 18px !important;
	font-size: 0.95em;
	color: #666;
}

/* ---- ヒーローの価格リード（1名から月額〜） ---- */
.price-lead {
	margin: 0 0 18px !important;
	font-size: 1.15em;
	color: #333;
}
.price-lead strong {
	font-size: 1.25em;
	color: var(--c-primary-dark);
}

/* ======== 目次・注意喚起ボックス ======== */

/* ---- ページ共通：目次（TOC） ---- */
.toc {
	background: var(--c-primary-pale);
	padding: 20px 24px;
	margin: 0 0 40px;
	border-left: 4px solid var(--c-primary);
}
.bs-main-contents .toc h3,
.bge-contents .toc h3 { margin: 0 0 10px; }
.toc h3::before { content: none; }
/* 目次ラベルを見出しにしない場合も、従来の見た目に近づける */
.bs-main-contents .toc .toc-title,
.bge-contents .toc .toc-title {
	margin: 0 0 10px;
	padding: 0;
	font-family: inherit;
	font-size: 1.17em;
	font-weight: bold;
	line-height: normal;
	background: transparent;
	border-radius: 0;
}
.bs-main-contents .toc ol,
.bge-contents .toc ol {
	margin: 0;
	padding-left: 0;
	list-style: none;
	letter-spacing: normal;
	line-height: inherit;
}
.bs-main-contents .toc ol li,
.bge-contents .toc ol li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bs-main-contents .toc ol li::before,
.bge-contents .toc ol li::before {
	content: none;
	display: none;
}
.toc a { text-decoration: none; }

/* ---- ページ共通：注意喚起ボックス ----
   記事冒頭の「まず確認すること」など、読者に先に確認してほしい内容を囲む枠。
   .toc と同じ形（淡い背景＋左線）にし、色だけ黄色系にして目次と区別する。
   使い方：
   <div class="caution-box" role="note">
     <p class="caution-title">まず確認すること</p>
     <ol><li>…</li></ol>
     <p>…</p>
   </div>
   ※ブログ詳細の #post-detail p / ol の余白に負けないよう、#post-detail 付きの指定も併記する。 */
.caution-box {
	background: #fff8e1;
	padding: 20px 24px;
	margin: 0 0 40px;
	border-left: 4px solid #f2b705;
}
.bs-main-contents .caution-box .caution-title,
.bge-contents .caution-box .caution-title,
#post-detail .caution-box .caution-title {
	margin: 0 0 10px;
	padding: 0;
	font-family: inherit;
	font-size: 1.17em;
	font-weight: bold;
	line-height: normal;
	color: #7a5200;
	background: transparent;
	border: none;
}
.caution-box .caution-title::before { content: none; }
.bs-main-contents .caution-box p,
.bge-contents .caution-box p,
#post-detail .caution-box p {
	margin: 0 0 0.8em;
}
.bs-main-contents .caution-box ol,
.bs-main-contents .caution-box ul,
.bge-contents .caution-box ol,
.bge-contents .caution-box ul,
#post-detail .caution-box ol,
#post-detail .caution-box ul {
	margin: 0 0 0.8em;
	padding-left: 1.8em;
}
.bs-main-contents .caution-box li,
.bge-contents .caution-box li,
#post-detail .caution-box li {
	margin: 0 0 0.4em;
}
/* 枠内の最後の要素は下余白を消し、枠の上下の余白をそろえる */
.bs-main-contents .caution-box > :last-child,
.bge-contents .caution-box > :last-child,
#post-detail .caution-box > :last-child {
	margin-bottom: 0;
}

/* ---- ページ共通：関連記事ボックス ----
   記事内で、関連する記事への案内（「関連記事の読み分け」など）をまとめる枠。
   .toc・.caution-box と同じ形（淡い背景＋左線）にし、色は控えめな灰色にして区別する。
   Notionのコールアウトの色との対応：青＝.toc、黄＝.caution-box、灰＝.related-box。
   記事末尾に自動で出るbaserCMSの関連記事（.bs-blog-related-posts）とは別の部品。
   使い方：
   <div class="related-box">
     <p class="related-title">関連記事の読み分け</p>
     <ul><li>…：<a href="…">記事タイトル</a></li></ul>
   </div>
   ※ブログ詳細の #post-detail p / ul の余白に負けないよう、#post-detail 付きの指定も併記する。 */
.related-box {
	background: #f5f6f8;
	padding: 20px 24px;
	margin: 0 0 40px;
	border-left: 4px solid #9aa5b1;
}
.bs-main-contents .related-box .related-title,
.bge-contents .related-box .related-title,
#post-detail .related-box .related-title {
	margin: 0 0 10px;
	padding: 0;
	font-family: inherit;
	font-size: 1.17em;
	font-weight: bold;
	line-height: normal;
	color: #444;
	background: transparent;
	border: none;
}
.related-box .related-title::before { content: none; }
.bs-main-contents .related-box p,
.bge-contents .related-box p,
#post-detail .related-box p {
	margin: 0 0 0.8em;
}
.bs-main-contents .related-box ul,
.bge-contents .related-box ul,
#post-detail .related-box ul {
	margin: 0 0 0.8em;
	padding-left: 1.8em;
}
.bs-main-contents .related-box li,
.bge-contents .related-box li,
#post-detail .related-box li {
	margin: 0 0 0.4em;
}
.bs-main-contents .related-box > :last-child,
.bge-contents .related-box > :last-child,
#post-detail .related-box > :last-child {
	margin-bottom: 0;
}

/* ======== ボタン・お問い合わせ誘導 ======== */

/* ---- ページ共通：CTAボタン ----
   editor.css の通常リンク色でボタン文字が変わらないよう白に固定する。 */
.bs-main-contents p.btn a:link,
.bs-main-contents p.btn a:visited,
.bs-main-contents p.btn a:hover,
.bs-main-contents p.btn a:active,
.bge-contents p.btn a:link,
.bge-contents p.btn a:visited,
.bge-contents p.btn a:hover,
.bge-contents p.btn a:active {
	color: #fff;
}

/* ---- お問い合わせ誘導（.contact-cta） ----
   サービス一覧・プライバシーポリシーなどのフッター直前に置くお問い合わせCTA。
   リード文・ボタン・注記をまとめて中央に揃える。
   ※ ボタンは style.css が p.btn a を前提にしているため、HTML側も
     <p class="btn"><a href="...">無料相談を予約</a></p> 形式で書く。
     （a に直接 class="btn" を付けてもボタンにならない） */
.contact-cta {
	text-align: center;
}
/* style.css の main p { margin:0 20px 30px } を打ち消し、
   中央寄せの幅を読みやすさ優先で制限する */
.contact-cta p {
	max-width: 640px;
	margin: 0 auto 20px !important;
}
.contact-cta .btn {
	margin: 0 auto !important;
}
/* 無料／有償の線引き注記（ボタン直下） */
.contact-cta .note {
	margin: 14px auto 0 !important;
}

/* ======== テーブル（.ta1） ======== */

/* ---- ページ共通：baserCMSテーブル（.ta1） ----
   editor.css のセル背景・余白・罫線をテーマ標準へ戻す。 */
.bs-main-contents table.ta1,
.bge-contents table.ta1 {
	table-layout: auto;
	margin: 0 auto 30px;
	border-top: 1px solid #ccc;
	border-right: none;
	border-bottom: none;
	border-left: none;
}
.bs-main-contents table.ta1 tr,
.bge-contents table.ta1 tr {
	border-top: none;
	border-bottom: 1px solid #ccc;
}
.bs-main-contents table.ta1 th,
.bs-main-contents table.ta1 td,
.bge-contents table.ta1 th,
.bge-contents table.ta1 td {
	padding: 10px 5px;
	text-align: left;
	border-left: none;
	word-break: break-all;
}
.bs-main-contents table.ta1 th,
.bge-contents table.ta1 th {
	width: 30%;
	font-family: inherit;
	background: transparent;
}
.bs-main-contents table.ta1 td,
.bs-main-contents table.ta1 tr:nth-child(odd) td,
.bge-contents table.ta1 td,
.bge-contents table.ta1 tr:nth-child(odd) td {
	background: transparent;
}

/* 〜599px：1セルずつ縦積み */
@media screen and (max-width: 599px) {
	.bs-main-contents table.ta1,
	.bs-main-contents table.ta1 tbody,
	.bs-main-contents table.ta1 tfoot,
	.bs-main-contents table.ta1 tr,
	.bs-main-contents table.ta1 th,
	.bs-main-contents table.ta1 td,
	.bge-contents table.ta1,
	.bge-contents table.ta1 tbody,
	.bge-contents table.ta1 tfoot,
	.bge-contents table.ta1 tr,
	.bge-contents table.ta1 th,
	.bge-contents table.ta1 td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
}

/* 600px以上：baserCMS標準の768px以下の縦積みを通常表へ戻す */
@media screen and (min-width: 600px) {
	.bs-main-contents table.ta1,
	.bge-contents table.ta1 {
		display: table;
	}
	.bs-main-contents table.ta1 tbody,
	.bs-main-contents table.ta1 tfoot,
	.bge-contents table.ta1 tbody,
	.bge-contents table.ta1 tfoot {
		display: table-row-group;
	}
	.bs-main-contents table.ta1 tr,
	.bge-contents table.ta1 tr {
		display: table-row;
		margin-top: 0;
	}
	.bs-main-contents table.ta1 th,
	.bs-main-contents table.ta1 td,
	.bge-contents table.ta1 th,
	.bge-contents table.ta1 td {
		display: table-cell;
	}
	.bs-main-contents table.ta1 th,
	.bge-contents table.ta1 th {
		width: 30%;
	}
}

/* 900px以上：セル余白を拡張（見出し列幅は30%を維持） */
@media screen and (min-width: 900px) {
	.bs-main-contents table.ta1 th,
	.bs-main-contents table.ta1 td,
	.bge-contents table.ta1 th,
	.bge-contents table.ta1 td {
		padding: 20px 15px;
	}
	.bs-main-contents table.ta1 th,
	.bge-contents table.ta1 th {
		width: 30%;
	}
}

/* ---- プラン比較表（既存 .ta1 を拡張） ---- */
.bs-main-contents table.ta1.plan-table th,
.bge-contents table.ta1.plan-table th { background: var(--c-primary-pale); }
.plan-table td { vertical-align: top; }
.bs-main-contents table.ta1.plan-table tr:first-child th,
.bge-contents table.ta1.plan-table tr:first-child th {
	background: var(--c-primary-pale);
	color: var(--c-primary-dark);
	font-weight: bold;
	border-bottom: 2px solid var(--c-primary);
}

/* ---- 会社情報テーブル ---- */
.bs-main-contents table.ta1.company-info th,
.bge-contents table.ta1.company-info th {
	background: var(--c-primary-pale);
	width: 30%;
	white-space: nowrap;
}

/* ======== カード ======== */

/* ---- サービス内容（3カード） ---- */
.service-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 0 0 30px;
}
.service-cards .service-card {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 6px;
	padding: 24px;
	box-shadow: 5px 5px 20px rgba(0,0,0,0.05);
}
.bs-main-contents .service-cards .service-card h3,
.bge-contents .service-cards .service-card h3 {
	margin: 0 0 12px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	font-size: 1.2em;
	font-weight: bold;
	line-height: normal;
	color: var(--c-primary);
	overflow: visible;
}
.service-cards .service-card h3::before,
.service-cards .service-card h3::after { content: none; }
.bs-main-contents .plan-card ul,
.bs-main-contents .service-cards .service-card ul,
.bge-contents .plan-card ul,
.bge-contents .service-cards .service-card ul {
	margin: 0;
	padding-left: 0;
}
.service-cards .service-card li { margin-bottom: 4px; }
@media screen and (min-width: 600px) {
	.service-cards {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}
@media screen and (min-width: 900px) {
	.service-cards { grid-template-columns: repeat(3, 1fr); }
	.service-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- プランカード（Web制作プラン・保守プラン共通） ---- */
.plan-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 0 0 20px;
}
.plan-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 6px;
	padding: 24px 20px;
	box-shadow: 5px 5px 20px rgba(0,0,0,0.05);
}
.plan-card.recommended { border: 2px solid var(--c-primary); }
.plan-card .badge {
	position: absolute;
	top: 0;
	left: 20px;
	transform: translateY(-50%); /* バッジの中央をカード上枠線に合わせる */
	z-index: 1;
	background: var(--c-accent);
	color: #333;
	font-weight: bold;
	font-size: 0.85em;
	padding: 4px 14px;
	border-radius: 12px;
}

/* プラン名（h3.homepage-plan-title） */
.bs-main-contents .plan-card h3.homepage-plan-title,
.bge-contents .plan-card h3.homepage-plan-title {
	margin: 0 0 4px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	font-size: 1.25em;
	font-weight: bold;
	line-height: normal;
	color: var(--c-primary);
	overflow: visible;
	position: static;
}
.plan-card h3.homepage-plan-title::before,
.plan-card h3.homepage-plan-title::after { content: none; }
.plan-card .target {
	font-size: 0.95em;
	line-height: 1.6;   /* body の line-height:2 では2行になったとき行間が開きすぎるため詰める */
	color: #888;
	margin: 10px 0 14px !important;   /* 上：プラン名との間を広げる */
}
.plan-card .price {
	padding-top: 12px;
	border-top: 1px dashed var(--c-border);
	color: var(--c-primary-dark);
	font-weight: bold;
	font-size: 1.05em;
	margin: 0 !important;
}
/* 金額の下の補足（最小構成の条件・目安など）。style.css の main p の余白を打ち消す */
.plan-card .price-note {
	margin: 8px 0 0 !important;
	font-size: 0.85em;
	line-height: 1.6;
	color: #666;
}
@media screen and (min-width: 600px) {
	.plan-grid {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}

/* ---- モデルケース ---- */
.case-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 0 0 20px;
}
.case-card {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 6px;
	padding: 24px;
	box-shadow: 5px 5px 20px rgba(0,0,0,0.05);
}
.bs-main-contents .case-card h3,
.bge-contents .case-card h3 {
	margin: 0 0 12px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	font-size: 1.15em;
	font-weight: bold;
	line-height: normal;
	color: var(--c-primary);
	overflow: visible;
}
.case-card h3::before,
.case-card h3::after { content: none; }
.case-card .def-list { margin: 0; }
@media screen and (min-width: 600px) {
	.case-cards {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}
@media screen and (min-width: 900px) {
	.case-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---- ページ共通：カードの段を横でそろえる ----
   横に並んだカードの中で、見出し・説明文・リスト・ボタンなどの各段を同じ高さにそろえる（subgrid）。
   見出しが2行になるカードや、文の長さが違うカードがあっても、次の段の開始位置がずれない。

   対象のカード（増やすときは下の :is() の中に「親 > カード」を1つ足すだけ）：
     .top-service-cards > .top-service-card … トップ：サービスカード（icon / name / desc / link）
     .service-cards > .service-card         … サービス一覧・PCサポート・HP制作・業務改善支援
     .plan-grid > .plan-card                … HP制作：ホームページ制作プラン

   段数はカードの中身の数で自動に切り替える（2〜5段）。6つ以上にしたら、同じ形の行を足す。
   「おすすめ」バッジ（.badge）は絶対配置で段を使わないため、数えない（:not(.badge)）。
   1行の見出しは、段の上下中央に置く。
   ※ subgrid に対応していない古いブラウザーでは、従来の表示のままになる。 */
@supports (grid-template-rows: subgrid) {
	:is(.top-service-cards > .top-service-card, .service-cards > .service-card, .plan-grid > .plan-card) {
		display: grid;
		grid-row: span 2;
		grid-template-rows: subgrid;
		row-gap: 0;   /* 親の gap をカード内の段の間に入れない */
	}
	:is(.top-service-cards > .top-service-card, .service-cards > .service-card, .plan-grid > .plan-card):has(> :nth-child(3 of :not(.badge))) { grid-row: span 3; }
	:is(.top-service-cards > .top-service-card, .service-cards > .service-card, .plan-grid > .plan-card):has(> :nth-child(4 of :not(.badge))) { grid-row: span 4; }
	:is(.top-service-cards > .top-service-card, .service-cards > .service-card, .plan-grid > .plan-card):has(> :nth-child(5 of :not(.badge))) { grid-row: span 5; }

	/* 1行の見出しは段の上下中央に */
	:is(.top-service-card__name, .service-cards > .service-card > h3, .plan-grid > .plan-card > h3) { align-self: center; }

	/* トップのカードだけ：従来の左寄せ（align-items: flex-start）と、アイコンの中央寄せを維持 */
	.top-service-cards > .top-service-card { justify-items: start; }
	.top-service-card__icon { justify-self: center; }
}

/* ======== リスト ======== */

/* ---- フロー（STEP付き） ----
   旧実装は STEPバッジを position:absolute（top:18px固定）で置いていたため、
   見出し（strong）1行目の行ボックス（body の line-height:2 × 1.1em）と
   バッジの中心がずれていた。
   グリッドで2カラム化し、バッジを align-self:center で
   「見出し行の中心」に自動で揃える（マジックナンバー不要）。 */
.bs-main-contents .flow-list,
.bge-contents .flow-list {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	counter-reset: step;
}
.bs-main-contents .flow-list li,
.bge-contents .flow-list li {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);   /* 1列目：STEPバッジ／2列目：見出し・本文 */
	column-gap: 14px;
	align-items: start;
	padding: 16px 18px;   /* 旧：padding-left:100px でバッジ分を確保していたが、グリッド列で取るので不要 */
	border: 1px solid var(--c-border);
	border-radius: 4px;
	margin-bottom: 10px;
	background: #fff;
	list-style: none;
	counter-increment: step;
}
/* STEPバッジ（1列目・1行目）。align-self:center で見出し1行目と上下中心を揃える */
.bs-main-contents .flow-list li::before,
.bge-contents .flow-list li::before {
	content: "STEP " counter(step);
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	justify-self: start;
	font-size: 0.8em;
	font-weight: bold;
	color: #fff;
	background: linear-gradient(135deg, #007f37, var(--c-primary-dark));
	padding: 4px 10px;
	border-radius: 3px;
	letter-spacing: 0.05em;
	line-height: 1;
	white-space: nowrap;   /* 「STEP 1」を折り返さない */
}
/* 見出し・本文など li の子要素はすべて2列目に置く（strong / p / ul 等） */
.flow-list li > * { grid-column: 2; }
.flow-list strong {
	display: block;
	font-size: 1.1em;
	line-height: 1.6;      /* body の line-height:2 だと行ボックスが高く、バッジとの高さ差が目立つため詰める */
	margin-bottom: 4px;
	color: #333;
}
.flow-list p { margin: 0 !important; font-size: 1em; color: #666; }
.bs-main-contents .flow-list ul,
.bs-main-contents .flow-list ol,
.bge-contents .flow-list ul,
.bge-contents .flow-list ol {
	margin: 0;
	padding: 0;
}

/* ---- 定義リスト（契約条件・対応技術 など） ---- */
.def-list {
	margin: 0 0 30px;
	border-top: 1px solid #ccc;
}
.def-list dt,
.def-list dd { padding: 12px 10px; }
.def-list dt {
	font-weight: bold;
	color: var(--c-primary-dark);
	border-bottom: 1px solid #f0f0f0;
}
.def-list dd {
	margin: 0;
	border-bottom: 1px solid #ccc;
}
@media screen and (min-width: 900px) {
	.def-list {
		display: grid;
		grid-template-columns: 180px 1fr;
	}
	.def-list dt { border-bottom: 1px solid #ccc; }
}

/* ---- 対象外リスト ---- */
.exclusion-list {
	list-style: none;
	padding: 16px 20px;
	margin: 0 0 20px;
	background: var(--c-warn-pale);
	border-left: 4px solid var(--c-warn);
	border-radius: 4px;
}
.exclusion-list li {
	padding: 4px 0 4px 22px;
	position: relative;
	font-size: 0.97em;
	color: #555;
}
.exclusion-list li::before {
	content: "×";
	position: absolute;
	left: 4px;
	top: 4px;
	color: var(--c-warn);
	font-weight: bold;
}

/* ======== 読み手別の導線・対象者バンド ======== */

/* ---- 読み手別セクション用 追加スタイル（homepage / service） ---- */

/* --- 読み手別の導線（概要内・ボタン選択式） --- */
.audience-nav {
	margin-top: 1.6em;
	padding: 1.2em 1.4em;
	background: var(--c-primary-pale);
	border: 1px solid var(--c-border);
	border-radius: 10px;
}
.audience-nav-lead {
	margin: 0 0 0.9em !important;
	font-weight: 700;
	color: var(--c-primary-dark);
	font-size: 1.02em;
}
.audience-nav-lead::before {
	content: "▼";
	margin-right: 0.4em;
	color: var(--c-primary);
	font-size: 0.8em;
}
.audience-nav-buttons {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.8em;
}
.audience-btn {
	display: flex;
	align-items: center;
	gap: 0.8em;
	padding: 0.9em 1.1em;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 8px;
	text-decoration: none;
	color: var(--c-primary-dark);
	line-height: 1.5;
	box-shadow: 0 1px 3px rgba(20, 50, 110, 0.05);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	position: relative;
}
.audience-btn .ico {
	flex-shrink: 0;
	width: 2.4em;
	height: 2.4em;
	background-color: var(--c-primary-pale);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 56%;
	border-radius: 50%;
}
.audience-btn .txt { flex: 1; font-size: 0.95em; }
.audience-btn .txt strong {
	display: block;
	color: var(--c-primary-dark);
	font-size: 1.05em;
}
.audience-btn::after {
	content: "›";
	flex-shrink: 0;
	font-size: 1.4em;
	color: var(--c-primary);
	transition: transform 0.15s ease;
}
.audience-btn:hover {
	transform: translateY(-2px);
	border-color: var(--c-primary);
	box-shadow: 0 6px 16px rgba(20, 50, 110, 0.12);
}
.audience-btn:hover::after { transform: translateX(3px); }
/* 対象者ごとの左アクセント（バンド色と揃える） */
.audience-btn.btn-owner { border-left: 4px solid var(--c-zone-owner); }
.audience-btn.btn-partner { border-left: 4px solid var(--c-zone-partner); }
.audience-btn.btn-domain { border-left: 4px solid #9fb2c2; }

/* アイコンは絵文字を使わず CSS 側の SVG で描画（CMS登録するHTMLに絵文字を含めないため） */
.audience-btn.btn-owner .ico {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9bd6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='1'/%3E%3Cpath d='M9 7h0M15 7h0M9 11h0M15 11h0'/%3E%3Cpath d='M10 21v-3h4v3'/%3E%3C/svg%3E");
}
.audience-btn.btn-partner .ico {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a23e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19l7-7 3 3-7 7-3-3z'/%3E%3Cpath d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'/%3E%3Cpath d='M2 2l7.586 7.586'/%3E%3Ccircle cx='11' cy='11' r='2'/%3E%3C/svg%3E");
}
.audience-btn.btn-domain .ico {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb2c2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cpath d='M12 3a14 14 0 0 1 0 18 14 14 0 0 1 0-18z'/%3E%3C/svg%3E");
}

/* 700px以上：3列のカード型ボタンに */
@media screen and (min-width: 700px) {
	.audience-nav-buttons {
		grid-template-columns: repeat(3, 1fr);
	}
	.audience-btn {
		flex-direction: column;
		text-align: center;
		gap: 0.6em;
		padding: 1.4em 1em 1.2em;
	}
	.audience-btn::after {
		position: absolute;
		right: 0.7em;
		top: 0.6em;
		font-size: 1.2em;
	}
	.audience-btn .txt strong { font-size: 1em; }
}
@media screen and (max-width: 768px) {
	.audience-nav {
		font-size: 0.9em;
	}
}

/* ---- 対象者バンド（ゾーン区切り：homepage / service） ----
   ページを「経営者向け / 制作会社向け / 共通」の
   ゾーンに区切る見出し帯。配色で対象者を区別。 */
.audience-band {
	margin: 5.6em 0 1.6em;   /* 上マージンを広げ、ゾーンの区切りを分かりやすく（旧:3.2em） */
	padding: 1.6em 5%;
	border-radius: 10px;
	color: var(--c-primary-dark);
	background: var(--c-primary-pale);
	border: 1px solid var(--c-border);
	border-left: 6px solid var(--c-primary);
	box-shadow: 0 2px 8px rgba(20, 50, 110, 0.05);
}
.audience-band .band-label {
	display: block;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--c-primary);
	opacity: 1;
	margin-bottom: 0.5em;
}
.audience-band h2 {
	margin: 0 0 0.5em;
	color: var(--c-primary-dark) !important;
	border: none !important;
	font-size: 1.5em;
}
.audience-band h2::before,
.audience-band h2::after { content: none !important; }
.audience-band p {
	margin: 0 !important;
	font-size: 1em;
	line-height: 1.9;
	color: #44537a;
}
.audience-band strong { color: var(--c-primary-dark); font-weight: 700; }

/* 経営者向け：ブランドブルー */
.audience-band.band-owner {
	background: var(--c-primary-pale);
	border-left-color: var(--c-primary);
}
.audience-band.band-owner .band-label { color: var(--c-primary); }
.audience-band.band-owner h2,
.audience-band.band-owner strong { color: var(--c-primary-dark); }
/* 制作会社・フリーランス向け：パープル孄りで区別 */
.audience-band.band-partner {
	background: #e9f6ee;
	border-left-color: #00863a;
}
.audience-band.band-partner .band-label { color: #00783a; }
.audience-band.band-partner h2,
.audience-band.band-partner strong { color: #0a6e33; }
.audience-band.band-partner p { color: #3c5a47; }
/* 共通：コントラストを下げた淡い背景（主役はあくまで上記2ゾーン） */
.audience-band.band-common {
	background: #f3f6f8;
	border-left-color: #9fb2c2;
}
.audience-band.band-common .band-label { color: #5f7185; opacity: 1; }
.audience-band.band-common h2 { color: #3f5266 !important; }
.audience-band.band-common p { color: #44537a; }
.audience-band.band-common strong { color: #3f5266; }

/* --- バンド直後のセクションの上余白調整 ---
   バンドの下マージン（PC:1.6em／SP:1.2em）で区切りは十分なため、
   直後セクションが持つ上パディング（style.cssの padding:2%）と
   見出しの上マージンを詰めて、バンド下が空きすぎないようにする。 */
.audience-band + section {
	padding-top: 0.5em;
}
/* 背景色付き（.bg1）のセクションだけは、色面の上が詰まって見えないよう少し残す */
.audience-band + section.bg1 {
	padding-top: 1.5em;
}
/* 直後セクション先頭の要素（h2など）の上マージンも消し、余白の二重取りを防ぐ */
.audience-band + section > :first-child {
	margin-top: 0;
}

/* 対象者バンド：スマホ調整 */
@media screen and (max-width: 768px) {
	.audience-band {
		margin: 4em 0 1.2em;   /* 上マージンを広げ、ゾーンの区切りを分かりやすく（旧:2.4em） */
		padding: 1.4em 6%;
	}
	.audience-band h2 { font-size: 1.3em; }
}

/* ======== FAQ ======== */

/* ---- FAQ アコーディオン（＋／−アイコン） ----
   HTMLは既存のまま（<dl class="faq"> ＋ <dt class="openclose">）。
   テーマの main.js が dt クリックで次の dd を開閉し、dt に .active を付与する。
   ここでは「押せる／開いている」ことが分かる ＋／− アイコンだけを追加する。
   ※ style.css 側の .faq dt::before（? アイコン）と競合しないよう ::after を使用。 */
.faq dt.openclose {
	position: relative;
	padding-right: 2.8em;   /* アイコン分の余白を確保 */
	margin-bottom: 8px;     /* 閉じた状態で質問が並ぶので詰める（style.css は 20px） */
	transition: background .2s, border-color .2s;
}
.faq dt.openclose:hover {
	background: linear-gradient(#fff, #eef7fc);
	border-color: var(--c-primary);
}
.faq dt.openclose::after {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;       /* Solidスタイル。これがないとアイコンが出ない */
	content: "\f067";       /* ＋（plus） */
	position: absolute;
	right: 0.9em;
	top: 50%;
	transform: translateY(-50%);
	text-indent: 0;         /* .faq dt の text-indent:-2em を打ち消す */
	font-size: 0.85em;
	color: var(--c-primary);
	transition: transform .25s, color .2s;
}
/* ---- 開いている質問を「−」にする（二重の判定：どちらかが効けばOK）----
   ① main.js が dt にクラスを付与するタイプ（active / open / is-open）
   ② main.js が slideToggle で dd に inline style を付けるだけのタイプ
      （tp_biz59 の標準）→ 次の dd が display:block かどうかで判定する。
      ※ :has() は本CSS内の他箇所（#MainImage / .bs-wrap）でも使用済み。 */
.faq dt.openclose.active::after,
.faq dt.openclose.open::after,
.faq dt.openclose.is-open::after,
.faq dt.openclose:has(+ dd[style*="display: block"])::after,
.faq dt.openclose:has(+ dd[style*="display:block"])::after {
	content: "\f068";   /* −（minus） */
}

/* スマホ：タップ領域を広げる */
@media screen and (max-width: 768px) {
	.faq dt.openclose {
		padding-top: 10px;
		padding-bottom: 10px;
	}
}

/* 印刷時は回答を開いた状態で出す */
@media print {
	.faq dd { display: block !important; }
	.faq dt.openclose::after { content: none; }
}

/* FAQの立場別グループ見出し */
.bs-main-contents .faq-group,
.bge-contents .faq-group {
	margin: 1.8em 0 0.6em;
	padding: 0 1.2em;
	font-size: 1.1em;
	color: var(--c-primary-dark);
	background: var(--c-primary-pale);
	border-left: 4px solid var(--c-primary);
	border-radius: 4px;
}
.faq-group::before,
.faq-group::after { content: none !important; }
.faq-group:first-of-type { margin-top: 1em; }
@media screen and (max-width: 768px) {
	.faq-group { margin-left: 0; margin-right: 0; }
}

/* ======== ページネーション ======== */

/* ---- ページネーション（新着情報・ブログ一覧） ----
   config.css の .bs-pagination a の背景色を打ち消し、番号間隔を整える。
   出力に含まれる br はレイアウト用ではないため非表示にする。 */
.bs-pagination {
	margin: 32px 0;
	text-align: center;
	line-height: 1.5;
}
.bs-pagination br { display: none; }
.bs-pagination > span {
	display: inline-block;
	margin: 0 8px 8px;
}
.bs-pagination .bs-pagination__number {
	display: inline-block;
	margin: 0 4px;
}
.bs-main-contents .bs-pagination a,
.bge-contents .bs-pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4em;
	min-height: 2.4em;
	padding: 0 0.55em;
	box-sizing: border-box;
	background-color: transparent !important;
	border: 1px solid var(--c-border);
	border-radius: 4px;
	color: var(--c-primary-dark) !important;
	text-decoration: none;
	box-shadow: none !important;
}
.bs-main-contents .bs-pagination a:hover,
.bge-contents .bs-pagination a:hover {
	background-color: var(--c-primary-pale) !important;
	border-color: var(--c-primary);
	color: var(--c-primary-dark) !important;
	opacity: 1;
}
.bs-pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4em;
	min-height: 2.4em;
	padding: 0 0.55em;
	box-sizing: border-box;
	background: var(--c-primary);
	border: 1px solid var(--c-primary);
	border-radius: 4px;
	color: #fff;
	font-weight: bold;
}
.bs-pagination .disabled {
	color: #aaa;
	cursor: default;
}

/* =============================================================
   3. ページ別
   ============================================================= */

/* ======== トップページ ======== */

/* ---- メインビジュアル：キャッチ＋サブコピー ----
   画像ファイル名（main_image_1〜5）で各スライドを判別する方式。
   bxSliderがスライドを複製しても表示が崩れない。
   ::before＝キャッチ（大）／::after＝サブコピー（小）の2段構成。
   トップページメイン画像案に合わせ、
   表示位置は全スライド左下に統一（画像側も左下に余白を確保）。 */
#MainImage li,
#MainImage li a { position: relative; display: block; }

/* スライド画像は幅いっぱいに表示する（layout/default.php で画像の実寸の width／height を付けたため、
   width="100%" の代わりにここで指定する。高さは比率どおり自動） */
#MainImage img {
	width: 100%;
	height: auto;
}

/* bxSlider が動き出すまでは1枚目だけを表示する。
   読み込み直後は5枚が縦に並んで表示され、bxSlider の起動で1枚分の高さに縮むため、
   下のコンテンツが大きく動いていた（PageSpeed Insights の CLS 0.188 の原因）。
   起動後は bxSlider が各スライドに display を直接指定するので、切り替えには影響しない。 */
#MainImage > li + li {
	display: none;
}

#MainImage li a::before,
#MainImage li a::after {
	position: absolute;
	left: 5%;
	max-width: 70%;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0,0,0,0.6);
	white-space: pre-wrap;   /* \A で改行できる */
	line-height: 1.5;
	z-index: 10;
	pointer-events: none;    /* リンクのクリックを邪魔しない */
	text-decoration: none;   /* スライドを囲むaタグの標準下線を引き継がせない */
}

/* キャッチ（上段・大） */
#MainImage li a::before {
	bottom: calc(8% + 2.1em);
	font-size: 2.2rem;
	font-weight: bold;
	letter-spacing: 0.04em;
}

/* サブコピー（下段・小） */
#MainImage li a::after {
	bottom: 8%;
	font-size: 1.15rem;
	font-weight: normal;
}

/* 画像1：ようこそ（→ /about） */
#MainImage li:has(img[src*="main_image_1"]) a::before { content: "むずかしいを、やさしく。"; }
#MainImage li:has(img[src*="main_image_1"]) a::after { content: "高松から、地域のビジネスをITで支える。"; }

/* 画像2：PCサポート（→ /service/support） */
#MainImage li:has(img[src*="main_image_2"]) a::before { content: "すぐに呼べる、ITの相棒。"; }
#MainImage li:has(img[src*="main_image_2"]) a::after { content: "訪問・リモートで、PCのお困りごとをその場で解決。"; }

/* 画像3：Web制作・ドメイン／サーバー代行（→ /service/homepage） */
#MainImage li:has(img[src*="main_image_3"]) a::before { content: "つくって、続ける、ホームページ。"; }
#MainImage li:has(img[src*="main_image_3"]) a::after { content: "HP制作からドメイン・サーバー運用まで、一括対応。"; }

/* 画像4：業務改善支援（→ /service/improvement） */
#MainImage li:has(img[src*="main_image_4"]) a::before { content: "バラバラの業務を、ひとつに。"; }
#MainImage li:has(img[src*="main_image_4"]) a::after { content: "Excel改善・Notion導入・システム開発で、業務を前へ。"; }

/* 画像5：お問い合わせ（→ /contact/） */
#MainImage li:has(img[src*="main_image_5"]) a::before { content: "まずは、お気軽にご相談を。"; }
#MainImage li:has(img[src*="main_image_5"]) a::after { content: "初回のご相談は、30分まで無料です。"; }

/* スマホ：文字を小さく */
@media screen and (max-width: 768px) {
	#MainImage li a::before {
		font-size: 1.3rem !important;
		bottom: calc(8% + 2.4em);   /* サブを持ち上げた分メインも上げ、行間（メイン↔サブ）を 2em→1.2em に詰める */
		line-height: 1.3;          /* メイン自体の行間も詰める */
	}
	#MainImage li a::after {
		font-size: 0.85rem !important;
		bottom: calc(8% + 1.2em);   /* ドット（画面下のページナビ）に重ならないよう持ち上げる */
		line-height: 1.4;          /* サブの行間も詰めて2行時の高さを抑える */
	}

	/* スライドショーのページnavドットをスマホでは一回り小さく（PC:12px→SP:8px）
	   ※ bxSlider（.bx-pager / .bx-pager-link）に対応 */
	.bx-wrapper .bx-pager.bx-default-pager a,
	.bx-pager-link {
		width: 8px;
		height: 8px;
	}
	/* bxSlider本体CSSが a に付ける margin:0 5px を打ち消し、間隔は item 側で管理する */
	.bx-wrapper .bx-pager.bx-default-pager a {
		margin: 0;
	}
	/* ドット同士の間隔も狭めてバランスを取る（PC:0 10px→SP:0 5px） */
	.bx-pager-item {
		margin: 0 5px;
	}
}

/* ---- リード文（経営理念の抜粋）＋右ビジュアルの2カラム ----
   スマホ：ビジュアル → テキストの縦積み（インパクト優先で画像を上に）。
   900px以上：左テキスト／右ビジュアルの2カラム。
   画像は /img/top_lead.png（案B：アイソメトリックのワンストップIT支援）。 */
.top-lead {
	padding: 40px 5% 0;
}
.top-lead__inner {
	max-width: 1080px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;   /* スマホは縦積み */
	align-items: center;
	gap: 28px;
}
.top-lead__visual {
	order: -1;                /* スマホではビジュアルを先頭に */
	width: 100%;
}
.top-lead__visual img {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	margin: 0 auto;
}
.top-lead__body { text-align: center; }
.top-lead .copy {
	font-size: 1.3em;
	line-height: 2;
	font-weight: bold;
	color: #444;
	margin: 0 0 14px !important;
}
.top-lead .copy .accent { color: var(--c-primary); }
.top-lead .text {
	color: #666;
	margin: 0 0 14px !important;
}
.top-lead .more-link { text-align: center; }

/* 900px以上：左テキスト／右ビジュアルの2カラム */
@media screen and (min-width:900px) {
	.top-lead { padding: 56px 5% 0; }
	.top-lead__inner {
		flex-direction: row;
		align-items: center;
		gap: 48px;
	}
	.top-lead__body {
		flex: 1 1 0;
		text-align: left;
	}
	.top-lead__visual {
		order: 0;             /* PCでは右側に戻す */
		flex: 0 0 42%;
		max-width: 460px;
		width: auto;
	}
	.top-lead__visual img { max-width: 100%; }
	.top-lead .copy { font-size: 1.5em; }
	.top-lead .more-link { text-align: left; }
}
.bs-main-contents .top-lead__title,
.bge-contents .top-lead__title {
	font-family: inherit;
	font-size: 1.5em;
	font-weight: bold;
	line-height: 1.5;
	letter-spacing: normal;
	margin: 0 0 14px;
	padding: 0;
	color: #444;
	text-align: inherit;
	background: transparent;
	border: 0;
}

/* ---- 「〜を見る →」リンク（トップ共通） ---- */
.more-link {
	text-align: right;
	margin: 0 !important;
}
.more-link a {
	color: var(--c-primary-dark);
	font-weight: bold;
	text-decoration: none;
}
.more-link a:hover { text-decoration: underline; }

/* ---- サービス一覧カード ---- */
.service-list {
	padding: 64px 0;
}
.service-list__inner,
.top-updates {	/* 技術ブログ・お知らせ（layout/default.php）も同じ横幅にそろえる（2026-11-18） */
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}
.service-list__title {
	text-align: center;
	font-size: 1.75rem;
	color: #1a2b49;
	margin: 0 0 40px;
}

/* グリッド：PC3列 → タブレット2列 → スマホ1列に自動で縦積み */
.top-service-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

/* カード本体（div。ストレッチドリンクの基準にするため position: relative を付与） */
.top-service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e3e8ef;
	border-radius: 12px;
	padding: 28px 24px;
	text-decoration: none;
	color: inherit;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.top-service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 82, 204, .12);
	border-color: #0052cc;
}

/* アイコン（青アクセント＋淡い背景）：中央揃え */
.top-service-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: #eef4ff;      /* 淡い青の下地 */
	margin-bottom: 16px;
	align-self: center;
	/* アイコンは絵文字・インラインSVGを使わず CSS 側の背景SVGで描画する。
	   CKEditorに登録するHTMLからSVGを排除し、再保存で消えないようにするため。
	   （.audience-btn .ico と同じ方式） */
	background-repeat: no-repeat;
	background-position: center;
	background-size: 30px 30px;
}
/* カードごとのアイコン（stroke は #0052cc = %230052cc） */
.top-service-card.card-pcsupport .top-service-card__icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230052cc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
}
.top-service-card.card-web .top-service-card__icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230052cc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}
.top-service-card.card-improvement .top-service-card__icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230052cc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'/%3E%3Cpolyline points='17 6 23 6 23 12'/%3E%3C/svg%3E");
}

/* サービス名：中央揃え（style.css の main h3::before（■）装飾は出さない） */
.bs-main-contents .top-service-card__name,
.bge-contents .top-service-card__name {
	font-size: 1.15rem;
	color: #1a2b49;
	margin: 0 0 8px;
	width: 100%;
	text-align: center;
}
.top-service-card__name::before { content: none; }
.top-service-card__desc {
	font-size: .95rem;
	line-height: 1.7;
	color: #4a5568;
	margin: 0 0 20px;
	flex-grow: 1;            /* 説明文の長さが違ってもリンク位置を下端で揃える */
}

/* リンク（→ がホバーで右に動く）
   矢印はインラインSVGをやめ、CSSの擬似要素（::after）で描画。
   ::before はカード全面を覆う透明レイヤーで、カードのどこを
   クリックしてもリンク先へ飛べる「ストレッチドリンク」にする。 */
.top-service-card__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #0052cc;
	font-weight: 600;
	font-size: .95rem;
}
.top-service-card__link::after {
	content: "→";
	font-size: 1em;
	transition: transform .2s ease;
}
.top-service-card:hover .top-service-card__link::after {
	transform: translateX(4px);
}
/* ストレッチドリンク：カード全面をクリック可能に */
.top-service-card__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

@media (max-width: 600px) {
	.service-list { padding: 48px 0; }
	.top-service-card { padding: 24px 20px; }
}

/* ---- 技術ブログ＋お知らせ（1カラム・縦積み） ----
   記事数が増え、PCの2カラムではタイトルが折り返して読みにくいため、
   常に1カラム（技術ブログ → お知らせ）で全幅を使う構成に変更。 */
.update-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	margin: 0 0 20px;
}
.bs-main-contents .update-label,
.bge-contents .update-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	padding: 0 0 8px;
	font-size: inherit;
	line-height: normal;
	background: transparent;
	border-bottom: 2px solid var(--c-primary);
	border-radius: 0;
}
.update-label::before,
.update-label::after { content: none !important; }
.update-label .tag {
	font-size: 0.72em;
	font-weight: bold;
	color: #333;
	background: var(--c-accent);
	padding: 3px 12px;
	border-radius: 12px;
	white-space: nowrap;
}
.update-grid .bs-top-post {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}
.bs-main-contents .update-grid .bs-top-post__item,
.bge-contents .update-grid .bs-top-post__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	padding: 10px 4px;
	border-bottom: 1px solid #f0f0f0;
	list-style: none;
}
.bs-main-contents .update-grid .bs-top-post__item::before,
.bge-contents .update-grid .bs-top-post__item::before {
	content: none;
	display: none;
}
.update-grid .bs-top-post__item-date {
	color: #888;
	font-size: 0.92em;
	white-space: nowrap;
}
.update-grid .bs-top-post__item-category {
	flex: 0 0 auto;
	font-size: 0.8em;
	color: var(--c-primary-dark);
	border: 1px solid var(--c-primary);
	border-radius: 3px;
	padding: 1px 8px;
	white-space: nowrap;
	text-decoration: none;
}
.update-grid .bs-top-post__item-title {
	flex: 1 1 100%;   /* スマホはタイトルを2行目に */
	min-width: 0;
	color: #333;
	text-decoration: none;
}
.update-grid .bs-top-post__item-title:hover {
	color: var(--c-primary);
	text-decoration: underline;
}

/* 記事抜粋（item-detail）はタイトル一覧をスッキリ見せたいため非表示 */
.update-grid .bs-top-post__item-detail { display: none; }
/* 「VIEW ALL」リンクは .more-link と同じ右寄せリンクに。
   テーマ側の .bs-top-post-to-list 背景色・余白は打ち消す。 */
.update-grid .bs-top-post-to-list {
	text-align: right;
	margin: 0;
	padding: 0;
	background: none;
}
.update-grid .bs-top-post-to-list a {
	color: var(--c-primary-dark);
	font-weight: bold;
	background-color: #ffffff
}
.update-grid .bs-top-post-to-list a:hover { text-decoration: underline; }

/* 600px以上：日付・カテゴリ・タイトルを1行に */
@media screen and (min-width:600px) {
	.update-grid .bs-top-post__item-title { flex: 1 1 auto; }
}

/* 技術ブログ：カテゴリの有無に関わらず「日付｜カテゴリ｜タイトル」の左端を揃える。
   各 li を Grid 化し、日付列・カテゴリ列の幅を固定。カテゴリが無い記事もタイトルは第3列から始まる。
   新構造（.bs-sub-contents > .update-grid > .update-col > section > .bs-top-post）に対応。
   カテゴリは技術ブログ側のみに存在するため、左カラム（.update-col:first-child）だけに適用する。
   お知らせ側（2番目のブロック）は従来どおり日付＋タイトルのflexで揃える。
   日付列(6.5em)・カテゴリ列(7.5em)の幅は実際の表記に合わせて調整可。 */
@media screen and (min-width:600px) {
	.update-grid > .update-col:first-child .bs-top-post__item {
		display: grid;
		grid-template-columns: 6.5em 7.5em minmax(0, 1fr);   /* 日付列も固定幅にし、行ごとの auto 幅のブレでタイトル左端がずれるのを防ぐ */
		align-items: baseline;
		gap: 4px 12px;
	}
	.update-grid > .update-col:first-child .bs-top-post__item > .bs-top-post__item-date { grid-column: 1; }
	.update-grid > .update-col:first-child .bs-top-post__item > .bs-top-post__item-category {
		grid-column: 2;
		justify-self: start;
	}
	.update-grid > .update-col:first-child .bs-top-post__item > .bs-top-post__item-title { grid-column: 3; }
}

/* 900px以上：1カラムのまま、セクション間の余白だけ広げる
   （2カラム時は列間50pxだったが、縦積みでは上下の区切りとして56px取る） */
@media screen and (min-width:900px) {
	.update-grid {
		grid-template-columns: 1fr;
		gap: 56px;
	}
}

/* ======== 会社案内 ======== */

/* 経営理念 */
.philosophy {
	text-align: center;
	font-size: 1.3em;
	line-height: 2;
	font-weight: bold;
	color: #444;
	padding: 20px 0 30px;
}
.philosophy .accent { color: var(--c-primary); }

.message-sign {
	text-align: right;
	margin-top: 20px !important;
	color: #666;
}
.message-sign .name {
	color: #333;
	font-weight: bold;
	font-size: 1.15em;
	margin-left: 10px;
}

/* 沿革（タイムライン） */
.timeline {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 720px;
	position: relative;
}
.timeline::before {
	content: "";
	position: absolute;
	left: 70px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: var(--c-border);
}
.timeline li {
	display: grid;
	grid-template-columns: 70px 1fr;
	gap: 24px;
	padding: 0 0 24px 0;
	position: relative;
}
.timeline li::before {
	content: "";
	position: absolute;
	left: 64px;
	top: 8px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--c-primary);
	box-shadow: 0 0 0 4px #fff;
}
.timeline li.is-new::before { background: var(--c-accent); }
.timeline .year {
	font-size: 1.15em;
	font-weight: bold;
	color: var(--c-primary-dark);
}
/* 各年の見出し：見出しの階層を飛ばさないよう h4 → h3 に変更した（沿革の h2 の直下）。
   h3 になると pages.css 末尾の .bs-main-contents h3（余白・行高）と style.css の main h3::before（「■」）が付き、
   bge_style.css の h4 の指定（点線の下線・下余白）が外れるため、h4 だったときの見た目をここで保つ。 */
.bs-main-contents .timeline h3,
.bge-contents .timeline h3 {
	margin: 0 0 4px;
	padding: 0 0 12px;
	font-size: 1.1em;
	line-height: 1.6;
	border-bottom: 1px dotted #ccc;
	overflow: hidden;
	position: relative;
}
.timeline h3::before { content: none; }
.timeline p { margin: 0 !important; color: #666; font-size: 1em; }

/* スマホ：年の左の余白をなくし、見出し「沿革」と左端をそろえる。
   .timeline の margin・padding は、より強い「本文の番号付きリスト」の指定
   （bge_style.css の .bs-main-contents ol { margin-left: 1.8em }・本ファイル末尾の padding-left: 2.6em）に
   上書きされ、年の左に約57px の余白が付いていた。PC・タブレットは今の見た目を保つため、スマホだけ打ち消す。
   詳細度（.bs-main-contents .timeline）で上回るため、末尾の指定より前に置いても効く。 */
@media screen and (max-width: 600px) {
	.bs-main-contents .timeline {
		margin-left: 0;
		padding-left: 0;
	}
}

/* Google Map 埋め込み（会社概要内・レスポンシブ） */
.map-embed {
	position: relative;
	width: 100%;
	max-width: 600px;
	aspect-ratio: 4 / 3;      /* 600×450 と同じ比率 */
	margin-top: 12px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--c-border);
}
.map-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ======== PCサポート ======== */

/* ---- 移行・引き継ぎサポート：通常の番号リスト ---- */
.bs-main-contents #migration,
.bge-contents #migration {
	margin: 0 0 30px;
	padding-left: 1.5em;
	letter-spacing: normal;
	line-height: 2;
}
.bs-main-contents #migration li,
.bge-contents #migration li {
	margin: 0.5em 0;
	padding: 0;
	list-style-type: decimal;
	line-height: inherit;
}
.bs-main-contents #migration li::before,
.bge-contents #migration li::before {
	content: none;
	display: none;
}

/* ======== HP制作・ドメイン／サーバー代行 ======== */

/* --- 制作実績グリッド --- */
.works-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4em;
	margin: 1.4em 0;
}
.work-card {
	margin: 0;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(20, 50, 110, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(20, 50, 110, 0.14);
}
.work-card > a {
	display: block;
	color: inherit;
	text-decoration: none;
}
.work-card > a:hover figcaption {
	color: var(--c-primary-dark);
	text-decoration: underline;
}
.work-card > a:focus-visible {
	outline: 3px solid var(--c-primary);
	outline-offset: -3px;
}
.work-card img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	background: var(--c-primary-pale); /* 画像未設定時のプレースホルダー色 */
}
.work-card figcaption {
	padding: 0.8em 1em;
	font-size: 0.9em;
	line-height: 1.6;
	color: #333;
}

/* --- レスポンシブ（SP） --- */
@media screen and (max-width: 768px) {
	.works-grid {
		grid-template-columns: 1fr;
		gap: 1em;
	}
	.work-card img {
		height: 200px;
	}
}

/* ======== 技術ブログ・お知らせ ======== */

/* ---- ブログ一覧ページ（blog/archives） ----
   トップページの技術ブログ一覧と同じデザインで表示する。
   baserCMSのブログ一覧出力は .bs-blog-post* クラス（ブログ系ページのみ出力）
   のため、トップの .update-grid のようなラッパーは不要。
   section タグ内を変更せず、クラスへ直接スコープして適用する。
   ※記事抜粋（item-detail）のみ .bs-top-post__item-detail クラスで出力される。 */

/* アイキャッチ画像は詳細ページ（.bs-single-post__eye-catch）でのみ表示し、
   一覧（アーカイブ）・トップの記事一覧では出力されても非表示にする。 */
.bs-blog-post__item-eye-catch,
.bs-top-post__item-eye-catch { display: none; }

.bs-blog-post {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}
.bs-blog-post__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	padding: 10px 4px;
	border-bottom: 1px solid #f0f0f0;
}
.bs-blog-post__item-date {
	color: #888;
	font-size: 0.92em;
	white-space: nowrap;
}
.bs-blog-post__item-category {
	flex: 0 0 auto;
	font-size: 0.8em;
	color: var(--c-primary-dark);
	border: 1px solid var(--c-primary);
	border-radius: 3px;
	padding: 1px 8px;
	white-space: nowrap;
	text-decoration: none;
}
.bs-blog-post__item-title {
	flex: 1 1 100%;   /* スマホはタイトルを2行目に */
	min-width: 0;
}
.bs-main-contents .bs-blog-post__item-title a:link,
.bs-main-contents .bs-blog-post__item-title a:visited,
.bge-contents .bs-blog-post__item-title a:link,
.bge-contents .bs-blog-post__item-title a:visited {
	color: #333;
	text-decoration: none;
}
.bs-main-contents .bs-blog-post__item-title a:hover,
.bge-contents .bs-blog-post__item-title a:hover {
	color: var(--c-primary);
	text-decoration: underline;
}
/* 記事抜粋（item-detail）はトップと同様に非表示 */
.bs-blog-post__item .bs-top-post__item-detail { display: none; }

/* 600px以上：日付・カテゴリ・タイトルの左端を揃える（トップと同じGrid方式）。
   各記事を Grid 化し、日付列(6.5em)・カテゴリ列(7.5em)を固定。
   カテゴリが無い記事もタイトルは第3列から始まり、左端が揃う。 */
@media screen and (min-width:600px) {
	.bs-blog-post__item {
		display: grid;
		grid-template-columns: 6.5em 7.5em minmax(0, 1fr);
		align-items: baseline;
		gap: 4px 12px;
	}
	.bs-blog-post__item-date { grid-column: 1; }
	.bs-blog-post__item-category { grid-column: 2; justify-self: start; }
	.bs-blog-post__item-title { grid-column: 3; }
}

/* ---- ブログ詳細ページ（blog/archives/【記事ID】） ----
   1記事の詳細表示。baserCMSのブログ詳細出力（.bs-single-post* /
   .bs-blog-title / .bs-blog-post-title / #post-detail）に対応。
   ブログ一覧（.bs-blog-post*）と同じ青系トーンで、本文を読みやすく整える。 */

/* ---- 「技術ブログ」見出し（記事上部のブログ名ラベル） ---- */
.bs-main-contents .bs-blog-title,
.bge-contents .bs-blog-title {
	font-family: inherit;
	font-size: 1.1em;
	font-weight: bold;
	line-height: normal;
	color: var(--c-primary-dark);
	letter-spacing: 0.08em;
	margin: 0 0 10px;
	padding: 0 0 6px;
	text-align: left;
	background: transparent;
	border-top: none;
	border-right: none;
	border-bottom: 2px solid var(--c-primary);
	border-left: none;
	border-radius: 0;
	overflow: visible;
}

/* ---- 記事タイトル ---- */
.bs-main-contents .bs-blog-post-title,
.bge-contents .bs-blog-post-title {
	font-family: inherit;
	font-size: 1.6em;
	font-weight: bold;
	line-height: 1.5;
	letter-spacing: normal;
	color: #333;
	margin: 0 0 18px;
	padding: 0 0 16px;
	background: transparent;
	border-top: none;
	border-right: none;
	border-bottom: 1px solid var(--c-border-soft);
	border-left: none;
	border-radius: 0;
	overflow: visible;
	position: static;
}
/* style.css の「main h3::before（■）」装飾を記事タイトルでは出さない */
.bs-blog-post-title::before { content: none; }

/* ---- 見出しの階層変更に合わせた指定（ブログ） ----
   ページの主題を h1 にするため、テンプレートを次のように変更した。
     記事詳細：ブログ名（技術ブログ・お知らせ）h2 → p（見出しにしない）／記事タイトル h3 → h1
     一覧　　：ブログ名 h2 → h1
     カテゴリ・タグ・日付別一覧：ブログ名 h2 → p ／一覧名 h3 → h1（「〇〇 の記事一覧」）
   ブログ名は h2 だったとき、main.js が中身を <span class="uline">（上下10px・左右20px の余白、
   3px 下へずらす）で包んでいた。h2 でなくなると包まれないため、同じ位置に文字が来る余白を
   .bs-blog-title 自体に付けて、見た目（下線付きラベル）を変えないようにする。 */
.bs-main-contents .bs-blog-title,
.bge-contents .bs-blog-title {
	padding: 13px 20px 13px;
}

/* 一覧名（h1）：h3 だったときの見た目（文字の大きさ・色・先頭の「■」）をそのまま保つ */
.bs-main-contents .bs-blog-category-title,
.bge-contents .bs-blog-category-title {
	font-family: inherit;
	font-size: 1.17em;
	font-weight: bold;
	line-height: normal;
	letter-spacing: normal;
	margin: 1em 0 20px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
}
.bs-blog-category-title::before {
	display: inline-block;
	content: "■";
	transform: scale(0.5);
	padding-right: 10px;
	margin-left: -0.4em;
}

/* ---- 記事本体（1カラム・読みやすい幅に制限） ---- */
.bs-single-post {
	max-width: 820px;
	margin: 0 auto 40px;
	padding: 0;
}

/* ---- メタ情報（カテゴリ・日付） ---- */
.bs-single-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;   /* カテゴリ・日付を右寄せに */
	gap: 8px 12px;
	margin-bottom: 22px;
}
.bs-single-post__meta-date {
	color: #888;
	font-size: 0.92em;
	white-space: nowrap;
}
.bs-single-post__meta-category {
	font-size: 0.8em;
	color: var(--c-primary-dark);
	border: 1px solid var(--c-primary);
	border-radius: 3px;
	padding: 1px 10px;
	white-space: nowrap;
	text-decoration: none;
}
.bs-single-post__meta-category:hover { background: var(--c-primary-pale); }

/* ---- アイキャッチ画像（無い場合は余白を出さない） ---- */
.bs-single-post__eye-catch:has(img) { margin: 0 0 28px; }
.bs-single-post__eye-catch img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ---- 記事詳細（本文） ---- */
#post-detail {
	font-size: 1em;
	line-height: 2;
	color: #5f6f7a;
}
#post-detail p { margin: 0 0 1.6em; }
#post-detail h2,
#post-detail h3,
#post-detail h4 { color: #333; margin: 1.8em 0 0.8em; }
#post-detail h2 {
	font-size: 1.3em;
	padding: 6px 0 6px 14px;
	border-left: 4px solid var(--c-primary);
}
#post-detail h3 {
	font-size: 1.15em;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--c-border-soft);
}
#post-detail h2::before,
#post-detail h3::before,
#post-detail h4::before { content: none; }
/* 記事本文の h2 は左マーカーだけにする（2026-11-19）。
   main.js が main h2 の中身を <span class="uline"> で包み、style.css の main h2 の下線
   （薄いグレーの線・画面に入ると伸びる水色の線）と左右20pxの余白が付くため、記事本文では打ち消す。
   固定ページの h2 の下線はそのまま。 */
#post-detail h2 { border-bottom: none; }
#post-detail h2 .uline {
	display: inline;
	position: static;
	padding: 0;
	bottom: auto;
}
#post-detail h2 .uline::before { content: none; }
#post-detail img { height: auto; border-radius: 6px; }
#post-detail a { color: var(--c-primary-dark); text-decoration: underline; }
#post-detail a:hover { opacity: 0.8; }
/* 記事内CTAボタン（element/cta_contact.php）：
   #post-detail a の色・下線を打ち消し、.btn 本来の白文字・下線なしに戻す */
#post-detail .cta-contact .btn a,
#post-detail .cta-contact .btn a:link,
#post-detail .cta-contact .btn a:visited,
#post-detail .cta-contact .btn a:hover,
#post-detail .cta-contact .btn a:focus,
#post-detail .cta-contact .btn a:active {
	color: #fff;
	text-decoration: none;
}
/* 記事末尾のCTA（element/blog_cta.php）：本文と区別する枠
   「参考情報」の直前に挿入されるCTA全体を、淡い色の枠で囲んで本文の段落と区別する。
   中の並び：見出し（.blog-cta__title）→ 説明文 → 主ボタン（.btn）→ 副ボタン（.blog-cta__sub）。
   #post-detail p の余白（0 0 1.6em）より優先させるため、#post-detail 付きで指定する。 */
#post-detail .blog-cta {
	margin: 40px 0;
	padding: 24px 20px;
	background: var(--c-primary-pale);
	border: 1px solid var(--c-border);
	border-radius: 8px;
	text-align: center;
}
#post-detail .blog-cta .blog-cta__title {
	margin: 0 0 8px;
	font-size: 1.15em;
	font-weight: bold;
	color: var(--c-primary-dark);
}
#post-detail .blog-cta p { margin: 0 0 16px; }
#post-detail .blog-cta > :last-child { margin-bottom: 0; }	/* 枠の下の余白を上とそろえる */

/* 記事末尾のCTA（element/blog_cta.php）：副リンクを枠線ボタンにする
   主：「無料相談を予約」（塗りの .btn）／副：サービスページ（白地＋枠線）。
   同じ見た目のボタンを2つ並べると迷わせるため、副は枠線だけにして主と区別する。
   主の下に縦に並べる（スマホでもそのまま使え、優先順位も伝わる）。
   #post-detail a の色・下線より優先させるため、#post-detail 付きで指定する。 */
#post-detail .blog-cta .blog-cta__sub {
	margin: 12px 0 0;
	text-align: center;
}
#post-detail .blog-cta .blog-cta__sub a,
#post-detail .blog-cta .blog-cta__sub a:link,
#post-detail .blog-cta .blog-cta__sub a:visited {
	display: inline-block;
	padding: 10px 24px;
	background: #fff;
	color: var(--c-primary-dark);
	border: 2px solid var(--c-primary);
	border-radius: 4px;
	font-weight: bold;
	line-height: 1.5;
	text-decoration: none;
	transition: background .2s;
}
#post-detail .blog-cta .blog-cta__sub a:hover,
#post-detail .blog-cta .blog-cta__sub a:focus {
	background: var(--c-primary-pale);
	opacity: 1;
}
@media screen and (max-width: 600px) {
	#post-detail .blog-cta .blog-cta__sub a {
		display: block;   /* スマホは幅いっぱいにして押しやすく */
	}
}
#post-detail ul,
#post-detail ol { margin: 0 0 1.6em; padding-left: 1.6em; }
#post-detail ol { padding-left: 2.6em; }	/* 番号付きリストのみ広げる */
#post-detail li { margin-bottom: 0.4em; }
/* 記事内の表：全幅は維持しつつ、列幅は内容量に応じて自動配分 */
#post-detail table {
	width: 100%;
	table-layout: auto;
}
/* 記事内の引用（問い合わせ文の例など）：
   bge_style.css の「“ ”」の飾りと灰色の枠を打ち消し、白地に細い枠線のカードにする。
   目次（青）・注意喚起（黄）・関連記事（灰）のボックスと見分けられるよう、背景は白にする。 */
#post-detail blockquote {
	margin: 0 0 1.6em;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid #d5dbe1;
	border-radius: 6px;
	color: #333;
	font-size: 0.95em;
	overflow: visible;
}
#post-detail blockquote::before,
#post-detail blockquote::after {
	content: none;
}
#post-detail blockquote > :last-child {
	margin-bottom: 0;
}

/* ---- 技術ブログの比較表（3列以上・横スクロール） ---- */
.bge-contents .blog-table-scroll {
	max-width: 100%;
	overflow-x: auto;
}

.bge-contents .blog-comparison-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
}

.bge-contents .blog-comparison-table th,
.bge-contents .blog-comparison-table td {
	padding: 0.75em;
	border: 1px solid #ccc;
	text-align: left;
	vertical-align: top;
}

.bge-contents .blog-comparison-table th {
	background: #f3f6f9;
}

/* 技術ブログの比較表はスマホでも表形式を維持する */
.bge-contents .blog-table-scroll table.blog-comparison-table,
.bs-main-contents .blog-table-scroll table.blog-comparison-table {
	display: table;
}

.bge-contents .blog-table-scroll .blog-comparison-table caption,
.bs-main-contents .blog-table-scroll .blog-comparison-table caption {
	display: table-caption;
}

.bge-contents .blog-table-scroll .blog-comparison-table thead,
.bs-main-contents .blog-table-scroll .blog-comparison-table thead {
	display: table-header-group;
}

.bge-contents .blog-table-scroll .blog-comparison-table tbody,
.bs-main-contents .blog-table-scroll .blog-comparison-table tbody {
	display: table-row-group;
}

.bge-contents .blog-table-scroll .blog-comparison-table tfoot,
.bs-main-contents .blog-table-scroll .blog-comparison-table tfoot {
	display: table-footer-group;
}

/* ---- 技術ブログのチェックリスト（.blog-checklist） ----
   記事内のチェックリスト（休暇前後の確認など）。画面上でクリックして印を付けられる。
   文が2行以上になっても、2行目以降を1行目の書き出しにそろえる（チェックボックスと文を左右に分けて並べる）。
   bge_style.css の「・」の飾りと左の余白、#post-detail ul の余白を打ち消すため、
   .bge-contents / .bs-main-contents / #post-detail 付きの指定を併記する。
   使い方：
   <ul class="blog-checklist">
     <li><label><input type="checkbox"><span>確認する内容。</span></label></li>
   </ul>
   ※ページを開き直すと印は消える（保存はしない）。 */
.bs-main-contents ul.blog-checklist,
.bge-contents ul.blog-checklist,
#post-detail ul.blog-checklist {
	list-style: none;
	margin: 0 0 1.6em;
	padding: 0;
}
.bs-main-contents ul.blog-checklist li,
.bge-contents ul.blog-checklist li,
#post-detail ul.blog-checklist li {
	list-style: none;
	margin: 0 0 0.6em;
	padding: 0;
	overflow: visible;
}
.bs-main-contents ul.blog-checklist li::before,
.bge-contents ul.blog-checklist li::before,
#post-detail ul.blog-checklist li::before {
	content: none;
	display: none;
}
.blog-checklist label {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	margin: 0;
	font-weight: normal;
	cursor: pointer;
}
.blog-checklist input[type="checkbox"] {
	flex: none;
	width: 1.15em;
	height: 1.15em;
	margin: 0.35em 0 0;	/* body の line-height:2 の1行目の文字の高さにそろえる */
	accent-color: var(--c-primary);
}
.blog-checklist label > span {
	flex: 1;
	min-width: 0;
}

.bge-contents .blog-table-scroll .blog-comparison-table tr,
.bs-main-contents .blog-table-scroll .blog-comparison-table tr {
	display: table-row;
}

.bge-contents .blog-table-scroll .blog-comparison-table th,
.bge-contents .blog-table-scroll .blog-comparison-table td,
.bs-main-contents .blog-table-scroll .blog-comparison-table th,
.bs-main-contents .blog-table-scroll .blog-comparison-table td {
	display: table-cell;
	width: auto;
}

/* ---- 技術ブログの比較表：折り返しを抑える列ユーティリティ ----
   HTMLのth/tdに class="blog-col-nowrap" を付けて使用する。
   価格推移表などで、日付・金額の列を折り返さないための共通クラス。 */
.bge-contents .blog-comparison-table .blog-col-nowrap,
.bs-main-contents .blog-comparison-table .blog-col-nowrap {
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
}

/* 日付列・時期列 */
.bge-contents .blog-comparison-table .blog-col-date,
.bs-main-contents .blog-comparison-table .blog-col-date {
	width: 120px;
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
}

/* 価格・金額列 */
.bge-contents .blog-comparison-table .blog-col-price,
.bs-main-contents .blog-comparison-table .blog-col-price {
	width: 130px;
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
}

/* ---- この記事を書いた会社（記事末尾の会社情報エレメント） ----
   element/company_info.php を Blog/techblog/single.php から出力。
   参考情報のリストの直後に色面が詰まって見えないよう、上に余白を取る。
   .bs-single-post で絞り、固定ページの会社情報には影響させない。 */
.bs-single-post #company {
	margin-top: 3em;
}

/* ---- 前後記事ナビ（記事下部の「≪ 前の記事 / 次の記事 ≫」） ---- */
.bs-blog-contents-navi {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	max-width: 820px;
	margin: 0 auto 40px;
	padding-top: 22px;
	border-top: 1px solid var(--c-border-soft);
}
.bs-blog-contents-navi a {
	display: inline-block;
	max-width: 48%;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 6px;
	color: var(--c-primary-dark);
	font-size: 0.95em;
	text-decoration: none;
	transition: 0.3s;
}
.bs-blog-contents-navi a:hover {
	background: var(--c-primary-pale);
	border-color: var(--c-primary);
	opacity: 1;
}
.bs-blog-contents-navi .prev-link { margin-right: auto; }
.bs-blog-contents-navi .next-link { margin-left: auto; text-align: right; }

/* ---- 関連記事 ---- */
.bs-blog-related-posts {
	max-width: 820px;
	margin: 0 auto 40px;
	padding: 24px 26px;
	border: 1px solid var(--c-border);
	border-radius: 8px;
}
.bs-blog-related-posts .contents-head {
	margin: 0 0 12px;
	padding-bottom: 8px;
	color: var(--c-primary-dark);
	font-size: 1.15em;
	border-bottom: 2px solid var(--c-primary);
}
.bs-blog-related-posts .contents-head::before { content: none; }
/* 見出しの階層変更：関連記事の見出しを h4 → h2 に変更した
   （baserCMS本体の部品 blog_related_posts.php をテーマへコピーして修正）。
   h2 になると bge_style.css・style.css の h2 の指定と、main.js の下線用 span（.uline）が
   付くため、それらを打ち消して h4 だったときの見た目を保つ。 */
.bs-main-contents .bs-blog-related-posts .contents-head,
.bge-contents .bs-blog-related-posts .contents-head {
	font-family: inherit;
	font-size: 1.15em;
	font-weight: bold;
	line-height: 2;
	letter-spacing: normal;
	margin: 0 0 12px;
	padding: 0 0 8px;
	overflow: hidden;
	text-align: start;
	background: transparent;
}
.bs-blog-related-posts .contents-head .uline {
	display: inline;
	position: static;
	padding: 0;
	bottom: auto;
}
.bs-blog-related-posts .contents-head .uline::before { content: none; }
.bs-main-contents .bs-blog-related-posts ul,
.bge-contents .bs-blog-related-posts ul {
	list-style: none;
	margin: 0;
	padding: 0;
	letter-spacing: normal;
}
.bs-main-contents .bs-blog-related-posts li,
.bge-contents .bs-blog-related-posts li {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--c-border-soft);
}
.bs-main-contents .bs-blog-related-posts li::before,
.bge-contents .bs-blog-related-posts li::before {
	content: none;
	display: none;
}
.bs-blog-related-posts li:last-child { border-bottom: none; }
.bs-blog-related-posts li a {
	display: block;
	position: relative;
	padding: 10px 4px 10px 22px;
	color: #333;
	text-decoration: none;
}
.bs-blog-related-posts li a::before {
	content: "▸";
	position: absolute;
	left: 4px;
	color: var(--c-primary);
}
.bs-blog-related-posts li a:hover {
	color: var(--c-primary);
	text-decoration: underline;
	opacity: 1;
}

/* ブログ詳細：スマホ調整 */
@media screen and (max-width: 600px) {
	.bs-blog-post-title { font-size: 1.35em; }
	.bs-blog-contents-navi { flex-direction: column; }
	.bs-blog-contents-navi a { max-width: 100%; }
}

/* ---- ブログ：ウィジェットエリア（サイドバー）レイアウト ----
   body#Techblog（技術ブログ）・body#News（お知らせ）のみに適用。
   ※ body の id はコンテンツ名（URL）由来。URL を変えたら :is() 内の ID も合わせること。
   ・ウィジェットあり（技術ブログ）：PCで 左 記事 ／ 右 サイドバー の2カラム
   ・ウィジェットなし（お知らせ）：見出し・本文を820px幅で中央寄せ
   ※ ウィジェットが無くても .bs-wrap 直下に空の .bs-sub-contents が出力されるため、
     「中に要素があるか」（.bs-sub-contents > *）でウィジェットの有無を判定し、空の枠は非表示にする。
   ※ main 内の記事も section.bs-sub-contents で包まれているため、
     サイドバーとは子セレクタ（>）で区別する。 */

/* main 内の section.bs-sub-contents はサイドバーではないのでリセット */
:is(#Techblog, #News) .bs-main-contents > .bs-sub-contents {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* 外枠 */
:is(#Techblog, #News) .bs-wrap {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 5% 40px;
	box-sizing: border-box;
}
:is(#Techblog, #News) .bs-wrap > .bs-main-contents,
:is(#Techblog, #News) .bs-wrap > .bs-sub-contents {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}
/* スマホ：記事の下にサイドバー */
:is(#Techblog, #News) .bs-wrap > .bs-sub-contents { margin-top: 40px; }
/* 中身のないウィジェットエリア（お知らせ）は出さない */
:is(#Techblog, #News) .bs-wrap > .bs-sub-contents:not(:has(*)) { display: none; }

/* PC（900px以上）：サイドバーがある場合のみ 左 記事 ／ 右 サイドバー */
@media screen and (min-width: 900px) {
	:is(#Techblog, #News) .bs-wrap:has(> .bs-sub-contents > *) {
		display: flex;
		align-items: flex-start;
		gap: 40px;
	}
	:is(#Techblog, #News) .bs-wrap:has(> .bs-sub-contents > *)::after { content: none; }	/* clearfix がflexアイテム化するのを防ぐ */
	:is(#Techblog, #News) .bs-wrap > .bs-main-contents {
		flex: 1 1 auto;
		min-width: 0;	/* 長いURL・表で横にはみ出さないように */
	}
	:is(#Techblog, #News) .bs-wrap > .bs-sub-contents {
		flex: 0 0 260px;	/* サイドバー幅 */
		margin-top: 0;
		padding-top: 40px;	/* main の padding-top:40px と揃える */
	}
}

/* ウィジェットなしのブログ（お知らせ）：見出し・本文・ナビを同じ幅で中央寄せ */
:is(#Techblog, #News) .bs-wrap:not(:has(> .bs-sub-contents > *)) > .bs-main-contents {
	max-width: 820px;
	margin: 0 auto;
}

/* ---- ウィジェット共通 ---- */
.bs-widget-area { font-size: 0.92em; }
.bs-widget-area > .bs-widget,
.bs-widget-area > .widget {
	margin: 0 0 24px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 8px;
}
.bs-widget-area .bs-widget-head,
.bs-widget-area > .widget > h2 {
	margin: 0 0 10px;
	padding: 0 0 8px;
	font-size: 1em;
	letter-spacing: 0.05em;
	color: var(--c-primary-dark);
	border-bottom: 2px solid var(--c-primary);
}

/* リスト（カテゴリ・タグ・最近の投稿） */
.bs-widget-area ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bs-widget-area li { border-bottom: 1px solid var(--c-border-soft); }
.bs-widget-area li:last-child { border-bottom: none; }
.bs-widget-area li a {
	display: block;
	position: relative;
	padding: 8px 4px 8px 18px;
	line-height: 1.6;
	color: #333;
	text-decoration: none;
}
.bs-widget-area li a::before {
	content: "▸";
	position: absolute;
	left: 2px;
	color: var(--c-primary);
}
.bs-widget-area li a:hover {
	color: var(--c-primary);
	text-decoration: underline;
	opacity: 1;
}

/* タグが0件のときはウィジェットごと隠す */
.bs-widget-area > .widget:not(:has(li)) { display: none; }

/* サイト内検索 */
.bs-widget-form br { display: none; }
.bs-widget-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.9em;
}
.bs-widget-form span { display: block; margin-bottom: 8px; }
.bs-widget-form select,
.bs-widget-form input[type="text"] {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid var(--c-border);
	border-radius: 4px;
	box-sizing: border-box;
}
.bs-widget-form input[type="submit"] {
	width: 100%;
	padding: 8px;
	border: none;
	border-radius: 4px;
	background: var(--c-primary);
	color: #fff;
	cursor: pointer;
}
.bs-widget-form input[type="submit"]:hover { opacity: 0.85; }

/* ======== サイト内検索の結果 ======== */

/* ---- 検索結果一覧（bc-search-index/search_indexes/search） ----
   body#BcSearchIndexSearchIndexes のみに適用。 */

/* ---- レイアウト：中央寄せ1カラム ---- */
#BcSearchIndexSearchIndexes .bs-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 5% 60px;
	box-sizing: border-box;
}
/* main 内の section.bs-sub-contents（本文の入れ物）と、
   中の section（ヘッダー・結果）に効く style.css の section 余白を打ち消す */
#BcSearchIndexSearchIndexes .bs-main-contents > .bs-sub-contents,
#BcSearchIndexSearchIndexes .bs-search-header,
#BcSearchIndexSearchIndexes .bs-search-result {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}
/* 中身のないウィジェットエリア（サイドバー）は出さない */
#BcSearchIndexSearchIndexes .bs-wrap > .bs-sub-contents:not(:has(*)) {
	display: none;
}

/* ---- 見出し（お問い合わせの .bs-mail-title と同じ形） ---- */
#BcSearchIndexSearchIndexes .bs-search-title {
	font-family: inherit;
	font-size: 1.75rem;
	font-weight: bold;
	line-height: 1.4;
	letter-spacing: 0.05em;
	color: var(--c-primary-dark);
	margin: 0 0 24px;
	padding: 0 0 12px;
	text-align: left;
	background: transparent;
	border: none;
	border-bottom: 3px solid var(--c-primary);
	border-radius: 0;
	position: relative;
	overflow: visible;
}
#BcSearchIndexSearchIndexes .bs-search-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 80px;
	height: 3px;
	background: var(--c-primary-dark);
}

/* ---- 検索フォーム ---- */
#BcSearchIndexSearchIndexes .bs-search-form {
	margin: 0 0 24px;
	padding: 18px 20px;
	background: var(--c-primary-pale);
	border: 1px solid var(--c-border);
	border-radius: 8px;
}
#BcSearchIndexSearchIndexes .bs-search-form form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
#BcSearchIndexSearchIndexes .bs-search-form span { display: block; }
#BcSearchIndexSearchIndexes .bs-search-form span:has(input[type="text"]) {
	flex: 1 1 220px;	/* キーワード欄を広く */
}
#BcSearchIndexSearchIndexes .bs-search-form select,
#BcSearchIndexSearchIndexes .bs-search-form input[type="text"] {
	width: 100%;
	height: 2.6em;
	padding: 0 10px;
	font-size: 1rem;
	border: 1px solid var(--c-border);
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
}
#BcSearchIndexSearchIndexes .bs-search-form select:focus,
#BcSearchIndexSearchIndexes .bs-search-form input[type="text"]:focus {
	outline: 2px solid var(--c-primary-dark);
	outline-offset: 1px;
	border-color: var(--c-primary-dark);
}
#BcSearchIndexSearchIndexes .bs-search-form input[type="submit"] {
	height: 2.6em;
	padding: 0 2em;
	font-size: 1rem;
	letter-spacing: 0.1em;
	color: #fff;
	background: var(--c-primary);
	border: none;
	border-radius: 4px;
	box-shadow: none;
	cursor: pointer;
	transition: 0.3s;
}
#BcSearchIndexSearchIndexes .bs-search-form input[type="submit"]:hover {
	background: var(--c-primary-dark);
}

/* ---- 表示件数 ---- */
#BcSearchIndexSearchIndexes .bs-list-num {
	margin: 0 0 8px;
	text-align: right;
	font-size: 0.85em;
	color: #888;
}
#BcSearchIndexSearchIndexes .bs-list-num strong {
	font-weight: normal;
	margin-right: 0.6em;
}
#BcSearchIndexSearchIndexes .bs-list-num__number > span { margin: 0 0.3em; }
#BcSearchIndexSearchIndexes .bs-list-num .current {
	color: var(--c-primary-dark);
	font-weight: bold;
}

/* ---- 検索結果リスト ---- */
#BcSearchIndexSearchIndexes .bs-search-result {
	border-top: 1px solid var(--c-border);
}
#BcSearchIndexSearchIndexes .bs-search-result__item {
	padding: 16px 4px;
	border-bottom: 1px solid var(--c-border-soft);
	transition: background 0.2s;
}
#BcSearchIndexSearchIndexes .bs-search-result__item:hover {
	background: var(--c-primary-pale);
}
#BcSearchIndexSearchIndexes .bs-search-result__item-head {
	margin: 0 0 4px;
	padding: 0;
	font-size: 1.1em;
	line-height: 1.6;
	background: transparent;
	border: none;
	border-radius: 0;
}
#BcSearchIndexSearchIndexes .bs-search-result__item-head::before { content: none; }	/* style.css の「■」を消す */
#BcSearchIndexSearchIndexes .bs-search-result__item-head a {
	color: #333;
	text-decoration: none;
}
#BcSearchIndexSearchIndexes .bs-search-result__item-head a:hover {
	color: var(--c-primary);
	text-decoration: underline;
	opacity: 1;
}
#BcSearchIndexSearchIndexes .bs-search-result__item-body {
	margin: 0 0 4px;
	font-size: 0.9em;
	line-height: 1.8;
	color: #5f6f7a;
}
#BcSearchIndexSearchIndexes .bs-search-result__item-body:empty { display: none; }	/* 抜粋なしの時は余白を出さない */
#BcSearchIndexSearchIndexes .bs-search-result__item-link {
	margin: 0;
	line-height: 1.5;
	word-break: break-all;
}
#BcSearchIndexSearchIndexes .bs-search-result__item-link a {
	font-size: 0.85em;
	color: #888;
	text-decoration: none;
}
#BcSearchIndexSearchIndexes .bs-search-result__item-link a:hover {
	color: var(--c-primary-dark);
	text-decoration: underline;
}

/* 検索結果0件時のメッセージ（baserCMS 標準出力の p） */
#BcSearchIndexSearchIndexes .bs-search-result > p {
	margin: 0;
	padding: 30px 0;
	text-align: center;
	color: #888;
}

/* ---- ページネーション（スタイルは既存の .bs-pagination を流用） ---- */
#BcSearchIndexSearchIndexes .bs-search-pagination { margin-top: 8px; }

/* ---- スマホ ---- */
@media screen and (max-width: 600px) {
	#BcSearchIndexSearchIndexes .bs-search-title { font-size: 1.4rem; }
	#BcSearchIndexSearchIndexes .bs-search-form { padding: 14px; }
	#BcSearchIndexSearchIndexes .bs-search-form span { flex: 1 1 100%; }
	#BcSearchIndexSearchIndexes .bs-search-form input[type="submit"] { width: 100%; }
	#BcSearchIndexSearchIndexes .bs-list-num { text-align: left; }
}

/* ======== プライバシーポリシー ======== */

/* ---- プライバシーポリシー ----
   長文を読みやすくするため、既存の .page-hero / .toc / .btn /
   .contact-cta を流用し、本文は白背景、目次とCTAだけを強調する。 */
.privacy-policy .page-hero {
	margin-bottom: 0;
}
.privacy-policy .toc {
	max-width: 920px;
	margin: 56px auto 40px;
	box-sizing: border-box;
}
.privacy-policy .toc ol {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.35em 2em;
}
.privacy-policy .privacy-intro,
.privacy-policy .privacy-section {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
.privacy-policy .privacy-section {
	scroll-margin-top: 90px;
	padding-top: 48px;
	padding-bottom: 36px;
	background: #fff;
	border-top: 1px solid var(--c-border-soft);
}
.privacy-policy .privacy-intro + .privacy-section {
	border-top: none;
}
.privacy-policy .privacy-list {
	margin: 0 20px 30px;
	padding-left: 1.5em;
}
.privacy-policy .privacy-list li {
	margin-bottom: 0.55em;
}
.privacy-policy .privacy-link-list {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0 20px 30px;
	padding: 0;
}
/* リンクカードの中丸（リストの行頭記号）を消す
   editor.css などが本文の ul / li に付ける行頭記号（list-style と li::before の両方）が、
   上の .privacy-policy .privacy-link-list { list-style: none; } より優先されていたため、
   .bs-main-contents / .bge-contents 付きで指定し直す。利用目的などの通常の箇条書き（.privacy-list）は対象外。 */
.bs-main-contents .privacy-policy .privacy-link-list,
.bge-contents .privacy-policy .privacy-link-list {
	list-style: none;
	padding: 0;
}
.bs-main-contents .privacy-policy .privacy-link-list li,
.bge-contents .privacy-policy .privacy-link-list li {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bs-main-contents .privacy-policy .privacy-link-list li::before,
.bge-contents .privacy-policy .privacy-link-list li::before {
	content: none;
	display: none;
}
.privacy-policy .privacy-link-list a {
	display: block;
	position: relative;
	padding: 12px 42px 12px 16px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 6px;
	color: var(--c-primary-dark);
	font-weight: bold;
	text-decoration: none;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.privacy-policy .privacy-link-list a::after {
	content: "↗";
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--c-primary);
}
.privacy-policy .privacy-link-list a:hover {
	border-color: var(--c-primary);
	box-shadow: 0 4px 12px rgba(20, 50, 110, 0.10);
	transform: translateY(-1px);
}
.privacy-policy .contact-cta {
	margin-top: 48px;
	padding: 40px 5%;
	background: var(--c-primary-pale);
	border: 1px solid var(--c-border);
	border-radius: 8px;
}
.privacy-policy .privacy-revised {
	max-width: 920px;
	margin: 0 auto 50px !important;
	padding: 0 20px;
	box-sizing: border-box;
	text-align: right;
	font-size: 0.9em;
	color: #888;
}

@media screen and (min-width: 700px) {
	.privacy-policy .toc ol {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.privacy-policy .privacy-link-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 600px) {
	.privacy-policy .toc {
		margin: 36px 16px 32px;
		padding: 16px 18px;
	}
	.privacy-policy .privacy-section {
		padding-top: 36px;
		padding-bottom: 26px;
	}
	.privacy-policy .contact-cta {
		margin-top: 36px;
		padding: 32px 18px;
	}
	.privacy-policy .privacy-list,
	.privacy-policy .privacy-link-list {
		margin-left: 0;
		margin-right: 0;
	}
	.privacy-policy .privacy-revised {
		padding: 0 16px;
	}
}

/* ======== お問い合わせ ======== */

/* ---- お問い合わせページ（contact / bs-* ブリッジ） ---- */
/* ---- tp_biz59 skyblue デザインを basercms の bs-* クラスに ----
   マッピングするためのブリッジCSS
   - 標準カラー：#6bb6d6（skyblue） / #eaf6fc（淡）
   - 必須バッジ：#e85a71（赤） / 任意バッジ：#999 */

/* ---------- レイアウト ---------- */
/* .bs-wrap / .bs-sub-contents は baserCMS が全ページ共通で使うクラスなので、
   全ページに幅や影を効かせない。
   お問い合わせ（メールフォーム）ページだけは :has() でフォームを含む
   .bs-wrap に絞り、元の幅（中央寄せ・最大1100px）に戻す。影は不要なので付けない。 */
.bs-wrap:has(.bs-mail-form) {
	max-width: 1100px;
	margin: 30px auto 60px;
	padding: 0 20px;
	box-sizing: border-box;
}
@media (max-width: 900px) {
	.bs-wrap:has(.bs-mail-form) { padding: 0 16px; }
}

/* ---------- 見出し ---------- */
.bs-mail-title {
	font-size: 1.75rem;
	color: var(--c-primary-dark);
	padding: 0 0 12px;
	margin: 0 0 24px;
	border-bottom: 3px solid var(--c-primary);
	position: relative;
}
.bs-mail-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 80px;
	height: 3px;
	background: var(--c-primary-dark);
}

.bs-main-contents .bs-mail-title-sub,
.bge-contents .bs-mail-title-sub {
	font-size: 1.15rem;
	color: var(--c-primary-dark);
	padding: 0 0 0 12px;
	margin: 28px 0 12px;
	border-left: 4px solid var(--c-primary);
	border-radius: 0;
	background: transparent;
	line-height: 1.4;
}

/* ---- 見出しの階層変更に合わせた指定（お問い合わせ） ----
   ページの主題を h1 にするため、メールフォームのテンプレート（入力・確認・完了・受付中止）で
   フォーム名 h2 → h1、「入力フォーム」などの小見出し h3 → h2 に変更した。
   h2 だったときの実際の見た目（文字の大きさ 1.5em・字間・main.js の下線用 span の余白）を
   h1 でそのまま保つ。上の .bs-mail-title の指定は、h2 のときも .bs-main-contents h2 に
   上書きされて効いていなかったため、ここで実際の表示に合わせて指定し直す。 */
.bs-main-contents .bs-mail-title,
.bge-contents .bs-mail-title {
	font-family: inherit;
	font-size: 1.5em;
	font-weight: bold;
	line-height: normal;
	letter-spacing: 0.1em;
	margin: 0 0 0.83em;
	padding: 13px 20px 7px;
	position: relative;
}

/* 小見出し（h2）：h3 だったときの見た目（左線・先頭の「■」）を保つ。
   h2 になると main.js が中身を <span class="uline"> で包み、style.css の main h2 の
   下線・余白が付くため、それらを打ち消す。 */
.bs-main-contents .bs-mail-title-sub,
.bge-contents .bs-mail-title-sub {
	font-family: inherit;
	font-weight: bold;
	letter-spacing: normal;
	overflow: visible;
	border-bottom: none;
	margin: 28px 0 12px;
}
.bs-mail-title-sub .uline {
	display: inline;
	position: static;
	padding: 0;
	bottom: auto;
}
.bs-mail-title-sub .uline::before { content: none; }
.bs-mail-title-sub::before {
	display: inline-block;
	content: "■";
	transform: scale(0.5);
	padding-right: 10px;
	margin-left: -0.4em;
}

.bs-mail-description {
	margin: 0 0 24px;
	color: #555;
	line-height: 1.7;
}

/* ---------- フォームテーブル ---------- */
.bs-mail-form {
	margin: 0 0 30px;
}

.bs-mail-form-body {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
	margin: 0 0 24px;
}

.bs-mail-form-body tr {
	border-bottom: 1px solid var(--c-border-soft);
}
.bs-mail-form-body tr:last-child { border-bottom: none; }

.bs-mail-form-body th.col-head {
	width: 200px;
	background: var(--c-primary-pale);
	color: var(--c-primary-dark);
	text-align: left;
	vertical-align: top;
	padding: 16px 14px;
	font-weight: bold;
	font-size: 0.95rem;
	border-right: 1px solid var(--c-border);
}

.bs-mail-form-body td.col-input {
	padding: 16px 18px;
	vertical-align: top;
	background: #fff;
}

/* 必須・任意バッジ */
.bs-mail-form-body .required,
.bs-mail-form-body .normal {
	display: inline-block;
	margin-left: 0.6em;
	padding: 2px 8px;
	font-size: 0.72rem;
	font-weight: normal;
	color: #fff;
	border-radius: 3px;
	vertical-align: middle;
}
.bs-mail-form-body .required { background: var(--c-cta); }
.bs-mail-form-body .normal { background: #999; }

/* 入力要素 */
.bs-mail-form-body input[type="text"],
.bs-mail-form-body input[type="email"],
.bs-mail-form-body input[type="tel"],
.bs-mail-form-body select,
.bs-mail-form-body textarea {
	padding: 8px 10px;
	border: 1px solid var(--c-border);
	border-radius: 3px;
	font-size: 1rem;
	background: #fff;
	box-sizing: border-box;
	max-width: 100%;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.bs-mail-form-body input[type="text"]:focus,
.bs-mail-form-body input[type="email"]:focus,
.bs-mail-form-body input[type="tel"]:focus,
.bs-mail-form-body select:focus,
.bs-mail-form-body textarea:focus {
	outline: 2px solid var(--c-primary-dark);
	outline-offset: 1px;
	border-color: var(--c-primary-dark);
	box-shadow: 0 0 0 3px rgba(10, 119, 153, 0.35);
}

.bs-mail-form-body .form-s { width: 12em; }
.bs-mail-form-body .form-m { width: 24em; }
.bs-mail-form-body .form-l { width: 100%; }
.bs-mail-form-body textarea { min-height: 180px; line-height: 1.6; }

.bs-mail-form-body small {
	color: #888;
	font-size: 0.8rem;
	margin-right: 0.3em;
}

.bs-mail-form-body .bs-mail-after-attachment,
.bs-mail-form-body .bs-mail-before-attachment {
	color: #555;
}

/* 電話番号欄の後ろに付く「-」を非表示（テンプレートは変更しない） */
.bs-mail-form-body #FieldMessageTel1 .bs-mail-after-attachment {
	display: none;
}

/* 住所行の複数フィールド：郵便番号・都道府県・住所を縦に並べる */
.bs-mail-form-body #FieldMessageAddress1,
.bs-mail-form-body #FieldMessageAddress2,
.bs-mail-form-body #FieldMessageAddress3,
.bs-mail-form-body #FieldMessageZip {
	display: block;
	margin-bottom: 8px;
}

/* ---------- チェックボックス・ラジオの選択肢を縦に並べる ----------
   baserCMS は選択肢を1つずつ <span> で包んで出力するが、span は横に並ぶ要素のため、
   選択肢がすべて横につながって見づらい。選択肢ごとの span を flex にして縦に並べる。
   ・長い選択肢が折り返しても、2行目の頭を1行目の文字にそろえる
   ・文字（label）を押してもチェックが入る（label の for で結び付け済み）
   ・チェックボックス／ラジオのすべての項目に効く（同意欄も同じ見た目になる）
   ※ :has() は本CSS内の他箇所（#MainImage / .bs-wrap など）でも使用済み。 */
.bs-mail-form-body td.col-input span:has(> input[type="checkbox"]),
.bs-mail-form-body td.col-input span:has(> input[type="radio"]) {
	display: flex;
	align-items: flex-start;
	gap: 0.4em;
	padding: 0.3em 0;   /* スマホで押しやすい間隔 */
	line-height: 1.6;
}
.bs-mail-form-body td.col-input span:has(> input[type="checkbox"]) input,
.bs-mail-form-body td.col-input span:has(> input[type="radio"]) input {
	flex-shrink: 0;
	margin-top: 0.35em; /* 1行目の文字とチェック欄の高さをそろえる */
}
.bs-mail-form-body td.col-input span:has(> input[type="checkbox"]) label,
.bs-mail-form-body td.col-input span:has(> input[type="radio"]) label {
	cursor: pointer;
}

/* 「ご相談の内容」（#FieldMessageCategory）は、PC幅（900px以上）では2列にする。
   2列が不要になったら、この @media ブロックを丸ごと削除する。 */
@media (min-width: 900px) {
	#FieldMessageCategory {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1.5em;
	}
	#FieldMessageCategory > span:empty {
		display: none;  /* 空の前見出し・後見出しの枠を詰める */
	}
	#FieldMessageCategory > .bs-mail-attention,
	#FieldMessageCategory > .error-message {
		grid-column: 1 / -1;  /* 注意書きとエラー表示は1行全体に出す */
	}
}

/* ---------- 入力エラー表示 ---------- */
/* エラー表示の枠（#MessageBox）はブロック表示にする */
#MessageBox { display: block; }

/* フォーム上部のエラー通知（flashMessage） */
#flashMessage.alert-message {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 24px;
	padding: 16px 20px;
	background: #fdecee;
	border: 1px solid var(--c-cta);
	border-left: 6px solid var(--c-cta);
	border-radius: 6px;
	color: #b3243b;
	font-weight: bold;
	font-size: 1.02rem;
	line-height: 1.6;
}
#flashMessage.alert-message::before {
	content: "!";
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	background: var(--c-cta);
	color: #fff;
	border-radius: 50%;
	font-size: 0.9em;
	line-height: 1;
}

/* 各入力項目のエラーメッセージ */
.bs-mail-form-body .error-message {
	display: block;
	position: relative;
	margin-top: 8px;
	padding: 7px 12px 7px 34px;
	background: #fdecee;
	border-radius: 4px;
	color: #c0283c;
	font-size: 0.9rem;
	font-weight: bold;
	line-height: 1.5;
}
.bs-mail-form-body .error-message::before {
	content: "!";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	background: var(--c-cta);
	color: #fff;
	border-radius: 50%;
	font-size: 0.72em;
	line-height: 1;
}

/* エラーがある入力欄を強調 */
.bs-mail-form-body input.form-error,
.bs-mail-form-body textarea.form-error,
.bs-mail-form-body select.form-error {
	border: 2px solid var(--c-cta);
	background: #fff7f8;
}
.bs-mail-form-body input.form-error:focus,
.bs-mail-form-body textarea.form-error:focus,
.bs-mail-form-body select.form-error:focus {
	outline: 2px solid var(--c-cta);
	outline-offset: 1px;
	border-color: var(--c-cta);
	box-shadow: 0 0 0 3px rgba(232, 90, 113, 0.30);
}

/* エラーのある行の見出し（項目名）を強調 */
.bs-mail-form-body tr:has(.form-error) th.col-head,
.bs-mail-form-body tr:has(.error-message) th.col-head {
	background: #fdecee;
	color: #b3243b;
	border-left: 4px solid var(--c-cta);
}

/* ---------- 送信ボタン ---------- */
.bs-mail-form-submit {
	text-align: center;
	margin: 24px 0 0;
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.bs-button {
	display: inline-block;
	padding: 12px 32px;
	font-size: 1rem;
	font-weight: bold;
	color: #fff;
	background: var(--grad-mailbtn);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	letter-spacing: 0.05em;
	transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 6px rgba(82, 175, 218, 0.3);
}
.bs-button:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(82, 175, 218, 0.4);
}
.bs-button:active {
	transform: translateY(0);
	box-shadow: 0 1px 3px rgba(82, 175, 218, 0.3);
}

/* 「取り消す」ボタンはサブスタイル */
.bs-mail-form-submit input[type="reset"].bs-button {
	background: #e0e0e0;
	color: #555;
	box-shadow: none;
}
.bs-mail-form-submit input[type="reset"].bs-button:hover {
	background: #d0d0d0;
	box-shadow: none;
}

/* ---------- スマホ調整 ---------- */
@media (max-width: 600px) {
	.bs-mail-title {
		font-size: 1.4rem;
	}

	/* フォームを縦積みに切り替え */
	.bs-mail-form-body,
	.bs-mail-form-body tbody,
	.bs-mail-form-body tr,
	.bs-mail-form-body th.col-head,
	.bs-mail-form-body td.col-input {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.bs-mail-form-body th.col-head {
		border-right: none;
		border-bottom: 1px solid var(--c-border);
		padding: 10px 12px;
	}
	.bs-mail-form-body td.col-input {
		padding: 14px 12px 18px;
	}

	.bs-mail-form-body input[type="text"],
	.bs-mail-form-body input[type="email"],
	.bs-mail-form-body textarea {
		width: 100%;
	}

	.bs-mail-form-submit { flex-direction: column-reverse; }
	.bs-button { width: 100%; }
}

/* ======== エラーページ（404 など） ======== */

/* 見出しの階層変更：エラー名（Not Found など）を h2 → h1 に変更した
   （baserCMS本体の Error/error400.php・error500.php をテーマへコピーして修正）。
   h2 だったときの見た目（文字の大きさ・字間・薄い下線・main.js の下線用 span の余白）を保つ。 */
.bs-main-contents .bs-error-title,
.bge-contents .bs-error-title {
	font-family: inherit;
	font-size: 1.5em;
	font-weight: bold;
	line-height: normal;
	letter-spacing: 0.1em;
	margin: 0.83em 0;
	padding: 13px 20px 7px;
	position: relative;
	text-align: left;
	border-bottom: 3px solid #f5f5f5;
}

/* =============================================================
   4. 末尾に置く指定（カスケード順を保つため、位置を変えない）
   ============================================================= */

/* ---- baserCMS 5.4.0 共通タイポグラフィ互換 ----
   editor.css が公開ページの本文へ直接適用する書体・見出し・段落を、
   テーマ本来の表示へ戻すための共通基盤。
   ※ カスケード順を維持するため、このブロックは pages.css の末尾に置く。 */

/* 本文の書体・文字色をテーマ標準へ戻す */
.bs-main-contents,
.bge-contents {
	font-family: inherit;
	color: inherit;
}

/* 本文の強調：文字色や表示形式は既存の指定を維持 */
.bs-main-contents strong,
.bge-contents strong {
	font-weight: bold;
}

/* クラスを持たない通常段落 */
.bs-main-contents p:not([class]),
.bge-contents p:not([class]) {
	margin: 0 20px 30px;
	letter-spacing: normal;
	line-height: 2;
}

/* 通常見出し */
.bs-main-contents h2,
.bge-contents h2 {
	font-family: inherit;
	letter-spacing: 0.1em;
	font-size: 1.5em;
	font-weight: bold;
	line-height: normal;
	margin: 0.83em 0;
	padding: 0;
	text-align: left;
	background: transparent;
	overflow: visible;
}
.bs-main-contents h3,
.bge-contents h3 {
	margin: 1em 0 20px;
	padding: 0;
	font-family: inherit;
	font-size: 1.17em;
	font-weight: bold;
	line-height: normal;
	background: transparent;
	border-radius: 0;
	overflow: visible;
}

/* ---- 本文の番号付きリスト ----
   style.css 側の decimal-leading-zero（01, 02…）を通常の数字に戻す
   ※ ブログ詳細は #post-detail ol が優先されるため、そちらも 2.6em に変更済み */
.bs-main-contents ol,
.bge-contents ol {
	padding-left: 2.6em;
}
.bs-main-contents ol li,
.bge-contents ol li {
	list-style-type: decimal;
}