@charset "UTF-8";
/* =========================================================================
   modern.css  —  「試し」のモダン化レイヤー（既存 style.css の上に重ねる）
   内容は変えず、見た目・動きだけをリッチにする追加スタイル。
   このファイルの link を外せば元の見た目に戻せます。
   ========================================================================= */

:root {
	--m-navy: #00196d;
	--m-blue: #0961af;
	--m-blue2: #2b7fd0;
	--m-soft: #f4f7fb;
}

/* 文字の描画をなめらかに ------------------------------------------------ */
#contents,
#q_list {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* セクション見出しにモダンなアクセントバー ------------------------------ */
#q_cont h3,
#q_list h3 {
	position: relative;
}
#q_cont h3::after,
#q_list h3::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin: 18px auto 0;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--m-blue), var(--m-blue2));
}

/* Q&A スライダーをカード化 --------------------------------------------- */
#q_contents {
	border: none;
	border-radius: 20px;
	box-shadow:
		0 24px 60px -26px rgba(9, 97, 175, .55),
		0 6px 16px rgba(0, 0, 0, .06);
}
#q_contents .slick-list {
	border-radius: 20px;
}

/* ヘッダー（Q.n）をグラデーションに ------------------------------------ */
#q_contents h4 {
	background: linear-gradient(120deg, var(--m-navy) 0%, var(--m-blue) 60%, var(--m-blue2) 100%);
	letter-spacing: .02em;
}

/* 回答バーを丸く・立体的に＋ホバーの微反応 ----------------------------- */
#q_contents ul li {
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(9, 97, 175, .12);
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
#q_contents ul li:hover {
	transform: translateX(4px) scale(1.012);
	box-shadow: 0 8px 20px rgba(9, 97, 175, .28);
	filter: saturate(1.08);
}

/* スライド切替時に、今のスライドの中身をふわっと出す（CSSのみ） --------- */
@keyframes m-barIn {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes m-popIn {
	from { opacity: 0; transform: rotate(-12deg) scale(.85); }
	to   { opacity: 1; transform: rotate(0) scale(1); }
}
.slick-current .choices li {
	animation: m-barIn .5s both;
}
.slick-current .choices li:nth-child(1) { animation-delay: .04s; }
.slick-current .choices li:nth-child(2) { animation-delay: .10s; }
.slick-current .choices li:nth-child(3) { animation-delay: .16s; }
.slick-current .choices li:nth-child(4) { animation-delay: .22s; }
.slick-current .choices li:nth-child(5) { animation-delay: .28s; }
.slick-current .choices li:nth-child(6) { animation-delay: .34s; }
.slick-current .img {
	animation: m-popIn .6s .06s both;
}
.slick-current .text {
	animation: m-barIn .6s .30s both;
}

/* 左右の矢印に浮遊感 ---------------------------------------------------- */
#q_contents .slick-arrow {
	box-shadow: 0 8px 20px rgba(9, 97, 175, .45);
	transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
#q_contents .slick-arrow:hover {
	opacity: 1;
	transform: scale(1.1);
	box-shadow: 0 10px 24px rgba(9, 97, 175, .55);
}

/* ページネーションを円形＋なめらかに ----------------------------------- */
#q_contents + .navigation li {
	border-radius: 50%;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
#q_contents + .navigation li:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 14px rgba(9, 97, 175, .4);
}
#q_contents + .navigation li.current {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(9, 97, 175, .45);
}

/* QUESTIONNAIRE 一覧セクションを柔らかく ------------------------------- */
#q_list {
	background: linear-gradient(180deg, var(--m-soft) 0%, #e7edf5 100%);
}
#q_list ul {
	border: none;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 18px 40px -18px rgba(9, 97, 175, .45);
}
#q_list li {
	transition: background .25s ease, color .25s ease, transform .2s ease;
}
#q_list li:hover {
	transform: translateX(3px);
}

/* #q_list の各項目をスクロールで順にフェードイン（JSが .reveal を付与） - */
#q_list li.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .55s ease, transform .55s ease;
}
#q_list li.reveal.reveal-in {
	opacity: 1;
	transform: none;
}

/* アニメ抑制設定を尊重 -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.slick-current .choices li,
	.slick-current .img,
	.slick-current .text,
	#q_list li.reveal {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* =========================================================================
   追記2 — レイアウト入替 / 一覧の枠線 / 解説文 / スライド高さ
   ========================================================================= */

/* QUESTIONNAIRE 一覧を上・アンケート結果を下に入れ替え -------------------- */
#contents > section {
	display: flex;
	flex-direction: column;
}
#contents > section > #q_list { order: 1; }
#contents > section > #q_cont { order: 2; }

/* 一覧の枠線をすっきり整える（薄い罫線＋角丸カード） --------------------- */
#q_list ul {
	border: 1px solid rgba(9, 97, 175, .16);
}
#q_list li {
	border: none;
	border-right: 1px solid rgba(9, 97, 175, .14);
	border-bottom: 1px solid rgba(9, 97, 175, .14);
}
#q_list li:nth-child(2n) {           /* 右列は右罫線なし */
	border-right: none;
}
#q_list li:last-child:nth-child(odd) { /* 最終行が1件だけなら全幅に */
	width: 100%;
	border-right: none;
}
#q_list li:last-child {              /* 最終行の下罫線は消す */
	border-bottom: none;
}

/* スライド高さを内容にフィット（長文でも見切れない） --------------------- */
#q_contents .slick-slide {
	height: auto;
}

/* 結果の解説文をカード風にリッチ化 ------------------------------------- */
#q_contents .text {
	max-width: 720px;
	margin: 10px auto 6px;
	padding: 15px 22px 16px;
	font-size: 13.5px;
	line-height: 25px;
	text-align: left;
	color: #274a70;
	background: linear-gradient(180deg, #f6f9fc 0%, #eef3fa 100%);
	border-left: 4px solid #0961af;
	border-radius: 0 12px 12px 0;
	box-shadow: 0 6px 18px rgba(9, 97, 175, .10);
}

/* Q1: 各カテゴリの16タイプ内訳を各バーの下に常時表示 --------------------- */
#q_contents .choices.with-breakdown li.choice_a,
#q_contents .choices.with-breakdown li.choice_b,
#q_contents .choices.with-breakdown li.choice_c,
#q_contents .choices.with-breakdown li.choice_d {
	height: auto;
	overflow: hidden;          /* 角丸クリップを維持 */
	padding-bottom: 10px;
}
#q_contents .choices.with-breakdown .ans,
#q_contents .choices.with-breakdown .per {
	line-height: 43px;         /* 1行目（回答名・％）は従来どおり */
}
#q_contents .choices.with-breakdown .breakdown {
	clear: both;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 3px 16px;
	margin: 0 20px;
	padding: 8px 0 2px;
	line-height: 1.5;
	font-size: 12px;
	font-weight: normal;
	border-top: 1px solid rgba(255, 255, 255, .3);
}
#q_contents .choices.with-breakdown .breakdown li {
	height: auto;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border: none;
	border-radius: 0;
	overflow: visible;
	line-height: 1.7;
	font-size: 12px;
	font-weight: normal;
	color: inherit;
	white-space: nowrap;
}
#q_contents .choices.with-breakdown .breakdown li:hover {
	transform: none;           /* 内訳項目はホバーで動かさない */
	box-shadow: none;
}
#q_contents .choices.with-breakdown .breakdown li b {
	font-weight: bold;
	padding: 0 1px;
}
/* 暗いバー(A/B)は白系・明るいバー(C/D)は濃色でコントラスト確保 */
#q_contents .choices.with-breakdown .choice_a .breakdown,
#q_contents .choices.with-breakdown .choice_b .breakdown {
	color: rgba(255, 255, 255, .92);
	border-top-color: rgba(255, 255, 255, .35);
}
#q_contents .choices.with-breakdown .choice_c .breakdown,
#q_contents .choices.with-breakdown .choice_d .breakdown {
	color: #274a70;
	border-top-color: rgba(9, 97, 175, .28);
}


