@charset "UTF-8";

/*============================================================================================
  SA Effects (糖アルコールの効果) — theme styles
  Colors aligned with theme / Figma: #1A9D6F, #d9ece5, #53a88a, #fff699
=============================================================================================*/

:root {
	--sae-green: #1a9d6f;
	--sae-green-soft: #d9ece5;
	--sae-green-mid: #53a88a;
	--sae-green-bg: #dbf6eb;
	--sae-yellow: #fff699;
	--sae-yellow-hot: #fff157;
	--sae-gray: #909090;
	--sae-border: #1a9d6f;
	--sae-mint: #eef3f0;
}

/* ----- Shared tags / pills ----- */
.sae-card-tag {
	display: inline-block;
	background: var(--sae-green-soft);
	color: var(--sae-green);
	font-size: 13px;
	line-height: 1.4;
	padding: 2px 10px;
	border-radius: 40px;
	white-space: nowrap;
}

.sae-pill {
	display: inline-block;
	background: var(--sae-green);
	color: #fff;
	font-size: 12px;
	padding: 2px 10px;
	border-radius: 40px;
	margin-right: 6px;
}

.sae-point-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: var(--sae-green-soft);
	color: var(--sae-green);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 40px;
	line-height: 1.3;
	white-space: nowrap;
}

/* ----- List: filter box ----- */
.sae-filter {
	background: #f5f7f6;
	border: 1px solid #e0e8e4;
	border-radius: 8px;
	padding: 18px 20px;
	margin-bottom: 36px;
}

.sae-filter-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.sae-filter-row:last-child {
	margin-bottom: 0;
}

.sae-filter-label {
	flex: 0 0 88px;
	font-size: 14px;
	font-weight: 700;
	color: #333;
	line-height: 30px;
}

.sae-filter-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1;
}

.sae-filter-tag {
	appearance: none;
	border: 1px solid var(--sae-green-mid);
	background: #fff;
	color: var(--sae-green);
	font-size: 13px;
	line-height: 1.3;
	padding: 6px 14px;
	border-radius: 40px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sae-filter-tag:hover {
	background: var(--sae-green-soft);
}

.sae-filter-tag.is-active {
	background: var(--sae-green);
	border-color: var(--sae-green);
	color: #fff;
}

/* ----- List: groups & cards ----- */
.sae-list-group {
	margin-bottom: 40px;
}

.sae-list-group__ttl {
	font-size: 22px;
	font-weight: 700;
	color: #000;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--sae-green);
}

.sae-card-lst {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
}

.sae-card {
	flex: 0 1 calc(50% - 8px);
	min-width: 240px;
	list-style: none;
}

.sae-card.is-hidden,
.sae-list-group.is-hidden {
	display: none !important;
}

.sae-card__link {
	display: block;
	position: relative;
	border: 1px solid var(--sae-border);
	border-radius: 6px;
	padding: 12px 36px 12px 16px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	min-height: 62px;
	box-sizing: border-box;
	transition: background 0.15s, box-shadow 0.15s;
}

.sae-card__link:hover {
	background: #f7fbf9;
	box-shadow: 0 2px 6px rgba(26, 157, 111, 0.12);
}

.sae-card__ttl {
	display: block;
	font-size: 16px;
	color: #000;
	margin-bottom: 4px;
	line-height: 1.35;
}

.sae-card__chev {
	position: absolute;
	right: 14px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #aaa;
	border-bottom: 2px solid #aaa;
	transform: translateY(-50%) rotate(-45deg);
}

.sae-empty,
.sae-filter-empty {
	padding: 24px;
	text-align: center;
	color: var(--sae-gray);
	background: #f8f8f8;
	border-radius: 6px;
}

/* ----- Detail: head ----- */
.sae-detail-ttl {
	font-size: 24px;
	font-weight: 700;
	color: #000;
	margin: 0 0 8px;
	line-height: 1.4;
}

.sae-detail-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 16px;
}

.sae-detail-date {
	font-size: 12px;
	color: var(--sae-gray);
	margin: 0;
}

.sae-detail-date__mod {
	margin-left: 8px;
}

.sae-detail-meta {
	margin: 0;
}

.sae-detail-thumb {
	margin-bottom: 24px;
}

.sae-detail-thumb img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.sae-detail-head {
	margin-bottom: 8px;
	padding-bottom: 0;
	border-bottom: none;
}

/* ----- Detail: blocks ----- */
.sae-block {
	margin: 32px 0;
}

.sae-block-ttl {
	font-size: 22px;
	font-weight: 700;
	color: #000;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--sae-green);
}

.sae-block-ttl--accent {
	color: var(--sae-green);
	border-bottom: none;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
}

.sae-section-ttl {
	font-size: 18px;
	font-weight: 700;
	color: var(--sae-green);
	margin: 0 0 16px;
}

.sae-block-body {
	font-size: 15px;
	line-height: 1.7;
	color: #222;
	margin: 0 0 12px;
}

/* Summary box */
.sae-summary {
	background: #fff;
	border: 1px solid var(--sae-border);
	border-radius: 8px;
	padding: 20px 24px;
}

.sae-summary-lst {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sae-summary-item {
	margin-bottom: 18px;
}

.sae-summary-item:last-child {
	margin-bottom: 0;
}

.sae-summary-item__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.sae-summary-item__ttl {
	font-size: 16px;
	font-weight: 700;
	color: var(--sae-green);
	margin: 0;
	line-height: 1.4;
}

.sae-summary-item__body {
	font-size: 14px;
	color: #333;
	margin: 0;
	line-height: 1.6;
	/* Indent to align with title (not under Point badge ~88px) */
	padding-left: 88px;
}


/* Elementor / editor main body (the_content) */
.sae-elementor-content {
	margin: 32px 0;
}

.sae-elementor-content > *:first-child {
	margin-top: 0;
}

.sae-elementor-content > *:last-child {
	margin-bottom: 0;
}

.sae-elementor-content .elementor-section,
.sae-elementor-content .elementor-widget {
	max-width: 100%;
}

/* Action image */
.sae-placeholder-img {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	background: linear-gradient(135deg, #e8f5ef, #f5f5f5);
	border: 1px dashed var(--sae-green-mid);
	border-radius: 8px;
	color: var(--sae-gray);
	font-size: 14px;
	margin: 12px 0;
}

.sae-action-fig img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.sae-inline-link a {
	color: var(--sae-green);
	text-decoration: underline;
	font-size: 15px;
}

/* Test data table */
.sae-table-wrap {
	overflow-x: auto;
	margin: 12px 0;
}

.sae-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.sae-table th,
.sae-table td {
	border: 1px solid #cfdcd6;
	padding: 10px 8px;
	text-align: center;
	vertical-align: middle;
}

.sae-table thead th {
	background: var(--sae-green);
	color: #fff;
	font-weight: 700;
}

.sae-table__highlight,
.sae-table tbody tr.sae-table__highlight td {
	background: var(--sae-yellow);
	font-weight: 700;
}

/* Point callout */
.sae-point-box {
	background: #fff;
	border: 1px solid var(--sae-border);
	border-radius: 8px;
	padding: 16px 20px;
	margin-top: 20px;
}

.sae-point-box__ttl {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--sae-green);
	margin: 0 0 8px;
}

.sae-point-box__icon {
	display: inline-block;
	width: 22px;
	height: 22px;
	vertical-align: middle;
	flex-shrink: 0;
	object-fit: contain;
}

.sae-point-box__body {
	font-size: 15px;
	line-height: 1.7;
	margin: 0;
	color: #222;
}

/* Icons (CSS-only) */
.sae-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	position: relative;
}

.sae-icon--timer::before {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	border: 2px solid var(--sae-green);
	border-radius: 50%;
	box-sizing: border-box;
	margin: 1px auto 0;
}

.sae-icon--timer::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 5px;
	width: 2px;
	height: 6px;
	background: var(--sae-green);
	border-radius: 1px;
}

/* Bulb icon is an <img.sae-point-box__icon>; emoji pseudo-element removed. */
.sae-icon--bulb {
	display: none;
}

/* FAQ accordion */
.sae-faq-lst {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sae-faq-item {
	border: 1px solid var(--sae-green-mid);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.sae-faq-q {
	appearance: none;
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 40px 16px 16px;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	position: relative;
	font-family: inherit;
	color: inherit;
}

.sae-faq-q:hover,
.sae-faq-q:focus,
.sae-faq-q:focus-visible {
	background: transparent;
	color: inherit;
	box-shadow: none;
}

.sae-faq-q:hover .sae-faq-q__txt,
.sae-faq-q:focus .sae-faq-q__txt,
.sae-faq-q:focus-visible .sae-faq-q__txt {
	color: #000;
}

.sae-faq-q__mark,
.sae-faq-a__mark {
	flex: 0 0 24px;
	font-size: 22px;
	font-weight: 700;
	color: var(--sae-green);
	line-height: 1.2;
}

.sae-faq-q__txt {
	flex: 1;
	font-size: 15px;
	color: #000;
	line-height: 1.5;
}

.sae-faq-q__chev {
	position: absolute;
	right: 16px;
	top: 22px;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--sae-green);
	border-bottom: 2px solid var(--sae-green);
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.sae-faq-item.is-open .sae-faq-q__chev {
	transform: rotate(225deg);
	top: 26px;
}

.sae-faq-a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 0 16px 16px;
}

.sae-faq-a[hidden] {
	display: none;
}

.sae-faq-a__txt {
	flex: 1;
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	color: #222;
}

/* Horizontal link / related cards */
.sae-related,
.sae-other-links {
	background: #fff;
	border: 1px solid var(--sae-border);
	border-radius: 8px;
	padding: 20px 24px;
}

.sae-related-groups,
.sae-other-groups {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sae-related-group,
.sae-other-group {
	margin: 0;
}

.sae-related-group__ttl,
.sae-other-group__ttl {
	font-size: 16px;
	font-weight: 700;
	color: #0d0d0d;
	margin: 0 0 12px;
}

.sae-related-lst,
.sae-other-lst {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.sae-related-item,
.sae-other-item {
	flex: 0 1 calc(50% - 8px);
	min-width: 220px;
	list-style: none;
}

.sae-related-card,
.sae-other-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid #e0e8e4;
	border-radius: 8px;
	padding: 12px;
	background: #fff;
	height: 100%;
	box-sizing: border-box;
	transition: box-shadow 0.15s;
}

.sae-related-card:hover,
.sae-other-card:hover {
	box-shadow: 0 2px 8px rgba(26, 157, 111, 0.15);
}

/* Horizontal card: thumb left, title/tags/btn right */
.sae-hcard {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.sae-hcard__thumb {
	flex: 0 0 96px;
	width: 96px;
}

.sae-hcard__thumb img,
.sae-hcard__thumb .sae-placeholder-thumb {
	display: block;
	width: 96px;
	height: 96px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
	background: #e8f0ec;
	margin: 0;
}

.sae-hcard__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.sae-related-card__img img,
.sae-placeholder-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
	background: #e8f0ec;
	margin-bottom: 10px;
}

.sae-placeholder-thumb--wide {
	aspect-ratio: 16 / 9;
}

.sae-related-card__ttl,
.sae-other-card__ttl {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.4;
	color: #000;
}

.sae-related-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 8px;
}

.sae-related-card__btn {
	display: inline-block;
	margin-top: auto;
	font-size: 13px;
	color: var(--sae-green);
	border: 1px solid var(--sae-green);
	border-radius: 20px;
	padding: 4px 14px;
	line-height: 1.4;
}

/* Author / 執筆・編集 banner (NOT column writer UI) */
.sae-author {
	margin: 32px 0;
}

.sae-author-banner {
	display: flex;
	align-items: stretch;
	gap: 24px;
	background: var(--sae-mint);
	border-radius: 4px;
	padding: 20px 24px;
}

.sae-author-banner__logo {
	flex: 0 0 215px;
	display: flex;
	align-items: center;
}

.sae-author-banner__logo-img {
	display: block;
	width: 215px;
	max-width: 100%;
	height: auto;
}

.sae-author-logo {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	position: relative;
}

.sae-author-logo__beta {
	font-size: 28px;
	font-weight: 700;
	color: var(--sae-green);
	line-height: 1;
}

.sae-author-logo__text {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #4a4a4a;
	line-height: 1.2;
}

.sae-author-logo__mark {
	display: inline-block;
	width: 28px;
	height: 20px;
	margin-left: 4px;
	position: relative;
	flex-shrink: 0;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, #5bb8e8 0 3px, transparent 4px),
		radial-gradient(circle at 30% 50%, rgba(83, 168, 138, 0.45) 0 8px, transparent 9px),
		radial-gradient(circle at 70% 50%, rgba(26, 157, 111, 0.4) 0 8px, transparent 9px);
}

.sae-author-banner__content {
	flex: 1;
	min-width: 0;
}

.sae-author-banner__head {
	margin: 0 0 8px;
	line-height: 1.4;
}

.sae-author-banner__label {
	font-size: 14px;
	font-weight: 700;
	color: var(--sae-green-mid);
	margin-right: 8px;
}

.sae-author-banner__company {
	font-size: 15px;
	font-weight: 700;
	color: var(--sae-green);
}

.sae-author-banner__desc {
	font-size: 13px;
	line-height: 1.7;
	color: #222;
}

.sae-author-banner__desc p {
	margin: 0 0 4px;
}

.sae-author-banner__desc p:last-child {
	margin-bottom: 0;
}

/* Legacy supervisor class aliases (if ACF HTML uses them) */
.sae-supervisor__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--sae-green);
	margin: 0 0 6px;
}

.sae-supervisor__desc {
	font-size: 13px;
	line-height: 1.7;
	margin: 0;
	color: #222;
}

/* ----- Responsive ----- */
@media screen and (max-width: 767px) {
	.sae-filter-row {
		flex-direction: column;
		gap: 6px;
	}

	.sae-filter-label {
		flex: none;
		line-height: 1.4;
	}

	.sae-card,
	.sae-related-item,
	.sae-other-item {
		flex: 1 1 100%;
	}

	.sae-detail-ttl {
		font-size: 20px;
	}

	.sae-block-ttl {
		font-size: 18px;
	}

	.sae-summary-item__body {
		padding-left: 0;
	}

	.sae-author-banner {
		flex-direction: column;
		gap: 14px;
		padding: 16px;
	}

	.sae-author-banner__logo {
		flex: none;
	}

	.sae-hcard__thumb {
		flex: 0 0 72px;
		width: 72px;
	}

	.sae-hcard__thumb img,
	.sae-hcard__thumb .sae-placeholder-thumb {
		width: 72px;
		height: 72px;
	}

	.sae-related,
	.sae-other-links {
		padding: 16px;
	}
}
/* =====================================================
   2026-10-09 Sidebar double accordion (効果 → 記事)
   Markup: functions.php bfsci_sae_render_side_effects()
===================================================== */
.SugaSide_lst.sae-side-lst > li.sae-side-eff {
	border-top: 1px solid rgba(216, 216, 216, 0.9);
}
.SugaSide_lst.sae-side-lst > li.sae-side-eff:first-child {
	border-top: none;
}
.sae-side-eff__ttl,
.sae-side-eff__ttl:hover,
.sae-side-eff__ttl:focus,
.sae-side-eff__ttl:active {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	margin: 0;
	padding: 10px 2px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
}
.sae-side-eff__ttl:focus-visible {
	outline: 2px solid #1b9d6f;
	outline-offset: -2px;
}
.sae-side-eff__name {
	flex: 1 1 auto;
	color: #1b9d6f;
}
.sae-side-eff__count {
	flex: 0 0 auto;
	color: #909090;
	font-size: 1.2rem;
	font-weight: 400;
}
.sae-side-eff__arrow {
	flex: 0 0 auto;
	width: 12px;
	height: auto;
	margin-left: 4px;
	transform: rotate(-180deg);
	transition: transform 0.3s ease-out;
}
.sae-side-eff.is-open .sae-side-eff__arrow {
	transform: rotate(0);
}
.SugaSide_lst .sae-side-eff__lst {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}
.SugaSide_lst .sae-side-eff__lst li,
.SugaSide_lst .sae-side-eff__lst li:first-child {
	border-top: 1px dashed rgba(216, 216, 216, 0.9);
}
.SugaSide_lst .sae-side-eff__lst li a {
	position: relative;
	display: block;
	font-size: 1.3rem;
	line-height: 1.4;
	padding: 8px 2px 8px 16px;
}
.SugaSide_lst .sae-side-eff__lst li a::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 1.05em;
	width: 5px;
	height: 5px;
	border-top: 1px solid #1b9d6f;
	border-right: 1px solid #1b9d6f;
	transform: rotate(45deg);
}
.SugaSide_lst .sae-side-eff__item.is-current > a {
	color: #1b9d6f;
	font-weight: 700;
	background: rgba(233, 242, 239, 0.9);
}

/* 2026-10-09 Point boxes placed inside the body via [sae_point] */
.sae-elementor-content .sae-point {
	margin: 24px 0;
	padding: 0;
}
.sae-elementor-content .sae-point .sae-point-box {
	margin-top: 0;
}

/* 2026-10-09pm: .sae-detail-meta-row flex; .sae-detail-head border removed */

/* 2026-10-09pm2: detail head = title → meta row (公開日 / 最終更新 / pills) → ONE green rule.
   The green line under the title came from unique.css `.SugaMain h2 { border-bottom: 3px solid #1b9d6f; padding-bottom: 10px; margin-bottom: 20px; }`
   (the title is h2.sae-detail-ttl inside .SugaMain). Remove it on the title only (scoped to .SaeDetail)
   and draw the same rule under .sae-detail-meta-row. Font-size of the title is intentionally left to existing rules. */
.SaeDetail .sae-detail-head .sae-detail-ttl {
	margin-bottom: 12px;
}

.SaeDetail .sae-detail-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 20px;
}

.SaeDetail .sae-detail-date {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--sae-gray);
	margin: 0;
	white-space: nowrap;
}

.SaeDetail .sae-detail-date__mod {
	margin-left: 0; /* spacing handled by gap */
}

.SaeDetail .sae-detail-head {
	border-bottom: none;
	padding-bottom: 0;
}
