@charset "UTF-8";
/* tmp2026 preview: 横スクロール対策とスマホ対応（本番 CSS は変更しない） */

/* 横スクロールの対策: .message の left:25px によるはみ出しを padding に置き換える */
html, body {
	overflow-x: hidden;
}
.message {
	left: 0;
	padding-left: 25px;
	padding-right: 15px;
}
img, iframe {
	max-width: 100%;
}

/* スマホ対応 */
@media (max-width: 640px) {
	.message {
		top: 35px;
		padding-left: 15px;
		padding-right: 10px;
	}
	.logo {
		width: 210px;
		margin-left: -5px;
	}
	h3 { font-size: 22px; }
	h4 { font-size: 19px; }
	h5 { font-size: 15px; }
	.space { line-height: 22px !important; }
	.updates {
		font-size: 14px;
		margin-right: 5px;
	}
	.tate {
		height: 54px;
		bottom: 30px;
		right: 10px;
	}
	.bottom_message {
		left: 15px;
		bottom: 32px;
	}
	.title {
		width: 88vw;
		height: auto;
		margin-left: -44vw;
		margin-top: -29vw;
	}
	.expand, .expand:hover {
		width: calc(100vw - 50px) !important;
		float: none !important;
	}
	.profile {
		width: 100%;
	}
	table {
		max-width: 100%;
	}
}

/* 中央寄せコンテナ（Bootstrap 風）: 本文を中央のカラムに収める */
.message {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	padding-bottom: 70px;
	box-sizing: border-box;
}
@media (max-width: 640px) {
	.message {
		padding-left: 15px;
		padding-right: 15px;
		padding-bottom: 50px;
	}
}

/* フォント: はこべら丸ゴシックAに統一 */
@font-face {
	font-family: "HakoberaMaruGothicA";
	src: url('fonts/HakoberaMaruGothicA-Regular.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "HakoberaMaruGothicA";
	src: url('fonts/HakoberaMaruGothicA-Medium.woff2') format('woff2');
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "HakoberaMaruGothicA";
	src: url('fonts/HakoberaMaruGothicA-Bold.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}
h3, h4, .misaki, .nodeco, .expand::after {
	font-family: "HakoberaMaruGothicA", sans-serif;
}

/* ===== 第2弾（2026-11-15）: 基盤の見直し・フォント・行間・ユーザビリティ ===== */

/* 長いページが途中で切れないよう、wrapper を通常の流れに戻す */
html, body {
	overflow-x: clip;
}
.wrapper {
	position: relative;
	top: auto;
	bottom: auto;
	left: auto;
	right: auto;
	min-height: 100vh;
	z-index: 1;
}

/* フッター（bottom_message）を中央寄せに */
.bottom_message {
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	width: max-content;
	max-width: 92vw;
}
@media (max-width: 640px) {
	.bottom_message {
		left: 50%;
		bottom: 32px;
	}
}

/* 本文フォントも はこべら丸ゴシックA（2026-11-15 第6弾: 本文の太さを Bold 700 へ） */
body {
	font-family: "HakoberaMaruGothicA", sans-serif;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* 行間を見やすく */
.space {
	line-height: 1.9 !important;
}
.updates {
	line-height: 1.9;
}

/* DotGothic16 は太字で */
h3, h4, .misaki, .nodeco, .expand::after {
	font-weight: 700;
}

/* ユーザビリティ: リンクの色（コントラスト確保）と下線、キーボードのフォーカス表示 */
a {
	color: #2E7CB6;
}
.nodeco {
	color: #2E7CB6;
}
.updates a {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.nodeco:hover {
	text-decoration: underline;
}
:focus-visible {
	outline: 2px solid #52A5DC;
	outline-offset: 2px;
}

/* 画像が画面幅を超えないように（スマホでのはみ出し防止） */
img {
	max-width: 100%;
	height: auto;
}

/* トップページ背景ギミック（ルーブ・ゴールドバーグ・マシン）の置き場所
   位置は goldberg.js が本文の文字・画像を避けて決める */
#goldberg-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.95;
}
#goldberg-slot {
	flex: none;
	height: 0;
}

/* ===== 第3弾（2026-11-15）: トップページのフッターがコンテンツに重なる件 ===== */
/* .message の top:50px（見た目だけずらす）と .bottom_message の absolute をやめ、通常の流れで縦に積む */
body.home .wrapper {
	display: flex;
	flex-direction: column;
}
body.home .message {
	top: 0;
	margin-top: 50px;
	width: 100%;
	padding-bottom: 24px;
}
body.home .bottom_message {
	position: static;
	left: auto;
	bottom: auto;
	transform: none;
	margin: auto auto 0;
	padding: 24px 12px 56px;
	box-sizing: border-box;
}
@media (max-width: 640px) {
	body.home .message {
		margin-top: 35px;
		padding-bottom: 16px;
	}
	body.home .bottom_message {
		padding: 16px 12px 44px;
	}
}

/* ===== 第4弾（2026-11-15）: トップのメニューで「新3年生のみなさんへ」が途中で改行する件 ===== */
/* 表を少し広げ、リンクの途中では改行しない */
.menu_table {
	width: 380px;
	max-width: 100%;
}
.menu_table a {
	white-space: nowrap;
}

/* ===== 第5弾（2026-11-15）: 見出しは太字で少し大きく ===== */
h3, h4, .misaki, .space_title {
	font-weight: 700;
	font-size: 1.12em;
}
/* 見出しの拡大がメニューの表に波及しないよう、表の文字サイズは固定する */
.menu_table {
	font-size: 17px;
}
/* 本文の h5 は見出しではないので、本文と同じ太さにする（見出しは .misaki 側で太字を保つ） */
h5 {
	font-weight: 700;
}

/* ===== 第7弾（2026-11-15）: 蛍光ペンと画像の中央寄せ ===== */
/* 大事なところに薄い黄色の蛍光ペン */
.hl {
	background: linear-gradient(transparent 58%, rgba(255, 240, 150, 0.95) 58%);
}
/* 画像は中央寄せにする（ロゴ・縦書き・SNSアイコン・リンク集の小アイコンは除く） */
.message img:not(.logo):not(.tate):not(.snsicon):not(.dotown_icon) {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.message iframe {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* ===== 第8弾（2026-11-16）: メニューの真ん中の余白を詰める ===== */
/* 段の間の余白を小さくして、「新3年生のみなさんへ」が収まるようにする */
.menu_table td {
	padding-left: 0;
	padding-right: 0;
}
.menu_table td:first-child {
	padding-right: 8px;
}

/* ===== 第9弾（2026-11-16）: for3rd の「しくみ」欄にマシンを埋め込む ===== */
#goldberg-embed {
	position: relative;
}
#goldberg-embed canvas {
	display: block;
}

/* ===== 第10弾（2026-11-16）: しくみのロゴとロードマップの画像は左寄せ ===== */
/* 中央寄せにせず、本文の左端にそろえて左に余白を取る */
.message img[src$="shikumi.png"]:not(.logo):not(.tate):not(.snsicon):not(.dotown_icon),
.message img[src$="road.png"]:not(.logo):not(.tate):not(.snsicon):not(.dotown_icon) {
	margin-left: 10px;
	margin-right: auto;
}

/* ===== 第11弾（2026-11-16）: ページ全体の文字を約1.2倍に ===== */
/* rem / em の基準（ルートの文字サイズ）を 16px から 19.2px へ */
html {
	font-size: 19.2px;
}
/* px 指定の本文まわりは個別に1.2倍へ */
h5 {
	font-size: 21.6px; /* 本番 18px の1.2倍 */
}
.updates {
	font-size: 18px; /* 本番 15px の1.2倍 */
}
.snstext {
	font-size: 16.8px; /* 本番 14px の1.2倍 */
}
.subnote {
	font-size: 15.6px !important; /* 本番 13px の1.2倍 */
}
.menu_table {
	font-size: 20.4px; /* 第5弾 17px の1.2倍 */
	width: 456px; /* 第4弾 380px の1.2倍。文字が大きくなっても「新3年生のみなさんへ」が1行に収まるように */
}
.expand::after {
	font-size: 16.8px; /* 本番 14px の1.2倍 */
}
.profile__mail {
	font-size: 14.4px; /* 本番 12px の1.2倍 */
}
.category {
	font-size: 14.4px; /* 本番 12px の1.2倍 */
}
@media (max-width: 640px) {
	h3 { font-size: 26.4px; } /* スマホ指定 22px の1.2倍 */
	h4 { font-size: 22.8px; } /* スマホ指定 19px の1.2倍 */
	h5 { font-size: 18px; } /* スマホ指定 15px の1.2倍 */
	.updates { font-size: 16.8px; } /* スマホ指定 14px の1.2倍 */
	.space { line-height: 26.4px !important; } /* スマホ指定 22px の1.2倍 */
}

/* ===== 第12弾（2026-11-16）: 本文の太さを1段階下げる ===== */
/* 本文は Bold 700 から Medium 500 へ。見出し（h3 / h4 / .misaki）は 700 のまま */
body {
	font-weight: 500;
}
h5 {
	font-weight: 500;
}

/* ===== 第13弾（2026-11-16）: 見出しからのインデントを少し下げる ===== */
/* 本番 style.css の .leftspace（margin-left: 10px）を 5px に */
.leftspace {
	margin-left: 5px;
}

/* ===== 第14弾（2026-11-16）: 卒業論文テーマをメモ帳風のカードに ===== */
.theme-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 12px 0 4px;
	text-align: left;
}
@media (min-width: 700px) {
	.theme-cards { grid-template-columns: 1fr 1fr; }
}
.theme-card {
	background: #FFFDF4;
	border: 1px solid #E3DCC2;
	border-top: 10px solid #F5CE4F;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	padding: 12px 14px 10px;
	line-height: 1.65;
}
.theme-card:nth-child(odd) { transform: rotate(-0.4deg); }
.theme-card:nth-child(even) { transform: rotate(0.4deg); }
.theme-title {
	font-weight: 700;
	font-size: 0.94em;
	margin-bottom: 4px;
}
.theme-note {
	font-size: 0.8em;
	color: #666;
}

/* ===== 第15弾（2026-11-16）: 先輩の声もメモ書き風に（端が少しめくれた紙） ===== */
.voice-card {
	position: relative;
	background: #FFFDF4;
	border: 1px solid #E3DCC2;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	padding: 14px 18px 20px;
	line-height: 1.85;
	margin-bottom: 14px;
	text-align: left;
}
.voice-card:nth-child(odd) { transform: rotate(-0.3deg); }
.voice-card:nth-child(even) { transform: rotate(0.3deg); }
.voice-card::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 26px;
	height: 26px;
	background: linear-gradient(315deg, #FFFFFF 46%, #CFC5A0 50%, #F3ECD4 58%, #FFFDF4 100%);
	border-radius: 0 0 3px 0;
}

/* ===== 第16弾（2026-11-16）: リンクに hover でマーカーペンを引く ===== */
a {
	background-image: linear-gradient(rgba(255, 240, 160, 0.9), rgba(255, 240, 160, 0.9));
	background-repeat: no-repeat;
	background-size: 0% 58%;
	background-position: 0 90%;
	transition: background-size 0.35s ease;
}
a:hover, a:focus-visible {
	background-size: 100% 58%;
}
@media (prefers-reduced-motion: reduce) {
	a { transition: none; }
}

/* ===== 第17弾（2026-11-16）: プロジェクト画像を大きくし、縦ロゴを押せる見た目に ===== */
.project-img {
	width: min(600px, 100%);
	height: auto;
	margin-top: 12px;
	margin-bottom: 12px;
}
.tate {
	cursor: pointer;
}

/* ===== 第18弾（2026-11-16）: 付箋を flex で正方形寄りに、声のめくれ角を自然に ===== */
.theme-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin: 14px 0 22px;
}
.theme-card {
	flex: 0 1 248px;
	min-height: 252px;
	display: flex;
	flex-direction: column;
}
.theme-note {
	margin-bottom: 10px;
}
.theme-art {
	display: block;
	width: 84px;
	height: 84px;
	object-fit: cover;
	border-radius: 10px;
	margin-top: auto;
	margin-left: auto;
	margin-right: auto;
}
.voice-card::after {
	width: 30px;
	height: 30px;
	background: linear-gradient(to bottom right, #E6DDC0, #F7F2DF 60%, #FFFDF4);
	clip-path: polygon(100% 0, 0 100%, 100% 100%);
	filter: drop-shadow(-1px -1px 1px rgba(96, 80, 32, 0.28));
	border-radius: 0;
}

/* ===== 第19弾（2026-11-16）: 本文の太さを 500 と 700 の間へ ===== */
/* はこべら丸ゴシックA に 600 のウェイトはないため、Medium にごく細い縁取りを重ねて中間の太さに見せる */
body, h5 {
	-webkit-text-stroke: 0.5px currentColor;
}
.misaki, .space_title, h3, h4, .nodeco, .theme-title {
	-webkit-text-stroke: 0;
}

/* ===== 第20弾（2026-11-16）: ページ全体の文字を1まわり下げる ===== */
/* 第11弾の1.2倍から、元の1.1倍へ一段下げる */
html {
	font-size: 17.6px;
}
h5 {
	font-size: 19.8px;
}
.updates {
	font-size: 16.5px;
}
.snstext {
	font-size: 15.4px;
}
.subnote {
	font-size: 14.3px !important;
}
.menu_table {
	font-size: 18.7px;
	width: 418px;
}
.expand::after {
	font-size: 15.4px;
}
.profile__mail {
	font-size: 13.2px;
}
.category {
	font-size: 13.2px;
}
@media (max-width: 640px) {
	h3 { font-size: 24.2px; }
	h4 { font-size: 20.9px; }
	h5 { font-size: 16.5px; }
	.updates { font-size: 15.4px; }
	.space { line-height: 24.2px !important; }
}

/* 第21弾: メニュー表の文字をもう一段小さくする */
.menu_table { font-size: 17.1px; width: 383px; }

/* ===== 第22弾（2026-11-16）: 先輩の声の付箋も正方形ベースの横並びに ===== */
/* 卒業論文テーマの付箋（第18弾）と同じ並べ方にそろえる */
.voice-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin: 14px 0 8px;
}
.voice-card {
	flex: 0 1 248px;
	min-height: 252px;
	margin-bottom: 0;
	box-sizing: border-box;
}

/* ===== 第23弾（2026-11-16）: 大画面で文章が横に長くなりすぎないよう、本文カラムを狭める ===== */
/* 中央寄せコンテナの max-width を 1140px から 960px へ */
.message {
	max-width: 960px;
}

/* ===== 第24弾（2026-11-16）: 段落を p 要素で組み、字下げを入れる ===== */
/* 本文ブロック（div.updates）の中の段落は1文字下げにし、段落の間は従来の空行分あける */
.updates p {
	margin: 0;
	text-indent: 1em;
}
.updates p + p {
	margin-top: 1.9em;
}
.updates p.noindent {
	text-indent: 0;
}
.updates p.tight + p {
	margin-top: 0;
}
.updates img + p {
	margin-top: 0.6em;
}

/* ===== 第25弾（2026-11-16）: テーマ付箋の絵をタイトル左の丸アイコンに、声の高さは中身に合わせる ===== */
.theme-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}
.theme-head .theme-title {
	margin-bottom: 0;
}
.theme-art {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	margin: 0;
	flex: 0 0 auto;
}
.voice-cards {
	align-items: flex-start;
}
.voice-card {
	min-height: 0;
}

.section-title {
	margin-top: 2.4em;
	padding-bottom: 14px;
	font-size: 1.45em;
	scroll-margin-top: 24px;
	background-image: repeating-linear-gradient(90deg, #dadc41 0 8px, transparent 8px 12px, #52a5dc 12px 20px, transparent 20px 24px, #5e5e5e 24px 32px, transparent 32px 36px);
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 100% 8px;
}
.section-nav {
	margin: 0.8em 0 0.2em;
}
.section-nav a {
	display: inline-block;
	margin-right: 0.6em;
	padding: 0.25em 1.1em;
	border: 2px solid #2e7cb6;
	border-radius: 999px;
	color: #2e7cb6;
	font-weight: 700;
	text-decoration: none;
}

/* ===== 第27弾（2026-11-17）: 携帯ではテーマ付箋の高さを中身に合わせる ===== */
@media (max-width: 699px) {
	.theme-card { min-height: 0; }
}

/* ===== 第28弾（2026-11-17）: テーマ付箋に内容の挿絵と副題を追加 ===== */
.theme-illus {
	display: block;
	width: 100%;
	height: auto;
	margin: 2px 0 8px;
}
.theme-sub {
	display: block;
	font-size: 0.78em;
	font-weight: 500;
	color: #666;
	margin-top: 2px;
}
