@charset "UTF-8";

main {
	margin: 20px;
}

.container {
	max-width: 960px;
	margin: auto;
}

h1 {
	font-size: 3.8em;
}

.zukan-box {
	background-color: rgb(253, 250, 244);
	border: 2px solid rgb(239, 201, 143);
	padding: 15px 15px;
	border-radius: 8px;
	margin-bottom: 15px;
	width: 100%;
	display: flex;
	align-items: center;
	height: 80px;
}

.intro {
	margin-bottom: 1em;
	font-size: 2em;
}

.grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.item {
	flex: 1 1 calc(25% - 20px);
	box-sizing: border-box;
	text-align: center;
}

.item img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	transition: 0.3s ease;   /* ← ホバー時のアニメーション */
}

.item img:hover {
	opacity: 0.85;            /* ← 少し暗くして押せる感を出す */
	transform: scale(1.03);   /* ← ほんの少し拡大 */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* ← 影で浮かせる */
}

.item p {
	margin-top: 0.5em;
	font-weight: bold;
	font-size: 1.9em;
	margin-bottom: 0.5em;
}

@media (max-width: 896px) {
	.item {
		flex: 1 1 calc(50% - 20px);
	}
}

.label-image button {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
}

.search-box {
	background-color: #f3f8f3;
	border: 2px solid #a8c8a3;
	border-radius: 10px;
	padding: 10px;
	margin-top: 20px;
	margin-bottom: 20px;
}

.search-box h2 {
	font-size: 2.0em;
	margin-bottom: 10px;
	color: #444;
	font-weight: bold;
}

.name-search {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.name-search input {
	flex: 1;
	padding: 8px;
	font-size: 2em;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.name-search button {
	padding: 8px 16px;
	font-size: 2em;
	background-color: #a8d5a2;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}
.name-search button:hover {
	background-color: #8fc98a;      /* ホバー時：濃いめの緑 */
}

.season-buttons .row {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.season-buttons button {
	flex: 0 0 calc(33.333% - 10px);
	padding: 6px 10px;
	font-size: 2em;
	background-color: #e3f3e1;
	border: 1px solid #a8c8a3;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.season-buttons button:hover {
	background-color: #c8e8c3;      /* ホバー時：少し濃い緑 */
	border-color: #8fb98a;          /* 枠線も少し濃く */
}

.season-buttons .month {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.season-buttons .right {
	justify-content: right;
	margin-top: 10px;
}

.kana-btn::before {
	content: attr(data-kana);
	font-size: 1em;
}

.big-checkbox {
	flex: 0 0 22%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 2em;
}

.big-checkbox span {
	white-space: nowrap;
}

@media screen and (min-width: 896px) {
	.big-checkbox {
		flex: 0 0 15.66%; /* 100% ÷ 6 */
	}
}

/* 画像の上に文字を重ねる */
.label-image {
	position: relative;
}

.label-image img {
	width: 100%;
	display: block;
	border-radius: 6px;
	aspect-ratio: 1 / 1; /* 正方形を維持 */
	object-fit: cover;     /* これが「くり抜き」の核心 */
	object-position: center; /* 中央を基準にトリミング */
}

/* ラベル（画像に埋め込まれているように見せる） */
.label-image .label {
	position: absolute;
	bottom: 8px;
	left: 8px;
	padding: 4px 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 1.8rem;
	border-radius: 4px;
	backdrop-filter: blur(2px);
	pointer-events: none; /* クリックを邪魔しない */
}

/* スライダー */
.slider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 10px;
}

.main-image-wrapper {
	position: relative;
	text-align: center;
	max-width: 500px;
}

#mainImage {
	width: 100%;
	max-height: 400px;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	cursor: zoom-in;
}

.caption {
	margin-top: 0.5rem;
	font-size: 2rem;
	color: #666;
}

.nav {
	background-color: #2f4f2f;
	color: #fff;
	border: none;
	font-size: 1.5rem;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	cursor: pointer;
}

/* サムネイル（3枚表示） */
.thumbnails-wrapper {
	width: 100%;
	overflow: hidden;
}

.thumbnails {
	display: flex;
	justify-content: center;
	gap: 1rem;
	transition: transform 0.3s ease;
}

.thumbnails img {
	width: 180px;
	height: 100px;
	object-fit: cover;
	border-radius: 6px;
	cursor: pointer;
	border: 2px solid transparent;
}

.thumbnails img.active {
	border-color: #2f4f2f;
}

/* モーダル（拡大画像） */
.modal {
	display: none; /* 初期状態は非表示 */
	position: fixed;
	z-index: 9999;
	inset: 0;
	background-color: rgba(0,0,0,0.8);
	max-width: 100%;
	width: 100%;
}

/* 表示状態のときだけ flex にする */
.modal.show {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.modal-content {
	max-width: 90%;
	max-height: 80vh;
	border-radius: 8px;
}

.modal-caption {
	color: #fff;
	margin-top: 1rem;
	font-size: 2rem;
	text-align: center;
}

.dashed-line {
	border: none;
	border-top: 3px dashed #c00;
	margin: 2rem 0;
}

.redlist-section {
	margin-top: 2rem;
	background-color: #f7f7f2;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.redlist-section h2 {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	color: #dc143c;
	text-align: center;
}

.redlist-note {
	font-size: 1.5rem;
	color: #dc143c;
	margin-bottom: 1rem;
	text-align: center;
}

.redlist-table {
	width: 100%;
	border-collapse: collapse;
	margin: auto;
}
.redlist-legend {
	font-size: 1.5rem;
}
@media screen and (min-width: 896px) {
	.redlist-table {
		width: 400px;
	}
	.redlist-legend {
		width: 80%;
		margin: auto;
	}
}

.redlist-table th,
.redlist-table td {
	border: 1px solid #ccc;
	padding: 0.6rem;
	text-align: center;
	font-size: 1.5rem;
	width: 20%;
}

.redlist-table th {
	background-color: #B22222;
	color: #fff;
}

.redlist-table td {
  background-color: #F08080;
  color: #333;
}
.plant-info {
	background-color: #f0f0e8;
	padding: 1.5rem;
	border-radius: 8px;
	margin-top: 2rem;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	border: 1px solid #000;
	font-size: 1.5rem;
	line-height: normal;
}
.plant-info p {
	margin-top: 1.2em;   /* 行間として機能する */
	margin-bottom: 1.2em;
	line-height: 1.2;    /* p 内の行間は最小限に */
}

.back {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.back button {
	width: 50%;
	padding: 6px 10px;
	font-size: 2em;
	background-color: rgb(253, 250, 244);
	border: 1px solid rgb(239, 201, 143);
	border-radius: 100px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.back button:hover {
	background-color: rgb(248, 242, 230);
}
/*
.more button {
	width: 100%;
	background-color: #f3f8f3;
	border: 2px solid #a8c8a3;
	margin-bottom: 20px;
}
.more button:hover {
	background-color: #e6f0e6;
}
*/

.result-list {
  background-color: #f0f8ff;
  padding: 1em;
  border-radius: 8px;
  font-size: 2em;
}

.result-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-list li {
  font-size: 1.2em;
  color: #0077cc;
  margin: 0.6em 0;
  line-height: 1.5;
}

.result-list li a {
  color: #0077cc;
  text-decoration: none;
  transition: all 0.2s ease;
}

.result-list li a:hover {
  color: #005999;
  text-decoration: underline;
  background-color: #e6f2ff;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}
