/* ぽぶ茶のサイト */

body {
	margin-left: 5%;
	margin-right: 5%;
	margin-bottom: 5%;
}

a:hover {
	color: white;
	background: #006400;
}

/* --- ナビゲーション（テーブル版: links, toiletページ用） --- */

td.navi {
	background: #003300;
	padding: 10px 10px;
	vertical-align: middle;
}

td.navi a {
	color: white;
	text-decoration: none;
	padding: 0.3em 1em;
}

td.navi a:hover {
	color: #003300;
	background: #ffffff;
}

/* --- ナビバー（div版: index.html用） --- */

.navi-bar {
	background: #003300;
	position: relative;
	overflow: hidden;        /* プロフ画像・SVGを帯内でクリップ */
	height: 44px;            /* 固定高さ。内容物に影響されない */
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 10px;
}

/* ツタ装飾SVG（絶対配置・高さに影響なし） */
.navi-vine {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* 左エリア（プロフ画像＋ロゴ） */
.navi-left {
	position: relative;
	display: flex;
	align-items: center;
	z-index: 1;
}

/* 右エリア（リンク） */
.navi-right {
	position: relative;
	z-index: 1;
}

.navi-right a {
	color: white;
	text-decoration: none;
	padding: 0.3em 1em;
}

.navi-right a:hover {
	color: #003300;
	background: #ffffff;
}

/* --- ヘッダーロゴ --- */

.site-logo {
	position: relative;
	z-index: 1;
	color: #ffffff;
	font-size: 18px;
	font-weight: bold;
	font-style: italic;
	font-family: "Arial Black", "Impact", sans-serif;
	letter-spacing: 0.05em;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* --- プロフ画像（帯の中に絶対配置・帯内でクリップ） --- */

.header-icon {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 190px;
	height: 80px;
	opacity: 0.6;
	z-index: 0;
	object-fit: cover;
}

/* --- テーブル --- */

table {
	padding: 0.5em;
}

td.header {
	text-align: left;
	vertical-align: top;
	border-style: solid;
	border-width: 1px;
	border-color: #d3d3d3;
}

td.subheader {
	text-align: right;
	vertical-align: top;
	border-style: solid;
	border-width: 1px;
	border-color: #d3d3d3;
}

td.summary {
	text-align: left;
	vertical-align: top;
	border-style: solid;
	border-width: 1px;
	border-color: #d3d3d3;
}

th {
	border: solid;
	border-width: 1px 0 1px 0;
	border-color: #003300;
}

/* --- プロフィールテーブル --- */

table.profile {
	border-collapse: collapse;
}

table.profile th {
	text-align: left;
	padding: 0.3em 1em;
	border: solid;
	border-width: 1px;
	border-color: #a7a7a7;
	background: #e8f0e6;
	font-weight: normal;
	white-space: nowrap;
}

table.profile td {
	padding: 0.3em 1em;
	border: solid;
	border-width: 1px;
	border-color: #a7a7a7;
}

/* --- お知らせ一覧テーブル --- */

.info-table {
	border-collapse: collapse;
}

.info-table td {
	padding: 3px 8px;
	border-bottom: 1px dotted #d3d3d3;
	vertical-align: top;
	font-size: 0.95em;
}

.info-table .info-cat {
	width: 5em;
	white-space: nowrap;
	text-align: center;
}

.info-table .info-date {
	width: 8em;
	white-space: nowrap;
	color: #666;
}

.info-cat-update {
	color: #006600;
}

.info-cat-important {
	color: #cc0000;
	font-weight: bold;
}

/* --- お知らせ＋Twitter 2カラムレイアウト --- */

.info-social-row {
	display: flex;
	gap: 2em;
	align-items: flex-start;
}

/* 左: お知らせ（広め） */
.info-col {
	flex: 3;
	min-width: 0;
}

/* 右: Twitter タイムライン（やや狭め） */
.twitter-col {
	flex: 2;
	min-width: 260px;
}

/* スマホなど幅が狭いときは縦並びに */
@media (max-width: 640px) {
	.info-social-row {
		flex-direction: column;
	}
	.twitter-col {
		min-width: 0;
		width: 100%;
	}
}

/* --- ギャラリースライダー --- */

.gallery-wrap {
	display: flex;
	align-items: stretch;   /* ボタン高さをステージ高さに合わせる */
	gap: 0;
	max-width: 1000px;      /* ボタン込みの最大幅 */
	margin: 0 auto;         /* 中央寄せ */
}

/* ◀▶ ボタン */
.gallery-prev,
.gallery-next {
	flex-shrink: 0;
	width: 40px;
	border: none;
	background: #003300;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gallery-prev:hover,
.gallery-next:hover {
	background: #006400;
}

/* ステージ（16:9 固定比率、最大960px幅） */
.gallery-stage {
	flex: 1;
	min-width: 0;
	max-width: 960px;
	aspect-ratio: 16 / 9;   /* 縦長画像も8K画像もこの枠内に収める */
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* YouTube iframe: ステージいっぱいに */
.gallery-iframe-wrap {
	width: 100%;
	height: 100%;
}

.gallery-iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* 画像: アスペクト比を保ちながらステージに収める（縦長・横長どちらも対応） */
.gallery-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* 動画: アスペクト比を保ちながらステージに収める */
.gallery-video {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
}

/* キャプション */
.gallery-caption {
	text-align: center;
	margin: 0.4em 0 0 0;
	font-size: 0.9em;
}

/* カウンター */
.gallery-counter {
	text-align: center;
	margin: 0.1em 0 0 0;
	font-size: 0.8em;
	color: #888;
}

/* スマホ対応 */
@media (max-width: 640px) {
	.gallery-prev,
	.gallery-next {
		width: 28px;
		font-size: 14px;
	}
}
