@charset "utf-8";

/* ==================================================
   AI体験アトリエ　「教室について」ページ用CSS
   テーマ：「額に入れて飾る、小さなアトリエ」（トップページと同じ）
   ・色、書体、ヘッダー、フッター、ボタン、額縁は index.css と同じです
   ・このページだけの部分には「このページだけ」と書いています
   「スマホ用」を先に書き、広い画面の変更は下にまとめています。
   ================================================== */

/* ---------- 色と書体の設定（index.css と同じ） ---------- */
:root {
	--ink: #1d4335;          /* 文字色・電話ボタン（深い緑の墨色） */
	--ink-dark: #122c22;     /* 電話ボタンにマウスを乗せたとき */
	--paper: #fbfaf5;        /* ページの地色（画用紙の白） */
	--sage: #e6efe9;         /* 区切りの背景（うすい若草色） */
	--beni: #a8324a;         /* 予約ボタン・強調（紅色） */
	--beni-dark: #85253a;    /* 予約ボタンにマウスを乗せたとき */
	--beni-wash: #f8e9ec;    /* 紅色のうすい背景 */
	--wood: #6b4a2f;         /* 額縁の木の色 */
	--line: #c9d6ce;         /* 区切り線 */
	--focus: #1a5fd0;        /* キーボード操作時の枠線 */

	--font-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
	--font-hand: "Klee One", "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

/* ---------- 基本 ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding-bottom: calc(84px + env(safe-area-inset-bottom)); /* 画面下の固定ボタンの分 */
	font-family: var(--font-body);
	font-size: 19px;
	line-height: 1.85;
	color: var(--ink);
	background-color: var(--paper);
	overflow-wrap: break-word;
	overflow-x: clip; /* 横スクロールを防止 */
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ink);
	text-underline-offset: 4px;
}

a:focus-visible,
.menu-toggle:focus-visible + .menu-btn {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

h1, h2, h3 {
	font-family: var(--font-hand);
	font-weight: 600;
	line-height: 1.45;
}

/* 中身の横幅をそろえる箱 */
.inner {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 各セクションの見出し（左寄せ・下に紅色の線） */
.section-title {
	font-size: 30px;
	margin: 0 0 10px;
}

.section-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 6px;
	margin-top: 8px;
	border-radius: 3px;
	background-color: var(--beni);
}

.section-lead {
	max-width: 36em;
	margin: 0 0 32px;
}

/* ---------- ボタン（共通） ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 58px;
	padding: 12px 32px;
	border-radius: 10px;
	font-size: 19px;
	font-weight: bold;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

.btn-main {
	background-color: var(--beni);
	color: #ffffff;
}

.btn-main:hover {
	background-color: var(--beni-dark);
	color: #ffffff;
}

/* ---------- 額縁（このサイトの印） ---------- */
.frame {
	padding: 12px;
	background-color: #ffffff;
	border: 6px solid var(--wood);
	box-shadow: 0 10px 0 -4px rgba(29, 67, 53, 0.12);
}

.frame img {
	width: 100%;
}

/* ==================================================
   ヘッダー（index.css と同じ）
   ================================================== */
.site-header {
	background-color: #ffffff;
	border-bottom: 3px solid var(--ink);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	max-width: 1160px;
	margin: 0 auto;
	padding: 10px 16px;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--ink);
	text-decoration: none;
}

.site-logo img {
	width: 52px;
	flex-shrink: 0;
}

.site-name {
	display: block;
	font-family: var(--font-hand);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
}

.site-catch {
	display: none; /* スマホでは隠し、広い画面で表示 */
	font-size: 16px;
	line-height: 1.4;
}

/* メニュー開閉用のチェックボックス（見えないようにする） */
.menu-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

/* 「メニュー」ボタン */
.menu-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 76px;
	min-height: 62px;
	padding: 4px 10px;
	border: 3px solid var(--ink);
	border-radius: 10px;
	background-color: #ffffff;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.2;
	cursor: pointer;
	user-select: none;
}

.menu-icon {
	font-size: 24px;
	line-height: 1;
}

.menu-text-close {
	display: none;
}

.menu-toggle:checked + .menu-btn {
	background-color: var(--ink);
	color: #ffffff;
}

.menu-toggle:checked + .menu-btn .menu-text-open {
	display: none;
}

.menu-toggle:checked + .menu-btn .menu-text-close {
	display: inline;
}

/* メニューの中身（スマホでは最初は閉じている） */
.global-nav {
	display: none;
	flex-basis: 100%;
}

.menu-toggle:checked ~ .global-nav {
	display: block;
}

.global-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--line);
}

.global-nav li {
	border-bottom: 2px solid var(--line);
}

.global-nav a {
	display: flex;
	align-items: center;
	min-height: 62px;
	padding: 8px 12px;
	font-size: 20px;
	font-weight: bold;
	text-decoration: none;
}

.global-nav a::after {
	content: "›";
	margin-left: auto;
	font-size: 28px;
}

/* 今見ているページ */
.global-nav a[aria-current="page"] {
	background-color: var(--sage);
	box-shadow: inset 6px 0 0 var(--ink);
}

/* パソコン用の電話・予約ボタン（スマホでは隠す） */
.header-actions {
	display: none;
}

/* ==================================================
   メインビジュアル（index.css と同じ形）
   ================================================== */
.hero {
	padding: 32px 0 48px;
	background-color: var(--paper);
}

.hero-inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.hero-text h1 {
	font-size: 38px;
	line-height: 1.4;
	margin: 0 0 16px;
}

.hero-lead {
	max-width: 24em;
	margin: 0;
	font-size: 20px;
	font-weight: bold;
}

/* 額縁を少し傾けて、壁に飾ったように */
.hero-frame {
	margin: 0;
	transform: rotate(-1.5deg);
}

/* ==================================================
   私たちの想い（このページだけ）
   先生が書いたお手紙のように
   ================================================== */
.thoughts {
	padding: 56px 0;
	background-color: var(--sage);
	border-top: 3px solid var(--ink);
	border-bottom: 3px solid var(--ink);
}

.thoughts-inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.letter {
	padding: 28px 22px 24px;
	background-color: #ffffff;
	border: 2px solid var(--ink);
	border-radius: 4px;
	box-shadow: 8px 8px 0 var(--ink);
}

.letter-title {
	font-size: 28px;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px dashed var(--line);
}

.letter p {
	margin: 0 0 16px;
}

.letter-sign {
	margin: 0 !important;
	text-align: right;
	font-family: var(--font-hand);
	font-size: 20px;
	font-weight: 600;
}

.thoughts-photo img {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	border-radius: 50% 50% 12px 12px / 30% 30% 12px 12px; /* アーチ窓の形 */
	border: 6px solid #ffffff;
}

/* ==================================================
   AIアトリエの特徴（このページだけ）
   トップページの「教室のよいところ」と同じ、点線で区切る形
   ================================================== */
.features {
	padding: 56px 0;
}

.feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 24px 4px;
	border-bottom: 2px dashed var(--line);
}

.feature-item:last-child {
	border-bottom: none;
}

.feature-item img {
	width: 96px;
	flex-shrink: 0;
}

.feature-item h3 {
	font-size: 24px;
	margin: 0 0 4px;
}

.feature-item p {
	margin: 0;
}

/* ==================================================
   教室の雰囲気（このページだけ）
   トップページの作品と同じく、額に入れて飾る
   ================================================== */
.atmosphere {
	padding: 56px 0;
	background-color: #ffffff;
	border-top: 2px solid var(--line);
}

.works {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px 28px;
}

.work {
	margin: 0;
}

.work .frame img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* 美術館の作品名カードのような説明 */
.work figcaption {
	margin-top: 16px;
	padding-left: 14px;
	border-left: 4px solid var(--beni);
}

.work-title {
	display: block;
	font-family: var(--font-hand);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.4;
}

.work-note {
	display: block;
	font-size: 18px;
}

/* ==================================================
   2つ目のバナー（index.css と同じ）
   ================================================== */
.second {
	position: relative;
	max-width: 1300px;
	margin: 0 auto;
	background-color: var(--paper);
}

.second img {
	width: 100%;
}

.second-text {
	padding: 28px 20px 44px;
	text-align: center;
}

.second-text h2 {
	font-size: 28px;
	margin: 0 0 8px;
}

.second-text p {
	margin: 0 0 20px;
}

/* ==================================================
   電話・予約（index.css と同じ）
   ================================================== */
.reserve {
	padding: 48px 0;
	background-color: var(--sage);
	border-top: 3px solid var(--ink);
}

.reserve-btns {
	display: grid;
	gap: 16px;
	max-width: 820px;
	margin: 0 0 20px;
}

.btn-big {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	padding: 16px;
	border-radius: 12px;
	color: #ffffff;
	text-align: center;
	text-decoration: none;
	font-weight: bold;
	line-height: 1.35;
	box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}

.btn-big:active {
	transform: translateY(3px);
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.btn-big-label {
	font-size: 18px;
}

.btn-big-main {
	font-size: 30px;
	letter-spacing: 0.04em;
}

.btn-tel {
	background-color: var(--ink);
}

.btn-tel:hover {
	background-color: var(--ink-dark);
	color: #ffffff;
}

.btn-reserve {
	background-color: var(--beni);
}

.btn-reserve:hover {
	background-color: var(--beni-dark);
	color: #ffffff;
}

.reserve-note {
	margin: 0;
	font-weight: bold;
}

.reserve-note a {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
}

/* ==================================================
   フッター（index.css と同じ）
   ================================================== */
.site-footer {
	padding: 28px 0 36px;
	background-color: #ffffff;
	background-image: url("../images/banner2.png");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
	border-top: 3px solid var(--ink);
}

.top-return {
	text-align: right;
	margin: 0 0 16px;
}

.top-return a {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 8px;
	font-weight: bold;
}

.footer-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
}

.footer-logo img {
	width: 60px;
	flex-shrink: 0;
}

.footer-name {
	display: block;
	font-family: var(--font-hand);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
}

.footer-catch {
	display: block;
	font-size: 16px;
	line-height: 1.5;
}

.footer-tel {
	display: inline-flex;
	align-items: center;
	min-height: 58px;
	margin-top: 12px;
	font-size: 26px;
	font-weight: bold;
	text-decoration: none;
}

.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 16px;
}

.footer-nav a {
	display: flex;
	align-items: center;
	min-height: 52px;
	font-weight: bold;
}

.copyright {
	margin: 24px 0 0;
	text-align: center;
	font-size: 16px;
}

/* ==================================================
   スマホ画面下の固定ボタン（index.css と同じ）
   ================================================== */
.fixed-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
	background-color: #ffffff;
	border-top: 3px solid var(--ink);
}

.fixed-cta a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 62px;
	border-radius: 10px;
	color: #ffffff;
	font-size: 20px;
	font-weight: bold;
	text-decoration: none;
}

.fixed-tel {
	background-color: var(--ink);
}

.fixed-reserve {
	background-color: var(--beni);
}

/* 「動きを減らす」設定の方には、なめらかスクロールを止める */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* ==================================================
   少し大きいスマホ（横幅560px以上）
   ================================================== */
@media (min-width: 560px) {

	.works {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==================================================
   タブレット（横幅768px以上）
   ================================================== */
@media (min-width: 768px) {

	.site-catch {
		display: block;
	}

	.btn {
		width: auto;
	}

	.section-title {
		font-size: 34px;
	}

	.hero {
		padding: 56px 0 72px;
	}

	.hero-text h1 {
		font-size: 48px;
	}

	.letter {
		padding: 40px 44px 32px;
	}

	.letter-title {
		font-size: 32px;
	}

	/* 特徴：3列、縦の点線で区切る */
	.feature-list {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}

	.feature-item {
		flex-direction: column;
		padding: 0 24px 0 0;
		border-bottom: none;
		border-right: 2px dashed var(--line);
	}

	.feature-item:last-child {
		border-right: none;
	}

	.reserve-btns {
		grid-template-columns: 1fr 1fr;
	}

	.second-text h2 {
		font-size: 32px;
	}

	.footer-nav ul {
		grid-template-columns: repeat(3, auto);
	}
}

/* ==================================================
   パソコン（横幅1024px以上）
   ================================================== */
@media (min-width: 1024px) {

	body {
		padding-bottom: 0;
	}

	/* 画面下の固定ボタンはパソコンでは不要（ヘッダーに表示） */
	.fixed-cta {
		display: none;
	}

	/* ヘッダー：1段目にロゴと電話・予約、2段目にメニュー */
	.menu-btn {
		display: none;
	}

	.header-actions {
		display: flex;
		gap: 12px;
		margin-left: auto;
	}

	.header-tel,
	.header-reserve {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: 62px;
		padding: 6px 22px;
		border-radius: 10px;
		color: #ffffff;
		font-weight: bold;
		line-height: 1.3;
		text-decoration: none;
	}

	.header-tel {
		background-color: var(--ink);
	}

	.header-tel:hover {
		background-color: var(--ink-dark);
		color: #ffffff;
	}

	.header-reserve {
		background-color: var(--beni);
	}

	.header-reserve:hover {
		background-color: var(--beni-dark);
		color: #ffffff;
	}

	.header-small {
		font-size: 15px;
	}

	.header-number {
		font-size: 22px;
	}

	.global-nav {
		display: block;
	}

	.global-nav ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 4px 8px;
		border-top: none;
	}

	.global-nav li {
		border-bottom: none;
	}

	.global-nav a {
		min-height: 54px;
		padding: 8px 16px;
		font-size: 18px;
		border-bottom: 4px solid transparent;
	}

	.global-nav a::after {
		content: none;
	}

	.global-nav a:hover {
		border-bottom-color: var(--line);
	}

	/* 今見ているページは下線で示す */
	.global-nav a[aria-current="page"] {
		background-color: transparent;
		box-shadow: none;
		border-bottom-color: var(--beni);
	}

	/* メインビジュアル：左に文字、右に額縁 */
	.hero-inner {
		flex-direction: row;
		align-items: center;
		gap: 56px;
	}

	.hero-text {
		flex: 0.8;
	}

	.hero-frame {
		flex: 1.2;
	}

	.hero-text h1 {
		font-size: 56px;
	}

	/* 私たちの想い：お手紙と写真を横並び */
	.thoughts-inner {
		flex-direction: row;
		align-items: center;
		gap: 56px;
	}

	.letter {
		flex: 1.3;
	}

	.thoughts-photo {
		flex: 1;
	}

	/* 雰囲気：4列。互い違いに上下させて壁に飾ったリズムに */
	.works {
		grid-template-columns: repeat(4, 1fr);
		gap: 40px 24px;
	}

	.works li:nth-child(even) {
		margin-top: 32px;
	}

	/* フッター：横並び */
	.footer-content {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

/* ==================================================
   大きいパソコン画面（横幅1100px以上）
   2つ目のバナーは画像の上に文字を重ねる
   ================================================== */
@media (min-width: 1100px) {

	.second-text {
		position: absolute;
		top: 50%;
		left: 50%;
		width: min(90%, 720px);
		padding: 28px 40px;
		transform: translate(-50%, -50%);
		background-color: rgba(255, 255, 255, 0.94);
		border: 3px solid var(--ink);
		border-radius: 12px;
	}
}