/* テーマ記事メーカー：記事の部品（テーマの見出し・本文の見た目は、そのまま使う） */

.tam-article,
.tam-related,
.tam-index,
.tam-data,
.tam-care,
.tam-buy,
.tam-cta {
	--tam-accent: #5b3d8f;
	--tam-soft: #f5f1fb;
	--tam-line: #e4dcf0;
	--tam-ink: #2b2540;
	--tam-muted: #6b6480;
}
.tam--stone {
	--tam-accent: #2f6f8f;
	--tam-soft: #eef6f9;
	--tam-line: #d3e6ee;
	--tam-ink: #1f3440;
	--tam-muted: #5c707a;
}

/* 吉凶ボックス */
.tam-verdict {
	margin: 1.6em 0;
	padding: 16px 18px;
	border: 1px solid var(--tam-line);
	border-left: 5px solid var(--tam-accent);
	border-radius: 8px;
	background: var(--tam-soft);
}
.tam-verdict p { margin: 0; }
.tam-verdict__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tam-verdict__label { font-size: 0.85em; color: var(--tam-muted); font-weight: 700; letter-spacing: 0.05em; }
.tam-verdict__badge {
	display: inline-block;
	padding: 3px 14px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1.05em;
	background: #e9e6f2;
	color: var(--tam-ink);
}
.tam-verdict--good { border-left-color: #c99a1e; }
.tam-verdict--good .tam-verdict__badge { background: #fbe9b7; color: #6b4d00; }
.tam-verdict--bad { border-left-color: #c95c5c; }
.tam-verdict--bad .tam-verdict__badge { background: #fbdada; color: #7d2323; }
.tam-verdict--warn { border-left-color: #d88a30; }
.tam-verdict--warn .tam-verdict__badge { background: #fde3c4; color: #7a4300; }
.tam-verdict--mixed .tam-verdict__badge { background: #dfe8f2; color: #2d445c; }
.tam-verdict__note { margin-top: 8px !important; line-height: 1.8; }

/* ポイント（要約） */
.tam-point {
	margin: 1.6em 0;
	padding: 18px 20px 12px;
	border: 2px solid var(--tam-line);
	border-radius: 10px;
	background: #fff;
}
.tam-point__title {
	margin: 0 0 8px !important;
	font-weight: 700;
	color: var(--tam-accent);
	font-size: 1.02em;
}
.tam-point ol { margin: 0 0 6px 1.3em !important; padding: 0 !important; }
.tam-point li { margin: 0 0 6px; line-height: 1.75; }

/* 運気別 */
.tam-fortune {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 1.2em 0 1.6em;
}
.tam-fortune__item {
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--tam-soft);
	border: 1px solid var(--tam-line);
}
.tam-fortune__item p { margin: 0; line-height: 1.75; font-size: 0.95em; }
.tam-fortune__label {
	margin: 0 0 6px !important;
	font-weight: 700;
	font-size: 0.95em !important;
	color: var(--tam-accent);
}
.tam-fortune__item--love .tam-fortune__label { color: #c2477a; }
.tam-fortune__item--work .tam-fortune__label { color: #2f6aa3; }
.tam-fortune__item--money .tam-fortune__label { color: #a5771a; }
.tam-fortune__item--relation .tam-fortune__label { color: #3c8a5a; }
@media (max-width: 600px) {
	.tam-fortune { grid-template-columns: 1fr; }
}

/* チェックリスト */
ul.tam-check { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
ul.tam-check li { position: relative; padding-left: 1.7em; margin-bottom: 0.5em; line-height: 1.75; }
ul.tam-check li::before {
	content: "";
	position: absolute;
	left: 0.2em;
	top: 0.5em;
	width: 0.55em;
	height: 0.3em;
	border-left: 2px solid var(--tam-accent);
	border-bottom: 2px solid var(--tam-accent);
	transform: rotate(-45deg);
}

/* 言い伝え */
.tam-tradition {
	padding: 4px 18px;
	border-radius: 8px;
	background: repeating-linear-gradient(45deg, #fbf8f2, #fbf8f2 10px, #f7f2e8 10px, #f7f2e8 20px);
	border: 1px solid #eadfc8;
}

/* 運営者のひとこと */
.tam-owner {
	position: relative;
	margin: 1.6em 0;
	padding: 14px 18px 6px;
	border-radius: 10px;
	background: #fffdf7;
	border: 1px solid #ecdcb6;
}
.tam-owner__label {
	display: inline-block;
	margin: 0 0 8px !important;
	padding: 2px 12px;
	border-radius: 999px;
	background: #f3e3bb;
	color: #6a4c0c;
	font-size: 0.82em;
	font-weight: 700;
}
.tam-owner p { line-height: 1.85; }

/* 誕生石の一覧 */
.tam-birth__list a { display: flex !important; align-items: center; gap: 10px; }
.tam-birth__img { width: 44px !important; height: 44px !important; border-radius: 50%; object-fit: cover; flex: none; }

/* あわせて読みたい */
.tam-more {
	margin: 0.6em 0 1.4em !important;
	padding: 10px 14px;
	border-radius: 6px;
	background: var(--tam-soft);
	font-size: 0.95em;
	line-height: 1.6;
}
.tam-more__label {
	display: inline-block;
	margin-right: 8px;
	padding: 1px 8px;
	border-radius: 4px;
	background: var(--tam-accent);
	color: #fff;
	font-size: 0.8em;
	font-weight: 700;
	vertical-align: 1px;
}

/* よくある質問 */
.tam-faq { margin: 1em 0 1.6em; }
.tam-faq__item { margin: 0 0 12px; border: 1px solid var(--tam-line); border-radius: 8px; overflow: hidden; }
.tam-faq__q, .tam-faq__a { position: relative; margin: 0 !important; padding: 12px 14px 12px 46px; line-height: 1.75; }
.tam-faq__q { background: var(--tam-soft); font-weight: 700; }
.tam-faq__q span, .tam-faq__a span {
	position: absolute;
	left: 12px;
	top: 11px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	text-align: center;
	line-height: 24px;
	font-size: 13px;
	font-weight: 700;
}
.tam-faq__q span { background: var(--tam-accent); color: #fff; }
.tam-faq__a span { background: #fff; color: var(--tam-accent); border: 1px solid var(--tam-accent); line-height: 22px; }

/* 関連する記事 */
.tam-related { margin: 2em 0; }
.tam-related__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.tam-related__list li { margin: 0 !important; padding: 0 !important; }
.tam-related__list li::before { display: none !important; }
.tam-related__list a { display: block; text-decoration: none; color: inherit; }
.tam-related__img, .tam-related__noimg {
	display: block;
	width: 100%;
	aspect-ratio: 1200 / 630;
	height: auto !important;
	object-fit: cover;
	border-radius: 8px;
	background: var(--tam-soft);
}
.tam-related__name { display: block; margin-top: 6px; font-size: 0.88em; line-height: 1.5; font-weight: 700; }
@media (max-width: 600px) {
	.tam-related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* CTA */
.tam-cta { margin: 1.6em 0; }

/* 書いた人 */
.tam-author {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 2em 0 1em;
	padding: 16px;
	border: 1px solid var(--tam-line, #e4dcf0);
	border-radius: 10px;
}
.tam-author__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.tam-author p { margin: 0 !important; }
.tam-author__label { font-size: 0.8em; color: var(--tam-muted, #6b6480); font-weight: 700; }
.tam-author__name { font-weight: 700; margin: 2px 0 6px !important; }
.tam-author__bio { font-size: 0.9em; line-height: 1.7; }

/* 注意書き・PR */
.tam-disclaimer {
	margin: 1.4em 0 !important;
	padding: 12px 14px;
	border-radius: 6px;
	background: #f6f6f7;
	color: #5d5d66;
	font-size: 0.82em;
	line-height: 1.7;
}
.tam-pr {
	margin: 0 0 1.2em !important;
	font-size: 0.8em;
	color: #6d6d76;
}

/* パワーストーン：基本データ */
.tam-data {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin: 1.6em 0;
}
.tam-data__img {
	flex: none;
	width: 180px !important;
	height: 180px !important;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid var(--tam-soft);
}
.tam-data__table { flex: 1; width: 100%; border-collapse: collapse; margin: 0 !important; font-size: 0.93em; }
.tam-data__table caption {
	caption-side: top;
	text-align: left;
	font-weight: 700;
	color: var(--tam-accent);
	padding: 0 0 6px;
}
.tam-data__table th, .tam-data__table td { padding: 8px 12px; border: 1px solid var(--tam-line); text-align: left; vertical-align: top; line-height: 1.6; }
.tam-data__table th { width: 9em; background: var(--tam-soft); font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
	.tam-data { flex-direction: column; align-items: center; }
	.tam-data__img { width: 150px !important; height: 150px !important; }
	.tam-data__table th { width: 7em; white-space: normal; }
}

/* パワーストーン：浄化方法 */
.tam-care {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 8px;
	list-style: none !important;
	margin: 1em 0 1.4em !important;
	padding: 0 !important;
}
.tam-care__item {
	margin: 0 !important;
	padding: 10px 6px !important;
	border-radius: 8px;
	text-align: center;
	border: 1px solid var(--tam-line);
	background: #fff;
}
.tam-care__item::before { display: none !important; }
.tam-care__name { display: block; font-size: 0.85em; font-weight: 700; }
.tam-care__mark { display: block; font-size: 1.6em; line-height: 1.3; font-weight: 700; }
.tam-care__text { display: block; font-size: 0.75em; color: var(--tam-muted); }
.tam-care__item--ok { background: #eef8f1; border-color: #cbe8d3; }
.tam-care__item--ok .tam-care__mark { color: #2f8a4e; }
.tam-care__item--caution { background: #fdf6e7; border-color: #f0dfb7; }
.tam-care__item--caution .tam-care__mark { color: #b07d10; }
.tam-care__item--ng { background: #fbefef; border-color: #f0cfcf; }
.tam-care__item--ng .tam-care__mark { color: #b23b3b; }

/* パワーストーン：相性・購入 */
ul.tam-pairs li { margin-bottom: 0.6em; line-height: 1.75; }
.tam-buy { display: flex; flex-direction: column; gap: 10px; align-items: center; margin: 1.6em 0; }
.tam-buy__btn {
	display: block;
	width: 100%;
	max-width: 420px;
	padding: 14px 18px;
	border-radius: 999px;
	text-align: center;
	font-weight: 700;
	text-decoration: none !important;
	color: var(--tam-accent) !important;
	background: #fff;
	border: 2px solid var(--tam-accent);
	box-sizing: border-box;
}
.tam-buy__btn--main { color: #fff !important; background: var(--tam-accent); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15); }
.tam-buy__btn:hover { opacity: 0.88; }

/* 一覧ページ */
.tam-index__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6em; }
.tam-index__nav a {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--tam-soft);
	border: 1px solid var(--tam-line);
	text-decoration: none;
	font-size: 0.9em;
	color: var(--tam-ink);
}
.tam-index__nav a span { margin-left: 6px; font-size: 0.8em; color: var(--tam-muted); }
.tam-index__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 6px 16px;
	list-style: none !important;
	margin: 0 0 1.8em !important;
	padding: 0 !important;
}
.tam-index__list li { margin: 0 !important; padding: 0 !important; }
.tam-index__list li::before { display: none !important; }
.tam-index__list a { display: block; padding: 8px 10px; border-bottom: 1px dashed var(--tam-line); text-decoration: none; }

/* ------------------------------------------------------------------
 * サイトのデザインに合わせる（設定 → 全体 → 記事の部品のデザイン）
 * body の tam-skin-{名前}。淡い紫（lavender）は上の初期の見た目のまま。
 * ------------------------------------------------------------------ */
.tam-skin-wa :is(.tam-article, .tam-related, .tam-index, .tam-data, .tam-care, .tam-buy, .tam-cta) {
	--tam-accent: #a8262b;
	--tam-soft: #f7f2e7;
	--tam-line: #e0d4bf;
	--tam-ink: #2a2622;
	--tam-muted: #6b6157;
}
.tam-skin-wa .tam--stone { --tam-accent: #284b63; --tam-soft: #f1f3f2; --tam-line: #d5dcd8; }
.tam-skin-pop :is(.tam-article, .tam-related, .tam-index, .tam-data, .tam-care, .tam-buy, .tam-cta) {
	--tam-accent: #e8457c;
	--tam-soft: #fff3f8;
	--tam-line: #1f1d2b;
	--tam-ink: #1f1d2b;
	--tam-muted: #5b5670;
}
.tam-skin-pop .tam--stone { --tam-accent: #13a39f; --tam-soft: #eefaf9; }
.tam-skin-simple :is(.tam-article, .tam-related, .tam-index, .tam-data, .tam-care, .tam-buy, .tam-cta) {
	--tam-accent: #1e4a7a;
	--tam-soft: #f3f6fa;
	--tam-line: #d9e2ec;
	--tam-ink: #1f2933;
	--tam-muted: #52606d;
}
.tam-skin-simple .tam--stone { --tam-accent: #1f6f7a; --tam-soft: #f1f7f8; --tam-line: #d4e4e7; }

/* 和モダン：角を立てて、見出し的な文字は明朝 */
.tam-skin-wa :is(.tam-verdict, .tam-point, .tam-fortune__item, .tam-tradition, .tam-more, .tam-faq__item, .tam-related__img, .tam-related__noimg, .tam-author, .tam-disclaimer, .tam-care__item, .tam-owner, .tam-more__label) { border-radius: 2px; }
.tam-skin-wa :is(.tam-faq__q, .tam-faq__a) span { border-radius: 2px; }
.tam-skin-wa :is(.tam-point__title, .tam-verdict__badge, .tam-owner__label, .tam-fortune__label, .tam-faq__q, .tam-index h2, .tam-related h2) { font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif; }
.tam-skin-wa .tam-verdict__badge { border-radius: 2px; }
.tam-skin-wa .tam-point { border-width: 1px; border-top: 3px solid var(--tam-accent); }
.tam-skin-wa .tam-owner { background: #fbf7ee; border-color: #e0d4bf; }
.tam-skin-wa .tam-owner__label { border-radius: 2px; background: var(--tam-accent); color: #fff; }
.tam-skin-wa .tam-buy__btn { border-radius: 2px; }
.tam-skin-wa .tam-index__nav a { border-radius: 2px; }

/* ポップ・パステル：黒い線と影のシール風 */
.tam-skin-pop :is(.tam-verdict, .tam-point, .tam-fortune__item, .tam-tradition, .tam-faq__item, .tam-owner, .tam-author) {
	border: 2px solid #1f1d2b;
	border-radius: 14px;
	box-shadow: 4px 4px 0 #1f1d2b;
}
.tam-skin-pop .tam-verdict { border-left-width: 2px; }
.tam-skin-pop .tam-more { border: 2px solid #1f1d2b; border-radius: 12px; }
.tam-skin-pop :is(.tam-related__img, .tam-related__noimg) { border: 2px solid #1f1d2b; border-radius: 12px; }
.tam-skin-pop .tam-care__item { border: 2px solid #1f1d2b; border-radius: 12px; }
.tam-skin-pop .tam-buy__btn { border-color: #1f1d2b; box-shadow: 3px 3px 0 #1f1d2b; }
.tam-skin-pop .tam-buy__btn--main { box-shadow: 3px 3px 0 #1f1d2b; }
.tam-skin-pop .tam-fortune__item--love { background: #ffeef5; }
.tam-skin-pop .tam-fortune__item--work { background: #eaf3ff; }
.tam-skin-pop .tam-fortune__item--money { background: #fff6d9; }
.tam-skin-pop .tam-fortune__item--relation { background: #e9f9ee; }
.tam-skin-pop .tam-index__nav a { border: 2px solid #1f1d2b; }

/* シンプル・情報重視：細い線だけ、角は小さく */
.tam-skin-simple :is(.tam-verdict, .tam-point, .tam-fortune__item, .tam-tradition, .tam-more, .tam-faq__item, .tam-related__img, .tam-related__noimg, .tam-author, .tam-disclaimer, .tam-care__item, .tam-owner) { border-radius: 4px; box-shadow: none; }
.tam-skin-simple .tam-point { border-width: 1px; }
.tam-skin-simple .tam-tradition { background: var(--tam-soft); border-color: var(--tam-line); }
.tam-skin-simple .tam-owner { background: #f7f9fc; border-color: var(--tam-line); }
.tam-skin-simple .tam-owner__label { background: var(--tam-accent); color: #fff; border-radius: 3px; }
.tam-skin-simple .tam-buy__btn { border-radius: 4px; }
