/*
 * 固定ページ・お知らせの本文
 * 移行前に書かれた本文(表・枠・赤字など)もここで整える。
 */

/* ============ ページの見出し ============ */
.ns-main.site-main {
	padding-block: 0 clamp(16px, 3vw, 32px);
}

.ns-page-head {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ns-page-head__inner {
	max-width: 840px;
	margin-inline: auto;
	padding: clamp(36px, 5vw, 64px) 20px clamp(28px, 4vw, 44px);
}

.ns-page-head .breadcrumb {
	margin-bottom: 18px;
	font-size: 13px;
}

.ns-page-head__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--wp--preset--color--sub);
}

.ns-page-head__meta time {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.ns-page-head__cat {
	color: var(--wp--preset--color--accent);
}

.ns-page-head__title {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--ink);
}

.ns-main .site-main__inner {
	max-width: 840px;
	padding-top: clamp(32px, 4vw, 52px);
}

/* ============ 本文 ============ */
.ns-main .entry-content {
	font-size: 16px;
	line-height: 1.95;
	letter-spacing: 0.02em;
}

.ns-main .entry-content > * + * {
	margin-top: 1.3em;
}

.ns-main .entry-content p {
	margin-top: 1.1em;
}

.ns-main .entry-content > p:first-child {
	margin-top: 0;
}

.ns-main .entry-content h2 {
	margin-top: 2.6em;
	padding-top: 1.1em;
	border-top: 1px solid var(--wp--preset--color--line);
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--ink);
}

.ns-main .entry-content h3 {
	margin-top: 2em;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(19px, 1.8vw, 22px);
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--ink);
}

.ns-main .entry-content h4 {
	margin-top: 1.8em;
	font-size: 17px;
	color: var(--wp--preset--color--ink);
}

.ns-main .entry-content > :first-child {
	margin-top: 0;
}

.ns-main .entry-content > h2:first-child {
	padding-top: 0;
	border-top: 0;
}

.ns-main .entry-content :is(h2, h3, h4) + * {
	margin-top: 0.7em;
}

/* 行の長さをそろえ、最後の行に1〜2文字だけ残さない(まとまりの span は inc/mrs.php の mrs_wrap_heading) */
.ns-main .entry-content :is(h2, h3, h4) {
	text-wrap: balance;
}

.ns-main .entry-content a {
	color: var(--wp--preset--color--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	overflow-wrap: anywhere;
}

.ns-main .entry-content strong,
.ns-main .entry-content b {
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

.ns-main .entry-content img {
	max-width: 100%;
	height: auto;
}

.ns-main .entry-content .aligncenter {
	display: block;
	margin-inline: auto;
}

.ns-main .entry-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.ns-main .entry-content .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.ns-main .entry-content {
	display: flow-root;
}

/* 赤字と大きな字(移行前の本文の強調) */
.ns-main .entry-content .ns-em-alert {
	color: var(--wp--preset--color--alert);
}

.ns-main .entry-content .ns-em-large {
	font-size: 1.15em;
	line-height: 1.7;
}

/* よくある質問(体験スクールのページの「Q」で始まる小見出し) */
.ns-main .entry-content h3.ns-faq-q {
	margin-top: 1.6em;
	padding-top: 1.3em;
	border-top: 1px solid var(--wp--preset--color--line);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 0.02em;
}

.ns-main .entry-content h2 + h3.ns-faq-q {
	padding-top: 0;
	border-top: 0;
}

.ns-main .entry-content h3.ns-faq-q + * {
	margin-top: 0.5em;
}

/* アプリストアへのリンク */
.ns-main .entry-content .ns-apps {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
}

.ns-main .entry-content .ns-apps img {
	width: 220px;
	height: auto;
}

/* 案内の面(本文の ns-box と、セルが1つだけの表) */
.ns-main .entry-content .ns-box,
.ns-main .entry-content table:not(:has(tr ~ tr)) td:only-child {
	padding: 26px 30px;
	border: 0;
	background: var(--wp--preset--color--muted);
	font-size: 15.5px;
	line-height: 1.9;
}

.ns-main .entry-content table:not(:has(tr ~ tr)):has(td:only-child) {
	border: 0;
}

.ns-main .entry-content .ns-box > :first-child {
	margin-top: 0;
}

/* 表(縦の罫は引かず、行の境だけを横の罫で示す) */
.ns-main .entry-content table {
	width: 100%;
	font-size: 15px;
	line-height: 1.75;
	border-collapse: collapse;
	border-top: 1px solid #cfc9dc;
	border-bottom: 1px solid #cfc9dc;
}

.ns-main .entry-content :is(th, td) {
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: top;
}

.ns-main .entry-content th,
.ns-main .entry-content tr > td:first-child:not(:only-child),
.ns-main .entry-content tr > td[colspan]:only-child {
	background: var(--wp--preset--color--muted);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.ns-main .entry-content tr > td:first-child:not(:only-child) {
	width: 34%;
}

/* 埋め込み(カレンダー・地図) */
.ns-main .entry-content iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--wp--preset--color--line);
}

/* 本文の中のボタン */
.ns-main .entry-content a.ns-btn {
	color: #ffffff;
	text-decoration: none;
}

.ns-main .entry-content a.ns-btn--outline {
	color: var(--wp--preset--color--accent);
}

.ns-main .entry-content a.ns-btn--outline:hover {
	color: #ffffff;
}

.ns-main .entry-content .ns-box a.ns-btn {
	margin-top: 14px;
}

/* ============ お知らせ ============ */
.ns-main .post-nav {
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.ns-main .post-nav .nav-links {
	display: grid;
	gap: 16px;
}

.ns-main .post-nav a {
	color: var(--wp--preset--color--ink);
}

.ns-more--back {
	margin-top: 32px;
}

/* ============ ページ送り ============ */
.ns-main .pagination,
.ns-main ul.page-numbers {
	margin-top: 40px;
}

.ns-main ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.ns-main .page-numbers {
	border-radius: 2px;
}

.ns-main .page-numbers.current {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.ns-main ul.page-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid var(--wp--preset--color--line);
	color: inherit;
	text-decoration: none;
}

.ns-main ul.page-numbers .page-numbers.current {
	color: #ffffff;
}

/* ============ フォーム(Contact Form 7) ============ */
.ns-main .wpcf7 {
	margin-top: 1.5em;
}

.ns-main .wpcf7 p {
	margin-top: 1.4em;
}

.ns-main .wpcf7 label {
	display: block;
	margin-top: 1.4em;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.ns-main .wpcf7 .wpcf7-list-item label {
	margin-top: 0;
	font-weight: 400;
}

.ns-main .wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea) {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 12px 14px;
	border: 1px solid #c9c3d6;
	border-radius: 2px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	transition: border-color 0.15s ease;
}

.ns-main .wpcf7 textarea {
	min-height: 180px;
	resize: vertical;
}

.ns-main .wpcf7 :is(input, select, textarea):hover {
	border-color: #a59dbb;
}

.ns-main .wpcf7 select {
	min-height: 50px;
	padding-right: 40px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%233a2a80' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
}

.ns-main .wpcf7 .wpcf7-form-control-wrap:is([data-name="birth-year"], [data-name="birth-month"], [data-name="birth-day"]) {
	display: inline-block;
	margin-right: 4px;
}

.ns-main .wpcf7 .wpcf7-form-control-wrap:is([data-name="birth-year"], [data-name="birth-month"], [data-name="birth-day"]) select {
	width: auto;
	min-width: 5.5em;
	padding-right: 34px;
	background-position: right 12px center;
}

.ns-main .wpcf7 .wpcf7-form-control-wrap:is([data-name="birth-month"], [data-name="birth-day"]) .wpcf7-not-valid-tip {
	display: none;
}

.ns-main .wpcf7 :is(input, select, textarea)[aria-invalid="true"] {
	border-color: var(--wp--preset--color--alert);
	background-color: #fffafa;
}

.ns-main .wpcf7 :is(input[type="checkbox"], input[type="radio"]) {
	width: 20px;
	height: 20px;
	margin: 0 8px 0 0;
	accent-color: var(--wp--preset--color--accent);
}

.ns-main .wpcf7 :is(input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--accent);
}

.ns-main .wpcf7 .wpcf7-list-item {
	display: inline-flex;
	align-items: center;
	margin: 6px 24px 6px 0;
	font-weight: 400;
}

.ns-main .wpcf7 input[type="submit"] {
	min-width: 280px;
	min-height: 58px;
	margin-top: 2em;
	padding: 0 40px;
	border: 0;
	border-radius: 2px;
	background: var(--wp--preset--color--accent);
	color: #ffffff;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.12em;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ns-main .wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--deep);
}

.ns-main .wpcf7-not-valid-tip,
.ns-main .wpcf7 .wpcf7-response-output {
	color: var(--wp--preset--color--alert);
	font-size: 14px;
}

.ns-main .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-weight: 600;
}

.ns-main .wpcf7 .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 14px 18px;
	border-width: 1px;
	background: var(--wp--preset--color--base);
	line-height: 1.7;
}

.ns-main .wpcf7 form:is(.invalid, .unaccepted, .failed, .aborted, .spam) .wpcf7-response-output {
	border-color: var(--wp--preset--color--alert);
}

.ns-main .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

/* 項目を行に組んだフォーム(ラベルの列と入力の列。まとまりごとに見出し)。送信後の文も同じ面の中に置く */
.ns-main .wpcf7 form:has(.ns-form) {
	padding: 8px clamp(20px, 4vw, 44px) clamp(32px, 4vw, 44px);
	background: var(--wp--preset--color--muted);
}

.ns-main .wpcf7 .ns-form__group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ns-main .wpcf7 .ns-form__legend {
	display: block;
	width: 100%;
	padding: 28px 0 12px;
	border-bottom: 1px solid #cfc9dc;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--ink);
}

.ns-main .wpcf7 .ns-form__row {
	display: grid;
	grid-template-columns: 16em minmax(0, 1fr);
	gap: 8px 32px;
	align-items: start;
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid #dcd8e5;
	font-weight: 400;
}

.ns-main .wpcf7 .ns-form__label {
	display: block;
	padding-top: 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--wp--preset--color--ink);
}

.ns-main .wpcf7 .ns-form__note {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--wp--preset--color--sub);
}

.ns-main .wpcf7 .ns-form__control {
	display: block;
	min-width: 0;
}

.ns-main .wpcf7 .ns-form__control :is(input, select, textarea) {
	margin-top: 0;
}

.ns-main .wpcf7 .ns-form__control .wpcf7-checkbox {
	display: block;
	padding-top: 8px;
}

/* 生年月日: 年・月・日の欄と文字を1行に */
.ns-main .wpcf7 .ns-form__date {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
	gap: 6px;
	align-items: center;
	max-width: 400px;
}

.ns-main .wpcf7 .ns-form__date > span:not(.wpcf7-form-control-wrap) {
	margin-right: 4px;
}

.ns-main .wpcf7 .ns-form__date .wpcf7-form-control-wrap {
	display: block;
	min-width: 0;
	margin-right: 0;
}

.ns-main .wpcf7 .ns-form__date .wpcf7-form-control-wrap select {
	width: 100%;
	min-width: 0;
	padding-right: 28px;
	padding-left: 10px;
	background-position: right 10px center;
}

.ns-main .wpcf7 .ns-form__submit {
	text-align: center;
}

.ns-main .wpcf7 .ns-form__submit input[type="submit"] {
	margin-top: 32px;
}

.ns-main .wpcf7 .ns-form .wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

@media (max-width: 600px) {
	.ns-main .entry-content .alignright,
	.ns-main .entry-content .alignleft {
		float: none;
		margin-inline: auto;
	}

	.ns-main .entry-content :is(th, td) {
		padding: 10px 12px;
	}

	.ns-main .entry-content tr > td:first-child:not(:only-child) {
		width: 38%;
	}

	.ns-main .entry-content iframe {
		aspect-ratio: 3 / 4;
	}

	.ns-main .wpcf7 input[type="submit"] {
		width: 100%;
		min-width: 0;
	}

	.ns-main .entry-content a.ns-btn {
		display: flex;
		width: 100%;
	}

	/* 会員登録方法: アプリの画面の図は画面の幅いっぱいに */
	.page-id-681 .ns-main .entry-content img.size-full {
		width: calc(100% + 40px);
		max-width: none;
		margin-inline: -20px;
	}

	.ns-main .wpcf7 form:has(.ns-form) {
		margin-inline: -20px;
		padding: 0 20px 28px;
	}

	.ns-main .wpcf7 .ns-form__legend {
		padding-top: 24px;
		font-size: 19px;
	}

	.ns-main .wpcf7 .ns-form__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		padding: 16px 0 18px;
	}

	.ns-main .wpcf7 .ns-form__label {
		padding-top: 0;
	}

	.ns-main .entry-content .ns-box,
	.ns-main .entry-content table:not(:has(tr ~ tr)) td:only-child {
		padding: 22px 20px;
	}
}
