/* AI社内導入ページ（business/ai.html）専用 */

/* セクション間の余白：共通の .l-container（下10rem＋上6rem）に見出しの英字分が重なって空きすぎるので、このページの追加セクションだけ詰める */
.l-container[class*="l-ai-"] {
	padding: 2rem 0 4rem;
}
@media screen and (min-width: 768px) {
	.l-container[class*="l-ai-"] {
		padding: 3rem 0 5rem;
	}
}

/* 見出しの背景の英字 */
.l-ai-movie .title-unit.-deco-m::before { content: 'MOVIE'; }
.l-ai-pillar .title-unit.-deco-m::before { content: 'PILLARS'; }
.l-ai-protect .title-unit.-deco-m::before { content: 'PROTECT'; }
.l-ai-reduce .title-unit.-deco-m::before { content: 'REDUCE'; }
.l-ai-store .title-unit.-deco-m::before { content: 'STORE'; }
.l-ai-promise .title-unit.-deco-m::before { content: 'PROMISE'; }
.l-ai-own .title-unit.-deco-m::before { content: 'OUR CASE'; }
.l-ai-check .title-unit.-deco-m::before { content: 'CHECK'; }

.ai-section-no {
	position: relative;
	color: #04A7FC;
	font-family: "Lato", sans-serif;
	margin-bottom: 0.5rem;
}
.ai-read {
	max-width: 72rem;
	margin-bottom: 4rem;
	font-size: 1.5rem;
	line-height: 2;
}
@media screen and (min-width: 768px) {
	.ai-read {
		font-size: 1.6rem;
	}
}

/* 導入文：社長と社員の声 */
.ai-voice {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	margin-bottom: 5rem;
}
.ai-voice__item {
	position: relative;
	max-width: 46rem;
	padding: 1.6rem 2rem;
	border-radius: 1.2rem;
	background: #F7F7F8;
	font-size: 1.5rem;
	font-weight: bold;
	line-height: 1.7;
}
.ai-voice__item.-staff {
	align-self: flex-end;
}
.ai-voice__who {
	display: inline-block;
	margin-right: 1rem;
	padding: 0.2rem 1rem;
	border-radius: 10rem;
	background: #0B41A0;
	color: #fff;
	font-size: 1.2rem;
	vertical-align: 0.1em;
}
.ai-voice__item.-staff .ai-voice__who {
	background: #04A7FC;
}
.ai-lead .title {
	color: #0B41A0;
}
.ai-lead p {
	max-width: 72rem;
	font-size: 1.5rem;
	line-height: 2;
}
@media screen and (min-width: 768px) {
	/* 吹き出しは1行に収めたいので、横並びにせず会話のように左右へ互い違いに置く */
	.ai-voice__item {
		max-width: none;
		white-space: nowrap;
	}
	.ai-voice__item.-owner {
		align-self: flex-start;
	}
	.ai-lead p {
		font-size: 1.6rem;
	}
}

/* 3本柱 */
.ai-pillar {
	display: grid;
	gap: 1.6rem;
}
.ai-pillar__item {
	display: block;
	padding: 3rem 2.4rem;
	border: 2px solid #0B41A0;
	border-radius: 1.6rem;
	color: #2F3C3F;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.ai-pillar__item:hover,
.ai-pillar__item:focus-visible {
	background: #0B41A0;
	color: #fff;
}
.ai-pillar__label {
	color: #04A7FC;
	font-family: "Lato", sans-serif;
	font-size: 1.3rem;
	font-weight: 900;
	letter-spacing: 0.2em;
}
.ai-pillar__title {
	margin: 0.6rem 0 1.2rem;
	font-size: 3.2rem;
	font-weight: bold;
	line-height: 1.2;
}
.ai-pillar__text {
	font-size: 1.5rem;
	font-weight: bold;
	line-height: 1.7;
}
@media screen and (min-width: 768px) {
	.ai-pillar {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* 守る：名前が伏せられる例（JS が is-ready を付けたときだけ動かす。無ければ伏せた後の状態） */
.ai-mask {
	display: grid;
	gap: 1.2rem;
	align-items: center;
	margin-bottom: 3rem;
}
.ai-mask__box {
	padding: 1.8rem 2.2rem;
	border-radius: 1.2rem;
	background: #fff;
	border: 2px solid #E8455A;
}
.ai-mask__box.-after {
	border-color: #04A7FC;
}
.ai-mask__label {
	margin-bottom: 0.4rem;
	font-size: 1.2rem;
	font-weight: bold;
	color: #6B7A96;
}
.ai-mask__text {
	font-size: 1.6rem;
	font-weight: bold;
	line-height: 1.7;
	color: #2F3C3F;
}
.ai-mask__name {
	color: #E8455A;
}
.ai-mask__gate {
	justify-self: center;
	position: relative;
	padding: 0.8rem 2rem;
	border-radius: 10rem;
	background: #0B41A0;
	color: #fff;
	font-size: 1.4rem;
	font-weight: bold;
}
.ai-mask__gate::after {
	content: "↓";
	display: block;
	position: absolute;
	left: 50%;
	bottom: -2.2rem;
	transform: translateX(-50%);
	color: #0B41A0;
	font-size: 1.4rem;
}
.ai-mask__gate::before {
	content: "↓";
	display: block;
	position: absolute;
	left: 50%;
	top: -2.2rem;
	transform: translateX(-50%);
	color: #0B41A0;
	font-size: 1.4rem;
}
.ai-mask__real,
.ai-mask__hidden {
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	vertical-align: bottom;
}
.ai-mask__real {
	max-width: 0;
	color: #E8455A;
	opacity: 0;
}
.ai-mask__hidden {
	max-width: 12em;
	color: #04A7FC;
}
.ai-mask.is-ready .ai-mask__real {
	max-width: 12em;
	opacity: 1;
}
.ai-mask.is-ready .ai-mask__hidden {
	max-width: 0;
	opacity: 0;
}
.ai-mask.is-run .ai-mask__real {
	animation: ai-mask-out 0.6s ease 1.2s forwards;
}
.ai-mask.is-run .ai-mask__hidden {
	animation: ai-mask-in 0.6s ease 1.5s forwards;
}
@keyframes ai-mask-out {
	to { max-width: 0; opacity: 0; }
}
@keyframes ai-mask-in {
	from { max-width: 0; opacity: 0; }
	to { max-width: 12em; opacity: 1; }
}
@media screen and (min-width: 960px) {
	.ai-mask {
		grid-template-columns: 1fr auto 1fr;
		gap: 3.6rem;
	}
	.ai-mask__gate::before {
		display: none;
	}
	.ai-mask__gate::after {
		content: "→";
		left: auto;
		right: -2.8rem;
		bottom: auto;
		top: 50%;
		transform: translateY(-50%);
	}
	.ai-mask__gate {
		padding: 1.2rem 2.4rem;
	}
	.ai-mask__gate span::before {
		content: "→";
		position: absolute;
		left: -2.8rem;
		top: 50%;
		transform: translateY(-50%);
		color: #0B41A0;
	}
}

/* 守る：3層 */
.ai-layer {
	display: grid;
	gap: 1.6rem;
	margin-bottom: 3rem;
}
.ai-layer__item {
	display: flex;
	gap: 1.6rem;
	padding: 2.4rem;
	border-radius: 1.2rem;
	background: #F7F7F8;
}
.ai-layer__no {
	flex: 0 0 4.4rem;
	height: 4.4rem;
	border-radius: 50%;
	background: #0B41A0;
	color: #fff;
	font-family: "Lato", sans-serif;
	font-size: 2rem;
	font-weight: 900;
	line-height: 4.4rem;
	text-align: center;
}
.ai-layer__body .title.is-3 {
	margin-bottom: 0.8rem;
	color: #0B41A0;
}
.ai-layer__body p {
	font-size: 1.4rem;
	line-height: 1.9;
}
.ai-layer__body .ai-layer__gain {
	margin-bottom: 0.8rem;
	color: #2F3C3F;
	font-weight: bold;
	font-size: 1.5rem;
}
@media screen and (min-width: 960px) {
	.ai-layer__item {
		padding: 3rem 4rem;
	}
	.ai-layer__body p {
		font-size: 1.5rem;
	}
}

/* 補足 */
.ai-note {
	padding: 2rem 2.4rem;
	border-left: 4px solid #04A7FC;
	background: #F2FAFE;
	font-size: 1.4rem;
	line-height: 1.9;
}
.ai-note.-strong {
	border-left-color: #0B41A0;
	font-weight: bold;
}

/* カードのイラスト */
.ai-card-img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 16rem;
	margin: 0 0 2rem;
	border-radius: 0.8rem;
	background: #EEF5FD;
}
.ai-card-img img {
	max-width: 70%;
	max-height: 13rem;
	width: auto;
	height: auto;
}
.ai-own__item .ai-card-img {
	height: 13rem;
	margin-bottom: 1.6rem;
}
.ai-own__item .ai-card-img img {
	max-height: 10.4rem;
}

/* 減らす：いま → これから */
.ai-case {
	display: grid;
	gap: 1.6rem;
	margin-bottom: 3.2rem;
}
.ai-case__item {
	padding: 2.4rem;
	border: 1px solid #B8C5D5;
	border-radius: 1.2rem;
	background: #fff;
}
.ai-case__item .title.is-4 {
	margin-bottom: 1.6rem;
	color: #0B41A0;
}
.ai-case__ba {
	margin: 0;
}
.ai-case__ba dt {
	display: inline-block;
	margin-bottom: 0.6rem;
	padding: 0.2rem 1.2rem;
	border-radius: 10rem;
	font-size: 1.2rem;
	font-weight: bold;
}
.ai-case__ba dd {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.8;
}
.ai-case__before dt {
	background: #EEF1F5;
	color: #6B7A96;
}
.ai-case__before dd {
	color: #6B7A96;
}
.ai-case__after {
	position: relative;
	margin-top: 3.2rem;
}
.ai-case__after::before {
	content: "";
	position: absolute;
	left: 1.2rem;
	top: -2.4rem;
	border-top: 1rem solid #04A7FC;
	border-left: 0.8rem solid transparent;
	border-right: 0.8rem solid transparent;
}
.ai-case__after dt {
	background: #04A7FC;
	color: #fff;
}
.ai-case__after dd {
	color: #0B41A0;
	font-weight: bold;
}
@media screen and (min-width: 960px) {
	.ai-case {
		grid-template-columns: repeat(3, 1fr);
	}
	.ai-case__ba dd {
		font-size: 1.5rem;
	}
}

/* 減らす：時間のバー（JS が is-ready を付けたときだけ 0 から動かす。無ければ最後の状態で表示） */
.ai-bars__track {
	display: block;
	height: 1.2rem;
	margin: 0.4rem 0 0.8rem;
	border-radius: 10rem;
	background: #EEF1F5;
	overflow: hidden;
}
.ai-bars__bar {
	display: block;
	height: 100%;
	border-radius: 10rem;
	background: #FF6A24;
	width: 100%;
}
.ai-case__after .ai-bars__bar {
	width: var(--w, 25%);
	background: #04A7FC;
}
.ai-bars.is-ready .ai-bars__bar {
	width: 0;
}
.ai-bars.is-ready .ai-case__after .ai-bars__bar {
	background: #FF6A24;
}
.ai-bars.is-run .ai-case__before .ai-bars__bar {
	animation: ai-bar-grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s) forwards;
}
.ai-bars.is-run .ai-case__after .ai-bars__bar {
	animation: ai-bar-cut 2.2s cubic-bezier(0.65, 0, 0.35, 1) var(--delay, 0s) forwards;
}
@keyframes ai-bar-grow {
	from { width: 0; }
	to { width: 100%; }
}
@keyframes ai-bar-cut {
	0% { width: 0; background: #FF6A24; }
	35% { width: 100%; background: #FF6A24; }
	55% { width: 100%; background: #FF6A24; }
	100% { width: var(--w, 25%); background: #04A7FC; }
}
.ai-bars-note {
	margin: -2rem 0 3.2rem;
	font-size: 1.2rem;
	color: #6B7A96;
}

/* 減らす：締め（浮いた時間の使い道）。紺の箱 */
.ai-human {
	padding: 3rem 2.4rem;
	border-radius: 1.6rem;
	background: #0B41A0;
	color: #fff;
}
.ai-human .ai-human__lead {
	margin-bottom: 1.2rem;
	color: #fff;
}
.ai-human__text {
	color: #fff;
	font-size: 1.4rem;
	line-height: 1.9;
}
@media screen and (min-width: 960px) {
	.ai-human {
		padding: 4rem 5rem;
	}
	.ai-human__text {
		font-size: 1.5rem;
	}
}

/* 貯める */
.ai-store {
	display: grid;
	gap: 1.6rem;
	margin-bottom: 3rem;
}
.ai-store__item {
	padding: 2.4rem;
	border-radius: 1.2rem;
	background: #F7F7F8;
}
.ai-store__item .title.is-4 {
	margin-bottom: 0.8rem;
	color: #0B41A0;
}
.ai-store__item p {
	font-size: 1.4rem;
	line-height: 1.8;
}
@media screen and (min-width: 768px) {
	.ai-store {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* できること・できないこと */
.ai-promise__row {
	padding: 2.4rem 0;
	border-top: 1px solid #B8C5D5;
}
.ai-promise__row:last-child {
	border-bottom: 1px solid #B8C5D5;
}
.ai-promise__head {
	margin-bottom: 0.8rem;
	color: #0B41A0;
	font-size: 1.6rem;
	font-weight: bold;
}
.ai-promise__body {
	font-size: 1.4rem;
	line-height: 1.9;
}
.ai-promise__body strong {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 1.6rem;
}
@media screen and (min-width: 768px) {
	.ai-promise__row {
		display: flex;
		gap: 4rem;
	}
	.ai-promise__head {
		flex: 0 0 26rem;
		margin-bottom: 0;
	}
	.ai-promise__body {
		font-size: 1.5rem;
	}
}

/* 自社事例 */
.ai-own {
	display: grid;
	gap: 1.6rem;
	margin-bottom: 3rem;
}
.ai-own__item {
	padding: 2.4rem;
	border: 1px solid #B8C5D5;
	border-radius: 1.2rem;
}
.ai-own__item .title.is-4 {
	margin-bottom: 0.6rem;
	color: #0B41A0;
}
.ai-own__item p {
	font-size: 1.4rem;
	line-height: 1.8;
}
@media screen and (min-width: 768px) {
	.ai-own {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media screen and (min-width: 960px) {
	.ai-own {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* AI危険度チェック */
.ai-check__group {
	margin: 0 0 3rem;
	padding: 0;
	border: 0;
}
.ai-check__legend {
	display: inline-block;
	margin-bottom: 1.2rem;
	padding: 0.4rem 1.6rem;
	border-radius: 10rem;
	background: #0B41A0;
	color: #fff;
	font-size: 1.5rem;
	font-weight: bold;
}
.ai-check__q {
	padding: 1.8rem 0;
	border-bottom: 1px solid #B8C5D5;
}
.ai-check__text {
	margin-bottom: 1.2rem;
	font-size: 1.5rem;
	font-weight: bold;
	line-height: 1.7;
}
.ai-check__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}
.ai-check__choice {
	position: relative;
	cursor: pointer;
}
/* style.css の問い合わせフォーム用の丸いラジオ（input[type="radio"]+span）を、ここでは打ち消す */
.ai-check__choice input[type="radio"] {
	display: block;
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.ai-check__choice input[type="radio"] + span {
	display: inline-block;
	width: auto;
	height: auto;
	min-width: 9rem;
	margin: 0;
	padding: 0.9rem 1.8rem;
	border: 2px solid #B8C5D5;
	border-radius: 10rem;
	background: #fff;
	color: #2F3C3F;
	font-size: 1.4rem;
	font-weight: bold;
	line-height: 1.4;
	text-align: center;
	vertical-align: middle;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.ai-check__choice input[type="radio"]:checked + span::after {
	content: none;
}
.ai-check__choice:hover input[type="radio"] + span {
	border-color: #04A7FC;
}
.ai-check__choice input[type="radio"]:checked + span {
	border-color: #0B41A0;
	background: #0B41A0;
	color: #fff;
}
.ai-check__choice input[type="radio"]:focus-visible + span {
	outline: 3px solid #04A7FC;
	outline-offset: 2px;
}
.ai-check__submit {
	text-align: center;
}
.ai-check__remain {
	margin-bottom: 1.2rem;
	font-size: 1.4rem;
	font-weight: bold;
}
.ai-check__submit .btn-area-item {
	max-width: 32rem;
	margin: 0 auto;
}
.ai-check__btn {
	cursor: pointer;
}
.ai-check__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
@media screen and (min-width: 960px) {
	.ai-check__q {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 3rem;
	}
	.ai-check__text {
		margin-bottom: 0;
	}
	.ai-check__choices {
		flex: 0 0 auto;
		flex-wrap: nowrap;
	}
}

/* 結果 */
.ai-result {
	margin-top: 5rem;
	padding: 3rem 2.4rem;
	border-radius: 1.6rem;
	background: #F7F7F8;
}
.ai-result:focus {
	outline: none;
}
.ai-result > .title.is-3 {
	margin-bottom: 2rem;
	text-align: center;
}
.ai-result__grid {
	display: grid;
	gap: 1.2rem;
	margin-bottom: 3rem;
}
.ai-result__item {
	padding: 2rem;
	border-top: 6px solid #B8C5D5;
	border-radius: 1.2rem;
	background: #fff;
	text-align: center;
}
.ai-result__item.-safe { border-top-color: #04A7FC; }
.ai-result__item.-caution { border-top-color: #FF6A24; }
.ai-result__item.-danger { border-top-color: #F44656; }
.ai-result__pillar {
	font-size: 1.5rem;
	font-weight: bold;
}
.ai-result__level {
	margin: 0.4rem 0;
	font-size: 2.8rem;
	font-weight: bold;
}
.ai-result__item.-safe .ai-result__level { color: #04A7FC; }
.ai-result__item.-caution .ai-result__level { color: #FF6A24; }
.ai-result__item.-danger .ai-result__level { color: #F44656; }
.ai-result__text {
	font-size: 1.3rem;
	line-height: 1.7;
}
.ai-result__advice {
	margin-bottom: 3rem;
}
.ai-result__advice-group:not(:last-child) {
	margin-bottom: 2rem;
}
.ai-result__advice-title {
	margin-bottom: 0.8rem;
	color: #0B41A0;
	font-size: 1.5rem;
	font-weight: bold;
}
.ai-result__advice ul {
	padding-left: 2rem;
	list-style: disc;
}
.ai-result__advice li {
	font-size: 1.4rem;
	line-height: 1.9;
}
.ai-result__cta {
	text-align: center;
}
.ai-result__cta p {
	margin-bottom: 2rem;
	font-size: 1.4rem;
	line-height: 1.8;
}
.ai-result__cta .btn-area-item {
	max-width: 32rem;
	margin: 0 auto;
}
.ai-result__retry {
	margin-top: 2rem;
	color: #0B41A0;
	font-size: 1.4rem;
	font-weight: bold;
	text-decoration: underline;
	cursor: pointer;
}
@media screen and (min-width: 768px) {
	.ai-result {
		padding: 4rem;
	}
	.ai-result__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* 紹介動画（トップページの会社紹介PVと同じ見た目） */
.movie-unit {
	position: relative;
	overflow: hidden;
	border-radius: 1rem;
	background: #0a1a3a;
	box-shadow: 0 1rem 3rem rgba(11, 65, 160, 0.15);
}
.movie-player {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}
.movie-play {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0 0 3.5%;
	background: transparent;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
}
.movie-unit.is-ready .movie-play {
	display: flex;
}
.movie-unit.is-played .movie-play {
	display: none;
}
.movie-play__badge {
	display: flex;
	align-items: center;
	padding: 0.4rem 1.2rem 0.4rem 0.4rem;
	border-radius: 10rem;
	background: #fff;
	color: #0B41A0;
	font-family: "Lato", sans-serif;
	font-size: 1.2rem;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.25);
	transition: transform 0.2s;
}
.movie-play:hover .movie-play__badge,
.movie-play:focus-visible .movie-play__badge {
	transform: scale(1.06);
}
.movie-play:focus-visible {
	outline: 3px solid #04A7FC;
	outline-offset: -3px;
}
.movie-play__icon {
	position: relative;
	width: 2.4rem;
	height: 2.4rem;
	margin-right: 0.6rem;
	border-radius: 50%;
	background: #0B41A0;
}
.movie-play__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 0.45rem 0 0.45rem 0.75rem;
	border-color: transparent transparent transparent #fff;
}
@media screen and (min-width: 768px) {
	.movie-play {
		padding-bottom: 7%;
	}
	.movie-play__badge {
		padding: 0.8rem 2.4rem 0.8rem 0.8rem;
		font-size: 1.8rem;
	}
	.movie-play__icon {
		width: 4.8rem;
		height: 4.8rem;
		margin-right: 1.4rem;
	}
	.movie-play__icon::after {
		border-width: 0.9rem 0 0.9rem 1.5rem;
	}
}
