/*
Theme Name: SAKIYOMI 360
Theme URI: https://sakiyomi360.jp/
Author: SAKIYOMI 360
Description: トレーディングカードの抽選、新弾、再販、グッズ、価格情報を扱う総合情報サイト向けテーマです。
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sakiyomi360
*/

:root {
	--s360-blue-900: #082f57;
	--s360-blue-800: #0b477d;
	--s360-blue-700: #0c63a6;
	--s360-blue-100: #dff2ff;
	--s360-blue-050: #f2f9ff;
	--s360-text: #17283a;
	--s360-muted: #607286;
	--s360-border: #d9e5ef;
	--s360-surface: #ffffff;
	--s360-bg: #f7fbfe;
	--s360-orange: #e96c16;
	--s360-radius: 14px;
	--s360-shadow: 0 10px 28px rgba(8, 47, 87, .08);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--s360-bg);
	color: var(--s360-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
	line-height: 1.75;
}

body.admin-bar .s360-site-header {
	top: 32px;
}

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

a {
	color: var(--s360-blue-700);
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

a:hover {
	color: var(--s360-blue-900);
}

button,
input,
select,
textarea {
	font: inherit;
}

.s360-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.s360-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--s360-border);
	backdrop-filter: blur(10px);
}

.s360-header-main {
	display: grid;
	grid-template-columns: auto minmax(240px, 1fr) auto;
	gap: 22px;
	align-items: center;
	padding: 18px 0 14px;
}

.s360-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--s360-blue-900);
	font-size: 1.28rem;
	font-weight: 800;
	letter-spacing: .02em;
	text-decoration: none;
	white-space: nowrap;
}

.s360-brand-wrap,
.s360-brand-wrap .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.s360-brand-mark {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--s360-blue-700), #42b8e9);
	color: #fff;
	font-size: .78rem;
	font-weight: 800;
}

.s360-brand-wrap .custom-logo {
	width: auto;
	max-height: 44px;
}

.s360-search {
	display: flex;
	min-width: 0;
}

.s360-search input[type="search"] {
	width: 100%;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid var(--s360-border);
	border-right: 0;
	border-radius: 999px 0 0 999px;
	background: var(--s360-blue-050);
	color: var(--s360-text);
}

.s360-search button {
	padding: 10px 18px;
	border: 0;
	border-radius: 0 999px 999px 0;
	background: var(--s360-blue-700);
	color: #fff;
	cursor: pointer;
}

.s360-header-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.s360-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 16px;
	border: 1px solid var(--s360-border);
	border-radius: 999px;
	background: #fff;
	color: var(--s360-blue-800);
	font-weight: 700;
	text-decoration: none;
}

.s360-button--primary {
	border-color: var(--s360-blue-700);
	background: var(--s360-blue-700);
	color: #fff;
}

.s360-nav-toggle {
	display: none;
	padding: 8px 12px;
	border: 1px solid var(--s360-border);
	border-radius: 8px;
	background: #fff;
	color: var(--s360-blue-900);
}

.s360-primary-nav {
	border-top: 1px solid var(--s360-border);
}

.s360-primary-nav ul,
.s360-game-nav ul {
	display: flex;
	gap: 24px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.s360-primary-nav a,
.s360-game-nav a {
	display: block;
	padding: 11px 0;
	color: var(--s360-text);
	font-size: .94rem;
	font-weight: 700;
	text-decoration: none;
}

.s360-game-nav {
	background: var(--s360-blue-900);
}

.s360-game-nav a {
	color: #fff;
	font-size: .88rem;
}

.s360-site-main {
	padding: 34px 0 70px;
}

.s360-urgent {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	margin-bottom: 24px;
	padding: 14px 18px;
	border: 1px solid #ffd9be;
	border-radius: var(--s360-radius);
	background: #fff8f2;
}

.s360-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--s360-blue-100);
	color: var(--s360-blue-900);
	font-size: .78rem;
	font-weight: 800;
}

.s360-badge--urgent {
	background: #ffe5d2;
	color: #8e3500;
}

.s360-meta,
.s360-section-link,
.s360-card-excerpt {
	color: var(--s360-muted);
	font-size: .9rem;
}

.s360-home-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
	gap: 24px;
}

.s360-feature,
.s360-content-card,
.s360-article,
.s360-empty {
	border: 1px solid var(--s360-border);
	border-radius: var(--s360-radius);
	background: var(--s360-surface);
	box-shadow: var(--s360-shadow);
}

.s360-feature {
	overflow: hidden;
}

.s360-feature-image {
	display: block;
	aspect-ratio: 16 / 8;
	background: linear-gradient(135deg, var(--s360-blue-100), #c7f0fa);
}

.s360-feature-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.s360-feature-content {
	padding: 22px;
}

.s360-feature h1,
.s360-feature h2 {
	margin: 10px 0 8px;
	font-size: clamp(1.45rem, 3vw, 2.15rem);
	line-height: 1.35;
}

.s360-feature h1 a,
.s360-feature h2 a,
.s360-content-card h2 a,
.s360-content-card h3 a {
	color: var(--s360-text);
	text-decoration: none;
}

.s360-latest-panel {
	padding: 18px;
	border-top: 4px solid var(--s360-blue-700);
	border-radius: var(--s360-radius);
	background: var(--s360-surface);
	box-shadow: var(--s360-shadow);
}

.s360-latest-panel h2 {
	margin: 0 0 10px;
	font-size: 1.2rem;
}

.s360-latest-row {
	padding: 13px 0;
	border-bottom: 1px solid var(--s360-border);
}

.s360-latest-row:last-child {
	border-bottom: 0;
}

.s360-latest-row a {
	color: var(--s360-text);
	font-weight: 700;
	text-decoration: none;
}

.s360-section {
	margin-top: 38px;
}

.s360-section-heading {
	display: flex;
	gap: 16px;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 16px;
}

.s360-section-heading h1,
.s360-section-heading h2 {
	margin: 0;
	color: var(--s360-blue-900);
	font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.s360-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.s360-content-card {
	overflow: hidden;
}

.s360-card-image {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--s360-blue-100);
}

.s360-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.s360-card-body {
	padding: 17px;
}

.s360-content-card h2,
.s360-content-card h3 {
	margin: 8px 0;
	font-size: 1.08rem;
	line-height: 1.5;
}

.s360-lottery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.s360-lottery-card {
	padding: 18px;
	border-top: 4px solid var(--s360-blue-700);
	border-radius: 0 0 var(--s360-radius) var(--s360-radius);
	background: var(--s360-surface);
	box-shadow: var(--s360-shadow);
}

.s360-lottery-card h3 {
	margin: 10px 0;
	font-size: 1.06rem;
}

.s360-lottery-card h3 a {
	color: var(--s360-text);
	text-decoration: none;
}

.s360-deadline {
	margin: 7px 0 0;
	color: var(--s360-muted);
	font-size: .9rem;
}

.s360-split {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 24px;
}

.s360-simple-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.s360-simple-list li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--s360-border);
}

.s360-simple-list a {
	color: var(--s360-text);
	font-weight: 700;
	text-decoration: none;
}

.s360-price-box {
	padding: 22px;
	border-radius: var(--s360-radius);
	background: linear-gradient(135deg, var(--s360-blue-900), var(--s360-blue-700));
	color: #fff;
}

.s360-price-box h2,
.s360-price-box p {
	margin-top: 0;
}

.s360-price-box .s360-button {
	border-color: #fff;
	background: #fff;
	color: var(--s360-blue-900);
}

.s360-article {
	padding: clamp(22px, 4vw, 48px);
}

.s360-article-header {
	margin-bottom: 28px;
}

.s360-article-title {
	margin: 10px 0;
	font-size: clamp(1.7rem, 4vw, 2.65rem);
	line-height: 1.35;
}

.s360-article-content > * {
	max-width: 780px;
	margin-right: auto;
	margin-left: auto;
}

.s360-article-content > .alignwide {
	max-width: 1040px;
}

.s360-article-content h2 {
	margin-top: 2.2em;
	padding-bottom: .35em;
	border-bottom: 3px solid var(--s360-blue-100);
	color: var(--s360-blue-900);
}

.s360-lottery-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 22px 0 30px;
	padding: 18px;
	border: 1px solid var(--s360-border);
	border-radius: var(--s360-radius);
	background: var(--s360-blue-050);
}

.s360-lottery-detail dt {
	color: var(--s360-muted);
	font-size: .82rem;
	font-weight: 700;
}

.s360-lottery-detail dd {
	margin: 3px 0 0;
	font-weight: 700;
}

.s360-pagination {
	margin-top: 28px;
}

.s360-pagination .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.s360-pagination .page-numbers {
	display: inline-grid;
	min-width: 40px;
	min-height: 40px;
	place-items: center;
	padding: 6px 10px;
	border: 1px solid var(--s360-border);
	border-radius: 8px;
	background: #fff;
	text-decoration: none;
}

.s360-pagination .current {
	border-color: var(--s360-blue-700);
	background: var(--s360-blue-700);
	color: #fff;
}

.s360-site-footer {
	padding: 36px 0 92px;
	background: var(--s360-blue-900);
	color: #d9edff;
}

.s360-footer-grid {
	display: flex;
	gap: 20px;
	align-items: start;
	justify-content: space-between;
}

.s360-site-footer a {
	color: #fff;
}

.s360-mobile-bottom {
	display: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 900px) {
	body.admin-bar .s360-site-header {
		top: 46px;
	}

	.s360-header-main {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.s360-header-main .s360-search {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.s360-header-actions .s360-button:first-child {
		display: none;
	}

	.s360-nav-toggle {
		display: inline-flex;
	}

	.s360-primary-nav {
		display: none;
	}

	.s360-primary-nav.is-open {
		display: block;
	}

	.s360-primary-nav ul {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding: 8px 0 14px;
	}

	.s360-game-nav ul {
		overflow-x: auto;
		gap: 20px;
	}

	.s360-game-nav li {
		flex: 0 0 auto;
	}

	.s360-home-lead,
	.s360-split {
		grid-template-columns: 1fr;
	}

	.s360-card-grid,
	.s360-lottery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.s360-container {
		width: min(100% - 24px, 1180px);
	}

	.s360-site-main {
		padding-top: 20px;
	}

	.s360-header-main {
		gap: 12px;
		padding-top: 12px;
	}

	.s360-brand {
		font-size: 1.02rem;
	}

	.s360-brand-mark {
		width: 34px;
		height: 34px;
		font-size: .7rem;
	}

	.s360-header-actions .s360-button {
		display: none;
	}

	.s360-urgent {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.s360-card-grid,
	.s360-lottery-grid {
		grid-template-columns: 1fr;
	}

	.s360-lottery-details {
		grid-template-columns: 1fr;
	}

	.s360-footer-grid {
		flex-direction: column;
	}

	.s360-mobile-bottom {
		position: fixed;
		z-index: 120;
		bottom: 0;
		left: 0;
		display: grid;
		width: 100%;
		grid-template-columns: repeat(5, 1fr);
		border-top: 1px solid var(--s360-border);
		background: #fff;
		box-shadow: 0 -8px 22px rgba(8, 47, 87, .08);
	}

	.s360-mobile-bottom a {
		padding: 10px 3px;
		color: var(--s360-blue-900);
		font-size: .72rem;
		font-weight: 700;
		text-align: center;
		text-decoration: none;
	}
}
