body {
	background: #e0e5ec;
	font-family: 'Noto Sans JP', sans-serif;
	line-break: strict;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'M PLUS 1p', sans-serif;
}


/*
------------------------------------------  
PCとスマホの切替
------------------------------------------
*/
@media (min-width: 768px) {

	.for-sp {
		display: none;
	}

	/*モバイル版でh-100指定すると、コンテンツが過度に縦長になるとヘッダが消えてしまうため*/
	.h-100-body {
		height: 100% !important;
	}
}

@media (max-width: 769px) {

	.for-pc {
		display: none;
	}
}

/*
------------------------------------------  
Pタグ spanで改行
------------------------------------------
*/
p span {
	display: block;
}

/*
------------------------------------------  
スクロール　お知らせ
------------------------------------------
*/
.news-scroll {
	height: 200px;
	overflow: auto;
}

/*
------------------------------------------  
スクロール　学習履歴
------------------------------------------
*/
.study-history-scroll {
	height: 300px;
	overflow: auto;
}

/*
------------------------------------------  
bootstrap 上書き　背景色
------------------------------------------
*/
.bg-success {
	--bs-bg-opacity: 1;
	background-color: rgba(110, 185, 43, var(--bs-bg-opacity)) !important;
}

.bg-answer {
	--bs-bg-opacity: 1;
	background-color: #eb6100 !important;
}

/*
------------------------------------------  
ドロップダウンリスト
------------------------------------------
*/
ul.dropdown-menu {
	max-height: 200px;
	overflow-y: scroll;
}

/*
------------------------------------------  
ドーナツグラフ
------------------------------------------
*/
.ct-slice-donut-solid {
	stroke-width: 6px;
	stroke: white;
}

/*文字の色とサイズ*/
.ct-label {
	font-size: 0.75rem;
	fill: #fff;
	color: #fff;
}

/*
------------------------------------------  
問題下エリア固定
------------------------------------------
*/
/* メニューをページ下部に固定 */
#fixed-footer-menu {
	position: fixed;
	width: 100%;
	bottom: 0;
	z-index: 9999;
	background: #fff;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
	padding: 5px 0;
}

/* メニューを横並びにする */
#fixed-footer-menu ul {
	display: flex;
	justify-content: space-between;
	/* 等間隔配置 */
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
}

/* 各メニュー項目 */
#fixed-footer-menu li {
	flex: 1;
	/* 各項目を等間隔に配置 */
	text-align: center;
}

/* メニューのリンク */
#fixed-footer-menu li a {
	color: #555;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	/* 縦方向にアイコンと文字を配置 */
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 50px;
	transition: all 0.3s ease;
}

/* アイコンのデザイン */
.footer-icon {
	font-size: 1.4rem;
	color: #666;
	transition: all 0.3s ease;
}

/* テキストのデザイン */
.footer-text {
	font-size: 0.7rem;
	margin-top: 2px;
	color: #333;
	/* テキスト色 */
	font-weight: bold;
}

/* 中央の学習ボタン用スタイル */
.highlight-button .footer-icon {
	color: #eb6100;
}

.highlight-button .footer-text {
	color: #eb6100;
}

/* ホバー時のスタイル */
#fixed-footer-menu li a:hover {
	color: #eb6100;
}

.footer-icon:hover {
	color: #eb6100;
	transform: scale(1.1);
}


/*
------------------------------------------  
canvas
------------------------------------------
*/
.canvas-container {
	position: relative;
	width: calc(100% - 40px);
	height: 300px;
	overflow: hidden;
	margin: 20px;
}

/*
------------------------------------------  
犬調整
------------------------------------------
*/

.image_inu {
	width: 150px;
	/* デフォルトはスマホサイズ */
	margin-bottom: 0px;
	/* 画像下の余白を統一 */
}

@media (min-width: 768px) {

	/* PC表示用のブレークポイント */
	.image_inu {
		width: 200px;
		/* PCでは画像幅を200pxに変更 */
	}
}

/*
------------------------------------------  
吹き出し
------------------------------------------
*/
/* 吹き出し本体 */
.balloon1 {
	position: relative;
	padding: 10px;
	background-color: #6eb92b;
	box-shadow: 0px 0px 10px 0px #a7a7a7;
	/* 吹き出し本体の影 */
}

/* 三角アイコン */
.balloon1::before {
	content: '';
	position: absolute;
	display: block;
	width: 0;
	height: 0;
	left: 20px;
	top: -15px;
	border-right: 15px solid transparent;
	border-bottom: 15px solid #6eb92b;
	border-left: 15px solid transparent;
}

/* 吹き出し本体 */
.balloon2 {
	position: relative;
	padding: 10px;
	background-color: #eb6100;
	box-shadow: 0px 0px 10px 0px #a7a7a7;
	/* 吹き出し本体の影 */
}

/* 三角アイコン */
.balloon2::before {
	content: '';
	position: absolute;
	display: block;
	width: 0;
	height: 0;
	left: 20px;
	top: -15px;
	border-right: 15px solid transparent;
	border-bottom: 15px solid #eb6100;
	border-left: 15px solid transparent;
}

/*
------------------------------------------  
★がクリックされたとき
------------------------------------------
*/
#favorite-icon {
	cursor: pointer;
	transition: color 0.3s ease;
}

#favorite-icon.fas {
	color: #f39c12;
	/* 黄色に設定 */
}

#favorite-icon.far {
	color: #ccc;
	/* グレーに設定 */
}

@keyframes scale-up {
	0% {
		transform: scale(1);
		/* 初期状態（元のサイズ） */
	}

	50% {
		transform: scale(1.3);
		/* 少し大きくなる */
	}

	100% {
		transform: scale(1);
		/* 元のサイズに戻る */
	}
}

.fav-animation {
	animation: scale-up 0.3s ease-in-out;
	/* 0.3秒の間にアニメーションを実行 */
}

@media (max-width: 767px) {
	.card-title span {
		font-size: 1.2rem;
		/* スマホ表示時に縮小 */
	}
}

@media (max-width: 575px) {
	.card-title span {
		font-size: 1rem;
		/* より小さいサイズに */
	}
}

/* card-bodyの余白を減らす */
.card-body {
	padding: 0.75rem 1rem;
	/* 上下左右の余白を減らす */
}

/* 必要に応じて、カード内部の要素の余白を削減 */
.card-body h5,
.card-body p,
.card-body ul {
	margin: 0.25rem 0;
	/* タイトル、段落、リスト項目の余白を調整 */
}

/* リスト項目の余白を減らす */
.card-body .list-unstyled li {
	padding: 0.2rem 0;
	/* リスト項目の上下余白を削減 */
}

/* モバイル向けの追加調整 (もし必要なら) */
@media (max-width: 767px) {
	.card-body {
		padding: 0.5rem;
		/* モバイルでさらに余白を削減 */
	}
}


/* カード全体のアニメーション（合格用） */
.card-success {
	max-width: 18rem;
	margin: auto;
	background-color: #7EC8A9;
	/* 合格時の背景色 */
	color: white;
	animation: fadeInScale 1s ease-out;
}

/* カード全体のアニメーション（不合格用） */
.card-failure {
	max-width: 18rem;
	margin: auto;
	background-color: #F4A6A6;
	color: white;
	animation: softShake 0.8s ease-out;
}

/* アニメーション定義: 合格時のフェードイン＋スケール */
@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.8);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* アニメーション定義: 不合格時のシェイク（揺れ） */
@keyframes softShake {
	0% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-5px);
	}

	50% {
		transform: translateX(5px);
	}

	75% {
		transform: translateX(-5px);
	}

	100% {
		transform: translateX(0);
	}
}

/* アニメーション定義: 画像の拡大ポップ効果（共通） */
.animated-image {
	max-width: 150px;
	/* 画像の最大サイズ */
	margin: 0 auto;
	display: block;
	animation: popIn 1.2s ease-out;
}

@keyframes popIn {
	0% {
		opacity: 0;
		transform: scale(0.5);
	}

	60% {
		opacity: 1;
		transform: scale(1.2);
	}

	100% {
		transform: scale(1);
	}
}

/* カード内の画像サイズを統一 */
.card-body img {
	max-width: 150px;
	height: auto;
}

/*
------------------------------------------  
学習をはじめる
------------------------------------------
*/
.custom-orange-btn {
	background-color: #eb6100;
	/* オレンジ色 */
	color: #fff;
	/* 白文字 */
	border: none;
}

.custom-orange-btn:hover {
	background-color: #d95500;
	/* ホバー時少し暗め */
	color: #fff;
	/* ホバー時も白文字 */
}

.custom-orange-btn:focus {
	outline: 2px solid #cc7a00;
	outline-offset: 2px;
	color: #fff;
	/* フォーカス時も白文字 */
}

.custom-orange-btn:active {
	color: #fff;
	/* クリック時も白文字 */
}

/*
------------------------------------------  
フッター
------------------------------------------
*/
/* フッターのスタイル調整 */
.footer {
	background-color: #28a745;
	/* Bootstrapのbg-successと同じ色 */
	padding-top: 40px;
	padding-bottom: 20px;
}

/* アコーディオンヘッダーのスタイル調整 */
.footer .accordion-button {
	background-color: #28a745;
	/* フッターと同じ背景色 */
	color: #fff;
	font-weight: bold;
	border: none;
	border-radius: 0;
}

.footer .accordion-button:not(.collapsed) {
	background-color: #218838;
	/* ホバー時に少し暗めの色 */
	color: #fff;
}

.footer .accordion-button:focus {
	box-shadow: none;
}

/* アコーディオンボディの背景色と文字色調整 */
.footer .accordion-body {
	background-color: #fff;
	/* 開いたときの背景色を白に */
	color: #000;
	/* 文字色を黒に */
}

/* リンクのスタイル調整 */
.footer a.text-white {
	color: #fff;
	text-decoration: none;
}

.footer a.text-white:hover {
	text-decoration: underline;
	color: #d4edda;
	/* ホバー時に色を変更 */
}

/* スマートフォン向けのメディアクエリ */
@media (max-width: 768px) {
	#page_top {
		bottom: 120px;
		/* フッターからの距離を広げる */
	}
}

/* スマートフォン向けのマージン調整 */
@media (max-width: 576px) {
	.form-floating.mb-md-4 {
		margin-bottom: 1rem !important;
		/* 小さめの下マージン */
	}

	.alert.mb-md-4 {
		margin-bottom: 1rem !important;
		/* 小さめの下マージン */
	}

	.d-grid.mb-md-4 {
		margin-bottom: 1rem !important;
		/* 小さめの下マージン */
	}
}

/*
------------------------------------------  
ページトップへ
------------------------------------------
*/
/* 「トップへ」ボタンのスタイル調整 */
#page_top {
	width: 60px;
	height: 60px;
	position: fixed;
	right: 10px;
	/* 右端から少し内側に */
	bottom: 70px;
	z-index: 1000;
	/* フッターより前面に表示 */
	display: none;
	/* 初期状態は非表示 */
}

#page_top a {
	width: 60px;
	height: 60px;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(40, 167, 69, 0.8);
	/* 半透明の緑背景 */
	border-radius: 50%;
	transition: background-color 0.3s;
	color: #fff;
	/* アイコンの色を白に */
}

#page_top a:hover {
	background-color: rgba(40, 167, 69, 1);
	/* ホバー時に不透明に */
}

#page_top a i {
	font-size: 24px;
	/* アイコンサイズを適切に調整 */
}

/*
------------------------------------------  
ダッシュボードのカードクリック
------------------------------------------
*/
.btn-check:checked+.card {
	border: 2px solid #28a745;
	box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.btn-check:disabled+.card {
	background-color: #f8f9fa;
	color: #6c757d;
	cursor: not-allowed;
}

/*
------------------------------------------  
プロセス群選択
------------------------------------------
*/
.process-baumkuchen.smaller {
	position: relative;
	width: 220px;
	height: 220px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.baumkuchen-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.segment {
	cursor: pointer;
}

.segment:hover path {
	fill: #add8e6;
}

.segment path {
	filter: url(#shadow);
	transition: fill 0.3s;
}

.segment-text {
	font-size: 10px;
	fill: #333;
	text-anchor: middle;
}

.center-control {
	position: absolute;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: white;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
	z-index: 10;
	top: calc(50% - 40px);
	left: calc(50% - 40px);
}

.center-control:hover {
	background-color: #add8e6;
}

.center-text {
	font-size: 0.6rem;
	color: black;
	text-align: center;
	line-height: 1.2;
}

/* 強調: ラジオボタン選択時の文字色変更 */
#selectResultProcess1:checked~.baumkuchen-svg g[data-radio="selectResultProcess1"] .segment-text {
	fill: red;
	font-weight: bold;
}

#selectResultProcess2:checked~.baumkuchen-svg g[data-radio="selectResultProcess2"] .segment-text {
	fill: blue;
	font-weight: bold;
}

#selectResultProcess3:checked~.baumkuchen-svg g[data-radio="selectResultProcess3"] .segment-text {
	fill: green;
	font-weight: bold;
}

#selectResultProcess5:checked~.baumkuchen-svg g[data-radio="selectResultProcess5"] .segment-text {
	fill: purple;
	font-weight: bold;
}

/*
------------------------------------------  
ツールチップ
------------------------------------------
*/
.uniform-btn {
    font-size: 1em;       /* ボタンの文字サイズをpと統一 */
    padding: 0;           /* 余分なパディングを削除 */
    margin: 0 3px;        /* 文字との間隔を微調整 */
    vertical-align: baseline; /* 文字と同じラインに揃える */
}


/*
------------------------------------------  
成績のボタン調整
------------------------------------------
*/
/* 成績プロセス選択ボタンの余白調整 */
.result-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 0.8rem !important;
  padding-bottom: 0.8rem !important;
}

.result-btn i {
  margin-bottom: 0.4rem;
}

/* 小画面時の軽量化 */
@media (max-width: 575.98px) {
  .result-btn {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
  }
  .result-btn i {
    margin-bottom: 0.3rem;
  }
}
