/* =================================================================
   フライトお天気 style.css（最終版）
   - body{ の閉じ括弧漏れを修正
   - .icon-size を1か所に統一
   - 無効な宣言と末尾の </style> を削除
   - ヘッダー（.site-header）の間隔を調整（gap 4px 14px）
   - 上部メイン表のGrid（.top-board）を追加
   - 未使用だった旧Grid試作（.top-dashboard-grid / .board-item 系）を削除
================================================================= */

body{
	background-position: 0% 0%;
	font-weight: bold;
	border-collapse: collapse;
	border-spacing: 0px;
	border-top: 1px solid #ccc;
	border-left: none;
	border-right-width: 1px;
	border-bottom-width: 1px;
	background-image: none;
	background-repeat: repeat;
	background-attachment: scroll;
	overflow-y: scroll;
	font-family: "游ゴシック, ヒラギノ角ゴ ProN W3", HiraKakuProN-W3, "Yu Gothic", メイリオ, Meiryo, Verdana, Helvetica, Arial, sans-serif;

	width: auto;                /* 旧 1070px 固定 */
	min-width: 1070px;          /* これより狭い画面では横スクロール（旧ページと同じ挙動）。各ボードが枠からはみ出さないための下限 */
	max-width: 1070px;          /* PCの表示幅は 1070px 固定（旧ページと同じ） */
	margin: 0 auto;
	padding: 0 6px;
	box-sizing: border-box;

	text-indent: 1rem;

	-webkit-text-size-adjust: 100%;

	animation: fadeIn 2s ease 0s 1 normal;
	-webkit-animation: fadeIn 1s ease 0s 1 normal;
}

/* テーブルのセルが勝手に広がるのを防ぎ、指定した％を死守する */
table {
	table-layout: fixed !important;
	width: 100% !important;
}

/* 天気図など通常の画像：セルからはみ出さない */
img {
	max-width: 100% !important;
	height: auto !important;
}

/* 国旗・きつねなど小さなアイコン：サイズ固定（ここ1か所のみ） */
img.icon-size,
img[width="25"] {
	width: 25px !important;
	height: 20px !important;
	aspect-ratio: 25 / 20 !important;
	display: inline-block;
	vertical-align: middle;
}

/* 長い英単語やリンクがセルを突き破らないように改行 */
td, th {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* ボタンが重ならないように */
.table1-td input[type="button"] {
	margin-bottom: 5px;
}

textarea {
	resize: vertical;
	width: 100%;
	box-sizing: border-box;
	font-size: 115%;

	display: block;
	margin-left: auto;
	margin-right: auto;

	height: calc( 1.3em * 5 );
	line-height: 130%;
}

@keyframes fadeIn {
	0% {opacity: 0}
	100% {opacity: 1}
}

@-webkit-keyframes fadeIn {
	0% {opacity: 0}
	100% {opacity: 1}
}


/* ---------- 背景色 ---------- */
.main{
	background-color: #E2D69A;
}
.usa{
	background-color: #AFB2D8;
}
.eu{
	background-color: #DCDCDC;
}
.au{
	background-color: #77AF9C;
}
.hnl{
	background-color: #A9D0F5;
}
.ind{
	background-color: #996600;
}


/* ---------- リンク ---------- */
a:link {color:#0000ff;}
a:visited {color: #000080;}
a:hover {color:#ffffff; background:#0000cc;}
a:active {color:#ffff00;}


.select_t{
	color: blue;
	font-weight: bold;
}


/* ---------- 文字サイズ ---------- */
.size_1{
	font-size: x-small;
}
.size_2{
	font-size: small;
}
.size_3{
	font-size: medium;
}
.size_4{
	font-size: large;
}
.size_5{
	font-size: x-large;
}

.strong {
	color: #f0300D;
	font-size: large;
}

.rotate {
	transform: rotate( 90deg );
	display: block;
	margin: 0px;
}


/* ---------- lazysizes フェードイン ---------- */
.fade-in {
	opacity: 0;
}
.fade-in.lazyloaded {
	opacity: 1;
	transition: opacity 3000ms 500ms;
}


/* ---------- ボタン ---------- */
.button1 {
	font-size: 18px;
	font-weight: 900;
	width: 90px;
	height: 30px;
	color: black;
}
.button2 {
	font-size: 11pt;
	font-weight: 900;
	width: 90px;
	height: 30px;
	color: black;
}
.button3 {
	font-size: 11px;
	font-weight: 900;
	width: 90px;
	height: 30px;
	color: black;
}
.button4 {
	font-size: 11px;
	font-weight: 900;
	width: 90px;
	height: 20px;
	color: black;
}
.button5 {
	font-size: 11px;
	font-weight: 900;
	width: 80px;
	height: 20px;
	color: black;
}
.button6 {
	font-size: 11px;
	font-weight: 900;
	width: 60px;
	height: 30px;
	color: black;
}

.btn-gradient {
	padding: 8px 20px;
	font-size: 13px;
	font-weight: 600;
	color: white;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-gradient:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 12px rgba(102, 126, 234, 0.5);
}


/* ---------- 旧 auto-style 系 ---------- */
.auto-style1 {
	font-size: 48px;
	color: #FF0000;
	font-style: italic;
	animation: flash 2s ease infinite alternate;
}

#contain_moon{
	background-color: gray;
	color: white;
	font-family: Arial;
}

.auto-style3 {
	font-size: x-large;
}
.auto-style4 {
	font-size: small;
}
.auto-style5 {
	font-weight: normal;
}
.auto-style6 {
	text-align: center;
}
.auto-style7 {
	border-width: 0px;
}
.auto-style9 {
	text-align: left !important;
	font-size: x-large;
}

.auto-style11 {
	font-weight: bold;
	border-width: 1px;
	background-color: #C0C0C0;
	text-align: left;
	border-collapse: collapse;
	table-layout: auto;
}

@keyframes flash {
	50% {
		opacity: 0;
	}
}

.label_text2 {
	font-size: 10px;
	color: #104070;
}
.label_text {
	font-size: 13px;
	color: #104070;
}


/* ---------- テーブル見出し・セル ---------- */
.table1-th {
	font-weight: bold;
	border-width: 1px;
	background-color: #C0C0C0;
	text-align: left;
	border-collapse: collapse;
	table-layout: auto;
}

.table2-th {
	font-weight: bold;
	border-width: 1px;
	background-color: #A9BCF5;
	text-align: left;
	border-collapse: collapse;
	table-layout: auto;
}

.table3-th {
	font-weight: bold;
	border-width: 1px;
	background-color: #BCA9F5;
	text-align: left;
	border-collapse: collapse;
	table-layout: auto;
}

.table1-td {
	border-width: 1px;
}


/* ---------- ツールチップ ---------- */
.toolTip{ position: relative; }
.toolTip span{
	display: block;
	border: solid 2px #999;
	background-color: #EEFFEE;
	color: #666;
	text-decoration: none;
	position: absolute;
	top: 90px;
	left: 0px;
	padding: 5px;
	visibility: hidden;
	width: 150px;
}
a.toolTip:hover, a.toolTip:hover span{
	visibility: visible;
	z-index: 100;
}

.sample08 {
	background: linear-gradient(transparent 30%, #ff0000 40%);
	font-weight: bold;
	font-size: 26px;
	text-shadow: 1px 1px 2px silver;
}


/* ---------- iframe ---------- */
.iframe-content {
	position: relative;
	width: 100%;
	padding: 75% 0 0 0;
	padding-left: 0%;
}
.iframe-content iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.jma-iframe-container {
	position: relative;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

.jma-iframe-container iframe {
	width: 100%;
	height: 500px;
	border: 1px solid #ccc;
	border-radius: 8px;
}

.jma-source-link {
	font-size: 12px;
	text-align: right;
	margin-top: 4px;
	color: #666;
}


/* ==========================================
   衛星画像タイムラプス用スタイル
========================================== */
.satellite-viewer {
	text-align: center;
	max-width: none;            /* 旧 350px */
	margin: 20px auto 40px;
}

.satellite-img {
	width: 100%;
	height: auto;
	border: 1px solid #ccc;
	background-color: #f0f0f0;
	display: block;
}

.satellite-time {
	font-weight: bold;
	margin-bottom: 10px;
	color: #333;
}

.satellite-controls {
	margin-top: 10px;
}

.satellite-controls button {
	padding: 5px 10px;
	font-size: 12px;
	cursor: pointer;
	margin: 0 5px;
}


/* ==========================================
   ヘッダー（parts/header.php 用）
========================================== */
.site-header {
	display: block;
	text-indent: 0; /* body の text-indent: 1rem を打ち消す */
}
.site-header .row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;   /* 縦4px・横14px */
	margin: 0;
}
.site-header .row + .row {
	margin-top: 6px; /* 1段目と2段目の間 */
}
.site-header .gap-l {
	margin-left: 24px;
}

/* 旗アイコンを <button> にしても見た目を変えない */
.icon-btn {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font: inherit;
	color: inherit;
	line-height: 0;
}
.icon-btn:focus-visible,
.site-header a:focus-visible {
	outline: 2px solid #8b4513;
	outline-offset: 2px;
}

/* 「www.tono2.net」をリンクの見た目のまま button にする */
.link-btn {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	font: inherit;
	color: #0000ee;
	text-decoration: underline;
}


/* =================================================================
   上部メイン表のGrid（parts/main_board.php）
   旧 <table border="1"> と同じ「セルごとに茶色の枠＋2pxの隙間」を再現
================================================================= */
.top-board {
	display: grid;
	/* METAR / 国内空港の天気 / 月（残り全部）/ 日月出没。body は 1070px 固定なので、月の列は約240px になる */
	grid-template-columns: 280px 315px minmax(200px, 1fr) 210px;
	grid-template-areas:
		"metar  awx     moon   sun"
		"metar  asia    moon   sun"
		"hourly comment taf    taf";
	gap: 2px;                      /* 旧 cellspacing */
	padding: 2px;
	border: 1px solid #8b4513;     /* 旧 bordercolor="#8b4513" */
	box-sizing: border-box;
	width: 100%;
	text-indent: 0;
}

.top-board > section {
	border: 1px solid #8b4513;
	padding: 2px 4px;
	min-width: 0;                  /* 長いselectで列が広がるのを防ぐ */
	box-sizing: border-box;
}

.tb-metar       { grid-area: metar; }
.tb-airport-wx  { grid-area: awx; }
.tb-asia-wx     { grid-area: asia; }
.tb-moon        { grid-area: moon; }
.tb-sun         { grid-area: sun; }
.tb-datis       { grid-area: datis; }
.tb-datis-asia  { grid-area: adatis; }
.tb-datis-input { grid-area: dinput; }
.tb-hourly      { grid-area: hourly; }
.tb-comment     { grid-area: comment; }
.tb-taf         { grid-area: taf; }

/* D-ATIS行は元のパステル背景 */
.top-board .datis { background-color: #f5deb3; }

/* 日の出日没の表がセルからはみ出さないように */
.tb-sun { overflow-x: auto; }
.tb-sun table { table-layout: auto !important; }

.top-board form.jump { margin: 4px 0; }
.top-board select { max-width: 100%; }


/* =================================================================
   下部の天気図・衛星画像ボード（parts/weather_board.php）
   旧 <table> の「見出し行→画像行」を、見出し+画像の1枚（.panel）にまとめ、
   subgrid で行の高さを揃えて旧レイアウトと同じ見え方にする
================================================================= */
.board {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;                       /* 旧 cellspacing="1" */
	padding: 1px;
	border: 1px solid #808080;
	width: 100%;                    /* 旧 1057px 固定 */
	margin: 0 auto;
	box-sizing: border-box;
	text-indent: 0;
}
.board.cols2 { grid-template-columns: repeat(2, 1fr); }

/* 見出し+本体を1枚に。見出し行・本体行は他のpanelと揃える */
.panel {
	display: grid;
	grid-row: span 2;
	grid-template-rows: subgrid;
	gap: 1px;
	min-width: 0;
}
.panel.solo { display: flex; flex-direction: column; grid-row: span 1; }   /* 見出しだけ／本体だけの行 */
.panel.solo > .ph,
.panel.solo > .pb { flex: 1 1 auto; }                /* 同じ行の高いセルに合わせて伸ばす */
.panel.span2 { grid-column: span 2; }
.panel.span3 { grid-column: span 3; }

/* subgrid非対応ブラウザ（古いiPadなど）の保険 */
@supports not (grid-template-rows: subgrid) {
	.panel { display: block; grid-row: span 1; }
}

/* 旧 th.table1-th / td.table1-td */
.ph {
	align-content: center;
	background-color: #C0C0C0;
	font-weight: bold;
	text-align: left;
	border: 1px solid #808080;
	padding: 2px 4px;
	min-width: 0;
	box-sizing: border-box;
	overflow-wrap: break-word;
}
.pb {
	align-content: center;
	border: 1px solid #808080;
	padding: 2px 4px;
	text-align: center;
	min-width: 0;
	box-sizing: border-box;
}

.board iframe { border: 0; max-width: 100%; width: 100%; }   /* 旧 width属性(350等)に縛られずセル幅いっぱい */

/* 天気図などの画像をセル幅いっぱいに（国旗・アイコン・衛星画像は対象外） */
.board .pb > a > img:not(.satellite-img),
.board .pb > img {
	width: 100%;
	height: auto;
}
.board .btn-sm { font-size: 8pt; }
.clickable { cursor: pointer; }
.icon-btn img:not(.icon-size) { width: auto !important; height: auto !important; } /* 787アイコン(40x13)だけ元のサイズ。国旗は .icon-size の25x20を維持 */

/* SuperC Weather: 左を切り取って表示（旧 inline style） */
.clip-box { width: 100%; height: 500px; margin: 0; overflow: hidden; }
.clip-box iframe { width: calc(100% + 130px); height: 500px; max-width: none; margin-left: -130px; }

/* RainViewer */
.board iframe.rainviewer { width: 100%; height: 80vh; }


/* =================================================================
   下部リンク集・カメラ（parts/bottom.php）
   ※ .board / .panel / .ph / .pb は 上のボード用CSSを共用
================================================================= */

/* 上段のリンク2行（旧 <p>＋&nbsp;） */
.linkrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 14px;
	margin: 1em 0;
	text-indent: 0;
}
.linkrow.indent { padding-left: 1.5rem; }   /* 旧 &nbsp;&nbsp; + text-indent 相当 */

/* 天気のツボの解説文（旧 <p><textarea>） */
.tubo-text { margin: 1em 0; text-indent: 0; }

/* 東南アジア・雷・火山：左510px / 右540px（旧 width 指定） */
.board.cols-510-540 { grid-template-columns: 510fr 540fr; }

/* 縦に積む列。右列は 見出し→本体→見出し→本体 */
.col {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}
.col > .pb { flex: 0 0 auto; }
.col:first-child > .pb { flex: 1 1 auto; }   /* 左列は右列の高さまで伸ばす */

/* リンク集の本体は左寄せ（上寄せ） */
.pb.left { text-align: left; align-content: start; }
.pb.left p { margin: .5em 0; }

/* 「かたまり」ごとに1行あける（旧 <br><br>） */
.linkblock { margin: 0 0 1em; }

/* 火山灰拡散予測図 */
#vaac-container img { max-width: 100%; height: auto; border: 1px solid #ccc; }
.vaac-note { font-size: 12px; color: #666; }


/* =================================================================
   スマートフォン（画面幅 760px 以下）
   上から下の順番はそのまま、すべて1列に積む
================================================================= */
@media (max-width: 760px) {

	/* 横スクロールの下限を外し、画面幅にぴったり合わせる */
	body {
		min-width: 0;
		padding: 0 4px;
		text-indent: 0;
	}

	/* ヘッダー */
	.site-header .gap-l { margin-left: 0; }
	.site-header .row { gap: 6px 12px; }

	/* 上部メイン表: 4列 → 1列（並び順は HTML の順） */
	.top-board {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"metar"
			"awx"
			"asia"
			"moon"
			"sun"
			"hourly"
			"comment"
			"taf";
	}

	/* 下部ボード: 3列/2列 → 1列。colspan指定が余計な列を作らないようにする */
	.board,
	.board.cols2,
	.board.cols-510-540 {
		grid-template-columns: minmax(0, 1fr);
	}
	.panel.span2,
	.panel.span3 { grid-column: auto; }

	/* 指で押しやすく。文字を16px以上にするとiPhoneの自動ズームも起きない */
	select,
	input[type="text"],
	input[type="button"],
	input[type="submit"],
	input[type="reset"],
	button {
		min-height: 40px;
		font-size: 16px;
	}
	.top-board select { max-width: 100%; }

	/* アイコンのボタンは押せる範囲を広げる（見た目の大きさは変えない） */
	.icon-btn { padding: 4px; }

	/* リンクの行は折り返し＋タップしやすい間隔 */
	.linkrow { gap: 8px 14px; }
	.linkrow.indent { padding-left: 0; }

	/* 画像・地図はセル幅いっぱい（既に100%）。iframeの高さだけ少し控えめに */
	.board iframe { height: 380px; }
	.board iframe.rainviewer { height: 70vh; }

	/* SuperC Weather の切り取り枠 */
	.clip-box { height: 420px; }
	.clip-box iframe { height: 420px; }
}

/* タッチ端末では hover の青背景が押した後も残るのを防ぐ */
@media (hover: none) {
	a:hover { color: #0000ff; background: none; }
	a:visited:hover { color: #000080; }
}


/* ヘッダーのグループ（PCでは枠を作らず、これまでと同じ並びのまま） */
.site-header .grp { display: contents; }

/* スマホ：ヘッダーの整え方 */
@media (max-width: 760px) {
	.site-header { font-size: 20px; }
	.site-header .row { gap: 8px 10px; }
	.site-header .row + .row { margin-top: 10px; }

	/* 旗とボタンは必ず同じ行にひとまとまりで並ぶ */
	.site-header .grp {
		display: inline-flex;
		align-items: center;
		gap: 6px;
	}

	/* カウンターは小さく1行に */
	.site-header .grp.ctr { flex-wrap: wrap; gap: 0 12px; }
	.site-header .grp.ctr,
	.site-header .grp.ctr * { font-size: 14px !important; margin-left: 0; }

	/* アイコン群と掲示板ボタン */
	.site-header .grp.icons { gap: 10px; }
	.site-header .btn-blank { display: none; }   /* 文字のない空ボタンはスマホでは隠す */

	/* 路線ボタン: 大きすぎず押しやすく */
	.site-header input[type="button"] {
		width: auto;
		min-width: 72px;
		min-height: 36px;
		padding: 0 10px;
		font-size: 15px;
		border-radius: 8px;
	}
	.site-header .btn-gradient {
		width: 100%;
		max-width: 360px;
		min-height: 40px;
		border-radius: 50px;
	}
}

/* =================================================================
   国内D-ATIS: 地域ごとに色分け＋都市名つきのボタン
   「古い可能性高い」空港は灰色の破線で目立たなくする
================================================================= */
.atis-groups { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.atis-group {
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 3px 4px;
	padding: 2px 5px 4px; border-left: 4px solid var(--atis-edge);
}
.atis-label { flex: 0 0 100%; font-size: 12px; font-weight: bold; color: #333; text-indent: 0; }
.btn-atis {
	display: inline-flex; flex-direction: column; align-items: center;
	min-width: 62px; padding: 2px 6px 3px;
	border: 1px solid #777; border-radius: 5px;
	background: var(--atis-bg); color: #000;
	font: inherit; line-height: 1.25; cursor: pointer; text-indent: 0;
}
.btn-atis b    { font-size: 14px; }
.btn-atis span { font-size: 11px; font-weight: normal; }
.btn-atis:hover { filter: brightness(.94); }
.btn-atis:focus-visible { outline: 2px solid #8b4513; outline-offset: 2px; }
.btn-atis.old { background: #eee; color: #777; border: 1px dashed #999; }   /* 古い可能性高い */
.atis-legend { font-size: 12px; margin-top: 4px; color: #444; }
.atis-legend i { display: inline-block; width: 22px; height: 12px; vertical-align: -2px; margin-right: 4px; background: #eee; border: 1px dashed #999; }

.atis-c1 { --atis-bg: #CFE3F7; --atis-edge: #4F86C6; }
.atis-c2 { --atis-bg: #F7E7B4; --atis-edge: #C9A227; }
.atis-c3 { --atis-bg: #CDEBCB; --atis-edge: #4E9A4A; }
.atis-c4 { --atis-bg: #F7CDD6; --atis-edge: #C95A74; }
.atis-c5 { --atis-bg: #E1D3F2; --atis-edge: #8A63BD; }
.atis-c6 { --atis-bg: #FAD9B8; --atis-edge: #D2873A; }
.atis-c7 { --atis-bg: #C9EAEA; --atis-edge: #3E9C9C; }
.atis-c8 { --atis-bg: #F3D0EA; --atis-edge: #B8559F; }

/* =================================================================
   METAR/TAF 入力欄の候補リスト（js/airport-suggest.js）
================================================================= */
.ap-list {
	position: absolute; z-index: 1000; box-sizing: border-box;
	max-height: 320px; overflow-y: auto;
	background: #fff; border: 1px solid #8b4513; border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,.25);
	text-indent: 0; font-size: 14px; text-align: left;
}
.ap-list[hidden] { display: none; }
.ap-item { display: flex; align-items: baseline; gap: 8px; padding: 5px 8px; cursor: pointer; }
.ap-item b { font-family: Consolas, monospace; min-width: 3.4em; }
.ap-item i { font-style: normal; min-width: 2.4em; color: #666; font-size: 12px; }
.ap-item span { white-space: nowrap; }
.ap-item small { color: #777; margin-left: auto; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-item.on, .ap-item:hover { background: #fde9c8; }
.ap-item.hist b { font-family: inherit; min-width: 0; }
.ap-head { padding: 3px 8px; font-size: 11px; color: #777; background: #f6f1e8; }
.ap-foot { padding: 5px 8px; font-size: 12px; color: #0000ee; text-align: right; cursor: pointer; border-top: 1px solid #eee; }
@media (max-width: 760px) {
	.ap-item { min-height: 44px; align-items: center; font-size: 16px; }
	.ap-item small { display: none; }
	.btn-atis { min-width: 72px; min-height: 44px; }
	.atis-groups { gap: 8px 10px; }
}


/* ヘッダーの強制折り返し（PCでは何もしない／スマホだけ効く） */
.site-header .br { display: none; }
.site-header .grp.tools { display: contents; }   /* PCでは今までどおり横並び */
@media (max-width: 760px) {
	.site-header .br { display: block; flex-basis: 100%; height: 0; }   /* flexの行を強制的に改行 */
	.site-header .grp.tools { display: inline-flex; flex-wrap: wrap; gap: 6px; }
	.site-header .grp.tools .btn-gradient { width: auto; max-width: none; padding: 0 16px; }
}

/* 2行表示のグラデーションボタン（FPLデコーダー / Distance計算） */
.btn-2line { line-height: 1.25; padding: 6px 18px; border-radius: 22px; font-family: inherit; }
@media (max-width: 760px) {
	.site-header .grp.tools .btn-2line { padding: 4px 16px; min-height: 44px; font-size: 14px; }
}

/* スマホでは2段目の旗アイコンを隠す（路線ボタンだけにしてすっきり。PCは今までどおり） */
@media (max-width: 760px) {
	.site-header .row + .row .icon-btn { display: none; }
}

/* スマホ: 路線ボタン5つ（欧州・北米・ハワイ・豪州・印度）を1行に収める */
@media (max-width: 760px) {
	.site-header .row + .row { gap: 8px 6px; }
	.site-header .row + .row input.button1,
	.site-header .row + .row input.button2 {
		min-width: 62px;
		padding: 0 5px;
		font-size: 14px;
	}
}


/* METAR/TAF: 幅1070pxでも「入力欄・Submit・Reset FORM」が1行に収まるように */
.tb-metar input[name="ids"] { width: 100px; }
@media (max-width: 760px) { .tb-metar input[name="ids"] { width: 150px; } }


/* =================================================================
   ダークモード（端末・ブラウザがダークモードのときだけ有効）
   今のベージュの雰囲気を残した、こげ茶×ベージュの配色
================================================================= */
@media (prefers-color-scheme: dark) {
	:root { color-scheme: dark; }               /* 入力欄・プルダウン・スクロールバーも暗い色に */

	body, .main { background-color: #23201a; color: #e2d69a; }
	body { border-top-color: #3a352a; }

	/* リンク */
	a:link    { color: #8ab4ff; }
	a:visited { color: #c3a6ff; }
	a:hover   { color: #000; background: #8ab4ff; }
	a:active  { color: #ffe066; }

	/* 上部メイン表の枠 */
	.top-board,
	.top-board > section { border-color: #6b4a2b; }

	/* 下部ボードの見出し・枠（旧 table1-th 系） */
	.ph, .table1-th, .auto-style11 { background-color: #3a372f; color: #e2d69a; border-color: #555; }
	.pb, .table1-td { border-color: #555; }
	.board { border-color: #555; }
	.table2-th { background-color: #2f3a5a; color: #e2d69a; }
	.table3-th { background-color: #3d3358; color: #e2d69a; }

	/* 文字色の個別指定 */
	.select_t   { color: #8ab4ff; }
	.label_text,
	.label_text2 { color: #9cc3ef; }
	.satellite-time { color: #e2d69a; }
	.jma-source-link, .vaac-note { color: #aaa; }
	.atis-label { color: #e2d69a; }
	.atis-legend { color: #bbb; }

	/* 入力欄の候補リスト */
	.ap-list { background: #2b2822; border-color: #6b4a2b; }
	.ap-item.on, .ap-item:hover { background: #4a3c22; }
	.ap-head { background: #332f27; color: #aaa; }
	.ap-foot { color: #8ab4ff; border-top-color: #3a352a; }
	.link-btn { color: #8ab4ff; }

	/* 文字色を黒に固定しているボタン（時間変化など） */
	.button1, .button2, .button3, .button4, .button5, .button6 { color: #f0e8c4; }
	/* ただし、路線ボタンのように背景色を直接指定しているボタンは、明るい背景なので黒い文字のまま */
	input[type="button"][style*="background-color"] { color: #000; }

	/* ヘッダーのアクセスカウンター（ctr.php の文字色）を読める色に。since 2007 は除く */
	.site-header .grp.ctr *:not(.gap-l) { color: #9cc3ef !important; }

	/* ④⑤の黒いパネルが背景に埋もれないように薄い枠 */
	#moon-today svg, .ky-panel { outline: 1px solid #3a352a; }
}
