@charset "utf-8";

/*-----------------------------------------------------------------------------------*/
/*  JUN KAWABATA SHOP
/*  0. Tokens
/*-----------------------------------------------------------------------------------*/

:root {
	--color-bg:      #ffffff;
	--color-text:    #000000;
	--color-sub:     #6b6b6b;
	--color-meta:    #9a9a9a;
	--color-line:    #dcdcdc;
	--color-frame:   rgba(0, 0, 0, 0.08);

	--font-base: "mplus-1c-medium", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium",
	             "Noto Sans JP", "Meiryo", sans-serif;

	--gutter: clamp(20px, 5vw, 50px);
	--jacket: 320px;   /* CD / PHOTO BOOK の画像ブロック幅 */
	--still:  420px;   /* DOCUMENTARY の画像ブロック幅 */
}

/*-----------------------------------------------------------------------------------*/
/*  1. Reset
/*-----------------------------------------------------------------------------------*/

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

html, body, div, span, h1, h2, h3, h4, h5, h6, p,
a, img, ul, ol, li, header, footer, main, section, article, figure {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	vertical-align: baseline;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	width: 100%;
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-base);
	font-size: 13px;
	font-style: normal;
	line-height: 1.7;
	text-align: left;
	font-feature-settings: "palt" 1;   /* 和文の字間を詰めて見出しを引き締める */
	-webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible {
	outline: 1px solid var(--color-text);
	outline-offset: 4px;
}

::selection {
	background: var(--color-text);
	color: var(--color-bg);
}

/*-----------------------------------------------------------------------------------*/
/*  2. Layout
/*-----------------------------------------------------------------------------------*/

header,
main,
footer {
	width: 100%;
	max-width: 760px;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

header {
	padding-top: 64px;
	padding-bottom: 24px;
}

main {
	padding-bottom: 120px;
}

h1 {
	font-size: clamp(19px, 3.4vw, 26px);
	letter-spacing: 0.14em;
	line-height: 1.3;
}

/*-----------------------------------------------------------------------------------*/
/*  3. Category — スクロール中も見出しが残る
/*-----------------------------------------------------------------------------------*/

.category {
	position: sticky;
	top: 0;
	z-index: 2;
	margin-top: 80px;
	padding-top: 16px;
	padding-bottom: 10px;
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--color-line);
}

.category:first-of-type {
	margin-top: 32px;
}

.category h2 {
	font-size: 17px;
	letter-spacing: 0.18em;
	line-height: 1.4;
}

/*-----------------------------------------------------------------------------------*/
/*  4. Items — 画像の下にテキスト
/*-----------------------------------------------------------------------------------*/

.list {
	margin-top: 44px;
}

.item {
	margin-bottom: 64px;
}

.item:last-child {
	margin-bottom: 0;
}

.item__images {
	display: flex;
	gap: 10px;
	width: 100%;
	max-width: var(--jacket);
}

.list--wide .item__images {
	max-width: var(--still);
}

.item__images a {
	display: block;
	flex: 1 1 0;
}

.item__images img {
	width: 100%;
	border: 1px solid var(--color-frame);   /* 白場のジャケットが背景に溶けないように */
	transition: opacity 0.25s ease;
}

.item__images a:hover img,
.item__images a:focus-visible img {
	opacity: 0.62;
}

.item__body {
	margin-top: 14px;
	max-width: var(--jacket);   /* テキストの右端を画像の右端に揃える */
}

.list--wide .item__body {
	max-width: var(--still);
}

.item__title {
	font-size: 12.5px;
	letter-spacing: 0.06em;
	line-height: 1.65;
	text-wrap: pretty;
}

.item__text {
	margin-top: 6px;
	font-size: 11px;
	line-height: 1.9;
	color: var(--color-sub);
	text-wrap: pretty;
}

.item__meta {
	margin-top: 12px;
	font-size: 10px;
	letter-spacing: 0.12em;
	line-height: 1.6;
	color: var(--color-meta);
}

.item__link {
	display: inline-block;
	margin-top: 6px;
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--color-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition: color 0.2s ease;
}

.item__link:hover {
	color: var(--color-sub);
}

/*-----------------------------------------------------------------------------------*/
/*  5. Footer
/*-----------------------------------------------------------------------------------*/

footer {
	padding-top: 24px;
	padding-bottom: 28px;
	border-top: 1px solid var(--color-line);
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--color-meta);
	text-align: center;
}

/*-----------------------------------------------------------------------------------*/
/*  6. Small screens
/*-----------------------------------------------------------------------------------*/

@media (max-width: 700px) {
	header {
		padding-top: 40px;
		padding-bottom: 16px;
	}

	.category {
		margin-top: 60px;
		padding-top: 14px;
	}

	.list {
		margin-top: 32px;
	}

	.item {
		margin-bottom: 52px;
	}

	.item__images,
	.list--wide .item__images,
	.item__body,
	.list--wide .item__body {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.item__images img,
	.item__link {
		transition: none;
	}
}
