﻿@charset "utf-8";

.maru-num {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	line-height: 1.5em;
	border: 1px solid #333;
	border-radius: 50%;
	text-align: center;
	font-weight: bold;
}

#toc {
	width: 100%;
	max-width: 600px;background: #f9f9f9;
	border: 1px solid #ccc;
	padding: 10px;
	border-radius: 8px;
}

.toc-title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 8px;
  color: #ff6600;  /* オレンジ系で目立たせる */
}

/* 目次タイトル */
#toc h2 {
	margin-top: 0;
	font-size: 1.2em;
	border-bottom: 1px solid #ccc;
	padding-bottom: 5px;
}

/* リスト全体 */
#toc ul {
	list-style: none;         /* デフォルトの点を消す */
	padding-left: 0;
	margin: 10px 0 0 0;
}

/* 大見出し */
#toc > ul > li {
	margin: 8px 0;
	font-weight: bold;
}

/* 小見出し（入れ子） */
#toc ul ul li {
	margin: 5px 0 5px 20px;  /* インデント */
	font-weight: normal;
	font-size: 0.95em;
}

/* リンクスタイル */
#toc a {
	text-decoration: none;
	color: #333;
	transition: color 0.2s;
}

/* ホバー時の色変化 */
#toc a:hover {
	color: #007BFF;
}

/* スムーズスクロール */
html {
	scroll-behavior: smooth;
}


/* データテーブル: .attention 内の table だけに適用 */
.attention table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--white);
}

.attention th,
.attention td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.attention th {
    background-color: #b94e28;
    color: #fff;
}

.climate-table td {
text-align: right;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 700px;   /* 横幅を保証 */
  border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
  padding: 6px 8px;
  white-space: nowrap;
  text-align: center;
}

.nature-section {
max-width: 800px;
margin: 0 auto;
line-height: 1.7;
}

.nature-section ul {
padding-left: 1.2em;
}

.nature-section li {
margin-bottom: 0.8em;
font-size: 0.95em; /* ← 追加 */
}

.nature-section .note {
font-size: 0.9em;
color: #555;
margin-top: 1em;
}

.info-item {
display: grid;
grid-template-columns: 200px 1fr;
gap: 1.2em;
margin-bottom: 1.8em;
align-items: start;
}

.info-item img {
display: block; 
width: 100%;
height: auto;
border-radius: 4px;
align-self: start;
margin-top: 0em;
}

.info-item p {
margin: 0;
line-height: 1.7;
font-size: 0.95em;
}

/* ===== スマホ用 ===== */
@media (max-width: 768px) {
  .info-item {
    grid-template-columns: 1fr;   /* ← 1列にする */
  }
}

/*=================================================================
YouTube埋め込み動画にテキストを重ねる
=================================================================*/

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;     /* ← PCでは700pxまで */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 auto;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* テキスト重ね（ベースはそのまま） */
.video-text {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #fff;
text-align: center;
z-index: 2;
text-shadow:
0 4px 20px rgba(0,0,0,0.95),
0 0 6px  rgba(0,0,0,0.9);
}

.video-text h1 {
position: absolute;
top: 10px;     /* 上からの距離 */
left: 25px;     /* 左からの距離 */
font-size: 1.5rem;
letter-spacing: 0.15em;
margin: 0;
}

.video-text p {
position: absolute;
top: 400px;   /* h1より下 */
left: 260px;  /* わずかに揃える */
margin: 0;
font-size: 1.3rem;
letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .video-text p {
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
  }
}