/* 公開画面の見た目（一日の帯。design-variants の案 03 を本番にしたもの）。
   明るい配色が既定。暗い配色は、閲覧者が選んだときと、選んでいない閲覧者の夜（日の入りから日の出まで）に使う。
   文字と背景の対比は、本文、注記とも 4.5 対 1 以上（NFR-07）。本文の文字は16px以上。時刻の数字は桁を揃える。 */
:root {
	--paper: #f3f1ea;
	--ink: #1b201a;
	--muted: #555b51;
	--rule: #7d8076;
	--hair: #d3d0c5;
	--well: #e9e6dc; /* 日ごとの帯の棚の地 */
	--photo-bg: #dcd8cc;
	--accent: #5f5c1c; /* 針の位置の時刻だけに使う（写真のメジロの背の黄緑から） */
	--accent-line: #8a8630;
	--shade: #1c1a12; /* 写真の影の色。表紙の映像の外と、バードバスのいまの地 */
	--on-shade: #ece9df;
	--on-shade-muted: #c4c0b2;
	--night-band: #c9c5b8; /* 時間軸の上の、その日の夜に当たる時間帯 */
	--sans: "IBM Plex Sans", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
	--serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--gut: max(16px, 4vw);
	--maxw: 1320px;
	--ph: clamp(120px, 19vh, 190px);
	--axh: 28px;
	--lead: 26px;
	--cap: 54px;
	color-scheme: light;
}
@supports (height: 100svh) {
	:root {
		--ph: clamp(120px, 19svh, 190px);
	}
}
:root[data-theme="dark"] {
	--paper: #131611;
	--ink: #e9e7de;
	--muted: #a6ab9e;
	--rule: #7c8174;
	--hair: #2e332b;
	--well: #1a1d17;
	--photo-bg: #262a22;
	--accent: #c9c46a;
	--accent-line: #b7b25a;
	--shade: #0c0b07;
	--night-band: #3a3f35;
	color-scheme: dark;
}
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	background: var(--paper);
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.85;
	-webkit-text-size-adjust: 100%;
	overflow-x: clip;
	word-break: auto-phrase;
	line-break: strict;
}
p,
li,
td,
dd {
	text-wrap: pretty;
}
h1,
h2,
h3,
h4 {
	text-wrap: balance;
	font-weight: 500;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
	margin: 0;
}
ul,
ol {
	list-style: none;
	padding: 0;
}
a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}
a:hover {
	text-decoration-thickness: 2px;
}
b {
	font-weight: 700;
}
time,
.t,
.big,
.rd-v,
.unk-n,
table {
	font-variant-numeric: tabular-nums;
}
:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}
.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10;
	padding: 0.5rem 1rem;
	background: var(--paper);
	color: var(--ink);
}
.skip:focus {
	left: 0;
}
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.nb {
	display: inline-block;
}
[hidden] {
	display: none !important;
}

/* ---- 表紙: 映像だけ。映像の外は写真の影の色。前面には何も置かない ---- */
.cover {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	background: var(--shade);
}
.player {
	position: relative;
	width: min(100%, calc(100vh * 16 / 9));
	width: min(100%, calc(100svh * 16 / 9));
	aspect-ratio: 16 / 9;
	background-color: #000;
}
.player iframe,
.player img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	object-fit: cover;
}
.load-error {
	max-width: 40em;
	margin: 40px auto;
	padding: 0 16px;
}

/* ---- 写真: 鳥に寄せて切り抜く（拡大は元の画素数まで。倍率は app.js が枠の幅から決める） ---- */
.crop {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--ar);
	background: var(--photo-bg);
	flex: none;
}
.crop > img {
	position: absolute;
	max-width: none;
	width: calc(var(--z, 1) * 100%);
	height: auto;
	left: clamp(calc((1 - var(--z, 1)) * 100%), calc(50% - var(--cx) * var(--z, 1) * 100%), 0%);
	top: clamp(calc((1 - var(--z, 1) * 0.5625 * var(--ar)) * 100%), calc(50% - var(--cy) * var(--z, 1) * 56.25% * var(--ar)), 0%);
}

/* ---- 一日の帯（静的な並び。広い画面で動きを許すときは html.band-move で横に送る） ---- */
.band {
	position: relative;
}
.band-pin {
	position: relative;
	padding: 72px var(--gut) 48px;
}
.band-pin > .band-head-fixed {
	display: none;
}
.band-head {
	margin: 0 0 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 18px;
}
.band-head h2 {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.band-head h2:focus {
	outline: none;
}
.band-date {
	font-size: 17px;
	color: var(--muted);
}
.band-key {
	font-size: 15px;
	color: var(--muted);
}
.band-key b {
	color: var(--ink);
}
/* 日の送り（前の日、今日へ、次の日） */
.band-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 16px;
}
.band-nav:empty {
	display: none;
}
.band-nav a {
	color: var(--ink);
	text-underline-offset: 3px;
	white-space: nowrap;
}
.band-nav .dn-today {
	font-weight: 600;
}
/* 題名は今日の帯へ戻るリンク（見た目は題名のまま） */
.h1-link {
	color: inherit;
	text-decoration: none;
}
.h1-link:hover .h1-name,
.h1-link:focus-visible .h1-name {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}
.intro {
	max-width: var(--maxw);
	margin: 0 auto 56px;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 12px 56px;
	align-items: end;
}
.intro h1 {
	grid-column: 1;
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(36px, 4.2vw, 60px);
	line-height: 1.25;
	letter-spacing: 0.04em;
	word-break: auto-phrase;
}
/* 名前を大きく、副題を小さく2行に分ける */
.intro h1 .h1-name,
.intro h1 .h1-sub {
	display: block;
}
.intro h1 .h1-sub {
	margin-top: 0.15em;
	font-size: 0.5em;
	letter-spacing: 0.08em;
}
.byline {
	grid-column: 1;
	color: var(--muted);
	font-size: 16px;
}
/* 言語の切り替え（日本語の画面の「English」、英語の画面の「日本語」） */
.byline .lang {
	margin-left: 0.6em;
	padding-left: 0.6em;
	border-left: 1px solid var(--rule);
	white-space: nowrap;
}
.lead {
	grid-column: 2;
	grid-row: 1 / 3;
	max-width: 36em;
}
.cover-note {
	grid-column: 1 / -1;
	max-width: 46em;
	padding-left: 16px;
	border-left: 3px solid var(--rule);
	font-size: 16px;
}
.cover-note p + p {
	margin-top: 4px;
}
.tl-box {
	max-width: var(--maxw);
	margin: 0 auto;
}
.tl {
	position: relative;
}
.tl-deco {
	position: absolute;
	inset: 0;
}
.tl-empty {
	padding: 48px 0;
}
.ph-probe {
	position: absolute;
	visibility: hidden;
	height: var(--ph);
	width: 1px;
}
.needle,
.now-at {
	display: none;
}

/* 軸の部品（横の並び。位置は app.js が画素で決める） */
.ax,
.hr,
.tk,
.mk,
.brk,
.night,
.sun,
.rs,
.it {
	position: absolute;
}
.ax {
	height: var(--axh);
	border: solid var(--rule);
	border-width: 1px 0;
}
.ax-v {
	width: 5px;
	border-width: 0 1px;
}
.hr {
	height: var(--axh);
	line-height: var(--axh);
	transform: translateX(-50%);
	padding: 0 3px;
	font-size: 14px;
	font-weight: 500;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.tk {
	width: 1px;
	height: 6px;
	background: var(--rule);
}
.mk {
	width: 2px;
	height: 7px;
	margin-left: -1px;
	background: var(--ink);
}
.night {
	height: var(--axh);
	background: var(--night-band);
}
.brk {
	height: calc(var(--axh) + 6px);
	margin-top: -3px;
	background: var(--paper);
}
.brk::before,
.brk::after {
	content: "";
	position: absolute;
	top: -3px;
	bottom: -3px;
	width: 1px;
	background: var(--rule);
	transform: skewX(-18deg);
}
.brk::before {
	left: 0;
}
.brk::after {
	right: 0;
}
.sun {
	font-size: 15px;
	color: var(--muted);
	white-space: nowrap;
	line-height: 1.35;
}
.sun b {
	display: block;
	color: var(--ink);
	font-weight: 600;
	font-size: 19px;
	font-variant-numeric: tabular-nums;
}
.sun-set {
	transform: translateX(-100%);
	text-align: right;
}
.rs {
	font-size: 14px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.it {
	display: flex;
}
.it.up {
	flex-direction: column-reverse;
}
.it.dn {
	flex-direction: column;
}
.it .ph {
	display: block;
	position: relative;
}
.it.up .ph {
	margin-bottom: var(--lead);
}
.it.dn .ph {
	margin-top: var(--lead);
}
.it .ph::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 1px;
	height: var(--lead);
	background: var(--rule);
}
.it.up .ph::after {
	top: 100%;
}
.it.dn .ph::after {
	bottom: 100%;
}
.it figcaption {
	height: var(--cap);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	white-space: nowrap;
	font-size: 16px;
	line-height: 1.45;
}
.it.dn figcaption {
	justify-content: flex-start;
	padding-top: 4px;
}
.it .t {
	font-weight: 600;
}
.it .u {
	color: var(--muted);
	font-size: 15px;
}
.it.is-now .t {
	color: var(--accent);
}

/* 横に送る帯 */
html.band-move .band-pin {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: clip;
	padding: 0;
}
html.band-move .tl-box > .band-head {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	margin: 0;
}
html.band-move .band-pin > .band-head-fixed {
	display: flex;
	position: absolute;
	top: 22px;
	left: var(--gut);
	z-index: 3;
	margin: 0;
	padding: 6px 14px 8px 0;
	background: var(--paper);
}
html.band-move .band-track {
	display: flex;
	height: 100%;
	will-change: transform;
}
html.band-move .band-track::after {
	content: "";
	flex: 0 0 50vw;
}
html.band-move .intro {
	flex: 0 0 50vw;
	display: block;
	position: relative;
	height: 100%;
	margin: 0;
	max-width: none;
}
html.band-move .intro > * {
	position: absolute;
	left: var(--gut);
	right: 64px;
}
html.band-move .intro h1 {
	font-size: clamp(36px, 3.4vw, 54px);
	bottom: calc(50% + 24px + 104px);
}
html.band-move .byline {
	bottom: calc(50% + 24px + 56px);
}
html.band-move .lead {
	top: calc(50% + 24px + 40px);
	max-width: 32em;
}
html.band-move .cover-note {
	bottom: 32px;
}
html.band-move .tl-box {
	flex: none;
	height: 100%;
	max-width: none;
	margin: 0;
}
html.band-move .tl {
	height: 100%;
}
html.band-move .needle {
	display: block;
	position: absolute;
	left: 50%;
	top: calc(50% + 24px - var(--axh) / 2 - var(--lead));
	height: calc(var(--axh) + 2 * var(--lead));
	width: 1px;
	background: var(--accent-line);
}
html.band-move .now-at {
	display: block;
	position: absolute;
	left: 50%;
	top: calc(50% + 24px - var(--axh) / 2 + 1px);
	height: calc(var(--axh) - 2px);
	line-height: calc(var(--axh) - 2px);
	transform: translateX(-50%);
	padding: 0 8px;
	background: var(--paper);
	color: var(--accent);
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	box-shadow: inset 0 0 0 1px var(--accent-line);
}

/* 縦の軸（狭い画面）: 左に時刻、右に写真 */
html.band-vert .band-pin {
	padding: 56px 16px 32px;
}
html.band-vert .intro {
	display: block;
	margin-bottom: 48px;
}
html.band-vert .intro h1 {
	font-size: 34px;
}
html.band-vert .byline {
	margin-top: 6px;
}
html.band-vert .lead,
html.band-vert .cover-note {
	margin-top: 20px;
}
html.band-vert .tl {
	margin-top: 56px;
}
html.band-vert .hr {
	left: 0;
	width: 44px;
	height: auto;
	line-height: 1;
	text-align: right;
	transform: translateY(-50%);
	padding: 0;
}
html.band-vert .tk {
	left: 52px;
	width: 5px;
	height: 1px;
}
html.band-vert .mk {
	left: 61px;
	width: 9px;
	height: 2px;
	margin: -1px 0 0;
}
html.band-vert .night {
	left: 52px !important;
	width: 5px;
}
html.band-vert .brk {
	left: 46px !important;
	width: 17px;
	margin: 0;
}
html.band-vert .brk::before,
html.band-vert .brk::after {
	left: -2px;
	right: -2px;
	width: auto;
	height: 1px;
	transform: skewY(-18deg);
}
html.band-vert .brk::before {
	top: 0;
	bottom: auto;
}
html.band-vert .brk::after {
	bottom: 0;
	top: auto;
}
html.band-vert .sun {
	left: 0;
	width: 46px;
	text-align: right;
	transform: translateY(-100%);
	padding-bottom: 8px;
	white-space: normal;
}
html.band-vert .sun-set {
	transform: none;
	padding: 8px 0 0;
}
html.band-vert .sun b {
	font-size: 16px;
}
html.band-vert .it {
	flex-direction: column;
}
html.band-vert .it.up .ph,
html.band-vert .it.dn .ph {
	margin: 0;
}
html.band-vert .it .ph::after {
	top: 0;
	bottom: auto;
	left: -15px;
	width: 15px;
	height: 1px;
}
html.band-vert .it figcaption {
	height: auto;
	padding-top: 6px;
	justify-content: flex-start;
}

/* ---- 節 ---- */
.sec {
	max-width: calc(var(--maxw) + 2 * var(--gut));
	margin: 0 auto;
	padding: 112px var(--gut) 0;
}
.sec > h2 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(26px, 2.6vw, 34px);
	letter-spacing: 0.04em;
	margin-bottom: 36px;
}
.note {
	color: var(--muted);
}

/* 時刻の目盛り（来た生きもの、日ごとの帯、季節と暦で、帯と同じ軸を使う） */
.scale {
	position: relative;
	height: 30px;
	border-bottom: 1px solid var(--rule);
}
.sc-h,
.sc-t {
	position: absolute;
	bottom: 0;
	width: 1px;
	background: var(--rule);
}
.sc-t {
	height: 4px;
}
.sc-h {
	height: 9px;
}
.sc-h:not(:empty) {
	width: auto;
	height: 30px;
	background: none;
	border-left: 1px solid var(--rule);
	padding-left: 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--muted);
	line-height: 1.2;
	white-space: nowrap;
}
.sc-brk {
	position: absolute;
	bottom: -4px;
	height: 9px;
	background: var(--paper);
}
.sc-brk::before,
.sc-brk::after {
	content: "";
	position: absolute;
	top: -2px;
	bottom: -2px;
	width: 1px;
	background: var(--rule);
	transform: skewX(-18deg);
}
.sc-brk::before {
	left: 0;
}
.sc-brk::after {
	right: 0;
}

/* バードバスのいま: 帯を抜けた後の一画面。地は写真の影の色 */
.sec.now {
	max-width: none;
	margin-top: 96px;
	padding: 112px var(--gut);
	min-height: 86vh;
	min-height: 86svh;
	display: grid;
	align-items: center;
	background: var(--shade);
	color: var(--on-shade);
}
.now-in {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
}
.now h2 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(34px, 3.6vw, 48px);
	letter-spacing: 0.04em;
}
.now h2 .d {
	font-family: var(--sans);
	font-weight: 400;
	font-size: 18px;
	color: var(--on-shade-muted);
	margin-left: 12px;
}
.readings {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	margin-top: 48px;
	border-top: 1px solid var(--on-shade-muted);
	border-bottom: 1px solid var(--on-shade-muted);
}
.rd {
	padding: 20px 24px 22px 0;
}
.rd + .rd {
	padding-left: 24px;
	border-left: 1px solid rgba(196, 192, 178, 0.35);
}
.rd dt {
	font-size: 16px;
	color: var(--on-shade-muted);
}
.rd-v {
	font-size: clamp(44px, 4.6vw, 64px);
	font-weight: 500;
	line-height: 1.15;
}
.rd-u {
	font-size: 18px;
	margin-left: 6px;
}
.now-note {
	margin-top: 16px;
	font-size: 16px;
	color: var(--on-shade-muted);
	max-width: 46em;
}
.now-lists {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px 56px;
	margin-top: 40px;
}
.nl h3 {
	font-size: 16px;
	color: var(--on-shade-muted);
	font-weight: 500;
}
.nl p {
	font-size: 20px;
}

/* 来た生きもの: 写真、名前、その日に来た時刻の帯 */
.kind-scale,
.kind,
.shelf-scale,
.day {
	display: grid;
	grid-template-columns: 220px 200px minmax(0, 1fr);
	gap: 0 32px;
	align-items: end;
}
.kind-scale .scale,
.shelf-scale .scale {
	grid-column: 3;
}
.kinds h3 {
	font-size: 17px;
	color: var(--muted);
	font-weight: 500;
	letter-spacing: 0.06em;
	margin: 28px 0 0;
}
.kind {
	padding: 22px 0;
	border-bottom: 1px solid var(--hair);
}
.kind-ph .crop {
	width: 220px;
}
.kind-ph .ph {
	position: relative;
	width: fit-content;
}
.kind-ph figcaption {
	font-size: 15px;
	color: var(--muted);
	margin-top: 4px;
}
.kind-times {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 0;
	border-left: 3px solid var(--hair);
	padding-left: 14px;
	font-size: 20px;
	font-weight: 500;
}
.kind-tx h4 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: 0.04em;
	line-height: 1.3;
}
.sci {
	font-style: italic;
	color: var(--muted);
	font-size: 16px;
}
.cnt {
	margin-top: 6px;
	font-size: 16px;
}
.cnt .big {
	font-size: 30px;
	font-weight: 500;
	margin-right: 2px;
}
.cnt .of {
	color: var(--muted);
	margin-left: 10px;
	font-size: 15px;
}
.kind-band {
	position: relative;
	height: 44px;
	align-self: end;
	margin-bottom: 26px;
}
.kind-band .scale {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 14px;
}
.kmk {
	position: absolute;
	bottom: 0;
	width: 2px;
	height: 26px;
	margin-left: -1px;
	background: var(--ink);
}

/* 日ごとの帯の棚 */
.sec.shelf {
	max-width: none;
	margin-top: 112px;
	padding: 96px max(var(--gut), calc((100% - var(--maxw)) / 2)) 96px;
	background: var(--well);
}
.shelf .sc-brk {
	background: var(--well);
}
.shelf-scale,
.day {
	grid-template-columns: 160px 220px minmax(0, 1fr);
}
.day {
	position: relative;
	padding: 18px 0;
	border-bottom: 1px solid var(--hair);
	align-items: center;
}
.day > .day-ph {
	grid-column: 1;
	width: 160px;
}
.day-tx {
	grid-column: 2;
}
.day .kind-band {
	grid-column: 3;
	align-self: center;
	margin: 0;
}
.day-tx a {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 24px;
	text-decoration: none;
}
.day-tx a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.day-tx a:hover {
	text-decoration: underline;
}
.day-tx a:focus-visible {
	outline: none;
}
.day:focus-within {
	outline: 2px solid var(--ink);
	outline-offset: 4px;
}
.day-tx p {
	font-size: 16px;
}
.day.is-cur {
	box-shadow: inset 4px 0 0 var(--ink);
	padding-left: 16px;
}
.months {
	margin-top: 40px;
	display: grid;
	gap: 18px;
}
.month h3 {
	font-size: 17px;
}
.month ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

/* 季節と暦 */
table {
	border-collapse: collapse;
}
caption {
	text-align: left;
	color: var(--muted);
	font-size: 16px;
	padding-bottom: 14px;
}
.hourly-wrap {
	position: relative;
}
.hourly {
	width: 100%;
	table-layout: fixed;
}
.hourly thead {
	display: table-footer-group;
}
.hourly th {
	font-weight: 500;
	font-size: 14px;
	color: var(--muted);
	text-align: left;
	padding: 6px 0 0 3px;
	border-top: 1px solid var(--rule);
	height: 30px;
	vertical-align: top;
}
.hourly th.narrow .hh {
	visibility: hidden;
}
.hourly td {
	vertical-align: bottom;
	height: calc(var(--rows) * 15px + 48px);
	padding: 0 4px 8px 3px;
}
.hourly .n {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	margin-bottom: 8px;
}
.hourly .n.zero {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}
.tally {
	display: flex;
	flex-direction: column;
	gap: 13px;
}
.tally i {
	display: block;
	height: 2px;
	background: var(--ink);
}
.hourly-brk {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 30px;
	height: 0;
}
.cal-row {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 56px;
	margin-top: 64px;
	align-items: start;
}
.daily {
	width: 100%;
}
.daily th,
.daily td {
	text-align: right;
	padding: 10px 0 10px 18px;
	border-bottom: 1px solid var(--hair);
	white-space: nowrap;
}
.daily thead th {
	font-weight: 500;
	color: var(--muted);
	font-size: 16px;
}
.daily tbody th {
	text-align: left;
	padding-left: 0;
	font-weight: 500;
}
.unk h3 {
	font-size: 18px;
}
.unk-n {
	font-size: 44px;
	font-weight: 500;
	line-height: 1.2;
	margin: 8px 0 12px;
}
.unk-n small {
	font-size: 20px;
	margin-left: 3px;
}
.unk-n .of {
	display: block;
	font-size: 16px;
	font-weight: 400;
	color: var(--muted);
}
.unk p + p {
	margin-top: 12px;
}
.legend {
	color: var(--muted);
	font-size: 16px;
}
/* 渡り鳥の初見と終見 */
.migr {
	margin-top: 64px;
}
.migr h3 {
	font-size: 18px;
	margin-bottom: 14px;
}
.migr .daily {
	max-width: 52em;
}
.migr .daily thead th:first-child {
	text-align: left;
	padding-left: 0;
}
.migr .legend {
	margin-top: 12px;
	max-width: 46em;
}

/* 記録の持ち帰り、この観察について: 縦の二本の罫に沿って組む（帯の縦の軸と同じ形） */
.rail-list {
	position: relative;
}
.rail-list::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(220px + 26px);
	width: 5px;
	border: solid var(--rule);
	border-width: 0 1px;
}
.rail-row {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 0 62px;
	padding-bottom: 40px;
}
.rail-row h3 {
	font-size: 17px;
	font-weight: 600;
	text-align: right;
	line-height: 1.7;
}
.rail-b {
	max-width: 46em;
}
.rail-b p + p,
.rail-b p + ul,
.rail-b ul + p {
	margin-top: 12px;
}
.files,
.links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
}
.files a {
	font-size: 18px;
}
.generated,
.attribution,
.copy {
	color: var(--muted);
	font-size: 16px;
}
.about {
	padding-bottom: 140px;
}
/* 写真の共有（写真の右上のボタンと、開く小さな画面） */
.it .ph > a {
	display: block;
}
.share-btn {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 34px;
	height: 34px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(20, 20, 16, 0.55);
	color: #fff;
	cursor: pointer;
	z-index: 1;
}
.share-btn:hover,
.share-btn:focus-visible {
	background: rgba(20, 20, 16, 0.8);
}
.share-btn svg {
	width: 18px;
	height: 18px;
}
.share-dlg {
	width: min(480px, calc(100vw - 32px));
	padding: 20px;
	border: 1px solid var(--hair);
	background: var(--paper);
	color: var(--ink);
}
.share-dlg::backdrop {
	background: rgba(0, 0, 0, 0.55);
}
.share-dlg h2 {
	font-size: 18px;
	margin: 0 0 12px;
}
.share-dlg img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--photo-bg);
}
.share-tx {
	margin: 12px 0;
}
.share-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.share-acts button,
.share-acts .btn {
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	background: none;
	border: 1px solid var(--rule);
	padding: 6px 14px;
	cursor: pointer;
	text-decoration: none;
}
.share-acts .primary {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}
.share-acts button:disabled {
	opacity: 0.5;
	cursor: default;
}
.share-note {
	color: var(--muted);
	font-size: 16px;
	margin: 12px 0 0;
}
.theme-toggle {
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	background: none;
	border: 1px solid var(--rule);
	padding: 6px 16px;
	cursor: pointer;
}

/* ---- 狭い画面 ---- */
@media (max-width: 899px) {
	.cover {
		align-items: center;
	}
	.sec {
		padding-top: 88px;
	}
	.kind-scale,
	.shelf-scale {
		display: none;
	}
	.kind,
	.day {
		grid-template-columns: 132px minmax(0, 1fr);
		gap: 12px 16px;
	}
	.kind-ph .crop {
		width: 132px;
	}
	.day > .day-ph {
		width: 132px;
	}
	.kind > .kind-band,
	.day .kind-band {
		grid-column: 1 / -1;
		margin: 6px 0 22px;
	}
	.kind-band .scale {
		height: 30px;
	}
	.kind-band .sc-h:not(:empty) {
		font-size: 12px;
	}
	.kind-tx h4 {
		font-size: 22px;
	}
	.day.is-cur {
		padding-left: 12px;
	}
	.readings {
		grid-template-columns: 1fr 1fr;
	}
	.rd:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}
	.rd:nth-child(n + 3) {
		border-top: 1px solid rgba(196, 192, 178, 0.35);
	}
	.cal-row {
		grid-template-columns: 1fr;
		gap: 48px;
	}
	.hourly th {
		font-size: 12px;
		padding-left: 1px;
	}
	.hourly .n {
		font-size: 13px;
	}
	.hourly td {
		height: calc(var(--rows) * 11px + 40px);
		padding: 0 2px 6px 1px;
	}
	.tally {
		gap: 9px;
	}
	.daily th,
	.daily td {
		padding-left: 10px;
		font-size: 16px;
	}
	.rail-list::before {
		left: 0;
	}
	.rail-row {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 0 0 32px 24px;
	}
	.rail-row h3 {
		text-align: left;
	}
}

/* ---- 画面に入る少し前から現れる（0.45秒）。動きを減らす設定では最初から見せる ---- */
html.js-reveal .sec > * {
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 0.45s ease,
		transform 0.45s ease;
}
html.js-reveal .sec > .in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	html.js-reveal .sec > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
