@charset "UTF-8";

/* トップページ（会員がログインして最初に見る画面） */

/* ---------------------------------------------------------
 * ファーストビュー
 * 「自分がいまどこにいるか」を、ここだけ見れば分かるようにする。
 * 完成見本の写真は出さない（今月の課題の答えを見せてしまうため）
 * --------------------------------------------------------- */
/* 一番大事なところなので、紙色の地の上に白い面を起こして目立たせる。
   カードを並べるのではなく、ここ1つだけを起こす */
.now {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 40px 44px 44px;
	margin-block: 40px 8px;
}

.now__label {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--accent);
}

.now__title {
	margin: 0 0 14px;
	font-family: var(--serif);
	font-size: 34px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.45;
}

.now__text {
	max-width: 34em;
	margin: 0 0 18px;
}

/* 課題のしめきり */
.now__due {
	margin: 0 0 26px;
	font-size: 17px;
}
.now__due b {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 600;
	margin-left: 4px;
	font-variant-numeric: tabular-nums;
}
.now__due-sub {
	margin-left: 10px;
	font-size: var(--fs-small);
	color: var(--ink-weak);
}

/* 課題と教材の境目 */
.now__sep {
	border: 0;
	border-top: 1px solid var(--line-strong);
	margin: 38px 0 34px;
}

/* 自分の状況。数字を帯にまとめ、列の間を1pxの線で分ける（囲みカードにしない） */
.facts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	margin: 0 0 30px;
	padding: 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.facts__item {
	padding: 20px 26px;
	box-shadow: -1px 0 0 var(--line);
}
.facts__item:first-child { box-shadow: none; padding-left: 0; }
.facts__item:last-child { padding-right: 0; }

.facts dt {
	font-size: 13px;
	letter-spacing: 0.08em;
	color: var(--ink-weak);
}

.facts dd {
	margin: 4px 0 0;
	font-size: 17px;
	line-height: 1.5;
}

.facts dd b {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
	margin-right: 2px;
}

.facts__sub {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	color: var(--ink-weak);
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 18px;
}

.now__after {
	margin: 0;
	font-size: var(--fs-small);
	color: var(--ink-weak);
}

/* ---------------------------------------------------------
 * はじめに：新しく入った方が最初に読む3つ
 * カード1枚ずつが区切りになるので、外側の囲みは付けない
 * --------------------------------------------------------- */
.starter {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.starter > li { display: flex; }

.starter a {
	display: flex;
	flex-direction: column;
	inline-size: 100%;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 24px 26px 26px;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}
.starter a:hover {
	text-decoration: none;
	border-color: var(--line-strong);
}

.starter__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 26px;
}

/* 見分けるためのアイコン。飾りではないので3つとも同じ色にする */
.starter__icon {
	inline-size: 30px;
	block-size: 30px;
	fill: none;
	stroke: var(--ink-weak);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 0.25s ease;
}
.starter a:hover .starter__icon { stroke: var(--accent); }

.starter__arrow {
	inline-size: 18px;
	block-size: 18px;
	fill: none;
	stroke: var(--ink-faint);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 0.25s ease, transform 0.25s ease;
}
.starter a:hover .starter__arrow { stroke: var(--accent); transform: translateX(4px); }

.starter__title {
	display: block;
	margin-bottom: 8px;
	font-family: var(--sans);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.starter__text {
	display: block;
	font-size: var(--fs-small);
	line-height: 1.75;
	color: var(--ink-weak);
}

@media (max-width: 900px) {
	.starter { grid-template-columns: 1fr; gap: 14px; }
	.starter__top { margin-bottom: 16px; }
	.starter__text br { display: none; }
}

/* ---------------------------------------------------------
 * 2枚カード（お知らせの下）：初期はよくある質問・先生の紹介
 * 「はじめての方へ」の3枚（白い箱が独立して並ぶ）とは違う見え方にする。
 * 1つの白い面を破線で2つに割り、横並びのリンクにする（.now の左右分割と同じ考え方）
 * --------------------------------------------------------- */
.helpers__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.helpers__list > li:first-child {
	padding-right: 32px;
	border-right: 1px dashed var(--line-strong);
}
.helpers__list > li:last-child { padding-left: 32px; }

.helpers__item {
	display: flex;
	align-items: center;
	gap: 18px;
	text-decoration: none;
}

.helpers__icon {
	flex: 0 0 auto;
	inline-size: 34px;
	block-size: 34px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.helpers__body { flex: 1 1 auto; min-width: 0; }

.helpers__title {
	display: block;
	font-family: var(--sans);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.03em;
	margin-bottom: 4px;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color .3s ease;
}
.helpers__item:hover .helpers__title { text-decoration-color: currentColor; }

.helpers__text {
	display: block;
	font-size: var(--fs-small);
	color: var(--ink-weak);
	text-decoration: none;
}

.helpers__arrow {
	flex: 0 0 auto;
	inline-size: 16px;
	block-size: 16px;
	fill: none;
	stroke: var(--ink-faint);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	margin-left: auto;
	transition: stroke 0.25s ease, transform 0.25s ease;
}
.helpers__item:hover .helpers__arrow { stroke: var(--accent); transform: translateX(4px); }

@media (max-width: 700px) {
	.helpers__list { grid-template-columns: 1fr; gap: 20px; }
	.helpers__list > li:first-child {
		padding-right: 0;
		padding-bottom: 20px;
		border-right: 0;
		border-bottom: 1px dashed var(--line-strong);
	}
	.helpers__list > li:last-child { padding-left: 0; }
}

@media (max-width: 700px) {
	.now { padding: 26px 20px 30px; margin-block: 24px 0; border-radius: 10px; }
	.now__title { font-size: 28px; }

	/* 3つ並びは狭いと読めないので、縦に積んで線で分ける */
	.facts { grid-template-columns: 1fr; }
	.facts__item {
		padding: 16px 0;
		box-shadow: none;
		border-top: 1px solid var(--line);
	}
	.facts__item:first-child { border-top: 0; }

	.btn-row { flex-direction: column; }

	.menu a { flex-wrap: wrap; gap: 4px 14px; }
	.menu__name { flex-basis: auto; }
	.menu__desc { flex-basis: 100%; }
	.menu__mark { margin-left: 0; }
}
