@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
	--sui-ink: #073b61;
	--sui-blue: #075fde;
	--sui-yellow: #ffd21a;
	--sui-paper: #fff;
	--sui-wash: #eef6fb;
	--sui-rule: #b9cad5;
	--sui-body: #294b5f;
}

.sw-sui-notes-archive,
.sw-sui-note-article {
	background: var(--sui-paper);
	color: var(--sui-body);
	font-family: "Zen Kaku Gothic New", sans-serif;
	word-break: normal;
	overflow-wrap: anywhere;
	line-break: strict;
}

.sw-sui-notes-shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.sw-sui-notes-main { background: var(--sui-paper); }
.sw-sui-book-mark { display: block; width: 76px; height: auto; }

/* Keep the shared navigation reachable after in-page jumps on the Sui archive. */
.sw-sui-notes-archive .detail-header {
	position: sticky;
	top: 0;
	z-index: 200;
}

.sw-sui-notes-anchor-alias {
	display: block;
	height: 1px;
	margin-top: -1px;
	scroll-margin-top: 148px;
}

#notes-index { scroll-margin-top: 148px; }
#notes-index:target > .sw-sui-notes-shell { padding-top: 28px; }

/* Archive: short cover and explicit page map. */
.sw-sui-notes-cover { padding: clamp(64px, 7vw, 96px) 0; border-bottom: 1px solid var(--sui-rule); }
.sw-sui-notes-cover__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: clamp(48px, 8vw, 104px); align-items: end; }
.sw-sui-notes-cover__copy,
.sw-sui-notes-cover__nav { min-width: 0; }
.sw-sui-notes-cover__copy .sw-sui-book-mark { margin: 0 0 24px 6%; }
.sw-sui-notes-cover__kicker,
.sw-sui-notes-section-heading > p,
.sw-sui-service-area__eyebrow { margin: 0 0 12px; color: var(--sui-ink); font-family: Manrope, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .28em; }
.sw-sui-notes-cover h1 { margin: 0; color: var(--sui-ink); font-family: "Zen Kurenaido", sans-serif; font-size: clamp(50px, 7vw, 86px); font-weight: 400; line-height: 1.02; letter-spacing: .02em; text-wrap: balance; }
.sw-sui-notes-cover h1 strong { font-weight: 400; }
.sw-sui-notes-cover h1 strong::after { content: ""; display: inline-block; width: .7em; height: .13em; margin-left: .12em; background: var(--sui-yellow); vertical-align: .22em; }
.sw-sui-notes-cover__lead { margin: 28px 0 0; color: var(--sui-ink); font-family: "Zen Kaku Gothic New", sans-serif; font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.8; text-wrap: balance; }
.sw-sui-notes-cover__nav { border-top: 1px solid var(--sui-ink); }
.sw-sui-notes-cover__nav a { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 16px 2px; border-bottom: 1px solid var(--sui-rule); color: var(--sui-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.sw-sui-notes-cover__nav a::after { content: "↓"; color: var(--sui-blue); }
.sw-sui-notes-cover__nav a:is(:hover, :focus-visible) { color: var(--sui-blue); outline: none; }
.sw-sui-notes-cover__nav span { color: #6b8291; font-family: Manrope, sans-serif; font-size: 11px; }

.sw-sui-notes-about,
.sw-sui-notes-latest,
.sw-sui-notes-themes { padding: clamp(68px, 8vw, 108px) 0; scroll-margin-top: 96px; }
.sw-sui-notes-about { background: var(--sui-wash); }
.sw-sui-notes-about__inner { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 8vw, 112px); }
.sw-sui-notes-section-heading { min-width: 0; }
.sw-sui-notes-section-heading h2 { margin: 0; color: var(--sui-ink); font-family: "Zen Kurenaido", sans-serif; font-size: clamp(38px, 4.5vw, 58px); font-weight: 400; line-height: 1.2; }
.sw-sui-notes-about__copy { min-width: 0; }
.sw-sui-notes-about__lead { margin: 0 0 24px; color: var(--sui-ink); font-family: "Zen Kaku Gothic New", sans-serif; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.75; }
.sw-sui-notes-about__copy > p:not(.sw-sui-notes-about__lead) { max-width: 42em; margin: 0; font-size: 16px; line-height: 2; }
.sw-sui-notes-about dl { margin: 38px 0 0; border-top: 1px solid var(--sui-ink); }
.sw-sui-notes-about dl > div { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 1.3fr); gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--sui-rule); }
.sw-sui-notes-about dt { color: var(--sui-ink); font-weight: 700; }
.sw-sui-notes-about dd { margin: 0; }

.sw-sui-notes-latest .sw-sui-notes-section-heading,
.sw-sui-notes-themes .sw-sui-notes-section-heading { display: grid; grid-template-columns: 160px 1fr; align-items: baseline; margin-bottom: 40px; }
.sw-sui-latest-note { border-top: 1px solid var(--sui-ink); border-bottom: 1px solid var(--sui-ink); }
.sw-sui-latest-note > a { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px 48px; padding: clamp(30px, 5vw, 54px) 4px; color: inherit; text-decoration: none; }
.sw-sui-latest-note__label { grid-row: 1 / span 4; align-self: start; width: fit-content; padding: 7px 9px; background: var(--sui-yellow); color: var(--sui-ink); font-size: 12px; font-weight: 700; }
.sw-sui-latest-note__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #587384; font-family: Manrope, "Zen Kaku Gothic New", sans-serif; font-size: 12px; }
.sw-sui-latest-note h3 { margin: 3px 0 0; color: var(--sui-ink); font-family: "Zen Kaku Gothic New", sans-serif; font-size: clamp(25px, 3vw, 36px); font-weight: 500; line-height: 1.55; text-wrap: pretty; }
.sw-sui-latest-note p { max-width: 48em; margin: 4px 0 0; font-size: 15px; line-height: 1.9; }
.sw-sui-latest-note__link { display: flex; gap: 16px; justify-content: flex-end; align-items: center; color: var(--sui-blue); font-size: 14px; font-weight: 700; }
.sw-sui-latest-note > a:is(:hover, :focus-visible) h3 { color: var(--sui-blue); }
.sw-sui-latest-note > a:focus-visible { outline: 3px solid var(--sui-yellow); outline-offset: 4px; }

.sw-sui-notes-themes { background: #fbfdfe; border-top: 1px solid var(--sui-rule); }
.sw-sui-theme-groups { border-top: 1px solid var(--sui-ink); }
.sw-sui-theme-group { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 42px; padding: 34px 0; border-bottom: 1px solid var(--sui-rule); }
.sw-sui-theme-group > h3 { margin: 0; color: var(--sui-ink); font-family: "Zen Kaku Gothic New", sans-serif; font-size: 23px; font-weight: 500; line-height: 1.55; }
.sw-sui-theme-group > h3 span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-left: 10px; background: var(--sui-yellow); font-family: Manrope, sans-serif; font-size: 11px; font-weight: 700; vertical-align: .25em; }
.sw-sui-theme-group__list { min-width: 0; }
.sw-sui-theme-note { border-bottom: 1px solid #d9e3e9; }
.sw-sui-theme-note:first-child { border-top: 1px solid #d9e3e9; }
.sw-sui-theme-note a { display: grid; grid-template-columns: 90px minmax(0, 1fr) 22px; gap: 18px; align-items: center; padding: 17px 2px; color: inherit; text-decoration: none; }
.sw-sui-theme-note time { color: #6b8291; font-family: Manrope, sans-serif; font-size: 11px; }
.sw-sui-theme-note h4 { margin: 0; color: var(--sui-ink); font-size: 16px; line-height: 1.65; }
.sw-sui-theme-note a > span { color: var(--sui-blue); font-size: 20px; }
.sw-sui-theme-note a:is(:hover, :focus-visible) h4 { color: var(--sui-blue); }
.sw-sui-theme-note a:focus-visible { outline: 3px solid var(--sui-yellow); outline-offset: 3px; }

/* Shared Sui masthead on article pages. */
.sw-sui-notes-brand { border-bottom: 1px solid var(--sui-rule); background: #fff; }
.sw-sui-notes-brand__link { display: grid; grid-template-columns: 44px auto 1fr; gap: 14px; align-items: center; width: min(1280px, calc(100% - 48px)); margin-inline: auto; padding: 16px 0; color: var(--sui-ink); text-decoration: none; }
.sw-sui-notes-brand .sw-sui-book-mark { width: 42px; }
.sw-sui-notes-brand__name { font-family: "Zen Kurenaido", sans-serif; font-size: 23px; }
.sw-sui-notes-brand__english { justify-self: end; font-family: Manrope, sans-serif; font-size: 10px; letter-spacing: .3em; }

/* Article: one clear reading column, followed by engagement and services. */
.sw-sui-note-article .detail-hero { background: #fff; border-bottom: 1px solid var(--sui-rule); }
.sw-sui-note-article .detail-hero-inner { max-width: 880px; }
.sw-sui-note-article .detail-hero h1,
.sw-sui-note-article .detail-body h2,
.sw-sui-note-article .detail-body h3 { color: var(--sui-ink); }
.sw-sui-note-article .detail-hero h1 { max-width: 18em; font-family: "Zen Kaku Gothic New", sans-serif; font-size: clamp(32px, 4vw, 46px); font-weight: 500; line-height: 1.48; letter-spacing: .01em; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
.sw-sui-note-article .detail-eyebrow { color: var(--sui-blue); font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; }
.sw-sui-note-source { max-width: 62em; margin: 12px 0 18px; color: #6b8291; font-size: 11px; font-weight: 400; line-height: 1.75; }
.sw-sui-note-article .sw-article-meta { color: #587384; font-size: 13px; line-height: 1.8; }
.sw-sui-note-article .detail-intro { max-width: 46em; }
.sw-sui-note-article .detail-intro p { color: var(--sui-body); font-size: 17px; line-height: 2; }
.sw-sui-note-article .detail-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 48px; width: min(1048px, calc(100% - 48px)); align-items: start; }
.sw-sui-note-article .detail-aside { width: 100%; max-width: none; margin: 0; position: sticky; top: 24px; }
.sw-sui-note-article .detail-toc { width: 100%; margin: 0; padding: 0; border: 0; }
.sw-sui-note-article .detail-toc details { border-top: 1px solid var(--sui-ink); border-bottom: 1px solid var(--sui-rule); }
.sw-sui-note-article .detail-toc summary { padding: 15px 2px; color: var(--sui-ink); font-weight: 700; }
.sw-sui-note-article .detail-toc ol { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0 2px 16px; }
.sw-sui-note-article .detail-toc li { margin: 0; border-top: 1px solid #d9e3e9; list-style: none; }
.sw-sui-note-article .detail-toc a,
.sw-sui-note-article .detail-toc a:is(:hover, :focus-visible) { display: block; padding: 11px 0; border-bottom: 0; color: var(--sui-ink); font-size: 13px; line-height: 1.6; text-decoration: none; }
.sw-sui-note-article .detail-toc a:is(:hover, :focus-visible) { color: var(--sui-blue); outline: none; }
.sw-sui-note-article .detail-body { grid-column: 2; width: min(100%, 760px); margin-inline: auto; font-size: 17px; line-height: 2.05; }
.sw-sui-note-article .detail-body p { margin-block: 0 1.45em; }
.sw-sui-note-article .detail-body h2 { position: relative; margin-top: 2.8em; padding-left: 22px; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 500; line-height: 1.65; text-wrap: pretty; }
.sw-sui-note-article .detail-body h2:first-child { margin-top: .8em; }
.sw-sui-note-article .detail-body h2::before { content: ""; position: absolute; top: .34em; bottom: .2em; left: 0; width: 6px; background: var(--sui-yellow); }
.sw-sui-note-article .detail-body a:not(.detail-link) { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.sw-sui-disclosure { margin: 0 0 34px; padding: 9px 12px; border-left: 2px solid #c9d7df; background: #fbfdfe; color: #6b8291; }
.sw-sui-disclosure p { margin: 0 !important; font-size: 11px; font-weight: 400; line-height: 1.75; }
.sw-sui-note-article .detail-body table { width: 100%; margin: 28px 0 38px; border-collapse: collapse; font-size: 14px; line-height: 1.75; }
.sw-sui-note-article .detail-body th,
.sw-sui-note-article .detail-body td { padding: 13px 14px; border: 1px solid var(--sui-rule); text-align: left; vertical-align: top; }
.sw-sui-note-article .detail-body th { background: var(--sui-wash); color: var(--sui-ink); }
.sw-sui-note-article .detail-body blockquote { margin: 30px 0; padding: 20px 24px; border-left: 4px solid var(--sui-blue); background: var(--sui-wash); color: var(--sui-ink); }
.sw-sui-note-article .detail-body blockquote p:last-child { margin-bottom: 0; }
.sw-sui-character-break { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: 34px; align-items: center; margin: 54px 0; padding: 22px 28px 22px 16px; border-top: 1px solid var(--sui-rule); border-bottom: 1px solid var(--sui-rule); background: #fbfdfe; }
.sw-sui-character-break img { display: block; width: 100%; height: auto; }
.sw-sui-character-break figcaption { color: var(--sui-ink); font-family: "Zen Kaku Gothic New", sans-serif; }
.sw-sui-character-break figcaption span { display: block; margin-bottom: 10px; color: var(--sui-blue); font-family: Manrope, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .24em; }
.sw-sui-character-break figcaption p { margin: 0 !important; font-size: 17px; font-weight: 500; line-height: 1.9; }
.sw-sui-references { margin: 54px 0 8px; border-top: 1px solid var(--sui-ink); border-bottom: 1px solid var(--sui-rule); }
.sw-sui-references summary { padding: 15px 2px; color: var(--sui-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.sw-sui-references summary::marker { color: var(--sui-blue); }
.sw-sui-references__body { padding: 2px 2px 18px; color: #486675; font-size: 13px; line-height: 1.85; }
.sw-sui-references__body ul { margin: 0; padding-left: 1.4em; }
.sw-sui-references__body li + li { margin-top: 10px; }
.sw-sui-references__body a { overflow-wrap: anywhere; }
.sw-sui-article-end { display: flex; gap: 12px; align-items: center; margin-top: 62px; padding: 18px 0; border-top: 1px solid var(--sui-ink); border-bottom: 1px solid var(--sui-rule); color: var(--sui-ink); }
.sw-sui-article-end span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; background: var(--sui-yellow); font-weight: 700; }
.sw-sui-article-end p { margin: 0 !important; font-size: 14px; font-weight: 700; line-height: 1.7; }

.sw-sui-note-article .sw-sui-reactions,
.sw-sui-note-article .sw-sui-comments { width: 100%; margin-inline: auto; }
.sw-sui-service-area { grid-column: 2; width: 100%; margin-inline: auto; }
.sw-sui-note-article .sw-sui-reactions,
.sw-sui-note-article .sw-sui-comments { --sui-ink: #073b61; --sui-accent: #075fde; --sui-pale: #eef6fb; --sui-border: #b9cad5; }
.sw-sui-note-article .sw-sui-reactions { margin-top: 68px; border: 0; border-top: 1px solid var(--sui-ink); border-bottom: 1px solid var(--sui-rule); border-radius: 0; background: #fff; box-shadow: none; }
.sw-sui-note-article .sw-sui-reaction,
.sw-sui-note-article .sw-sui-comment__body,
.sw-sui-note-article .sw-sui-comments .comment-respond { border-radius: 0; box-shadow: none; }
.sw-sui-service-area { margin-top: 78px; margin-bottom: 84px; padding: 42px 40px; background: var(--sui-wash); border-top: 4px solid var(--sui-blue); }
.sw-sui-service-area > h2 { margin: 0; color: var(--sui-ink); font-family: "Zen Kaku Gothic New", sans-serif; font-size: clamp(27px, 3.4vw, 38px); font-weight: 500; line-height: 1.55; }
.sw-sui-service-area__intro { margin: 13px 0 32px; font-size: 15px; line-height: 1.9; }
.sw-sui-service-area .sw-article-service-section { margin: 0; padding: 30px 0 0; border-top: 1px solid var(--sui-rule); }
.sw-sui-service-area .sw-article-service-section .detail-section-heading > span { display: none; }

@media (max-width: 760px) {
	.sw-sui-notes-anchor-alias,
	#notes-index { scroll-margin-top: 148px; }
	.sw-sui-notes-shell { width: min(100% - 32px, 620px); }
	.sw-sui-notes-cover { padding: 48px 0 56px; }
	.sw-sui-notes-cover__inner { grid-template-columns: 1fr; gap: 42px; }
	.sw-sui-notes-cover__copy .sw-sui-book-mark { width: 60px; margin: 0 0 22px 4%; }
	.sw-sui-notes-cover h1 { font-size: clamp(48px, 14vw, 68px); }
	.sw-sui-notes-cover h1 strong::after { display: block; width: 1.15em; margin: .1em 0 0 2.4em; }
	.sw-sui-notes-cover__lead { margin-top: 24px; font-size: 18px; }
	.sw-sui-notes-about__inner { grid-template-columns: 1fr; gap: 28px; }
	.sw-sui-notes-about dl > div { grid-template-columns: 1fr; gap: 5px; }
	.sw-sui-notes-latest .sw-sui-notes-section-heading,
	.sw-sui-notes-themes .sw-sui-notes-section-heading { grid-template-columns: 1fr; gap: 6px; margin-bottom: 28px; }
	.sw-sui-latest-note > a { grid-template-columns: 1fr; gap: 13px; padding: 28px 0; }
	.sw-sui-latest-note__label { grid-row: auto; }
	.sw-sui-latest-note h3 { font-size: 28px; }
	.sw-sui-latest-note p { font-size: 14px; }
	.sw-sui-latest-note__link { justify-content: flex-start; margin-top: 5px; }
	.sw-sui-theme-group { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
	.sw-sui-theme-note a { grid-template-columns: 1fr 22px; gap: 4px 12px; }
	.sw-sui-theme-note time { grid-column: 1; }
	.sw-sui-theme-note h4 { grid-column: 1; }
	.sw-sui-theme-note a > span { grid-column: 2; grid-row: 1 / span 2; }
	.sw-sui-notes-brand__link { grid-template-columns: 38px minmax(0, 1fr); width: calc(100% - 32px); padding: 12px 0; }
	.sw-sui-notes-brand .sw-sui-book-mark { width: 36px; }
	.sw-sui-notes-brand__name { font-size: 19px; }
	.sw-sui-notes-brand__english { display: none; }
	.sw-sui-note-article .detail-layout,
	.sw-sui-note-article .sw-sui-reactions,
	.sw-sui-note-article .sw-sui-comments,
	.sw-sui-service-area { width: min(100% - 32px, 620px); }
	.sw-sui-note-article .detail-layout { display: grid; grid-template-columns: 1fr; gap: 34px; }
	.sw-sui-note-article .detail-aside { display: contents; }
	.sw-sui-note-article .sw-article-sponsors { grid-row: 1; margin: 0; }
	.sw-sui-note-article .detail-toc { grid-row: 2; }
	.sw-sui-note-article .detail-body { grid-column: 1; grid-row: 3; }
	.sw-sui-service-area { grid-column: 1; grid-row: 4; }
	.sw-sui-note-article .detail-toc ol { grid-template-columns: 1fr; }
	.sw-sui-note-article .detail-hero h1 { font-size: clamp(29px, 8.8vw, 36px); line-height: 1.55; }
	.sw-sui-note-source { font-size: 10px; }
	.sw-sui-disclosure { margin-bottom: 28px; padding: 8px 10px; }
	.sw-sui-disclosure p { font-size: 10px; line-height: 1.7; }
	.sw-sui-note-article .detail-intro p { font-size: 16px; }
	.sw-sui-character-break { grid-template-columns: 108px minmax(0, 1fr); gap: 16px; margin: 42px 0; padding: 16px 14px 16px 4px; }
	.sw-sui-character-break figcaption p { font-size: 14px; line-height: 1.8; }
	.sw-sui-note-article .detail-body { font-size: 16px; line-height: 2; }
	.sw-sui-note-article .detail-body h2 { margin-top: 2.35em; padding-left: 17px; }
	.sw-sui-service-area { margin-top: 58px; margin-bottom: 64px; padding: 30px 20px; }
}

@media (max-width: 340px) {
	.sw-sui-notes-cover h1 { font-size: 46px; }
	.sw-sui-notes-cover__lead { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.sw-sui-notes-cover__nav a,
	.sw-sui-latest-note > a,
	.sw-sui-theme-note a { scroll-behavior: auto; }
}
