@charset "UTF-8";
/**
 * archive-book.css
 * 書籍アーカイブページのスタイル
 */
.book-section{
  background-color: #e7f3ff;
}
/* ラッパー */
.archive-book-wrapper {
	
	padding: 60px 20px;
}

.archive-book-container {
	max-width: 1040px;
	margin: 0 auto;
}

/* ページタイトル */
.archive-book-title {
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 50px;
	color: #000;
  letter-spacing: 0.1em;
}

/* セクション */
.archive-book-section {
	margin-bottom: 80px;
  position: relative;
}
/* 区切り線 */
.archive-book-section:not(:last-child)::after {
  content: "";
  display: block;
	height: 1px;
	background: repeating-linear-gradient(
		90deg,
		#0a68b5,
		#0a68b5 3px,
		transparent 3px,
		transparent 6px
	);
	margin: 80px 0;
}

/* .archive-book-section-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 30px;
	color: #333;
	padding-bottom: 15px;
	border-bottom: 3px solid #0066cc;
	display: inline-block;
} */

/* グリッドレイアウト */
.archive-book-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* スマートフォン（2カラム） */
@media (max-width: 768px) {
	.archive-book-grid {
		padding: 0 calc(80 * (100vw / 600));
		grid-template-columns: repeat(2, 1fr);
		gap: calc(20 * (100vw / 600));
	}
	.archive-book-card__image {
		width: 46% !important;
    height: 80% !important;
		display: block;
	}

	.archive-book-title {
		font-size: calc(14px * (100vw / 600));
		margin-bottom: 40px;
	}

	.archive-book-section-title {
		font-size: 18px;
		margin-bottom: 20px;
	}

	.archive-book-divider {
		margin: 40px 0;
	}
}

/* タブレット（3カラム） */
@media (max-width: 1024px) and (min-width: 769px) {
	.archive-book-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* カード */
.archive-book-card {
	background: white;
	border: 2px solid #0099cc;
	border-radius: 12px;
	overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.archive-book-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
}

.archive-book-card__link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* 画像 */
/* .archive-book-card__image-wrapper {
	overflow: hidden;
	aspect-ratio: 200 / 280;
	background-color: #fff;
	flex-shrink: 0;
} */

.archive-book-card__image {
	width: 100px;
	height: 140px;
  margin: 35px auto 0;
	object-fit: contain;
	display: block;
}

.archive-book-card__image--placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #e8e8e8;
	color: #999;
	font-size: 14px;
}

/* コンテンツ */
.archive-book-card__content {
	padding: 15px 0 50px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #0a68b5;
}

.archive-book-card__author {
	font-size: 12px;
	margin: 0 0 5px 0;
	font-weight: 600;
}

.archive-book-card__title {
	font-size: 14px;
	font-weight: 700;
	margin: 0;
	line-height: 1.4;
	flex-grow: 1;
  position: relative;
  text-align: center;
  word-break: break-word;
}
.archive-book-card__subtitle {
	font-size: 12px;
  letter-spacing: -0.07em;
	margin: 0;
	line-height: 1.3;
  text-align: center;
  display: inline;
}

.archive-book-card__meta {
	font-size: 11px;
	color: #999;
	margin: 0;
	margin-top: auto;
  display: none;
}

/* スマートフォン調整 */
@media (max-width: 768px) {
	.archive-book-card__content {
		padding: 12px;
	}

	.archive-book-card__author {
		font-size: 11px;
	}

	.archive-book-card__title {
		font-size: 13px;
	}

	.archive-book-card__subtitle {
		font-size: 11px;
	}

	.archive-book-card__meta {
		font-size: 10px;
	}
}

  /**
 * single-book.css
 * 書籍詳細ページのスタイル
 */

/* ===================================
   グローバル
   =================================== */

.book-detail-wrapper {
	background-color: #e7f3ff;
}
.book-detail-inner{
	max-width: 1040px;
	margin: 0 auto;
	background-color: #ffffff;
	/* padding: 0 20px 60px 20px; */
}
/* ===================================
   ヘロセクション（① ② ③ ④ ⑤）
   =================================== */

/* .book-detail-hero {
	background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
	padding: 60px 20px;
	position: relative;
	overflow: hidden;
}

.book-detail-hero::before {
	content: '';
	position: absolute;
	top: -100px;
	right: -100px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(0, 153, 204, 0.05);
	pointer-events: none;
}

.book-detail-hero::after {
	content: '';
	position: absolute;
	bottom: -50px;
	left: -50px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(0, 153, 204, 0.03);
	pointer-events: none;
}

.book-detail-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 300px 1fr 280px;
	gap: 40px;
	align-items: start;
	position: relative;
	z-index: 1;
} */

/* ① 書籍画像 */
.book-detail-hero__image-wrapper {
	position: sticky;
	top: 20px;
}

.book-detail-hero__image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-detail-hero__image:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 102, 204, 0.2);
}

.book-detail-hero__image--placeholder {
	width: 100%;
	aspect-ratio: 200 / 280;
	background-color: #e8e8e8;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 14px;
}

/* ② ③ ④ 書籍情報 */
.book-detail-hero__content {
	padding: 0;
}

.book-detail-hero__author {
	font-size: 14px;
	color: #0099cc;
	font-weight: 600;
	margin: 0 0 10px 0;
	letter-spacing: 0.5px;
}

.book-detail-hero__title {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 15px 0;
	color: #333;
	word-break: break-word;
}

.book-detail-hero__subtitle {
	font-size: 16px;
	color: #666;
	line-height: 1.6;
	margin: 0 0 20px 0;
}

.book-detail-hero__meta {
	font-size: 13px;
	color: #999;
	margin: 0;
	padding-top: 15px;
	border-top: 1px solid #e0e0e0;
}

/* ⑤ ナビゲーター情報 */
.book-detail-navigator {
	background-color: #0066cc;
	color: white;
	padding: 25px 20px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
	position: sticky;
	top: 20px;
}

.book-detail-navigator__label {
	font-size: 12px;
	letter-spacing: 1px;
	margin: 0 0 8px 0;
	opacity: 0.9;
}

.book-detail-navigator__name {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	word-break: break-word;
}

/* ===================================
   タブレット（992px以下）
   =================================== */

@media (max-width: 992px) {
	.book-detail-hero__inner {
		grid-template-columns: 250px 1fr;
		gap: 30px;
	}

	.book-detail-navigator {
		position: relative;
		top: auto;
		grid-column: 1 / -1;
		margin-top: 20px;
	}

	.book-detail-hero__title {
		font-size: 28px;
	}
}

/* ===================================
   スマートフォン（768px以下）
   =================================== */

@media (max-width: 768px) {
	.book-detail-hero {
		padding: 40px 20px;
	}

	.book-detail-hero__inner {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.book-detail-hero__image-wrapper {
		position: relative;
		top: auto;
	}

	.book-detail-hero__content {
		order: 2;
	}

	.book-detail-hero__title {
		font-size: 24px;
	}

	.book-detail-hero__subtitle {
		font-size: 14px;
	}

	.book-detail-navigator {
		position: relative;
		top: auto;
		order: 3;
	}
}

/* ===================================
   セクション（⑥ ⑦）
   =================================== */

.book-detail-section {
	padding: 60px 20px;
	border-top: 2px solid #e0e0e0;
	background-color: #ffffff;
}

.book-detail-section--light {
	background-color: #f8f9fa;
}

.book-detail-section__inner {
	max-width: 900px;
	margin: 0 auto;
}

.book-detail-section__title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 30px 0;
	color: #333;
	position: relative;
	padding-bottom: 15px;
	border-bottom: 3px solid #0066cc;
	display: inline-block;
}

.book-detail-section__content {
	font-size: 15px;
	line-height: 2;
	color: #555;
	margin: 0;
}

.book-detail-section__content p {
	margin: 0 0 15px 0;
}

.book-detail-section__content p:last-child {
	margin-bottom: 0;
}

/* ===================================
   スマートフォン
   =================================== */

@media (max-width: 768px) {
	.book-detail-section {
		padding: 40px 20px;
	}

	.book-detail-section__title {
		font-size: 18px;
		margin-bottom: 20px;
	}

	.book-detail-section__content {
		font-size: 14px;
		line-height: 1.8;
	}
}

/* ===================================
   ダークモード対応（オプション）
   =================================== */

@media (prefers-color-scheme: dark) {
	.book-detail-hero {
		background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
	}

	.book-detail-hero__title {
		color: #f5f5f5;
	}

	.book-detail-hero__author {
		color: #66ccff;
	}

	.book-detail-hero__subtitle {
		color: #ccc;
	}

	.book-detail-hero__meta {
		color: #999;
		border-top-color: #444;
	}

	.book-detail-section {
		background-color: #1a1a1a;
		border-top-color: #444;
		color: #f5f5f5;
	}

	.book-detail-section__content {
		color: #ccc;
	}

	.book-detail-section--light {
		background-color: #262626;
	}

	.book-detail-section__title {
		color: #f5f5f5;
	}
}