/*
 * サイト固有の調整。
 * Vuetify 互換の土台 (フォント・ブレークポイント・余白・タイポグラフィ) は
 * bootstrap-vuetify.min.css に含まれる。
 */

/* v-btn color="#F18702" dark 相当: 文字は常に白 */
.btn-warning {
	--bs-btn-color: #fff;
	--bs-btn-hover-color: #fff;
	--bs-btn-active-color: #fff;
	--bs-btn-disabled-color: #fff;
}

.form-processing-submit {
	min-width: 86px;
	transition: transform .12s ease, filter .12s ease, opacity .12s ease;
}

.form-validation-submit:disabled,
.form-validation-submit:disabled span {
	color: rgba(0, 0, 0, .26) !important;
}

.form-validation-submit:disabled {
	background-color: rgba(0, 0, 0, .12) !important;
	border-color: transparent !important;
	opacity: 1;
}

.form-processing-submit:not(:disabled):active {
	transform: translateY(1px) scale(.96);
	filter: brightness(.9);
}

.form-processing-submit.is-submitting {
	cursor: wait;
	opacity: .75;
}

.form-submit-waiting {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.form-waiting-circle {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: form-waiting-circle-spin .7s linear infinite;
}

@keyframes form-waiting-circle-spin {
	to { transform: rotate(360deg); }
}

/* Vuetify 2 のリセットとグリッド余白を再現する。 */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}

.row {
	--bs-gutter-y: 0;
	flex: 1 1 auto;
	margin-top: -12px;
	margin-bottom: -12px;
}

.row > .col,
.row > [class^="col-"],
.row > [class*=" col-"] {
	padding-top: 12px;
	padding-bottom: 12px;
}

/* Bootstrap の .row > * が列以外も全幅にするため、Vuetify と同じ挙動へ戻す。 */
.row > :not(.col):not([class^="col-"]):not([class*=" col-"]) {
	width: auto;
	max-width: none;
	padding-right: 0;
	padding-left: 0;
	margin-top: 0;
}

.row--dense {
	--bs-gutter-y: 0;
	margin-top: -4px;
	margin-bottom: -4px;
}

.row--dense > .col,
.row--dense > [class^="col-"],
.row--dense > [class*=" col-"] {
	padding-top: 4px;
	padding-bottom: 4px;
}

.pagination .page-item.disabled .page-link {
	background: transparent;
	box-shadow: none;
}

@media (max-width: 599.98px) {
	.app-bar__content {
		width: 100%;
		min-width: 0;
	}

	.app-bar__content > a:first-child {
		flex: 0 1 130px;
		min-width: 0;
	}

	.app-bar__content > a:first-child img {
		display: block;
		width: 100%;
		max-width: 130px !important;
		height: auto;
	}

	.app-bar__content .btn {
		flex: 0 0 auto;
	}

	.pagination {
		flex-wrap: wrap;
		justify-content: center;
	}

	.pagination .page-link {
		height: 30px;
		min-width: 30px;
		margin: .15rem;
		font-size: .875rem;
	}
}

/* コースページの料金プラン特徴リスト (元 .vue の scoped style) */
.course_description {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.course_description li {
	line-height: 3em;
	margin-left: 0;
}

/* ニュース・フレーズ詳細の本文 (元 .vue の scoped style) */
.markdown p {
	margin: 30px;
}

/*
 * フレーズ詳細の会話吹き出し (元 .vue の scoped style)。
 * 元サイトは smAndDown で balloon-*-bottom / mdAndUp で balloon-* をJSで切替。
 * ここではメディアクエリ (960px = Vuetify md 境界) で :before の位置を切替える。
 */
.balloon-left,
.balloon-right {
	position: relative;
	display: inline-block;
	padding: 20px;
	height: 100%;
	width: 100%;
	color: #555;
	background: #FFF;
	box-sizing: border-box;
	border-radius: 20px;
	box-shadow: 0 -7px 15px 0 rgba(0, 0, 0, 0.1);
}

.balloon-left p,
.balloon-right p {
	margin: 0;
	padding: 0;
}

.balloon-left:before,
.balloon-right:before {
	content: "";
	width: 20px;
	height: 20px;
	position: absolute;
	background: white;
	transform: rotate(312deg);
}

/* smAndDown: 吹き出しの矢印を上側に (balloon-*-bottom 相当) */
@media (max-width: 959.98px) {
	.balloon-left:before {
		border-radius: 0px 8px 0px 0;
		left: 20px;
		top: -10px;
	}

	.balloon-right:before {
		border-radius: 0px 8px 0px 0;
		right: 20px;
		top: -10px;
	}
}

/* mdAndUp: 吹き出しの矢印を横側に */
@media (min-width: 960px) {
	.balloon-left:before {
		border-radius: 8px 0px 0px 0;
		left: -10px;
		top: 20px;
	}

	.balloon-right:before {
		border-radius: 0px 0px 8px 0;
		right: -10px;
		top: 20px;
	}
}
