@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400&family=Noto+Sans+JP:wght@100;300;400;500;700&display=swap');

/* =====================================================
   Reset / 共通設定（全端末）
   ===================================================== */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video, input {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
	font-family: 'Noto Sans CJK JP', 'Noto Sans JP', sans-serif;
	font-weight: 400;
	line-height: 160%;
}

article, aside, footer, header, nav, section {
	display: block;
}

/* =====================================================
   基本レイアウト
   ===================================================== */

html {
	height: 100%;
}

body {
	/*
	NG: height:100vh は fixed header / sticky footer と衝突
	height: 100vh;
	*/
	min-height: 100vh;
	line-height: 1;
}

/* リンク */
a {
	color: #004DA0;
	transition: 0.3s;
	text-decoration: underline;
	cursor: pointer;
}

a:hover {
	color: #b4ae99;
}

input[type="submit"],
input[type="button"] {
	cursor: pointer;
}


/* 固定ヘッダーの高さぶん、メインの先頭に余白を置く */
:root {
  --header-h-pc: 120px;  /* PC時の固定ヘッダーの総高さに合わせて調整 */
  --header-h-sp: 120px;   /* 既存CSSでSPは 60px */
}

/* =====================================================
   コンテナ
   ===================================================== */

   /*
#container {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin: 0 auto;
}
*/

#container {
  display: flex;
  flex-direction: column;
  align-items: stretch;       /* ← center は幅が縮むのでNG */
  min-height: 100vh;          /* モバイルに強くしたいなら 100svh でも可 */
  box-sizing: border-box;
}

/* =====================================================
   ヘッダー（PC）
   ===================================================== */

header {
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100; /* NG: 10000 は不要に高すぎるため縮小 */
}

#header_title {
	color: var(--text, #000);

	/* h5 */
	font-family: "Noto Sans CJK JP";
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	line-height: 160%; /* 28.8px */

}
.header_top_logo {
	width: 120px;
	height: 120px;
	background-image: url(/images/ryukoku_university.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.header_inner {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.header_inner2 {
	display: flex;
	height: 60px;
	padding-left: 32px;
	justify-content: space-between;
	align-items: center;
	background: #E5EBEE;
}

.header_inner2_account {
	display: flex;
	flex-direction: row-reverse;
	background-color: #FFF;
	justify-content: space-between;
}

.header_myaccount {
	display: flex;
	max-width: 300px;
	height: 56px;
	padding: 4px 16px;
	align-items: center;
	gap: 12px;
	background: #96A9B3;
	box-sizing: border-box;
}

.header_myaccount_picture {
	width: 32px;
	height: 32px;
	background-image: url(/images/icon_myaccount.svg);
	background-size: cover;
}

.header_myaccount_name_text {
	font-size: 16px;
	font-weight: 700;
	line-height: 160%;
	color: black;
}

/* パンくず */
.header_breadcrumbs,
.header_breadcrumbs_sp {
	display: flex;
	padding: 8px 32px;
	align-items: center;
	gap: 9px;
	background-color: #FFF;
}

.header_breadcrumbs a,
.header_breadcrumbs_sp a {
	color: #96A9B3;
	font-size: 12px;
	text-decoration: none;
}

.header_breadcrumbs span,
.header_breadcrumbs_sp span {
	color: #000;
	font-size: 12px;
}

.header_breadcrumbs_arrow {
	width: 8px;
	height: 8px;
	background-image: url(/images/icon_pankuzu_arrow.svg);
	background-size: cover;
}

.header_breadcrumbs_sp {
	display: none;
}

/* =====================================================
   フッター（PC）
   ===================================================== */

footer {
	display: flex;
	justify-content: space-between;
	padding: 24px 32px;
	background: #627A86;
	color: #FFF;
  
	margin-top: auto;
	/* Sticky footer：フッターを最下部に押し出す */
	padding-top: 16px;

}

#footer_left {
	display: flex;
	align-items: center;
	gap: 32px;
}

.footer_logo {
	display: flex;
	width: 170px;
	height: 56px;
	background-image: url(/images/ryukoku_university_logo.svg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

#footer_left_label {
	font-size: 14px;
	line-height: 150%;
}

#footer_right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

#footer_right_label {
	font-size: 14px;
}

#footer_right_label a {
	color: #FFF;
	text-decoration: none;
}

#footer_right_label_copy {
	font-size: 12px;
	text-align: right;
}

/* =====================================================
   Tablet（768px 以下）
   ===================================================== */
@media screen and (max-width: 768px) {



	/* 全体を縦方向レイアウトに変える */
	.header_inner {
   		width: 100%;          /* ← これを明示しておくと安心 */
    	box-sizing: border-box;
	}

	/* --------------------
		1段目：ロゴ（左）
	-------------------- */
	.header_top_logo {
		/*width: 60px;
		height: 60px;*/
		width: 80px;
    	height: 120px;
		order: 0;
		flex: 0 0 auto;
	}

	/* --------------------
		1段目：ハンバーガー（右）
		※ .header_inner2 の include 側
	-------------------- */
	.header_inner2 {
		width: 100%;
	}

	/* --------------------
		2段目：タイトル（左寄せ）
		※ ここがポイント：タイトルを次の段の先頭に移動
	-------------------- */
	#header_title {
	    flex: 1 0 100%;
	}

	/* --------------------
		3段目：アカウント行
	-------------------- */
	.header_inner2_account {

		order: 3;              /* 段の順番（お好みで） */
		flex: 1 0 100%;        /* ← 行を占有：ここが重要 */
		width: 100%;
		display: block;
	}

	
	/* アカウント内の各要素もはみ出さないように */
	.header_myaccount {
		max-width: 100%;
		min-width: 0;         /* 長い名前での押し広げ対策 */
	}

	
	.header_myaccount_name_text {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis; /* 長い場合は「…」で省略 */
		white-space: nowrap;     /* 1行表示。折り返したいなら削除 */
		font-size: 14px;
	}

	/* --------------------
		4段目：パンくず
		（必要なら display:none でOK）
	-------------------- */
	.header_breadcrumbs {
		order: 4;
		flex: 1 0 100%;
		width: 100%;
		box-sizing: border-box;
		display: flex;
		flex-wrap: wrap;
		gap: 6px;

		display: none;
	}

	.header_breadcrumbs_sp {
		order: 4;
		flex: 1 0 100%;
		width: 100%;
		box-sizing: border-box;
		display: flex;
		flex-wrap: wrap;
		gap: 3px;
		
		position: fixed;
		padding: 120px 5px 5px 10px;
		display: flex;
		z-index: -1;
	}

	
  /* パンくずを非表示にしたい場合は上の display を無視して以下を使う
  .header_breadcrumbs { display: none !important; }




	/*
	.header_breadcrumbs {
		padding: 8px 16px;
	}
	*/
	footer {
		flex-direction: column;
		gap: 16px;
	}
	
	#footer_left {
		flex-direction: column;
		gap: 16px;
		align-content: center;
	}

	#footer_left_label, #footer_right {
		text-align: center;
	}

	#footer_right {
		align-items: center;
	}

		

	#footer_right_label {
		display: flex;
		flex-wrap: wrap;       /* ← 自動改行のポイント */
		gap: 4px 8px;          /* ← 適宜調整（横と縦の余白） */
		white-space: normal;   /* ← 折り返し許可（重要） */
		justify-content: center;
	}
	#footer_right_label a {
		display: inline;       /* ← inline のままで OK（block にすると強制改行になる） */
	}

	.header_breadcrumbs {
		padding: 4px;

	}


}

/* =====================================================
   Smartphone（737px 以下）
   ===================================================== */
@media screen and (max-width: 737px) {

	header {
		height: 60px;
	}

	.header_inner2 {
		padding-left: 16px;
	}

	.header_myaccount {
		max-width: 100%;
	}

	#footer_right_label_copy {
		text-align: left;
	}
}
