/* ベースリセット */
*, *::before, *::after {
  box-sizing: border-box; /* パディングによる幅崩れを防止 */
}

html, body, #wrapper,#wrapper_inner {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
html{
	background: #333;
}
body {
  color: #fff;
  font-family: sans-serif;
	background: #333;
}
#wrapper{
}
#wrapper_inner{
	background: #000;
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	position: relative;
	background-color: #000;
}
footer {
	position: absolute;
	width: 100%;
	text-align: right;
	padding: 0 7px 2px 0;
	font-size: 0.6em;
	color: #666;
	bottom: 0;
}
.site-branding{
	padding: 10px;
	display: flex;
}
.logobox{
	display: inline-block;
	width: 50%;
	max-width: 240px;
}
#site-navigation{
	display: none;
	width: 100%;
	position: absolute;
	background-color: rgba(0, 0, 0, 0.9);
	z-index: 50000;
}
.navtex_s a{
	font-size: 0.6em;
}
.hamburger-navigation{
	display: inline-block;
	position: absolute;
	right: 10px;
	top: 10px;
	font-size: 25px;
	cursor: pointer;
	z-index: 50000;
}
#site-navigation{
	padding: 1em;
	text-align: right;
}
#site-navigation a{
	display: inline-block;
	text-decoration: none;
	color:#FFF;
	margin-bottom: 1em;
}
#site-navigation a:hover{
	text-decoration: underline;
	color:#FFF;
}
.post, .page {
    margin: 0;
}

/*navの余計なものを上書き*/
.main-navigation ul{
	display: block;
}
.menu-toggle{
	display: none;
}

.fa-circle-question{
	vertical-align: top;
}
.questlist_box a{
	display: block;
	margin: 0 auto;
	width: 80%;
}

.questlist_linkbox{
    position: relative;
    padding: 2.5em 0.5em;
    border: 2px solid #FFF;
    margin: 1em;
    /* border-radius: 10px;*/
}
.questlist_linkbox h2{
	padding: 0;
	margin: 0 0 0 0.5em;
}
.questlist_linkbox .filter-options{
	display: inline-block;
	position: absolute;
	background: #000;
	top: -0.7em;
	right: 1em;
	padding: 0 0.5em;
}
.questlist_linkbox ul{
	list-style: none;
	margin: 0;
	padding: 1em 0 0 0;
	display: grid;
	/*grid-template-columns: repeat(3, 1fr);*/
	grid-template-columns: repeat(2, 1fr);
}
.questlist_linkbox ul li{
	display: inline-block;
	padding: 0.5em;
}
.questlist_linkbox ul a{
	display: inline-block;
	padding: 0.5em 1em 0.5em 1em;
	background: #000;
	width: 100%;
	border-radius: 300px;
	border: 1px solid #FFF;
	text-decoration: none;
	color: #FFF;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.questlist_linkbox ul a:hover{
	opacity: 0.8;
}
.questlist_linkbox ul a::after{
font-family: "Font Awesome 5 Free";
	font-family: "Font Awesome 5 Free";
	content: "\f04b";
	font-weight: 900;
	margin-left: 5px;
	background: #FFF;
	color: #000;
	border-radius: 300px;
	display: inline-block;
	line-height: 2em;
	height: 2em;
	width: 2em;
	font-size: 0.6em;
	text-align: center;
}
.questlist_linkbox .memo{
	font-size: 0.7em;
	display: block;
	padding: 1em;
	text-align: right;
}
hr.flex-break{
	flex-basis: 100%;
	height: 0;
}








#quiz-settings,
#quiz-container,
.quiz-item,
.quiz-explanation{
	display: none;
}


/* カウントダウン演出 */
.quiz-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ready-content { text-align: center; }
.ready-text { font-size: 2rem; letter-spacing: 0.2rem; margin-bottom: 10px; color: #aaa; }
#countdown-number { font-size: 6rem; font-weight: bold; line-height: 1; }

/* クイズコンテナ */
.quiz-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 15px; /* スマホ用に左右余白を調整 */
}

/* タイマー */
.timer-wrapper {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 25px;
}

.timer-bar {
  width: 100%;
  height: 100%;
  background: #ff4757;
}

/* ヘッダー */
.q-current-status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.entry-title {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 60px 0;
  word-break: break-all;
}

/* 回答ボタン（重要：スマホ対応） */
.quiz-choices {
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
  gap: 15px;
  margin: 25px 0;
}

@media (min-width: 480px) {
  .quiz-choices {
    flex-direction: row; /* PC/タブレットでは横並び */
  }
}

.choice-btn {
  flex: 1;
  padding: 18px 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #444;
  background: #fff; /* ボタン背景は白 */
  color: #333;      /* 文字色は黒 */
  border-radius: 10px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.choice-btn:hover {
  background: #eee;
}

/* 解説エリア */
.quiz-explanation {
  padding: 20px;
  border-left: 5px solid #ff4757;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 8px 8px 0;
}

.judgement-text {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.explanation-content {
  color: #333;
  line-height: 1.6;
}

/* 正誤カラー */
.correct-style { color: #2ed573 !important; }
.incorrect-style { color: #ff4757 !important; }

/* ボタン類 */
.next-btn, .retry-btn {
  margin-top: 20px;
  padding: 12px 30px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.mark-ten {
	color: #ff4757;
	font-weight: normal;
	border: 1px solid #ff4757;
	border-radius: 3px;
	padding: 0 2px;
	margin: 0 5px;
	font-size: 0.8em;
}
.mark-sei {
	color: white;
	background: green;
	font-weight: normal;
	border: 1px solid green;
	border-radius: 3px;
	padding: 0 2px;
	margin: 0 5px 0 0;
	font-size: 0.8em;
}










/*＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
スコア送信用
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
.score_sendTitle{
	margin-top: 0;
}
.score_sendDesc{
	margin: 0 0 1em 0;
	font-size: 0.5em;
	font-weight: normal;
}
.score_sendDesc a{
	color:#FFF;
}
.score_sendDesc span{
	font-size: 0.7em;
	display: block;
}
/* 賞金エントリーフォームのコンテナ */
.prize-offer {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ffd700;
  margin-top: 25px;
}

.score_sendTitle {
  color: #ffd700;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

/* 入力エリアのレイアウト */
.prize-form-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
  text-align: left;
}

/* 入力フィールドの共通スタイル */
.prize-form-inner input {
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #000;
  color: #fff;
  font-size: 16px; /* モバイルでのズーム防止 */
}

/* 送信ボタン */
#p-submit {
  background: #ff4757;
  color: #fff;
  border: none;
  padding: 14px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  margin-top: 5px;
  transition: opacity 0.2s;
}

#p-submit:hover {
  opacity: 0.8;
}

#p-submit:disabled {
  background: #666;
  cursor: not-allowed;
}

/* 完了メッセージ */
.entry-complete-msg {
  color: #ffd700;
  font-weight: bold;
  padding: 20px 0;
  text-align: center;
}

/* セパレーター */
.prize-separator {
  margin: 25px 0;
  border: 0;
	height: 0;
  border-top: 1px dashed #333;
}


.page-content, .entry-content, .entry-summary{
	margin: 0;
}


.topkv_tex p{
	text-align: center;
	letter-spacing: 0.15em;
}
.topkv_tex p span{
	vertical-align: sub;
}