/* Batch 2 shared components. Opt-in: every rule lives under .tt-b2 / .tt-b2-page.
 * Tokens, 1180px container and the green/mint tone come from tokens.css / inner-pages.css.
 * Page-specific rules go to assets/css/pages/{slug}.css under .tt-b2--{key}.
 */
.tt-inner.tt-b2-page { background: #fff; }
.tt-inner.tt-b2-page .tt-b2-page__heading { padding-block: 24px 0; }
.tt-inner.tt-b2-page .tt-inner__breadcrumbs { margin-bottom: 20px; }
.tt-inner.tt-b2-page .tt-b2-page__title { margin: 0; color: var(--tt-green-deep); font-size: 1.125rem; }
.tt-inner.tt-b2-page .tt-b2-page__content { max-width: none; margin: 0; }

.tt-inner.tt-b2 { line-height: 1.9; color: var(--tt-ink); }
.tt-inner.tt-b2 > * + * { margin-block-start: 0; }
.tt-b2 :where(h1, h2, h3, h4) { text-wrap: balance; }
.tt-b2 .tt-b2__section { margin: 0; padding-block: 88px; }
.tt-b2 .tt-b2__tint { background: var(--tt-mint-pale); border-block: 1px solid var(--tt-line); }
.tt-b2 .tt-b2__dark { background: var(--tt-green-deep); color: #fff; }
.tt-b2 .tt-b2__dark :where(h2, h3, p, li) { color: #fff; }
.tt-b2 .tt-b2__container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* Text links: deep green (the global link colour is too light on mint backgrounds). Specificity stays below component rules. */
.tt-b2 a:where(:not(.wp-block-button__link)) { color: var(--tt-green-deep); text-underline-offset: 4px; }
.tt-b2 .tt-b2__dark a:where(:not(.wp-block-button__link)), .tt-b2 .tt-b2__cta a:where(:not(.wp-block-button__link)) { color: #fff; }

/* Section head */
.tt-b2 .tt-b2__head { max-width: 820px; margin: 0 0 40px; }
.tt-b2 .tt-b2__head--center { margin-inline: auto; text-align: center; }
.tt-b2 .tt-b2__eyebrow { margin: 0 0 14px; color: var(--tt-green); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.tt-b2 .tt-b2__heading { margin: 0 0 18px; color: var(--tt-ink); font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.5; letter-spacing: -.03em; }
.tt-b2 .tt-b2__lead { margin: 0; color: var(--tt-ink-muted); font-size: 1rem; line-height: 1.95; }

/* Hero */
.tt-b2 .tt-b2__hero { padding-block: 44px 80px; background: radial-gradient(ellipse at 85% 40%, var(--tt-mint), transparent 65%), #fff; }
.tt-b2 .tt-b2__hero--compact { padding-block: 32px 56px; }
.tt-b2 .tt-b2__hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.tt-b2 .tt-b2__hero-grid--single { grid-template-columns: minmax(0, 820px); }
.tt-b2 .tt-b2__headline { margin: 0 0 22px; color: var(--tt-ink); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.4; letter-spacing: -.04em; word-break: auto-phrase; }
.tt-b2 .tt-b2__headline strong { color: var(--tt-green); }
.tt-b2 .tt-b2__hero-lead { margin: 0; color: var(--tt-ink-muted); font-size: 1rem; }
.tt-b2 .tt-b2__panel { padding: 32px; border: 1px solid var(--tt-line); border-radius: var(--tt-radius-lg); background: #fff; box-shadow: var(--tt-shadow-hub); }
.tt-b2 .tt-b2__panel-title { margin: 0 0 20px; color: var(--tt-green-deep); font-size: 1.25rem; font-weight: 700; line-height: 1.6; }

/* Buttons (core/button with variant classes) */
.tt-b2 .tt-b2__actions { margin-top: 28px; gap: 12px; }
.tt-b2 .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 13px 24px; border: 1px solid var(--tt-green); border-radius: 999px; color: #fff; background: var(--tt-green); font-size: .9375rem; font-weight: 700; line-height: 1.5; text-decoration: none; }
.tt-b2 .wp-block-button__link:hover { background: var(--tt-green-deep); border-color: var(--tt-green-deep); color: #fff; }
.tt-b2 .tt-b2__btn--outline .wp-block-button__link { color: var(--tt-green-deep); background: #fff; border-color: var(--tt-line); }
.tt-b2 .tt-b2__btn--outline .wp-block-button__link:hover { background: var(--tt-mint); color: var(--tt-green-deep); }
.tt-b2 .tt-b2__btn--white .wp-block-button__link { color: var(--tt-green-deep); background: #fff; border-color: #fff; }
.tt-b2 .tt-b2__btn--white .wp-block-button__link:hover { background: var(--tt-mint); color: var(--tt-green-deep); }
.tt-b2 .tt-b2__btn--ghost .wp-block-button__link { color: #fff; background: transparent; border-color: #ffffff80; }
.tt-b2 .tt-b2__btn--ghost .wp-block-button__link:hover { background: #ffffff1f; color: #fff; }
.tt-b2 :where(a, summary, button, [tabindex]):focus-visible { outline: 3px solid var(--tt-green-teal); outline-offset: 3px; }
.tt-b2 .tt-b2__dark :where(a, summary):focus-visible, .tt-b2 .tt-b2__cta :where(a, summary):focus-visible { outline-color: #fff; }

/* Cards and grids */
.tt-b2 .tt-b2__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tt-b2 .tt-b2__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tt-b2 .tt-b2__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tt-b2 .tt-b2__card { min-width: 0; margin: 0; padding: 28px; border: 1px solid var(--tt-line); border-radius: var(--tt-radius-md); background: #fff; box-shadow: var(--tt-shadow-card); }
.tt-b2 .tt-b2__card--accent { border-top: 4px solid var(--tt-green-teal); }
.tt-b2 .tt-b2__card--flat { box-shadow: none; background: var(--tt-mint-pale); }
.tt-b2 .tt-b2__card--dark { background: var(--tt-green-deep); border-color: var(--tt-green-deep); }
.tt-b2 .tt-b2__card--dark :where(h3, p, li) { color: #fff; }
.tt-b2 .tt-b2__card-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 16px; margin: 0 0 18px; }
.tt-b2 .tt-b2__card-head .tt-b2__icon { margin: 0; }
.tt-b2 .tt-b2__card-title { margin: 0; color: var(--tt-ink); font-size: 1.25rem; line-height: 1.5; }
.tt-b2 .tt-b2__card :where(p) { margin: 0; color: var(--tt-ink-muted); font-size: .9375rem; line-height: 1.9; }
.tt-b2 .tt-b2__card p + p { margin-top: 12px; }
.tt-b2 .tt-b2__card .tt-b2__meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--tt-line); font-size: .8125rem; }
.tt-b2 .tt-b2__card :where(ul, ol) { margin: 12px 0 0; padding-left: 1.3em; color: var(--tt-ink-muted); font-size: .9375rem; }
.tt-b2 .tt-b2__card li + li { margin-top: 6px; }
.tt-b2 .tt-b2__text-link { margin: 18px 0 0; font-size: .9375rem; font-weight: 700; }
.tt-b2 .tt-b2__text-link a { color: var(--tt-green-deep); text-underline-offset: 5px; }
.tt-b2 .tt-b2__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; box-sizing: border-box; margin: 0 0 18px; border: 1px solid var(--tt-line); border-radius: 16px; background: var(--tt-mint-pale); }
.tt-b2 .tt-b2__icon img { display: block; width: 30px; height: 30px; border-radius: 0; }

/* Chips and anchors */
.tt-b2 .tt-b2__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tt-b2 .tt-b2__chips li { margin: 0; padding: 6px 14px; border: 1px solid var(--tt-line); border-radius: 999px; background: #fff; color: var(--tt-green-deep); font-size: .8125rem; font-weight: 700; line-height: 1.5; }
.tt-b2 .tt-b2__chips--solid li { background: var(--tt-mint); border-color: var(--tt-mint); }
.tt-b2 .tt-b2__anchors { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tt-b2 .tt-b2__anchors a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--tt-line); border-radius: 999px; background: #fff; color: var(--tt-green-deep); font-size: .875rem; font-weight: 700; text-decoration: none; }
.tt-b2 .tt-b2__anchors a:hover { background: var(--tt-mint); }

/* Flow / steps */
.tt-b2 .tt-b2__flow { display: grid; grid-template-columns: repeat(var(--tt-b2-steps, 3), minmax(0, 1fr)); gap: 32px; counter-reset: tt-b2-step; }
.tt-b2 .tt-b2__flow--4 { --tt-b2-steps: 4; }
.tt-b2 .tt-b2__step { position: relative; }
.tt-b2 .tt-b2__step + .tt-b2__step::before { content: "→"; position: absolute; top: 40px; left: -28px; width: 24px; color: var(--tt-green); text-align: center; font-size: 1.25rem; }
.tt-b2 .tt-b2__num { margin: 0 0 12px; color: var(--tt-green); font-size: .75rem; font-weight: 800; letter-spacing: .08em; }

/* Before / after, split, figures, notes */
.tt-b2 .tt-b2__compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tt-b2 .tt-b2__compare > :first-child { background: #fff; }
.tt-b2 .tt-b2__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 56px; }
.tt-b2 .tt-b2__split--reverse > :first-child { order: 2; }
.tt-b2 .tt-b2__figure { margin: 0; }
.tt-b2 .tt-b2__figure img { display: block; width: 100%; height: auto; border-radius: var(--tt-radius-md); }
.tt-b2 .tt-b2__figure--frame img { border: 1px solid var(--tt-line); background: #fff; box-shadow: var(--tt-shadow-card); }
.tt-b2 .tt-b2__figure figcaption { margin-top: 12px; color: var(--tt-ink-muted); font-size: .8125rem; line-height: 1.8; }
.tt-b2 .tt-b2__note { margin: 24px 0 0; color: var(--tt-ink-muted); font-size: .8125rem; line-height: 1.85; }
.tt-b2 .tt-b2__callout { margin: 0; padding: 20px 24px; border-left: 4px solid var(--tt-green); border-radius: 0 var(--tt-radius-sm) var(--tt-radius-sm) 0; background: var(--tt-mint-pale); }
.tt-b2 .tt-b2__callout p { margin: 0; color: var(--tt-ink); font-size: .9375rem; }
.tt-b2 .tt-b2__callout p + p { margin-top: 8px; }

/* Table (core/table) */
.tt-b2 .tt-b2__table { margin: 0; overflow-x: auto; border: 1px solid var(--tt-line); border-radius: var(--tt-radius-md); }
.tt-b2 .tt-b2__table table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .9375rem; }
.tt-b2 .tt-b2__table :where(th, td) { padding: 16px 18px; border: 0; border-bottom: 1px solid var(--tt-line); text-align: left; vertical-align: top; }
.tt-b2 .tt-b2__table thead th { background: var(--tt-mint); color: var(--tt-green-deep); font-weight: 700; white-space: nowrap; }
.tt-b2 .tt-b2__table tbody tr:last-child td { border-bottom: 0; }
.tt-b2 .tt-b2__table tbody td:first-child { background: var(--tt-mint-pale); color: var(--tt-green-deep); font-weight: 700; }
.tt-b2 .tt-b2__table figcaption { padding: 12px 18px; color: var(--tt-ink-muted); font-size: .8125rem; text-align: left; }

/* FAQ (core/details) */
.tt-b2 .tt-b2__faq { display: grid; gap: 12px; max-width: 900px; }
.tt-b2 .tt-b2__faq .wp-block-details { margin: 0; padding: 0; border: 1px solid var(--tt-line); border-radius: var(--tt-radius-sm); background: #fff; }
.tt-b2 .tt-b2__faq summary { padding: 18px 22px; color: var(--tt-green-deep); font-weight: 700; cursor: pointer; }
.tt-b2 .tt-b2__faq .wp-block-details > :not(summary) { margin: 0; padding: 0 22px 18px; color: var(--tt-ink-muted); font-size: .9375rem; }

/* Feature rows: text + illustration, alternating (feature pages) */
.tt-b2 .tt-b2__features { margin: 0; }
.tt-b2 .tt-b2__feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; padding-block: 44px; scroll-margin-top: 96px; }
.tt-b2 .tt-b2__feature + .tt-b2__feature { border-top: 1px solid var(--tt-line); }
.tt-b2 .tt-b2__feature--reverse > :first-child { order: 2; }
.tt-b2 .tt-b2__feature-num { margin: 0 0 10px; color: var(--tt-green); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.tt-b2 .tt-b2__feature-title { margin: 0 0 16px; color: var(--tt-ink); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.5; letter-spacing: -.02em; }
.tt-b2 .tt-b2__feature-text { margin: 0; color: var(--tt-ink-muted); font-size: 1rem; line-height: 2; }
.tt-b2 .tt-b2__feature-text + .tt-b2__feature-text { margin-top: 14px; }
.tt-b2 .tt-b2__feature .tt-b2__figure img { border: 1px solid var(--tt-line); background: #fff; box-shadow: var(--tt-shadow-card); }
.tt-b2 .tt-b2__badge { display: inline-block; margin: 0 0 12px; padding: 3px 12px; border-radius: 999px; background: var(--tt-mint); color: var(--tt-green-deep); font-size: .75rem; font-weight: 800; letter-spacing: .04em; line-height: 1.7; }
.tt-b2 .tt-b2__badge--custom { background: #fff1d1; color: #6b4a00; }
.tt-b2 .tt-b2__badge--option { background: #dff0fb; color: #12466b; }

/* Feature block = feature row + optional "詳細を見る" disclosure (original details block kept) */
.tt-b2 .tt-b2__feature-block { scroll-margin-top: 96px; padding-block: 12px 36px; }
.tt-b2 .tt-b2__feature-block + .tt-b2__feature-block { border-top: 1px solid var(--tt-line); padding-top: 12px; }
.tt-b2 .tt-b2__feature-block > .tt-b2__feature { border-top: 0 !important; }
.tt-b2 .tt-b2__more { margin: 0; border: 1px solid var(--tt-line); border-radius: var(--tt-radius-md); background: #fff; }
.tt-b2 .tt-b2__more > summary { padding: 16px 24px; color: var(--tt-green-deep); font-weight: 700; cursor: pointer; }
.tt-b2 .tt-b2__more[open] > summary { border-bottom: 1px solid var(--tt-line); }
.tt-b2 .tt-b2__more > :not(summary) { margin-inline: 24px; }
.tt-b2 .tt-b2__more > :not(summary):last-child { margin-bottom: 24px; }
.tt-b2 .tt-b2__more > summary + * { margin-top: 24px; }
.tt-b2 .tt-b2__more figure.wp-block-image { margin-block: 0 24px; }
.tt-b2 .tt-b2__more figure.wp-block-image img { display: block; max-width: 100%; height: auto; margin-inline: auto; border: 1px solid var(--tt-line); border-radius: var(--tt-radius-sm); }
.tt-b2 .tt-b2__more p { color: var(--tt-ink-muted); font-size: .9375rem; line-height: 2; margin-block: 0 14px; }
.tt-b2 .tt-b2__more h5 { margin: 24px 0 8px; color: var(--tt-green-deep); font-size: 1rem; line-height: 1.7; }
.tt-b2 .tt-b2__more ul { margin: 0 0 14px; padding-left: 1.4em; color: var(--tt-ink-muted); font-size: .9375rem; }
.tt-b2 .tt-b2__more li + li { margin-top: 4px; }
/* Highlight spans carried in the original text (formerly styled by a page-builder plugin) */
.tt-b2 .vk_highlighter { background: linear-gradient(transparent 62%, var(--vk-highlighter-color, rgba(255, 253, 107, .7)) 62%); }

/* Mini flow inside a hero panel: icon + label + caption per step */
.tt-b2 .tt-b2__miniflow { display: grid; gap: 0; margin: 0; padding: 0; }
.tt-b2 .tt-b2__miniflow-step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 0; }
.tt-b2 .tt-b2__miniflow-step + .tt-b2__miniflow-step { border-top: 1px dashed var(--tt-line); }
.tt-b2 .tt-b2__miniflow-step .tt-b2__icon { margin: 0; width: 52px; height: 52px; }
.tt-b2 .tt-b2__miniflow-label { margin: 0; color: var(--tt-ink); font-size: 1rem; font-weight: 700; line-height: 1.6; }
.tt-b2 .tt-b2__miniflow-caption { margin: 2px 0 0; color: var(--tt-ink-muted); font-size: .8125rem; line-height: 1.7; }

/* CTA band */
.tt-b2 .tt-b2__cta { padding: 48px; border-radius: var(--tt-radius-lg); background: var(--tt-green-deep); color: #fff; }
.tt-b2 .tt-b2__cta .tt-b2__eyebrow { color: var(--tt-mint); }
.tt-b2 .tt-b2__cta :where(h2, p) { color: #fff; }
.tt-b2 .tt-b2__cta h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.5; }
.tt-b2 .tt-b2__cta p { margin: 0; }
.tt-b2 .tt-b2__cta .wp-block-button__link { background: #fff; color: var(--tt-green-deep); border-color: #fff; }
.tt-b2 .tt-b2__cta .wp-block-button__link:hover { background: var(--tt-mint); }
.tt-b2 .tt-b2__cta .tt-b2__btn--ghost .wp-block-button__link { color: #fff; background: transparent; border-color: #ffffff80; }
.tt-b2 .tt-b2__cta .tt-b2__btn--ghost .wp-block-button__link:hover { background: #ffffff1f; }

@media (max-width: 900px) {
	.tt-b2 .tt-b2__hero-grid, .tt-b2 .tt-b2__split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.tt-b2 .tt-b2__split--reverse > :first-child { order: 0; }
	.tt-b2 .tt-b2__grid, .tt-b2 .tt-b2__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tt-b2 .tt-b2__flow, .tt-b2 .tt-b2__flow--4 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.tt-b2 .tt-b2__feature { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px; }
	.tt-b2 .tt-b2__feature--reverse > :first-child { order: 0; }
	.tt-b2 .tt-b2__step + .tt-b2__step::before { content: "↓"; top: -34px; left: calc(50% - 12px); }
}
@media (max-width: 600px) {
	.tt-b2 .tt-b2__section { padding-block: 56px; }
	.tt-b2 .tt-b2__container { width: calc(100% - 40px); }
	.tt-b2 .tt-b2__hero { padding-block: 28px 48px; }
	.tt-b2 .tt-b2__headline { font-size: clamp(1.875rem, 8.5vw, 2.75rem); }
	.tt-b2 .tt-b2__head { margin-bottom: 28px; }
	.tt-b2 :is(.tt-b2__grid, .tt-b2__grid--2, .tt-b2__grid--4, .tt-b2__compare) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.tt-b2 :is(.tt-b2__panel, .tt-b2__card) { padding: 22px; }
	.tt-b2 .tt-b2__cta { padding: 28px 22px; }
	.tt-b2 .tt-b2__card-head { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
	.tt-b2 .tt-b2__icon { width: 44px; height: 44px; border-radius: 13px; }
	.tt-b2 .tt-b2__icon img { width: 24px; height: 24px; }
	.tt-b2 .tt-b2__actions { flex-direction: column; align-items: stretch; }
	.tt-b2 .tt-b2__actions .wp-block-button, .tt-b2 .wp-block-button__link { width: 100%; }
	.tt-b2 .tt-b2__hero-lead br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tt-b2 * { scroll-behavior: auto !important; transition: none !important; }
}
