/* ============================================================
   FREBULL.net — フレブルおみくじ
   /wp-content/themes/frebull2026/css/fortune.css
   ============================================================ */

/* ── ベースアニメーション ────────────────────────────────── */
@keyframes omikuji-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes omikuji-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes omikuji-pop {
	0% {
		transform: scale(0.4);
		opacity: 0;
	}
	70% {
		transform: scale(1.12);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* ── ウィジェット共通 ────────────────────────────────────── */
#fortune-widget {
	width: 100%;
	padding: 20px 16px;
	background: linear-gradient(
		180.02deg,
		rgba(255, 255, 255, 0) 0%,
		#ece7cf 100%
	);
	border-radius: 10px;
}

.omikuji {
	animation: omikuji-in 0.3s ease both;
}

/* ── ローディング ────────────────────────────────────────── */
.omikuji-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 110px;
	gap: 12px;
}

.omikuji-orb {
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 3px solid #f0dba0;
	border-top-color: #d4a017;
	animation: omikuji-spin 0.8s linear infinite;
}

.omikuji-loading-msg {
	font-size: 12px;
	color: #aaa;
	margin: 0;
}

/* ── ヘッダー ────────────────────────────────────────────── */
.omikuji-header {
	display: flex;
	gap: 12px;
	margin-bottom: 4px;
	align-items: center;
	justify-content: center;
}

.omikuji-header-icon {
}
.omikuji-header-icon-image {
	width: 24px;
	height: auto;
}

.omikuji-header-title {
	font-size: 20px;
	font-weight: 800;
	color: #524c35;
}

/* ── Step1: あるある ─────────────────────────────────────── */
.omikuji-aru-list {
	list-style: none;
	padding: 0;
	margin: 0 0 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.omikuji-aru-item {
	font-size: 12px;
	color: #524c35;
	padding: 12px 12px 12px 36px;
	background: rgb(255 255 255 / 80%);
	border-radius: 100vmax;
	background-image: url(/wp-content/themes/frebull2026/images/frebull-popup.svg);
	background-repeat: no-repeat;
	background-size: 16px;
	background-position: center left 12px;
}

.omikuji-hook {
	font-size: 15px;
	font-weight: 700;
	color: #da5020;
	text-align: center;
	margin: 0 0 12px;
}

.omikuji-entrance-lead {
	font-size: 12px;
	color: #888;
	text-align: center;
	margin: 0 0 10px;
}

/* ── 診断ボタン ──────────────────────────────────────────── */
.omikuji-start-btn {
	display: block;
	width: 80%;
	margin: 20px auto 8px;
	padding: 12px 0;
	background: linear-gradient(0deg, #f8c234 0%, #efcb2b 100%);
	border: 3px solid #f8dc89;
	border-radius: 100vmax;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(180, 130, 0, 0.3);
	transition:
		opacity 0.15s,
		transform 0.1s;
}

.omikuji-start-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}
.omikuji-start-btn:active {
	transform: translateY(0);
}

/* ── Step2: 設問 ─────────────────────────────────────────── */
.omikuji-q-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.omikuji-entrance-badge {
	font-size: 12px;
	font-weight: 700;
	color: #d4a017;
	background: #fffbe8;
	border-radius: 20px;
	padding: 2px 10px;
}

.omikuji-q-num {
	font-size: 11px;
	color: #bbb;
}

.omikuji-progress {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
}

.omikuji-dot {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: #ece8de;
	transition: background 0.25s;
}

.omikuji-dot.active {
	background: #d4a017;
}

.omikuji-question {
	font-size: 15px;
	font-weight: 800;
	color: #222;
	margin: 0 0 12px;
}

.omikuji-choices {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.omikuji-choice {
	display: flex;
	align-items: flex-start;
	gap: 0;
	background: #fafafa;
	border: 1px solid #e8e0cc;
	border-radius: 10px;
	padding: 10px;
	cursor: pointer;
	transition:
		background 0.15s,
		border-color 0.15s,
		transform 0.1s;
	width: calc(100% - 20px);
	flex-direction: column;
}

.omikuji-choice:hover,
.omikuji-choice:focus-visible {
	background: #fffbe8;
	border-color: #d4a017;
	transform: translateX(3px);
}

.omikuji-choice-label {
	font-size: 12px;
	font-weight: 700;
	color: #d45c1d;
}

.omikuji-choice-text {
	font-size: 12px;
}

/* ── Step3: 結果 ─────────────────────────────────────────── */
.omikuji-stored-badge {
	display: inline-block;
	font-size: 11px;
	color: #999;
	background: #f0f0f0;
	border-radius: 20px;
	padding: 2px 10px;
	margin-bottom: 10px;
}

.omikuji-result-cat {
	font-size: 14px;
	font-weight: 700;
	color: #732e5c;
	margin-bottom: 10px;
}

/* 運勢ランク */
.omikuji-rank {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px;
	border-radius: 14px;
	margin-bottom: 14px;
	border: 2px solid;
}

.omikuji-rank-emoji {
	font-size: 30px;
	animation: omikuji-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.omikuji-rank-text {
	font-size: 30px;
	font-weight: 900;
	letter-spacing: 0.06em;
	animation: omikuji-pop 0.45s 0.08s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ランク別カラー */
.omikuji-rank-daikichi {
	border-color: #f0c020;
	color: #62480c;
	background: linear-gradient(0deg, #f8c234 0%, #f2e298 100%);
}
.omikuji-rank-kichi {
	background: #f0fff0;
	border-color: #5cb85c;
	color: #2d6a2d;
}
.omikuji-rank-chukichi {
	background: #f0f8ff;
	border-color: #5b9bd5;
	color: #1a4f80;
}
.omikuji-rank-shokichi {
	background: #fff5f0;
	border-color: #f0a060;
	color: #904020;
}
.omikuji-rank-suekichi {
	background: #f8f0ff;
	border-color: #b07fd4;
	color: #5a2080;
}
.omikuji-rank-kyo {
	background: #f5f5f5;
	border-color: #aaa;
	color: #555;
}
.omikuji-rank-daikyo {
	background: #fff0f0;
	border-color: #c0392b;
	color: #7a1010;
}

/* 内容 */
.omikuji-content {
	font-size: 14px;
	color: #62480c;
	margin-bottom: 10px;
	font-weight: 700;
}

/* 一言 */
.omikuji-hitokoto {
	font-size: 14px;
	color: #717171;
	margin-bottom: 10px;
}

/* ラッキーアイテム */
.omikuji-lucky {
	display: flex;
	flex-direction: column;
	padding: 10px 20px;
	background: rgb(255 255 255 / 60%);
	border-radius: 10px;
	margin-bottom: 10px;
}

.omikuji-lucky-label {
	font-size: 12px;
	font-weight: 700;
	color: #cf2527;
}

.omikuji-lucky-val {
	font-size: 12px;
}

/* クエスト */
.omikuji-quest {
	display: flex;
	flex-direction: column;
	padding: 10px 20px;
	background: rgb(255 255 255 / 60%);
	border-radius: 10px;
}

.omikuji-quest-label {
	font-size: 12px;
	font-weight: 700;
	color: #915308;
}

.omikuji-quest-text {
	font-size: 12px;
}

/* 関連記事 */
.omikuji-related {
	border-top: 1px solid #f0f0f0;
	padding-top: 14px;
}

.omikuji-related-hd {
	font-size: 12px;
	font-weight: 700;
	color: #999;
	margin-bottom: 10px;
}

.omikuji-related-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.omikuji-rel-card {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	padding: 8px;
	border-radius: 10px;
	background: #fafafa;
	border: 1px solid #efefef;
	transition:
		background 0.15s,
		border-color 0.15s;
}

.omikuji-rel-card:hover {
	background: #fffbe8;
	border-color: #d4a017;
}

.omikuji-rel-card img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

.omikuji-rel-title {
	font-size: 12px;
	font-weight: 600;
	color: #333;
	margin: 0;
	line-height: 1.45;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* ── 開発用リセット ──────────────────────────────────────── */
.omikuji-dev-reset {
	display: block;
	margin: 0 0 10px auto;
	font-size: 11px;
	color: #bbb;
	background: none;
	border: 1px dashed #ccc;
	border-radius: 6px;
	padding: 3px 10px;
	cursor: pointer;
	transition:
		color 0.15s,
		border-color 0.15s;
}

.omikuji-dev-reset:hover {
	color: #c0392b;
	border-color: #c0392b;
}

/* ── エラー ──────────────────────────────────────────────── */
.omikuji-error {
	text-align: center;
	padding: 24px 16px;
	font-size: 13px;
	color: #999;
	line-height: 1.8;
}

/* ── PC調整 ──────────────
────────────────────────────────── */
@media (min-width: 768px) {
	#fortune-widget {
		width: 48%;
	}
	.omikuji {
		padding: 0;
	}
}
