@charset "UTF-8";

/*
 * このサイト全体の見た目。全ページが読み込む。
 * common.css（下地）→ site.css（この教室の見た目）→ pages/◯◯.css（ページごと）の順に当たる。
 *
 * 納品先ごとに差し替えるのは、下の :root だけ。
 */

:root {
	/* 布と糸から色を取る。
	   地＝生成り。文字＝焦茶。アクセント＝茜（刺繍糸の赤）。完了＝若葉 */
	--paper: #f9f7f4;
	--surface: #ffffff;
	--ink: #332f2a;
	--ink-weak: #6b6359;
	--ink-faint: #9c9287;
	--line: #e0dad2;
	--line-strong: #c4bbaf;
	--accent: #a83c38;
	--done: #4f7a5c;
	--wrap: 1160px;
	--gutter: 28px;
}

body { line-height: 1.85; }

/* デモを見に来た先生への一文 */
.demo-bar { background: #efe9e1; color: #5f574c; font-size: 12px; }
.demo-bar__inner { padding-block: 8px; text-align: center; }
.demo-bar strong { margin-right: 8px; }
.demo-bar a { margin-left: 10px; }

/* ヘッダー。ナビとの間に線を入れて役割を分ける。
   🔴 ヘッダーとメニューは白の地を付けず、ページと同じ地の色にする（2026-09-24 ユーザー判断）。
      白い面を中身の箱だけにして、目が中身へ行くように。区切りは上下の細い線だけで示す */
/* 🔴 ヘッダー1行：教室名｜メニュー｜マイページ（2026-09-24 A案）。メニューの帯はやめた。
   パソコンではスクロールしても上に残す（少し透ける地の色）。狭い画面では固定しない（2行になって場所を取るため） */
.site-header { background: rgba(249, 247, 244, .94); }
@media (min-width: 1101px) {
	.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 84px; padding-block: 14px; gap: 24px; }
.brand { gap: 16px; }
.brand__mark { inline-size: 48px; block-size: 48px; }
.site-title { font-size: 22px; letter-spacing: .08em; }
.site-title__sub { font-size: 12px; margin-top: 7px; }
.account-link { border: 1px solid var(--line); border-radius: 6px; padding: 9px 16px; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.account-link { background: var(--surface); }   /* 地の色の上でもボタンと分かるように白を残す */
.account-link:hover { background: var(--paper); text-decoration: none; }

/* マイページの左に、その人のアイコン（UMの写真。無ければ人型） */
.account-link { gap: 9px; }
.account-link__avatar {
	flex: 0 0 auto;
	inline-size: 30px;
	block-size: 30px;
	margin-left: -6px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--surface);
}
.account-link__avatar--icon {
	padding: 6px;
	border: 1px solid var(--line-strong);
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ナビ。現在地もホバーも「下線が短く出る」同じ形で示す。
   背景を塗りつぶすやり方は古く見えるので使わない。
   押せる範囲（padding）は common.css の display:block のままliいっぱいに保ちつつ、
   下線だけは文字の下に短く・細く出す（left:0;right:0 で全幅に伸ばすと野暮ったく見える） */
.gnav { margin-left: auto; background: none; border: 0; }
.gnav__list { flex-wrap: nowrap; justify-content: flex-end; gap: 2px; }
.gnav__list li { flex: 0 0 auto; }
.gnav__list a { text-align: center; padding: 12px 14px; font-size: 15px; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.gnav__list a { position: relative; border-bottom: 0; transition: color .2s ease; }
.gnav__list a::after {
	content: "";
	position: absolute;
	left: 50%; bottom: 3px;
	inline-size: 22px;
	block-size: 2px;
	background: var(--accent);
	transform: translateX(-50%) scaleX(0);
	transform-origin: center;
	transition: transform .22s ease;
}
.gnav__list a:hover { color: var(--accent); }

/* 狭いパソコン・タブレット：メニューをヘッダーの2行目へ（左寄せ・均等割りにしない） */
@media (max-width: 1100px) {
	.site-header__inner { flex-wrap: wrap; row-gap: 0; }
	.gnav { order: 3; flex-basis: 100%; margin: 6px 0 -14px; border-top: 1px solid var(--line); }
	.gnav__list { justify-content: flex-start; }
	.gnav__list a { padding: 12px 14px 13px; }
	.gnav__list li:first-child a { padding-left: 0; }
	.gnav__list li:first-child a::after { left: calc(50% - 7px); }
}
.gnav__list a:hover::after { transform: translateX(-50%) scaleX(1); }
.gnav__list a[aria-current="page"] { font-weight: 700; color: var(--accent); }
.gnav__list a[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }

/* ボタン */
.btn { gap: 20px; width: 100%; min-height: 56px; padding: 12px 20px; font-size: 17px; font-weight: 600; border-radius: 6px; letter-spacing: .025em; }
.btn span { margin-left: auto; transition: transform .2s ease; }
.btn:hover { background: #8c2f2c; border-color: #8c2f2c; }
.btn:hover span { transform: translateX(4px); }
.btn-row { margin: 0; gap: 14px; }

/* 箱で囲む区画 */
.section { padding: 27px 32px 19px; border-radius: 10px; margin-block: 24px; }
.section__head { margin-bottom: 17px; }
.section__title { font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.section__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	padding: 5px 0;
	text-decoration: none;
}
.section__more__text {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 4px;
	transition: text-decoration-color .3s ease;
}
.section__more:hover .section__more__text { text-decoration-color: currentColor; }
.section__more__arrow { display: inline-block; text-decoration: none; transition: transform .2s ease; }
.section__more:hover .section__more__arrow { transform: translateX(4px); }

/* 中身そのものが箱になる区画は、外側を囲まない */
.section--plain { background: none; border: 0; border-radius: 0; padding: 14px 0 0; }
.section--plain .section__head { margin-bottom: 8px; }

.row { padding-block: 14px; gap: 28px; }
.row__date { font-size: 14px; min-width: 96px; }
.row__title { font-size: 16px; }
.lead { margin-bottom: 20px; }

/* フッター */
.site-footer { margin-top: 48px; padding-block: 25px 30px; font-size: 14px; }
.site-footer > .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer__list { gap: 22px; margin: 0; }
.site-footer__list a { display: inline-block; padding-block: 8px; }
.site-footer__copy { white-space: nowrap; font-size: 12px; }

@media (max-width: 760px) {
	:root { --gutter: 20px; }
	.demo-bar { font-size: 11px; }
	.demo-bar__inner { text-align: left; }
	.site-header__inner { padding-block: 19px; min-height: 90px; gap: 12px; }
	.brand { gap: 10px; }
	.brand__mark { width: 35px; height: 35px; }
	.site-title { font-size: 19px; letter-spacing: .02em; white-space: normal; }
	.site-title__sub { font-size: 10px; letter-spacing: 0; margin-top: 4px; }
	.account-link { font-size: 12px; padding: 8px 10px; }
	.account-link__name { display: none; }

	/* ナビは横スクロールにしない。隠れると気づかれないため、3列で折り返す */
	.gnav__list li:first-child a { padding-left: 0; }
	.gnav__list li:first-child a::after { left: 50%; }
	.gnav__list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 10px; overflow: visible; }
	.gnav__list a { font-size: 14px; padding: 10px 0; white-space: normal; letter-spacing: 0; }

	.btn-row { flex-direction: column; gap: 10px; }
	.section { padding: 23px 22px 13px; margin-block: 22px; }
	.section__title { font-size: 19px; }
	.section__more { font-size: 13px; }
	.section__head { gap: 8px; }
	.section--plain { padding: 8px 0 0; }
	.row { gap: 3px; flex-direction: column; }
	.row__title { font-size: 16px; }
	.lead { font-size: 16px; }
	.site-footer { margin-top: 34px; }
	.site-footer > .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
	.site-footer__list { gap: 4px 22px; }
}

@media (max-width: 380px) {
	:root { --gutter: 16px; }
	.site-header__inner { flex-wrap: wrap; }
	.account-link { margin-left: auto; }
}

/* パンくず */
.breadcrumb { margin: 0; padding-block: 18px 0; font-size: 13px; color: var(--ink-weak); }
.breadcrumb span { margin-inline: 8px; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-weak); }

/* =========================================================
 * ページの頭（ホーム以外の全ページで同じ形にする）
 * ========================================================= */
.page-head { padding: 34px 0 6px; }

.page-head__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.page-head__title {
	margin: 0;
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 600;
	letter-spacing: .07em;
	line-height: 1.5;
}

.page-head__note { margin: 10px 0 0; font-size: 16px; color: var(--ink-weak); }

/* 小さな印。意味ごとに色を変える（茜＝いまここ／灰＝終わったこと・予定） */
.month-tag,
.tag-now,
.tag-done {
	padding: 3px 10px;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
}
.month-tag { border: 1px solid var(--line-strong); color: var(--ink-weak); }
.tag-now   { border: 1px solid var(--accent); color: var(--accent); }
.tag-done  { border: 1px solid var(--line-strong); color: var(--ink-weak); }

@media (max-width: 760px) {
	.page-head { padding: 24px 0 4px; }
	.page-head__title { font-size: 25px; }
	.page-head__row { flex-direction: column; gap: 10px; }
	.page-head__note { font-size: 15px; }
}

/* 案内の枠（レッスンの条件・編集者向けの注意など）。
   複数の画面で使うので共通に置く */
.notice { display: flex; align-items: flex-start; gap: 14px; }

.notice__icon {
	flex: 0 0 auto;
	inline-size: 24px;
	block-size: 24px;
	margin-top: 2px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.notice__body { min-width: 0; }
.notice__body p { margin: 0; font-size: 15px; color: var(--ink-weak); }
.notice__body p + p { margin-top: 6px; }
.notice__body strong { color: var(--ink); }
