/* メニューページ専用のスタイル。
   現行トップ (/static/style.css) とは完全に独立しているため、
   ここを編集してもどうぶつ顔診断のレイアウトには影響しません。 */

*{
	box-sizing: border-box;
}

body{
	margin: 0;
	font-family: sans-serif;
	background: #f2f2f2;
	color: #232323;
}

/* ---------- ヘッダー ---------- */

.head{
	background: #000000;
	text-align: center;
	padding: 2.4em 1em 2em;
}

.head_word{
	color: #ffda00;
	font-size: 0.8em;
	letter-spacing: 0.2em;
}

.head_title{
	font-size: 1.7em;
	color: #ffffff;
	margin-top: 0.3em;
}

.head_lead{
	color: #b9b9b9;
	font-size: 0.8em;
	margin-top: 0.8em;
}

/* ---------- カード一覧 ---------- */

.list{
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 16px 12px 40px;
}

.card{
	display: flex;
	align-items: stretch;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12);
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s;
}

.card:active{
	transform: scale(0.99);
}

.card_thumb{
	flex: 0 0 96px;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	justify-content: center;
	background: #2b2b2b;
	overflow: hidden;
}

.card_thumb img{
	width: 50%;
	height: auto;
	opacity: 0.75;
	display: block;
}

.card_thumb_soon{
	align-items: center;
	background: #d8d8d8;
	color: #ffffff;
	font-size: 2em;
	font-weight: bold;
}

/* 写真1枚をサムネイルにする場合。
   PC用の @media 内に .card_thumb img の指定があり、詳細度が同じだと
   後勝ちで負けてしまうため、クラスを2つ重ねて確実に上書きする。 */
.card_thumb.card_thumb_single img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1;
}

/* 好き？嫌い？少数派ゲーム */
.card_thumb_minority{
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, #ff6b8a 0%, #6b7cff 100%);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: bold;
}

.card_thumb_minority span{
	background: rgba(255,255,255,0.22);
	border-radius: 20px;
	padding: 2px 10px;
	white-space: nowrap;
}

/* みんなの統計（ヒストグラムを模した棒） */
.card_thumb_toukei{
	align-items: flex-end;
	justify-content: center;
	gap: 5px;
	padding-bottom: 16px;
	background: linear-gradient(135deg, #17203c 0%, #2f5d8c 55%, #17a2a2 100%);
}

.card_thumb_toukei span{
	width: 9px;
	border-radius: 2px 2px 0 0;
	background: rgba(255,255,255,0.85);
}

.card_thumb_toukei span:nth-child(1){ height: 12px; }
.card_thumb_toukei span:nth-child(2){ height: 26px; }
.card_thumb_toukei span:nth-child(3){ height: 44px; }
.card_thumb_toukei span:nth-child(4){ height: 52px; }
.card_thumb_toukei span:nth-child(5){ height: 30px; }
.card_thumb_toukei span:nth-child(6){ height: 15px; }

/* 顔面MBTI診断（本体の紺色テーマに合わせる） */
.card_thumb_mbti{
	align-items: center;
	background: linear-gradient(135deg, #1a1a35 0%, #0d0d1a 100%);
	color: #8888bb;
	font-size: 1.3em;
	font-weight: bold;
	letter-spacing: 0.08em;
}

.card_body{
	flex: 1 1 auto;
	padding: 0.9em 1em;
	min-width: 0;
}

.card_title{
	font-size: 1.1em;
	font-weight: bold;
	margin-bottom: 0.4em;
}

.card_desc{
	font-size: 0.8em;
	color: dimgrey;
	line-height: 1.6;
}

.card_tag{
	display: inline-block;
	margin-top: 0.7em;
	padding: 3px 12px;
	border-radius: 30px;
	background: #E9CA11;
	font-size: 0.7em;
}

.card_tag_soon{
	background: #c7c7c7;
	color: #ffffff;
}

/* 準備中カードはリンクではないので、押せる見た目にしない */
.card_soon{
	opacity: 0.75;
	cursor: default;
}

/* ---------- フッター ---------- */

.foot{
	background: #000000;
	color: #ffffff;
	padding: 3%;
	text-align: center;
}

.foot_title{
	margin-top: 1em;
}

.foot_detail{
	font-size: 0.8em;
	color: #d6d6d6;
	margin-top: 0.4em;
}

.twitter_account{
	background: #444444;
	border-radius: 100px;
	width: 20px;
	height: 20px;
	margin: 1em auto;
	padding: 8px;
}

.twitter_account img{
	width: 20px;
	height: 20px;
	opacity: 0.5;
}

.credit{
	text-align: center;
	font-size: 0.8em;
	margin-top: 1em;
	padding-bottom: 1em;
}

a{
	text-decoration: none;
}

/* ---------- PC ---------- */

@media screen and (min-width: 640px) {
	/* 以前は body ごと 640px に絞っていたため、大きな画面ではスマホのような
	   細い1本の列に見えていた。幅の制限はカード一覧だけに掛け、
	   ヘッダーやヘッダーメニューは画面いっぱいに広げる。 */
	.head{
		padding: 3em 1em 2.6em;
	}

	.list{
		grid-template-columns: repeat(2, 1fr);
		max-width: 720px;
		margin: 0 auto;
		gap: 16px;
		padding: 24px 16px 48px;
	}

	.card{
		display: block;
	}

	.card:hover{
		box-shadow: 0 4px 12px rgba(0,0,0,0.18);
	}

	.card_thumb{
		flex: none;
		width: 100%;
		height: 120px;
	}

	.card_thumb img{
		width: 33.33%;
		height: 100%;
		object-fit: cover;
	}

	.card_thumb_soon{
		font-size: 2.4em;
	}
}

/* 画面が広いときは列を増やして、余白ばかりにならないようにする */
@media screen and (min-width: 1000px) {
	.list{
		grid-template-columns: repeat(3, 1fr);
		max-width: 1080px;
		gap: 20px;
		padding: 30px 20px 60px;
	}

	.card_thumb{ height: 150px; }
}

@media screen and (min-width: 1360px) {
	.list{
		grid-template-columns: repeat(4, 1fr);
		max-width: 1400px;
	}
}
