@charset "UTF-8";

/*!
Theme Name: エコティクノート
Description: エコティクノートのテーマ
Theme URI: https://wp-cocoon.com/
Author: でしまる
Author URI: https://nelog.jp/
Template:	 cocoon-master
Version:		1.1.3
*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
	/*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
	/*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
	/*必要ならばここにコードを書く*/
}


/************************************
** 全体
************************************/
a:hover {
	color:#333
}


/************************************
** ヘッダー
************************************/
/* 大枠 */
#header-in {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

a:hover {
	opacity: .5;
	transition: opacity 0.2s, transform 0.3s;
}

/* ロゴエリア */
.header-logo {
	padding: 0.5rem 0;
}

/* ユーティリティナビ */
.utility-nav ul {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
	font-size: 0.8rem;
	margin: 0;
	padding: 0.5rem 1rem;
	padding-right: 0;
	list-style: none;
	font-size: 0.8rem;
	font-weight: bold;
}
.utility-nav li {
	border-right: 1px solid #888;
	padding-right: 1rem;
	line-height: 0.9rem;
}
.utility-nav li:last-of-type {
	border-right-style: none;
	padding-right: 0;
}
.utility-nav a {
	color: #333;
	text-decoration: none;
}

.utility-nav .sns-list {
	padding: 0;
	align-items: center;
	height: 60px
}
.utility-nav .sns-list li {
	border-right: none;
}
.sns-list li {
	padding-right: 0;
}

.sns-list img {
	width: 40px;
}

/* プライマリナビ */
.primary-nav {
	background-color: #fff;
	width: 100%;
	border-top: 1px solid #888;
	border-bottom: 1px solid #888;
}
.primary-nav ul {
	display: flex;
	align-items: center;
	margin: 0 auto;
	padding: 0.5rem 0;
	list-style: none;
	color: #333;
	font-size: 1rem;
	font-weight: bold;
}
.primary-nav ul li {
	width: calc((100% - 4rem) / 7);
}
.primary-nav ul li:nth-of-type(5) {
	width: calc((100% - 4rem) / 7 + 1rem);
}
.primary-nav ul li:nth-of-type(7) {
	border-left: 1px solid #888;
	padding-left: 1em;
}
.primary-nav ul li:nth-of-type(8) {
	width: 3rem;
	text-align: right;
}
.primary-nav a {
	color: #333;
	text-decoration: none;
}

.pn-dropdown span,
.pn-search i {
	cursor: pointer;
}
.pn-dropdown span:after {
	border-bottom: 0;
	border-left: .3em solid transparent;
	border-right: .3em solid transparent;
	border-top: .3em solid;
	content: "";
	display: inline-block;
	margin-left: .255em;
	vertical-align: .255em;
}
.pn-dropdown span.pn-selected:after {
	border-bottom: .3em solid;
	border-left: .3em solid transparent;
	border-right: .3em solid transparent;
	border-top: 0;
	content: "";
	display: inline-block;
	margin-left: .255em;
	vertical-align: .255em;
}

.primary-nav_other {
	background-color: #fff;
	width: 100%;
	border-bottom: 1px solid #888;
	position: absolute;
	z-index: 1;
	font-size: 1rem;
	display: none;
}
.primary-nav_other ul {
	display: flex;
	align-items: center;
	margin: 0 auto;
	padding: 0.5rem 0;
	list-style: none;
	color: #333;
	justify-content: center;
	line-height: 1.2rem;
	font-size: 1rem;
	font-weight: bold;
}
.primary-nav_other ul li {
	padding: 0 4rem;
}
.primary-nav_other ul li:last-of-type {
	border-left: 1px solid #888;
}
.primary-nav_other a {
	color: #333;
	text-decoration: none;
}

.header-hamburger-menu,
.header-seach-icon {
	display: none;
}

@media screen and (max-width: 480px){
	.primary-nav ,
	.utility-nav {
		display: none;
	}
	.header-logo {
		padding: 0;
		height: 60px;
	}
	.header-logo img {
		height: 100%;
		width: auto;
	}
	
	#header-in {
		align-items: stretch;
		padding: 10px 0;
		border-bottom: 1px solid #000;
	}
	.header-hamburger-menu,
	.header-seach-icon {
		display: block;
		display: flex;
		align-items: center;
	}
	.header-seach-icon {
		font-size: 1.8rem ;
		margin-right: 10px;
	}
}

/* スクロール対応 */
/* ヘッダーの基本スタイル */
#header-container {
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	
	/* 🔥 修正：特定のプロパティのみアニメーション */
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
				background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
				box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	
	/* 🔥 削除：初期のtransformは不要 */
	/* transform: translateY(0); */
}

/* ヘッダー非表示状態 */
#header-container.header-hidden {
	transform: translateY(-100%);
}

/* 最上部での表示状態 */
#header-container.header-top {
	background: rgba(255, 255, 255, 1);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: none;
}

/* ヘッダー表示状態（スクロール中） */
#header-container.header-visible {
	position: fixed;
	transform: translateY(0);
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ボディの上部マージン調整 */
body {
	padding-top: 0; /* 初期状態 */
}

body.header-fixed {
	padding-top: var(--header-height, 80px); /* ヘッダーの高さ分のスペース */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	body.header-fixed {
		padding-top: var(--header-height-mobile, 60px);
	}
}

/* PC版（768px以上）での#header制御 */
@media (min-width: 768px) {
	/* スクロール中は#headerを非表示 */
	#header-container.header-visible #header,
	#header-container.header-hidden #header {
		display: none;
		opacity: 0;
		visibility: hidden;
	}
	
	/* 最上部では#headerを表示 */
	#header-container.header-top #header {
		display: block;
		opacity: 1;
		visibility: visible;
		transition: opacity 0.3s ease;
	}
}

/* モバイル版では#headerを常に表示 */
@media (max-width: 767px) {
	#header {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
	}
}

/* 検索エリア */
/* 🔥 style.css の検索エリア部分を以下に置き換え */
#serch_background-area {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#serch_background-area.active {
	opacity: 1;
	visibility: visible;
}

#serch_background-area_content {
	width: 90%;
	max-width: 600px;
	margin: 0 auto;
	position: relative;
}

#serch-article-area {
	background-color: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	width: 100%;
	overflow: hidden;
	opacity: 1;
	padding: 30px;
	padding-left: 25px;
	padding-bottom: 25px;
	transform: translateY(-20px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#serch_background-area.active #serch-article-area {
	transform: translateY(0);
}

.modal-searchForm {
	position: relative;
	width: 100%;
	display: flex;
	border: 2px solid #000;
	border-radius: 12px;
	overflow: hidden;
	background: #f8f9fa;
	transition: all 0.3s ease;
}

.modal-searchForm:focus-within {
	border-color: #000;
	background: white;
	box-shadow: 0 0 0 3px #f5f5f5;
}

.modal-searchForm_input {
	flex: 1;
	padding: 15px 20px;
	border: none;
	background: transparent;
	font-size: 16px;
	outline: none;
	color: #333;
}

.modal-searchForm_input::placeholder {
	color: #999;
}

.modal-searchForm_button {
	background-color: #000;
	border: none;
	width: 60px;
	height: 54px;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	position: relative;
}

.modal-searchForm_button:hover {
	transform: scale(1.05);
}

.search-close {
	position: absolute;
	top: 0;
	right: 5px;
	background: none;
	border: none;
	font-size: 24px;
	color: #333;
	cursor: pointer;
	padding: 5px;
	border-radius: 4px;
	transition: all 0.2s ease;
	z-index: 1;
}

.search-close:hover {
	background: #f0f0f0;
}

body.search-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	#serch_background-area_content {
		width: 95%;
	}

	#serch-article-area {
		padding: 20px;
	}

	.modal-searchForm_input {
		padding: 12px 15px;
		font-size: 16px;
	}

	.modal-searchForm_button {
		width: 50px;
		height: 46px;
	}

	.search-title {
		font-size: 18px;
		margin-bottom: 15px;
	}
}


/************************************
** フッター
************************************/
#footer {
	border-top: 1px solid #e3e4e5;
	padding: 3rem 0 2rem;
	background-color: #000;
	color: #fff;
}
#footer a {
	color: #fff;
	text-decoration: none;
}

.footer-main,
.footer-bottom {
	max-width: 1256px;
	margin: 0 auto;
}

.footer-main {
	display: flex;
	justify-content: space-between;
}
.footer-nav {
	display: flex;
	margin-bottom: 1rem;
}
.footer-nav h2 {
	font-size: 0.9rem;
	width: 6em;
	font-weight: normal;
	color: #fff;
}
.footer-item-list {
	display: flex;
	flex-wrap: wrap;
	list-style-type: none;
	font-size: 0.9rem;
}
.footer-item-list li {
	font-weight: bold;
}
.footer-item-list li:after {
	content: "/";
	padding: 0 .4em;
}
.footer-item-list li:last-of-type:after {
	content: "";
}

.footer-main-right {
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid #e3e4e5;
	padding: 0;
	padding-top: 1rem;
	margin-top: 1rem;
}

.footer-links-list {
	display: flex;
	flex-wrap: wrap;
	list-style-type: none;
	padding: 0;
	font-size: 0.8rem;
}
.footer-links-list li:after {
	content: "|";
	padding: 0 .6em;
}
.footer-links-list li:last-of-type:after {
	content: "";
}

.footer-logo {
	max-width: 280px;
	margin-bottom: 1rem;
}
.footer-sns {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}
.footer-sns a {
	display: block;
	padding: 0 0.5em;
}
.footer-sns a:hover svg path { fill: #1da1f2; }

@media screen and (max-width: 480px){
	#footer {
		padding-top: 2rem;
	}
	.footer-main,
	.footer-nav,
	.footer-bottom {
		display: block;
	}
	.footer-logo img {
		width: 100%;
	}
	.footer-nav {
		padding: 0 15px;
		margin-bottom: 2rem;
	}
	ul.footer-item-list {
		padding-left: 0;
	}
	.footer-main-right {
		margin-bottom: 1.4rem;
		padding: 0 15px;
		display: flex;
		justify-content: space-between;
	}
	.footer-logo {
		width: 60%;
	}
	.footer-links-list {
		padding: 0 15px 20px;
		margin: 1rem 0;
	}
	.footer-links-list li {
		width: 50%;
	}
	.footer-links-list li:after {
		content: "";
		padding: 0;
	}
	.footer-copyright {
		text-align: center;
	}
}


/************************************
** サイドバー
************************************/
.sidebar h2,
.sidebar h3 {
	background-color: #000;
	color: #fff;
}

.sidebar-article-wrap {
	text-decoration: none;
	color: #333;
	line-height: normal;
	display: block;
	margin-bottom: 15px;
}
.sidebar-article {
	display: flex;
	gap: 15px;
}
.sidebar-article-thumb {
	width: 40%;
}
.sidebar-article-thumb img {
	width: 100%;
}
.sidebar-article-content {
	width: 60%;
}
.sidebar-article-meta {
	font-size: 0.85rem;
	margin-bottom: 5px;
}
.sidebar-article-cat {
	display: block;
	color: #808080;
}
.sidebar h3.sidebar-article-title {
	background-color: transparent;
	color: #333;
	font-size: 0.9rem;
	margin: 0;
	padding: 0;
}

.sidebar .wp-block-categories-list li {
	border-bottom: 1px solid #c0c0c0;
}

/* -- SP用サイドバー -- */

/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* モバイルメニュードロワー */
.mobile-menu-drawer {
	position: fixed;
	top: 81px;
	left: 0;
	width: 100%;
	height: calc(100vh - 81px);
	background: white;
	z-index: 9999;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	display: flex;
	flex-direction: column;
	border: none;
	outline: none;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); /* 右側に軽い影 */
	padding: 0 1rem 4rem;
}

.mobile-menu-drawer.active {
	transform: translateX(0);
}

.mobile-menu-drawer h2 {
	font-weight: normal;
	font-size: 1rem;
	padding: 0.7rem;
	background-color: #000;
	color: #fff;
	font-weight: 700;
	margin-top: 1rem;
}

/* カテゴリーメニュー */
.mobile-menu-categories {
	flex-shrink: 0;
}

.mobile-menu-item {
	display: block;
	padding: 15px 20px;
	color: #333;
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem;
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.2s ease;
}

/* ページメニュー */
.mobile-menu-page {
	display: block;
	padding: 15px 20px;
	color: #333;
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem;
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.2s ease;
}

/* SNSセクション */
.mobile-menu-sns {
	flex-shrink: 0;
	margin-top: 1rem;
}

.mobile-menu-sns-buttons {
	display: flex;
	gap: 0.5rem;
}

.mobile-sns-btn {
	width: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	transition: transform 0.2s ease;
}

@media (min-width: 768px) {
	.mobile-menu-overlay,
	.mobile-menu-drawer {
		display: none !important;
	}
}

/* SVG ハンバーガーメニューのアニメーション */
.header-hamburger-menu {
	transition: all 0.3s ease;
}

.hamburger-svg {
	width: 40px;
	height: 40px;
	transition: transform 0.3s ease;
}

.hamburger-line {
	fill: #333;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform-origin: 9.5px 21px;
}

/* アクティブ時（×状態）の変形 */
.header-hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0px, 0px);
}

.header-hamburger-menu.active .hamburger-line:nth-child(2),
.header-hamburger-menu.active .hamburger-line:nth-child(3) {
    opacity: 0;
}

.header-hamburger-menu.active .hamburger-line:nth-child(4) {
    transform: rotate(-45deg) translate(0px, 0px);
}


/************************************
** 共通
************************************/
/* 記事ページ h2 */
.article.post h2 {
	background-color: #000;
	color: #fff;
	position: relative;
}
.article.post .entry-content h2:after {
	position: absolute;
	content: '';
	left: 0;
	top: 0;
	border-width: 0 0 15px 15px;
	border-style: solid;
	border-color: #fff #fff #333;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
}
.article.post .entry-content .section-title-story:after,
.article.post .entry-content .section-title-characters:after,
.article.post .entry-content .section-title-epilogue:after,
.article.post .entry-content .section-title-glossary:after,
.article.post .entry-content .section-title-factcheck:after {
	border-style: none;
}

/* 固定ページ h2 */
.article.page h2 {
	background-color: transparent;
	color: #000;
	padding: 0;
	border-bottom: 1px solid #000;
	margin-top: 3rem;
	margin-bottom: 15px;
}


/************************************
** トップページ
************************************/
.home .main,
.archive.category .main,
.page-template-page-new-article .main,
.page-template-page-top-article .main {
	width: 100%;
}
.home .main,
.archive.category .main  {
	padding-left: 0;
	padding-right: 0;
}
@media (max-width: 600px) {
	.home .main,
	.archive.category .main {
		padding: 0 8px;
	}
}
/* スライド */
.hero-slider-container {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	overflow: hidden;
	/* セクション背景色なども必要なら */
}

.hero-slide {
	padding: 0 8px;
}
.hero-slide a {
	text-decoration: none;
	color: #333;
}
.hero-slide a:nth-of-type(1) {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 8;      /* ←これだけで親枠の高さが安定！ */
	width: 100%;
	position: relative;
}
.hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s, opacity 0.25s;
	margin-bottom: 10px;
}
.hero-slide a:hover img {
	transform: scale(1.05);
	opacity: 0.7;
}

.hero-slider-container a:hover img,
.main-article-card a.main-article-thumb:hover img {
	transform: scale(1.05);
	box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.slick-dots li button {
	font-size: 0;  /* 数字を完全に非表示 */
}
.slick-dots li button:before {
	content: '•';
	font-size: 28px;
	color: #555;
	opacity: 0.6;
}
.slick-dots li.slick-active button:before {
	color: #111;
	opacity: 1;
}

.slick-dots {
	display: flex !important;    /* 横並びで中央揃え */
	justify-content: center;
	align-items: center;
	gap: 10px;                   /* ドットの間隔 */
	list-style: none;
	padding: 0;
	margin: 0;
}
.slick-dots li {
	display: inline-block;       /* 横並びにする */
}
.slick-dots button {
	border-style: none;
	background-color: transparent;
}

a.hs-title {
	display: block;
	text-decoration: none;
	color: #333;
	font-weight: bold;
	line-height: 1.2;
	margin-top: 12px;   /* ←ここで画像との隙間をつくる！ */
}

.slick-arrow {
	position: absolute;
	border-style: none;
	z-index: 2;
	font-size: 0;
	opacity: 0.8;
}
.slick-prev.slick-arrow {
	left: 15px;
	top: 33%;
}
.slick-prev.slick-arrow:before {
	content: "＜";
	background-color: #333;
	color: #fff;
	font-size: 15px;
	display: block;
	padding: 30px 20px;
}
.slick-next.slick-arrow {
	right: 15px;
	top: 33%;
}
.slick-next.slick-arrow:after {
	content: "＞";
	background-color: #333;
	color: #fff;
	font-size: 15px;
	display: block;
	padding: 30px 20px;
}

/* メインタイトル */
.home-main-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
	padding: 20px 0;
	margin-bottom: 40px;
	border-top: 7px solid #000;
	
	font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
	letter-spacing: 0.04em;
}
.home-main-title span,
.home-main-title a,
.main-cat-link {
	display: block;
	color: #000;
	font-size: 2rem;
}
.home-main-title a,
.main-cat-link {
	text-decoration: none;
	font-size: 1.2rem;
	background-color: #000;
	color: #fff;
	border-radius: 6px;
	padding: 0 10px;
}
.main-cat-link {
	display: none;
}

@media screen and (max-width: 480px){
	.home-main-title a {
		display: none;
	}
	.main-cat-link {
		display: block;
		width: 100%;
		text-align: center;
		padding: 10px 0;
	}
}

/* 新着記事 */
.main-article-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);  /* 3列 */
	gap: 28px 22px;
	margin: 0 auto 50px;
	padding: 0;
}

.main-article-card {
	background: #fff;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.main-article-thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;  /* アイキャッチ画像の比率固定（なければobject-fit: coverも推奨） */
	overflow: hidden;
}
.main-article-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.main-article-info {
	padding: 10px 0 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.main-article-cat-title {
	display: block;
	font-size: 12px;
	color: #f32b56;
	font-weight: bold;
	letter-spacing: 0.05em;
}
.main-article-title {
	font-size: 1.15rem;
	font-weight: bold;
	line-height: 1.3;
	color: #222;
	margin-bottom: 12px;
	display: block;
	text-decoration: none;
	transition: color 0.2s;
}
.main-article-date {
	font-size: 12px;
	color: #888;
	margin-top: auto;
}

.mai-info_area {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}

@media (max-width: 900px) {
	.main-article-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.main-article-list { grid-template-columns: 1fr; }
	.main-article-card { border-radius: 8px; }
	.main-article-thumb img { border-radius: 8px 8px 0 0; }
}


/************************************
** カテゴリーページ
************************************/
/* h2 見出し */


/* エントリーカード */
.row {
	display: grid;
	gap: 24px; /* カード間の余白はお好みで */
	margin-bottom: 32px;
}
.row-1col {
	grid-template-columns: 1fr;
}
.row-3col {
	grid-template-columns: repeat(3, 1fr);
}
.row-1col_1-3 {
	grid-template-columns: 1fr;
}

.entry-article-wrap {
	text-decoration: none;
	color: #333;
	line-height: normal;
	position: relative;
}

.entry-article {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.row-3col .entry-article {
	grid-template-columns: 1fr;
}
.row-1col_1-3 .entry-article {
	grid-template-columns: 1fr 3fr;
}

.entry-article-thumb img {
	width: 100%;
}

.entry-article-content {
	
}

.entry-article-title {
	font-size: 1.2rem;
}
.entry-article-title:after {
	display: block;
	content: "";
	margin-top: 0.9rem;
	margin-bottom: 0.9rem;
	border-bottom: 1px solid rgb(5, 125, 188);
	width: 7rem;
}
.row-1col_1-3 .entry-article-title {
	font-size: 1.3rem;
}

.row-1col .entry-article-title {
	font-size: 2rem;
}
.entry-article-snippet {
	font-size: 1rem;
}
.row-1col .entry-article-snippet {
	font-size: 1.2rem;
}
.row-3col .entry-article-wrap {
	padding-bottom: 2rem;
}
.entry-article-meta {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	padding: 0.9rem 0 0;
	position: absolute;
	bottom: 0;
	width: 100%;
	color: #a9a9a9;
}
.row-1col .entry-article-meta {
	width: 50%;
}
.row-1col_1-3 .entry-article-meta {
	width: calc((100% * 3 / 4) - 24px);
}

@media (max-width: 600px) {
	.row {
		grid-template-columns: 1fr;
	}
	.row-1col .entry-article,
	.row-1col_1-3 .entry-article {
		grid-template-columns: 1fr;
	}
	.row-1col .entry-article-title,
	.row-1col_1-3 .entry-article {
		font-size: 1.2rem;
	}
	.row-1col .entry-article-snippet {
		font-size: 1rem;
	}
	.entry-article-meta,
	.row-1col .entry-article-meta,
	.row-1col_1-3 .entry-article-meta {
		position: static;
		width: auto;
	}
}


/************************************
** 記事
************************************/
/* アイキャッチ下 */
.date-tags {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	text-align: left;
}

.date-tags p,
.article .date-tags p {
	margin: 0;
	margin-right: 5px;
	color: #a9a9a9;
}
.date-tags p:last-of-type,
.article .date-tags p:last-of-type,
.post-update {
	margin-right: 0;
}
.date-tags p:nth-of-type(1):after,
.article .date-tags p:nth-of-type(1):after {
	content: "｜";
	font-size: 0.9rem;
}
.date-tags a {
	color: #a9a9a9;
	text-decoration: none;
	font-size: 0.9rem;
}

/* 目次対策 */
#rtoc-mokuji-wrapper {
	display: none;
}

/* 記事中の見出し */
.entry-content .section-title-story,
.entry-content .section-title-glossary,
.entry-content .section-title-factcheck {
	position: relative;
}
.entry-content .section-title-story::before,
.entry-content .section-title-glossary::before,
.entry-content .section-title-factcheck::before {
	font-family: "Font Awesome 5 Free";
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
}

.article.post .entry-content .section-title-story {
	border-bottom: 2px solid #333;
	margin-top: 40px;
	margin-bottom: 20px;
	padding: 10px 0;
	padding-left: 50px;
	background-color: transparent;
	color: #333;
}
.entry-content .section-title-story::before {
	content: "\f518";
}

.article.post .entry-content .section-title-characters {
	border-left: 4px solid #333;
	padding: 10px 0;
	padding-left: 12px;
/*	margin-top: 40px;*/
	margin-bottom: 20px;
	background-color: transparent;
	color: #333;
}

.article.post .entry-content .section-title-epilogue {
	border-left: 5px solid #999;
	background-color: #f5f6f7;
	color: #333;
}

.article.post .entry-content .section-title-glossary {
	padding-left: 45px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
	border-top: 2px dotted #999;
	border-bottom: 2px dotted #999;
	background-color: #f5f6f7;
	color: #333;
}
.entry-content .section-title-glossary::before {
	content: "\f02d"; /* 本のアイコン */
	color: #4CAF50;
	left: 15px;
}
/* ファクトチェック見出し */
.entry-content .section-title-factcheck {
	position: relative;
	background: -webkit-linear-gradient(to right, #1a1f2b, #6b7280);
	background: linear-gradient(to right, #1a1f2b, #6b7280);
	color: #fff;
	padding-left: 50px;
}
.entry-content .section-title-factcheck::before {
	content: "\f186";
	color: #fff;
	left: 15px;
}

@media screen and (max-width: 480px) {
	.entry-content .section-title-story,
	.entry-content .section-title-characters {
		font-size: 20px;
		padding: 0.6em 0.8em;
	}
	.entry-content .section-title-story::before,
	.entry-content .section-title-glossary::before,
	.entry-content .section-title-factcheck::before {
		font-size: 20px;
	}
	.entry-content .section-title-story {
		padding-left: 45px;
	}
}


/* 登場人物紹介 */
.char-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin: 20px 0 10px;
}

.char-card {
	background: #fffef7;
	border: 1px solid #ddd0a6;
	border-radius: 8px;
	padding: 10px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.char-icon {
	width: 75px;
	height: 75px;
	border-radius: 50%;
	flex-shrink: 0;
}

.char-info {
	font-size: 0.85rem;
	line-height: 1.6;
}
.char-info strong {
	font-size: 0.95rem;
	line-height: 1.4;
}

.char-link-right {
	text-align: right;
	margin-top: 0;
	line-height: 0.9rem;
}

.char-detail-link {
	font-size: 0.9rem;
	color: #333;
	text-decoration: underline;
	transition: color 0.2s;
}

.char-detail-link:hover {
	color: #e67e22; /* アクセントカラーに */
}


/* 注意書き */
.notice-text {
	font-size: 0.85em;
	color: #666;
	margin-top: 10px;
}


/* 吹き出し - ナレーション */
.narration-area {
	border: 1px solid #c0c0c0;
	border-radius: 6px;
	background-color: #f8f8f8;
	padding: 2rem 10px;
}
.narration-area_hl {
	padding: 3rem 10px;
}
.narration-area p {
	margin: 0;
}
@media screen and (max-width: 480px){
	.narration-area {
		padding: 1rem 10px;
	}
	.narration-area_hl {
		padding: 2rem 10px;
	}
}


/* 比較テーブル */
.comparison-table {
	width: 100%;
	border-collapse: collapse;
	font-family: "Kosugi Maru", "Hiragino Sans", sans-serif;
}

.comparison-table th {
	background-color: #e6e6fa;
	color: #333;
	padding: 12px;
	border: 1px solid #d3d3d3;
	text-align: left;
	font-weight: bold;
}

.comparison-table td {
	padding: 10px 14px;
	border: 1px solid #d3d3d3;
	vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) {
	background-color: #fcfcf7;
}

/* ホワイトボード風のリスト */
.board-list,
.article ul .board-list {
	background: #fff;
	border: 2px solid #d1d7e0;
	border-radius: 18px;
	box-shadow: 0 4px 20px rgba(60, 80, 120, 0.10);
	padding: 1.5em 2em;
	margin: 3em 0;
	position: relative;
	font-family: "Hannotate SC", "M PLUS Rounded 1c", "Yuji Syuku", "Meiryo", sans-serif;
}
.board-list::before,
.article ul .board-list::before {
	content: '';
	display: block;
	position: absolute;
	width: 32px; height: 12px;
	background: #73a2d7;
	border-radius: 8px;
	left: 24px;
	top: -15px;
	box-shadow: 180px 0 #f5c86e; /* 2個目のマグネット */
}
.board-list li,
.article ul .board-list li {
	margin: 0.7em 0;
	font-size: 1.12em;
	position: relative;
	padding-left: 1.8em;
}
.board-list li::before,
.article ul .board-list li::before {
	content: "📝";
	position: absolute;
	left: 0;
	font-size: 1.1em;
	top: 0.05em;
}
@media screen and (max-width: 480px){
	.board-list::before,
	.article ul .board-list::before {
		box-shadow: 90px 0 #f5c86e;
	}
}

/* タブレット風のリスト */
.tablet-list,
.article ul .tablet-list {
	background: linear-gradient(135deg, #e7ecf0 80%, #b6c5de 100%);
	border-radius: 18px;
	box-shadow: 0 3px 16px rgba(60,60,90,0.13);
	border: 1.5px solid #b1bed7;
	padding: 1.2em 1.8em;
	margin: 2em 0;
	font-family: 'M PLUS Rounded 1c', 'Meiryo', sans-serif;
	position: relative;
}
.tablet-list::before,
.article ul .tablet-list::before {
	content: "🖊";
	position: absolute;
	right: 16px;
	top: 10px;
	font-size: 1.6em;
	opacity: 0.7;
}
.tablet-list li,
.article ul .tablet-list li {
	margin: 0.6em 0;
	padding-left: 1.4em;
	position: relative;
	font-size: 1.08em;
}
.tablet-list li::before,
.article ul .tablet-list li::before {
	content: "✔";
	color: #5278c5;
	font-size: 1em;
	position: absolute;
	left: 0;
}


/* ニュースの要点インフォグラフィック */
.news-points-box {
	background: #fffef7;
	border: 1px solid #e0dccc;
	padding: 20px 30px;
	margin: 40px auto;
	max-width: 800px;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	position: relative;
	background-image: repeating-linear-gradient(
		to bottom,
		transparent,
		transparent 28px,
		#f0ead6 29px
	);
}

.news-points-title,
.article h3.news-points-title {
	position: relative;
	font-size: 1.3em;
	color: #3c3c3c;
	background: #fff3c0;
	padding: 6px 12px;
	border-style: none;
	border-left: 6px solid #ffcd3c;
	border-radius: 4px;
	margin-bottom: 15px;
	font-weight: bold;
	font-family: "Kosugi Maru", "Hiragino Sans", sans-serif;
}

.news-points-title::before {
	content: "重要!";
	position: absolute;
	top: -10px;
	left: -30px;
	background-color: #4caf50;
	color: white;
	font-size: 0.65em;
	font-weight: bold;
	padding: 4px 10px;
	transform: rotate(-45deg);
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	pointer-events: none;
	z-index: 2;
}

.news-points-list,
article ul.news-points-list {
	list-style: none;
	padding-left: 0;
	font-size: 1.05em;
	line-height: 1.7em;
	margin-bottom: 0;
}

.news-points-list li {
	padding: 6px 0;
	border-bottom: 1px dashed #ccc;
}

/* まとめインフォグラフィック */
.infographic-container {
	background: #fffef7; /* 紙っぽいクリーム色 */
	border: 1px solid #e0dccc;
	padding: 20px 30px;
	margin: 40px auto;
	max-width: 800px;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	position: relative;
	font-family: "Yu Mincho", "Hiragino Mincho Pro", serif;
	background-image: repeating-linear-gradient(
		to bottom,
		transparent,
		transparent 28px,
		#f0ead6 29px
	); /* 罫線風 */
}

.infographic-title,
.article h3.infographic-title {
	position: relative;
	font-size: 1.5em;
	color: #3c3c3c;
	background: #fff3c0;
	padding: 6px 12px;
	padding-left: 20px;
	border-left: 6px solid #ffcd3c;
	border-radius: 4px;
	margin-bottom: 15px;
	box-shadow: inset 0 -2px 0 rgba(0,0,0,0.1);
	font-weight: bold;
	font-family: "Kosugi Maru", "Hiragino Sans", sans-serif;
}
/* ラベル（斜めの「注目」） */
.infographic-title::before {
	content: "注目";
	position: absolute;
	top: -10px;
	left: -30px;
	background-color: #ff7676;
	color: white;
	font-size: 0.65em;
	font-weight: bold;
	padding: 4px 10px;
	transform: rotate(-45deg);
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	pointer-events: none;
	z-index: 2;
}

.infographic-list {
	list-style: none;
	padding-left: 0;
	font-size: 1.1em;
	line-height: 1.8em;
}
.article ul.infographic-list {
	margin-bottom: 0;
}

.infographic-list li {
	padding: 6px 0;
	border-bottom: 1px dashed #ccc;
	padding-left: 1.7em;
	text-indent: -1em;
}

@media screen and (max-width: 480px) {
	.article ul.infographic-list {
		padding-left: 10px;
	}
	.infographic-list li {
		padding-left: 0;
		text-indent: -0.5em;
	}
}

/* 難しい言葉のスタイル */
.entry-content .difficult-word {
	color: #0077cc;
	background: linear-gradient(transparent 60%, #ff6 60%);
	cursor: pointer;
}

/* モーダルのベースレイアウト */
.glossary-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.6);
	justify-content: center;
	align-items: center;
}

/* モーダルコンテンツ */
.glossary-modal-content {
	background-color: #fff;
	margin: 10% auto;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	width: 90%;
	max-width: 500px;
	position: relative;
	animation: modalFadeIn 0.3s;
}

/* モーダルアニメーション */
@keyframes modalFadeIn {
	from {opacity: 0; transform: translateY(-20px);}
	to {opacity: 1; transform: translateY(0);}
}

/* 閉じるボタン */
.glossary-modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.glossary-modal-close:hover {
	color: #000;
}

/* 用語の見出し */
.glossary-term-title {
	margin-top: 0;
	color: #0077cc;
	border-bottom: 1px solid #eee;
	padding-bottom: 8px;
	margin-bottom: 12px;
}

/* 用語の説明 */
.glossary-term-meaning {
	line-height: 1.6;
	color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
	.glossary-modal-content {
		width: 95%;
		margin: 15% auto;
		padding: 15px;
	}
}

/* 用語解説 */
.in-story-glossary_area dl {
	margin: 20px 0;
	padding: 0 20px;
	background: #fffef7;
	border: 1px solid #e0dccc;
	border-radius: 6px;
	font-family: "Kosugi Maru", sans-serif;
}

.in-story-glossary_area dt {
	font-weight: bold;
	margin-top: 10px;
	color: #3a3a3a;
	position: relative;
}
.in-story-glossary_area dt span {
	border-bottom: 1px dashed #ccc;
	background:linear-gradient(transparent 60%, #ff6 60%);
}

.in-story-glossary_area dd {
	margin-left: 0;
	margin-bottom: 10px;
	padding-left: 1em;
	border-bottom: 1px dashed #ccc;
	padding-bottom: 6px;
}
.in-story-glossary_area dd:last-of-type {
	border-bottom: none;
}


/* ファクトチェック テーブル */
.entry-content .factcheck-table table {
	width: 100%;
	border-collapse: collapse;
	font-family: "Kosugi Maru", sans-serif;
	font-size: 0.95em;
	color: #333;
/*	table-layout: fixed;*/
	margin-bottom: 1em;
}

/* 各セル */
.entry-content .factcheck-table th,
.entry-content .factcheck-table td {
	padding: 10px 12px;
	border: 1px solid #dfe4ec;
	vertical-align: top;
	word-break: break-word;
}

/* 見出し列（トピック／信頼性など） */
.entry-content .factcheck-table th {
	background-color: #2c3e50;
	color: #ffffff;
	font-weight: bold;
	text-align: center;
}

/* 信頼性の列だけ太字カラー強調 */
.entry-content .factcheck-table td:nth-child(2) {
	font-weight: bold;
	color: #d35400;
	text-align: center;
	width: 80px;
}

/* 固定幅の見直し：信頼性をやや細く、ソースに余白を */
.entry-content .factcheck-table td:nth-child(2) {
	width: 64px;
	white-space: nowrap;
	text-align: center;
	font-weight: bold;
	color: #d35400;
}

/* 高信頼性アイテムの信頼性値 */
.entry-content .factcheck-table .high-reliability td:nth-child(2) {
	color: #2E7D32;
}

/* 中信頼性アイテムの信頼性値 */
.entry-content .factcheck-table .medium-reliability td:nth-child(2) {
	color: #1565C0;
}

/* 低信頼性アイテムの信頼性値 */
.entry-content .factcheck-table .low-reliability td:nth-child(2) {
	color: #EF6C00;
}

/* 極低信頼性アイテムの信頼性値 */
.entry-content .factcheck-table .very-low-reliability td:nth-child(2) {
	color: #C62828;
}


.entry-content .factcheck-table th,
.entry-content .factcheck-table td {
	min-width: 100px;
	word-break: break-word;
}

.factcheck-table th:nth-of-type(3),
.factcheck-table td:nth-of-type(3) {
	width: 42%;
}

.factcheck-table .scrollable-table th,
.factcheck-table .scrollable-table td {
	white-space: normal;
}

/* 注意書き */
.entry-content .factcheck-note {
	font-size: 0.8em;
	color: #666;
	margin-top: 0;
	padding-left: 1em;
	text-indent: -1em;
}

/* SNSボタンエリア */
.ecotic-share-buttons {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	line-height: 1;
	margin-bottom: 30px;
}
.ecotic-share-buttons a {
	text-decoration: none;
	color: #333;
	display: block;
	font-size: 2rem;
}
.share-btn.btn-hatena {
	background-color: #333;
	color: #fff;
	border-radius: 4px;
	font-size: 1.2rem;
	padding: 3px;
}
.share-btn.btn-copy {
	background-color: transparent;
	line-height: normal;
	border-style: none;
	font-size: 1.3rem;;
}


/* 関連記事 */
.under-entry-content .related-list .a-wrap {
	padding: 0;
}
.under-entry-content .related-list .a-wrap:hover {
	background-color: transparent;
}


/************************************
** 固定ページ
************************************/

/*-------------------------
プライバシーポリシー
-------------------------*/
.contact-info {
	background: #ecf0f1;
	padding: 20px;
	border-radius: 5px;
	margin: 20px 0;
	border-left: 4px solid #000;
}

.footer-info {
	text-align: center;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #bdc3c7;
	color: #7f8c8d;
	font-size: 0.9em;
}

/*-------------------------
利用規約
-------------------------*/
.important-notice {
	background: #ecf0f1;
	padding: 20px;
	border-radius: 5px;
	margin: 20px 0;
	border-left: 4px solid #000;
}

.definition {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 5px;
	margin: 15px 0;
	border: 1px solid #dee2e6;
}

.article .definition p {
	margin-bottom: 0;
}

/*-------------------------
運営者情報
-------------------------*/
.highlight {
	background: #fff3cd;
	padding: 15px;
	border-radius: 5px;
	border-left: 4px solid #ffc107;
	margin: 20px 0;
}

/*-------------------------
エコティクノートについて
-------------------------*/
.feature-box {
	background: #f8f9fa;
	padding: 25px;
	border-radius: 8px;
	margin: 25px 0;
	border-left: 5px solid #333;
	box-shadow: 5px 5px 10px #333;
}

.feature-box h3,
.article .feature-box h3 {
	color: #333;
	margin-top: 0;
	border-style: none;
	padding: 0;
	border-bottom: 1px solid #333;
}

.target-audience {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin: 20px 0 35px;
}

.audience-card {
	background: #f5f5f5;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 5px 5px 10px #333;
}
.audience-card h4 {
	margin-top: 0;
	padding: 9px 0;
	font-size: 1.2em;
	margin-bottom: 1rem;
	border-top: 1px solid #333;
	border-bottom: 1px solid #333;
}
.article .audience-card p {
	margin-bottom: 1rem;
}

.mission-statement {
	background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
	padding: 30px;
	border-radius: 10px;
	margin: 30px 0;
	border: 1px solid #bdc3c7;
	text-align: center;
}

.mission-statement h3 {
	color: #2c3e50;
	margin-bottom: 20px;
	font-size: 1.4em;
	border-style: none;
	padding: 0;
}

.mission-statement p {
	font-size: 1.1em;
	font-weight: 500;
	color: #34495e;
	margin-bottom: 0;
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin: 25px 0 35px;
}

.category-item {
	background: #f5f5f5;
	padding: 15px;
	border-radius: 6px;
	text-align: center;
	font-weight: 500;
	box-shadow: 5px 5px 10px #333;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.stat-item {
	text-align: center;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #dee2e6;
}

.stat-number {
	font-size: 2em;
	font-weight: bold;
	color: #333;
	display: block;
}

.stat-label {
	color: #7f8c8d;
	font-size: 0.9em;
	margin-top: 5px;
}

@media (max-width: 768px) {
	.target-audience {
		grid-template-columns: 1fr;
	}
	
	.categories-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}
}

/*-------------------------
よくある質問・ご利用ガイド
-------------------------*/
.page_faq-item {
	margin-bottom: 40px;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	overflow: hidden;
	background: white;
}

.page_question {
	background: #696969;
	padding: 20px;
	margin: 0;
	font-weight: 600;
	color: #fff;
	font-size: 1.1em;
	cursor: pointer;
	border-bottom: 1px solid #dee2e6;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.page_question:hover {
	background: #808080;
}

.page_question::after {
	content: "▼";
	transition: transform 0.3s ease;
	color: #fff;
}

.page_question.active::after {
	transform: rotate(180deg);
}

.page_answer {
	display: none;
	padding: 0;
}

.page_answer.active {
	display: block;
}

/* キャラクター回答スタイル */
.character-answer {
	padding: 25px;
	position: relative;
}

.character-answer .character-info {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	font-weight: 600;
}

.character-answer .character-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-right: 15px;
	border: 2px solid #ccc;
}

/* 博士スタイル */
.hakase {
	background-color: #f0f8ff;
}

.hakase .character-icon {
	background: url("https://ecotic-note.com/wp-content/uploads/2025/04/hakase.png.webp") #fff;
	background-size: contain;
}

.hakase .character-name {
	
}

/* 萌スタイル */
.moe {
	background-color: #fffff0;
}

.moe .character-icon {
	background: url("https://ecotic-note.com/wp-content/uploads/2025/04/moe.png.webp") #fff;
	background-size: contain;
}

.moe .character-name {
	
}

/* 静馬スタイル */
.shizuma {
	background-color: #f5f5f5;
}

.shizuma .character-icon {
	background: url("https://ecotic-note.com/wp-content/uploads/2025/04/shizuma.png.webp") #fff;
	background-size: contain;
}

.shizuma .character-name {
	
}

.character-answer p {
	margin-bottom: 15px;
	font-size: 1em;
}

.character-answer ul {
	margin-bottom: 15px;
	padding-left: 25px;
}

.character-answer li {
	margin-bottom: 8px;
}

.important-notice {
	background: #ffffe0;
	padding: 15px;
	border-radius: 5px;
	margin: 15px 0;
	border-left: 4px solid #ffc107;
}

.contact-info {
	background: #ecf0f1;
	padding: 20px;
	border-radius: 5px;
	margin: 20px 0;
	border-left: 4px solid #2c3e50;
}

.contact-info strong {
	color: #2c3e50;
}

/*-------------------------
キャラクター紹介
-------------------------*/
.characters-list {
	margin: 30px 0;
}

.character-card {
	display: flex;
	background: white;
	border-radius: 15px;
	margin-bottom: 40px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 3px solid transparent;
	overflow: hidden;
	min-height: 300px;
}

.character-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* キャラクター別の色分け */
.hakase { border-color: #8e44ad; }
.sora { border-color: #3498db; }
.rin { border-color: #e74c3c; }
.moe { border-color: #f39c12; }
.miyuki { border-color: #e91e63; }
.shizuma { border-color: #34495e; }

.character-image-section {
	flex: 0 0 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.hakase .character-image-section { background: linear-gradient(135deg, #f4f1f8 0%, #e8dff5 100%); }
.sora .character-image-section { background: linear-gradient(135deg, #ebf3fd 0%, #d6eafc 100%); }
.rin .character-image-section { background: linear-gradient(135deg, #fdf2f2 0%, #fce4e4 100%); }
.moe .character-image-section { background: linear-gradient(135deg, #fef9e7 0%, #fdf2cc 100%); }
.miyuki .character-image-section { background: linear-gradient(135deg, #fce4ec 0%, #f8d7da 100%); }
.shizuma .character-image-section { background: linear-gradient(135deg, #eaeded 0%, #d5dbdb 100%); }

.character-image {
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.character-content {
	flex: 1;
	padding: 25px 30px;
	display: flex;
	flex-direction: column;
}

.character-header {
	margin-bottom: 20px;
}

.character-title {
	margin-bottom: 10px;
}

.character-name {
	font-size: 1.4em;
	font-weight: bold;
	margin-bottom: 5px;
}

.hakase .character-name { color: #8e44ad; }
.sora .character-name { color: #3498db; }
.rin .character-name { color: #e74c3c; }
.moe .character-name { color: #f39c12; }
.miyuki .character-name { color: #e91e63; }
.shizuma .character-name { color: #34495e; }

.character-subtitle {
	color: #7f8c8d;
	font-size: 0.9em;
}

.character-info {
	margin-bottom: 15px;
}

.info-row {
	display: flex;
	margin-bottom: 8px;
	align-items: center;
}

.info-label {
	font-weight: bold;
	min-width: 60px;
	color: #2c3e50;
}

.info-value {
	color: #34495e;
}

.character-description {
	margin-bottom: 15px;
	color: #2c3e50;
	line-height: 1.7;
}

.character-traits {
	margin-top: 15px;
}

.traits-title {
	font-weight: bold;
	color: #2c3e50;
	margin-bottom: 10px;
}

.traits-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.trait-tag {
	background: #ecf0f1;
	padding: 4px 12px;
	border-radius: 15px;
	font-size: 0.85em;
	color: #2c3e50;
	border: 1px solid #bdc3c7;
}

.hakase .trait-tag { background: #f4f1f8; border-color: #8e44ad; }
.sora .trait-tag { background: #ebf3fd; border-color: #3498db; }
.rin .trait-tag { background: #fdf2f2; border-color: #e74c3c; }
.moe .trait-tag { background: #fef9e7; border-color: #f39c12; }
.miyuki .trait-tag { background: #fce4ec; border-color: #e91e63; }
.shizuma .trait-tag { background: #eaeded; border-color: #34495e; }

.relationships-section {
	margin-top: 40px;
	padding: 25px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 10px;
	border-left: 4px solid #667eea;
}

.relationships-title {
	font-size: 1.3em;
	font-weight: bold;
	color: #2c3e50;
	margin-bottom: 15px;
}

.relationship-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
}

.relationship-item {
	background: white;
	padding: 15px;
	border-radius: 8px;
	border-left: 3px solid #667eea;
}

.relationship-pair {
	font-weight: bold;
	color: #2c3e50;
	margin-bottom: 5px;
}

.relationship-desc {
	color: #34495e;
	font-size: 0.9em;
}

@media (max-width: 768px) {
	.character-card {
		flex-direction: column;
		min-height: auto;
	}
	
	.character-image-section {
		flex: none;
		padding: 20px;
	}
	
	.character-image {
		max-height: 200px;
	}
	
	.relationship-grid {
		grid-template-columns: 1fr;
	}
}

