/* =========================================================
   コラム記事（/column/スラッグ/）  Studio の実測値（tree_column_detail_pc / sp）で再現
   本文は Studio の .richText（共通の指定＋このサイトの指定）と同じ見た目にする
   ========================================================= */

/* Studio では日本語の部分が「Hiragino Sans」（文字指定が欧文フォントだけのため）、
   太字・見出しは Studio 配信のモリサワ「ヒラギノ角ゴ W6」だった。手元のヒラギノ角ゴシックで同じ見た目にする */
.pg-single { --single-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif; --single-w6: "Hiragino Sans", var(--hira); }

/* ---------- 記事の枠 ---------- */
.single-wrap { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; margin: 0 0 80px; padding-left: var(--side); }
.single-cover { flex: none; width: 932px; max-width: calc(100% - 160px); height: auto; margin: 122px 80px 0; border-radius: 16px; }
.single-cover--none { aspect-ratio: 1024 / 640; background: var(--gray-bg); }
.single-box { display: flex; flex-direction: column; align-items: flex-start; width: 932px; max-width: calc(100% - 160px); margin: 0 80px; border-bottom: 2px dashed #a7753b; }
.single-head { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; padding: 58px 0 30px; border-bottom: 2px dashed #a7753b; }
.single-date { display: block; width: 740px; max-width: 100%; color: #575757; font-family: "Lato", var(--single-ja); font-weight: 900; font-size: 16px; line-height: 1.5; text-align: left; }
/* 800：Lato は 900 の字、日本語は Studio と同じヒラギノ W8 になる */
.single-title { width: 740px; max-width: 100%; margin: 4px 0 0; color: #575757; font-family: "Lato", "Hiragino Sans", var(--single-ja); font-weight: 800; font-size: 24px; line-height: 1.5; text-align: left; }

/* ---------- お知らせ一覧に戻る ---------- */
.single-back { display: flex; align-items: center; width: 932px; max-width: calc(100% - 160px); height: 69px; margin: 0 80px; }
.single-back__link { display: flex; align-items: center; color: var(--navy); transition: opacity .3s; }
.single-back__link .material-icons { font-size: 24px; line-height: 24px; width: 24px; }
.single-back__txt { margin-left: 6px; font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.4; text-align: center; }
@media (hover: hover) { .single-back__link:hover { opacity: .5; } }

/* =========================================================
   本文（Studio の .richText）
   ========================================================= */
.single-body { display: block; width: 100%; margin: 0 0 48px; color: #333; font-family: "Montserrat", var(--single-ja); font-size: 16px; font-weight: 400; line-height: 1.4; text-align: left; word-break: break-word; word-spacing: 1px; }
.single-body :is(p, h1, h2, h3, h4, h5, h6, ul, ol, li, a, em, strong, u, s, blockquote) { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; line-height: inherit; font-weight: inherit; font-style: inherit; text-align: inherit; }
.single-body p { margin: 0 0 24px; font-size: 18px; letter-spacing: .05em; line-height: 1.6; }
.single-body > p { min-height: 1em; }
/* 太字：Studio のモリサワ W6 は字の上下の幅が広く、行の高さを広げなかった。同じ行送りになるよう line-height を 1.5 に */
.single-body strong { font-family: var(--single-w6); font-weight: 600; line-height: 1.5; }
.single-body :is(td, th, li, h1, h2, h3, h4, h5, h6) strong { line-height: 1.6; }
.single-body em { font-style: italic; }
.single-body u { text-decoration: underline; }
.single-body s { text-decoration: line-through; }
.single-body a { color: #1e5a9f; font-family: "Lato", var(--single-ja); text-decoration: underline; }
@media (hover: hover) { .single-body a:hover { text-decoration: none; } }

/* 見出し */
.single-body h1 { margin: 0 0 24px; font-family: var(--single-w6); font-weight: 600; font-size: 28px; letter-spacing: .05em; line-height: 1.6; }
.single-body h2 { margin: 10px 0; padding: 20px 8px; background: var(--navy); color: #fff; font-family: var(--single-w6); font-weight: 600; font-size: 28px; letter-spacing: .1em; }
.single-body h3 { margin: 0 0 24px; padding: 8px; border-left: 5px solid var(--navy); font-family: var(--single-w6); font-weight: 600; font-size: 24px; letter-spacing: .05em; line-height: 1.6; }
.single-body h4 { margin: 0 0 24px; padding: 8px 0; border-top: 1px solid #000; border-bottom: 1px solid #000; font-family: var(--single-w6); font-weight: 600; font-size: 20px; letter-spacing: .05em; line-height: 1.6; }
.single-body h5 { margin: 10px 0; color: #bd9f00; font-weight: 600; font-size: 18px; }
.single-body h6 { margin: 10px 0; font-weight: 500; font-size: 1em; }

/* リスト */
.single-body ul { margin: 0 0 0 20px; padding: 0; font-family: "Lato", var(--single-ja); }
.single-body ol { margin: 0 0 0 20px; padding: 0; }
.single-body li { margin: 10px 0; font-family: "Lato", var(--single-ja); line-height: 1.2; }
.single-body ul > li { list-style: disc outside; }
.single-body ol > li { list-style: decimal outside; }
.single-body li p { margin: 0; font-size: inherit; letter-spacing: inherit; line-height: inherit; }

/* 図・区切り線・引用 */
.single-body figure { margin: 48px 0; }
.single-body figure img { display: inline; vertical-align: bottom; max-width: 100%; height: auto; }
.single-body figcaption { font-family: sans-serif; line-height: 1; }
.single-body img { max-width: 100%; height: auto; }
.single-body hr { height: 1px; margin: 12px 0; border: 0; border-top: 1px solid #ccc; }
.single-body blockquote { margin: 24px 0; padding: 10px 15px; border-left: 3px solid rgba(0, 0, 0, .15); font-family: "Lato", var(--single-ja); font-style: italic; line-height: 1.6; }

/* 表（Studio の <div data-type="table">） */
.single-body [data-type="table"] { overflow-x: auto; }
.single-body table { width: 100%; margin: 0 0 10px; border: 1px solid #f2f2f2; border-collapse: collapse; border-spacing: unset; table-layout: auto; color: #1a1a1a; font-family: sans-serif; font-size: 14px; line-height: 1.4; }
.single-body table :is(tbody, tr, th, td) { color: inherit; font-family: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; text-align: inherit; letter-spacing: inherit; }
.single-body table :is(th, td) { min-width: 100px; max-width: 240px; padding: 12px; border: 1px solid #f2f2f2; vertical-align: middle; }
.single-body table th { width: auto; background: rgba(245, 245, 245, .5); }
.single-body table :is(th, td) p { margin: 0; font-size: inherit; letter-spacing: normal; line-height: inherit; white-space: pre-line; word-break: break-all; }
/* 内製の記事の表（角丸と影の枠 <div style="…overflow-x: auto…"> の中）：上の 10px の下の余白で、枠の下に白い帯が出るので消す */
.single-body div[style*="overflow-x"] > table { margin-bottom: 0; }

/* 目次（inc/content.php が差し込む .toc） */
.single-body .toc { margin: 0; padding: 24px 24px 8px; border-radius: 2px; background: #f5f5f5; color: #616161; font-size: 16px; text-decoration: underline; }
.single-body .toc_list { margin: 0; padding: 0; list-style: none; }
.single-body .toc_item { margin: 0 0 16px; color: currentColor; font-weight: inherit; list-style: none; }
.single-body .toc .toc_item, .single-body .toc .toc_item > a { font-size: inherit; } /* スマホで本文のリストを14pxにしても目次は16pxのまま（Studio と同じ） */
.single-body .toc_item--2 { padding-left: 2rem; }
.single-body .toc_item--3 { padding-left: 4rem; }
.single-body .toc_item > a { color: currentColor; font-family: inherit; font-weight: inherit; text-decoration: none; transition: opacity .3s; }
@media (hover: hover) { .single-body .toc_item > a:hover { opacity: .7; } }

/* =========================================================
   埋め込みコード（.ct-embed）
   Studio では sandbox の iframe の中に表示されていた。iframe の中の文書と同じになるよう、
   テーマの指定をすべてブラウザ既定に戻し（文字指定が無いものは明朝 Times）、中の style 属性だけを効かせる
   ========================================================= */
.single-body .ct-embed { display: flex; flex-direction: column; margin: 20px 0; padding-bottom: 3px; overflow: hidden; color: #000; font-family: Times, "Times New Roman", serif; font-size: 16px; font-weight: 400; font-style: normal; line-height: normal; letter-spacing: normal; word-spacing: normal; word-break: normal; text-align: start; -webkit-font-smoothing: auto; }
.single-body :is(.ct-embed, .ct-cta) :is(*, :hover) { all: revert; }

/* =========================================================
   予約の案内ボックス（[carette_cta]）
   Studio の埋め込み（iframe）の中身：灰色の地に白い箱。文字は Arial
   ========================================================= */
.single-body .ct-cta { container-type: inline-size; display: flex; flex-direction: column; margin: 20px 0; padding-bottom: 3px; overflow: hidden; background: #f9f9f9; color: #333; font-family: Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.8; letter-spacing: normal; word-spacing: normal; word-break: normal; text-align: start; -webkit-font-smoothing: auto; }
.single-body .ct-cta .ct-cta__box { box-sizing: content-box; display: block; max-width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #ddd; border-radius: 10px; background: #fff; text-align: center; }
.single-body .ct-cta .ct-cta__title { display: block; margin: .83em 0 15px; color: #222; font-size: 1.5em; font-weight: bold; }
.single-body .ct-cta .ct-cta__check { display: block; margin-bottom: 15px; font-size: 16px; text-align: left; }
.single-body .ct-cta .ct-cta__hl { display: block; margin-top: 10px; font-size: 18px; font-weight: bold; }
.single-body .ct-cta :is(.ct-cta__btn, .ct-cta__tel) { box-sizing: content-box; display: inline-block; width: 100%; max-width: 320px; padding: 12px 20px; border-radius: 5px; color: #fff; font-size: 16px; font-weight: bold; text-align: center; text-decoration: none; transition: background .3s; }
.single-body .ct-cta .ct-cta__btn { margin: 15px auto; background: #a94442; }
.single-body .ct-cta .ct-cta__tel { margin: 10px auto; background: #6c757d; }
@media (hover: hover) {
	.single-body .ct-cta .ct-cta__btn:hover { background: #922b2b; }
	.single-body .ct-cta .ct-cta__tel:hover { background: #5a6268; }
}
/* iframe の中の「768px 以下」＝本文の幅が 768px 以下 */
@container (max-width: 768px) {
	.single-body .ct-cta :is(.ct-cta__btn, .ct-cta__tel) { width: 100%; padding: 10px; font-size: 14px; }
}

/* =========================================================
   1140px 以下
   ========================================================= */

/* =========================================================
   990px 以下（上の帯）：アイキャッチは画面幅いっぱい・下だけ角丸
   ========================================================= */
@media (max-width: 990px) {
	.single-wrap { margin-bottom: 82px; padding-left: 0; }
	.single-cover { width: 100%; max-width: 100%; margin: 81px 0 0; border-radius: 0 0 16px 16px; }
	.single-box, .single-back { max-width: calc(100% - 60px); margin: 0 30px; }
	.single-title { font-size: 20px; }
}

/* =========================================================
   690px 以下：スマホ
   ========================================================= */
@media (max-width: 690px) {
	.single-wrap { margin-bottom: 60px; }
	.single-cover { margin-top: 70px; }
	.single-box { max-width: calc(100% - 40px); margin: 0 20px; }
	.single-head { padding: 40px 0 20px; }
	.single-date { color: #707070; font-size: 14px; }
	.single-title { color: #707070; font-size: 16px; }
	.single-body p, .single-body li, .single-body blockquote { font-size: 14px; }
	.single-body li p { font-size: inherit; }
	.single-body h2 { margin: 0 0 24px; font-size: 18px; }
	.single-back { max-width: calc(100% - 40px); height: auto; margin: 20px 20px 0; }
	.single-back__txt { font-size: 14px; }
}

/* 目次から飛んだとき、見出しが上の固定の帯（691〜990px は82px・690px以下は70px）に隠れないように */
@media (max-width: 990px) {
	.single-body h2[id], .single-body h3[id] { scroll-margin-top: 100px; }
}

/* =========================================================
   関連記事（運営サイト情報の下。inc/related.php）
   記事のデザイン（TROBZ Article Kit・sites/007.json）の色に合わせる：ローズ #B24F44・濃い茶 #5C2A24・淡いピンク #FDF0EE・線 #F1DEDA
   ========================================================= */
.single-rel { width: 100%; margin: 0 0 56px; font-family: "Noto Sans JP", sans-serif; }
.single-rel__head { display: flex; flex-direction: column; gap: 6px; margin: 0 0 24px; padding: 0 0 16px; border-bottom: 1px solid #F1DEDA; }
.single-rel__en { display: flex; align-items: center; gap: 14px; color: #8A3A31; font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .26em; line-height: 1.6; }
.single-rel__en::before { content: ""; display: block; width: 36px; height: 1px; background: #B24F44; }
.single-rel__title { margin: 0; padding: 0; color: #5C2A24; font-family: "Noto Sans JP", sans-serif; font-size: 24px; font-weight: 500; letter-spacing: .1em; line-height: 1.4; }
.single-rel__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
.single-rel__item { margin: 0; list-style: none; }
.single-rel__link { display: flex; flex-direction: column; gap: 12px; height: 100%; color: #333; text-decoration: none; }
.single-rel__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #FDF0EE; }
.single-rel__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.single-rel__txt { display: flex; flex-direction: column; gap: 6px; }
.single-rel__date { color: #7A625E; font-family: "Montserrat", sans-serif; font-size: 12px; letter-spacing: .08em; line-height: 1.4; }
.single-rel__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 15px; font-weight: 500; letter-spacing: .04em; line-height: 1.6; transition: color .3s; }
@media (hover: hover) {
	.single-rel__link:hover .single-rel__img img { transform: scale(1.04); }
	.single-rel__link:hover .single-rel__name { color: #B24F44; }
}
@media (max-width: 990px) {
	.single-rel__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* スマホ：写真を左、文字を右にした横並びの行 */
@media (max-width: 690px) {
	.single-rel { margin-bottom: 40px; }
	.single-rel__head { margin-bottom: 4px; }
	.single-rel__title { font-size: 20px; }
	.single-rel__list { grid-template-columns: 1fr; gap: 0; }
	.single-rel__item + .single-rel__item { border-top: 1px solid #F1DEDA; }
	.single-rel__link { flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px 0; }
	.single-rel__img { flex: none; width: 120px; border-radius: 4px; }
	.single-rel__name { font-size: 14px; -webkit-line-clamp: 3; }
}
