/* 芦屋クイズ（テーマに合わせて色は --aqz-main を変えてください） */
.ashiya-quiz, .ashiya-quiz-today {
	--aqz-main: #2b6cb0;
	--aqz-ok: #2f855a;
	--aqz-ng: #c53030;
	--aqz-line: #e2e8f0;
	max-width: 680px;
	margin: 1.5em auto;
	padding: 1.25em;
	border: 1px solid var(--aqz-line);
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
	scroll-margin-top: 80px;
}
.ashiya-quiz *, .ashiya-quiz-today * { box-sizing: border-box; }
.aqz-start, .aqz-final { text-align: center; }
.aqz-title, .aqz-today-title { font-weight: bold; font-size: 1.3em; margin: 0 0 .5em; }
.aqz-today-title { font-size: 1.05em; color: var(--aqz-main); }
.aqz-lead { line-height: 1.8; }
.aqz-stats { color: #718096; font-size: .9em; }
.aqz-head { display: flex; justify-content: space-between; font-size: .9em; color: #4a5568; margin-bottom: .4em; }
.aqz-bar { height: 6px; background: var(--aqz-line); border-radius: 3px; overflow: hidden; margin-bottom: 1em; }
.aqz-bar span { display: block; height: 100%; background: var(--aqz-main); transition: width .3s; }
.aqz-img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; margin: 0 auto 1em; border-radius: 8px; background: #f7fafc; }
.aqz-q { font-size: 1.15em; font-weight: bold; line-height: 1.7; margin: 0 0 1em; }
.aqz-choices { display: grid; gap: .6em; }
.aqz-choice {
	display: block; width: 100%; padding: .85em 1em; text-align: left;
	font-size: 1em; line-height: 1.5; color: inherit;
	background: #fff; border: 2px solid var(--aqz-line); border-radius: 10px; cursor: pointer;
	transition: border-color .15s, background .15s;
}
.aqz-choice:hover:not(:disabled) { border-color: var(--aqz-main); background: #f7fafc; }
.aqz-choice:disabled { cursor: default; opacity: .75; }
.aqz-choice.is-answer { border-color: var(--aqz-ok); background: #f0fff4; opacity: 1; font-weight: bold; }
.aqz-choice.is-answer::before { content: "◯ "; color: var(--aqz-ok); }
.aqz-choice.is-wrong { border-color: var(--aqz-ng); background: #fff5f5; opacity: 1; }
.aqz-choice.is-wrong::before { content: "× "; color: var(--aqz-ng); }
.aqz-result { margin-top: 1.2em; padding-top: 1em; border-top: 1px dashed var(--aqz-line); }
.aqz-judge { font-size: 1.3em; font-weight: bold; margin: 0 0 .3em; }
.aqz-judge.is-ok { color: var(--aqz-ok); }
.aqz-judge.is-ng { color: var(--aqz-ng); }
.aqz-correct { font-weight: bold; }
.aqz-exp { line-height: 1.8; }
.aqz-link { display: inline-block; margin: .3em 0 1em; }
.aqz-btn {
	display: inline-block; margin-top: .5em; padding: .8em 1.8em; border: 0; border-radius: 999px;
	background: var(--aqz-main); color: #fff !important; font-size: 1em; font-weight: bold;
	text-decoration: none !important; cursor: pointer;
}
.aqz-btn:hover { opacity: .9; }
.aqz-result .aqz-next { display: block; width: 100%; }
.aqz-score { font-size: 1.6em; font-weight: bold; margin: .2em 0; }
.aqz-rank { font-size: 1.2em; color: var(--aqz-main); font-weight: bold; }
.aqz-share { display: flex; gap: .6em; justify-content: center; margin: 1em 0; flex-wrap: wrap; }
.aqz-share a { padding: .6em 1.2em; border-radius: 999px; color: #fff !important; text-decoration: none !important; font-weight: bold; font-size: .95em; }
.aqz-share-x { background: #000; }
.aqz-share-line { background: #06c755; }
.aqz-loading, .aqz-msg { text-align: center; color: #4a5568; }
.ashiya-quiz-today { padding: 1em; }
.ashiya-quiz-today .aqz-q { font-size: 1em; }
.ashiya-quiz-today .aqz-choice { padding: .6em .8em; font-size: .95em; }
.ashiya-quiz-today .aqz-btn { width: 100%; text-align: center; }

/* エフェクト */
.aqz-fx-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 99999; }
@keyframes aqzPop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes aqzShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes aqzFlash { 0% { box-shadow: 0 0 0 0 rgba(197,48,48,.45); } 100% { box-shadow: 0 0 0 14px rgba(197,48,48,0); } }
@keyframes aqzJudge { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes aqzRise { 0% { transform: translateY(12px) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
.aqz-choice.aqz-pop { animation: aqzPop .35s ease-out; }
.aqz-choice.aqz-shake { animation: aqzShake .45s ease-in-out; }
.ashiya-quiz.aqz-flash, .ashiya-quiz-today.aqz-flash { animation: aqzFlash .6s ease-out; }
.aqz-judge { display: inline-block; animation: aqzJudge .4s ease-out; }
.aqz-final.is-great .aqz-score, .aqz-final.is-great .aqz-rank { animation: aqzRise .6s ease-out both; }
.aqz-final.is-great .aqz-rank { animation-delay: .25s; }
.aqz-final.is-great .aqz-score { color: #d69e2e; }
@media (prefers-reduced-motion: reduce) {
	.aqz-choice.aqz-pop, .aqz-choice.aqz-shake, .aqz-flash, .aqz-judge, .aqz-final.is-great * { animation: none !important; }
}
