/*!
 * Theme Name: Best Works
 * File: assets/css/best-works.css
 * Author: Eiwa Housing
 * Version: 1.1.0
 */

/* ==================================================
   00. Design Tokens
================================================== */

:root {
	--bw-max-width: 1100px;

	--color-text: #111;
	--color-muted: #6E6E6E;
	--color-yellow: #ffef2b;
	--color-gray: #ededed;
}

/* ==================================================
   01. Reset / Base
================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
		"Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
		"Yu Gothic", Meiryo, sans-serif;
	color: var(--color-text);
	background: #fff;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

/* ==================================================
   02. Layout Container
================================================== */

.bw-container {
	max-width: var(--bw-max-width);
	margin: 0 auto;
	padding-inline: 24px;
}

/* ==================================================
   03. Header
================================================== */

.bw-header {
	text-align: center;
}

.bw-header__inner {
	max-width: var(--bw-max-width);
	margin: 0 auto;
	padding-inline: 24px;
}

.bw-header__title {
	font-size: clamp(36px, 7vw, 80px);
	font-weight: 800;
	margin-top: clamp(120px, 20vw, 200px);
	line-height: 1.1;
}

.bw-header__subtitle {
	font-size: clamp(18px, 3vw, 32px);
	font-weight: 700;
	margin-top: 30px;
	margin-bottom: clamp(80px, 15vw, 150px);
}

/* ==================================================
   04. Front Notice
================================================== */

.bw-front__notice {
	max-width: var(--bw-max-width);
	height: clamp(72px, 12vw, 100px);
	margin: 0 auto 80px;
	padding-inline: 24px;

	background: var(--color-yellow);
	display: flex;
	align-items: center;
	justify-content: center;

	font-size: clamp(16px, 2.5vw, 24px);
	font-weight: 700;
	color: var(--color-muted);
	text-align: center;
}

/* ==================================================
   05. Grid
================================================== */

.bw-front__grid {
	max-width: var(--bw-max-width);
	margin: 0 auto;
	padding-inline: 24px;

	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px;
}

/* ==================================================
   06. Thumbnail Card
================================================== */

.bw-thumb-card {
	position: relative;
}

.bw-thumb-card__link {
	display: block;
	position: relative;
	background: var(--color-gray);
	overflow: hidden;
}

.bw-thumb-card__image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.bw-thumb-card__link:hover img {
	transform: scale(1.03);
}

.bw-thumb-card__number {
	position: absolute;
	top: 0;
	left: 0;

	font-size: clamp(24px, 5vw, 40px);
	font-weight: 800;
	color: #fff;
	line-height: 1;
}

/* ==================================================
   07. Vote Button
================================================== */

.bw-front__action {
	margin-top: 100px;
	margin-bottom: 150px;
	text-align: center;
	padding-inline: 24px;
}

.bw-button {
	width: min(400px, 100%);
	height: clamp(72px, 15vw, 100px);

	display: inline-flex;
	align-items: center;
	justify-content: center;

	font-size: clamp(18px, 4vw, 36px);
	font-weight: 700;

	background: var(--color-yellow);
	color: var(--color-muted);
	border-radius: 12px;
}

/* ==================================================
   08. Footer
================================================== */

.bw-footer {
	height: 150px;
	background: #efefef;

	display: flex;
	align-items: center;
	justify-content: center;
}

.bw-footer__inner {
	text-align: center;
	padding-inline: 24px;
}

.bw-footer__company {
	font-size: clamp(18px, 3vw, 24px);
	font-weight: 700;
	margin-bottom: 20px;
}

.bw-footer__copyright {
	font-size: clamp(14px, 2.5vw, 16px);
}

/* ==================================================
   09. Accessibility補足
================================================== */

/* タップ領域確保 */
a,
button {
	min-height: 44px;
}
