/* ==========================================================================
   [spa_thoughts] – "私たちの想い" expandable section
   Figma node 52:1055
   Tokens:
     Grey/grey-900 #252525  (text)
     Grey/grey-500 #575757  (button border)
     Grey/grey-100 #E4E4E4  (divider / section border)
     Grey/grey-50  #F9F9F9  (quote card background)
   Typography:
     Noto Serif JP Black 40px (title)
     Noto Sans JP  Medium 20/24/18px
   ========================================================================== */

.spa-thoughts,
.spa-thoughts *,
.spa-thoughts *::before,
.spa-thoughts *::after {
	box-sizing: border-box;
}

.spa-thoughts {
	--spa-thoughts-text: #252525;
	--spa-thoughts-border: #e4e4e4;
	--spa-thoughts-btn-border: #575757;
	--spa-thoughts-soft: #f9f9f9;

	--spa-thoughts-font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
	--spa-thoughts-font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;

	max-width: 1200px;
	margin: 0 auto;
	padding: 60px clamp(24px, 4vw, 40px);

	background: #fff;
	border-bottom: 1px solid var(--spa-thoughts-border);
	color: var(--spa-thoughts-text);
	font-family: var(--spa-thoughts-font-sans);
}

/* Override the global `:root :where(p)` rule that WordPress injects so our
   own typography is respected when the shortcode is used anywhere. */
.spa-thoughts p {
	color: inherit;
	font-family: inherit;
}

/* ---------- Head ---------- */
.spa-thoughts__head {
	width: 100%;
	text-align: center;
}

.spa-thoughts__title {
	margin: 0;
	font-family: var(--spa-thoughts-font-serif);
	font-weight: 900;
	font-size: 40px;
	line-height: 1.3;
	color: var(--spa-thoughts-text);
}

.spa-thoughts__subtitle {
	margin: 0;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.5;
}

/* ---------- Quotes ---------- */
.spa-thoughts__quotes {
	display: flex;
	gap: 20px;
	width: 100%;
	align-items: stretch;
}

.spa-thoughts__quote {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 32px 24px;
	background: var(--spa-thoughts-soft);
}

.spa-thoughts__quote-icon {
	flex: 0 0 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--spa-thoughts-text);
}

.spa-thoughts__quote-svg {
	width: 32px;
	height: 32px;
	display: block;
}

.spa-thoughts__quote-text {
	margin: 0;
	font-weight: 500;
	font-size: 24px;
	line-height: 1.5;
	color: var(--spa-thoughts-text);
}

/* ---------- Divider ---------- */
.spa-thoughts__divider {
	width: 100%;
	height: 0;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--spa-thoughts-border);
}

/* ---------- Body ---------- */
.spa-thoughts__body {
	width: 100%;
	max-width: 983px;
	text-align: center;
	font-size: 18px;
	line-height: 1.5;
	font-weight: 400;
	color: var(--spa-thoughts-text);
}

.spa-thoughts__body p {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.5;
}

.spa-thoughts__body p:last-child {
	margin-bottom: 0;
}

.spa-thoughts__lead {
	font-weight: 700;
	margin-top: 16px;
}

/* Animated expand/collapse via grid-template-rows: 0fr -> 1fr */
.spa-thoughts__more-wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
}

.spa-thoughts__more {
	overflow: hidden;
	min-height: 0;
}

.spa-thoughts__more > :first-child {
	margin-top: 16px;
}

.spa-thoughts[data-state="open"] .spa-thoughts__more-wrap {
	grid-template-rows: 1fr;
}

/* ---------- Button ---------- */
.spa-thoughts__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	width: 240px;
	height: 56px;
	padding: 0 24px;

	background: transparent;
	border: 1px solid var(--spa-thoughts-btn-border);
	color: var(--spa-thoughts-text);

	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;

	cursor: pointer;
}

.spa-thoughts__btn:hover,
.spa-thoughts__btn:focus,
.spa-thoughts__btn:focus-visible,
.spa-thoughts__btn:active {
	background: transparent;
	color: var(--spa-thoughts-text);
	border-color: var(--spa-thoughts-btn-border);
}

.spa-thoughts__btn-label--open,
.spa-thoughts__btn-label--close {
	display: none;
}

.spa-thoughts[data-state="closed"] .spa-thoughts__btn-label--open {
	display: inline;
}

.spa-thoughts[data-state="open"] .spa-thoughts__btn-label--close {
	display: inline;
}

.spa-thoughts__btn-caret {
	flex: 0 0 auto;
	display: none;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: currentColor;
}

.spa-thoughts__btn-caret svg {
	display: block;
	width: 100%;
	height: 100%;
}

.spa-thoughts[data-state="closed"] .spa-thoughts__btn-caret--down {
	display: inline-flex;
}

.spa-thoughts[data-state="open"] .spa-thoughts__btn-caret--up {
	display: inline-flex;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.spa-thoughts__title { font-size: 32px; }
	.spa-thoughts__quote-text { font-size: 20px; }
}

@media (max-width: 781px) {
	.spa-thoughts {
		padding: 40px 24px;
		gap: 24px;
	}

	.spa-thoughts__title { font-size: 28px; }
	.spa-thoughts__subtitle { font-size: 16px; }

	.spa-thoughts__quotes {
		flex-direction: column;
		gap: 12px;
	}

	.spa-thoughts__quote { padding: 24px 16px; }
	.spa-thoughts__quote-text { font-size: 18px; }

	.spa-thoughts__body,
	.spa-thoughts__body p { font-size: 16px; }

	.spa-thoughts__btn { width: 100%; }
}
