@charset "UTF-8";
/* ==========================================================================
   トップ（index.html）とお問い合わせ（contact.html）の専用スタイル
   ========================================================================== */

/* ---------- 冒頭：平叙の紹介文と公開時期の年表 ---------- */

.intro {
  padding-top: clamp(52px, 8.2vw, 116px);
}

.lede {
  grid-column: 1 / span 10;
  font-family: var(--serif);
  font-size: clamp(20px, 1.02rem + 1vw, 29px);
  line-height: 1.68;
  font-weight: 500;
  letter-spacing: .015em;
  color: var(--ink);
}
.lede a {
  text-decoration-color: color-mix(in srgb, currentColor 32%, transparent);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
.lede a:hover {
  color: var(--indigo);
  text-decoration-color: currentColor;
}

.timeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-columns: subgrid;
  margin-top: clamp(44px, 6.5vw, 84px);
}
.tl-plot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-columns: subgrid;
}
.tl-axis {
  grid-column: 4 / -1;
  position: relative;
  height: 22px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tl-year {
  position: absolute;
  top: 0;
  padding-left: 6px;
  white-space: nowrap;
}
.tl-year:first-child,
.tl-year-end { padding-left: 0; }

.tl-lane { display: contents; }
.tl-name {
  grid-column: 1 / span 3;
  align-self: end;
  padding: 0 6px 3px 0;
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}
.tl-count {
  margin-left: .55em;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tl-track {
  grid-column: 4 / -1;
  position: relative;
  height: 38px;
  border-bottom: 1px solid var(--rule);
}
.tl-rule {
  position: absolute;
  top: 0;
  bottom: -1px;
  width: 0;
  border-left: 1px solid var(--rule);
}
.tl-axis + .tl-lane .tl-rule { top: -22px; }
.tl-gap {
  position: absolute;
  top: 0;
  bottom: -1px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(135deg, var(--rule) 0 1px, transparent 1px 6px);
}
.tl-tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 26px;
  background: var(--ink);
  transition: opacity .14s ease, height .14s ease;
}
.tl-tick::before {
  content: "";
  position: absolute;
  top: -6px; bottom: 0;
  left: -3px; right: -3px;
}
.tl-plot.is-active .tl-tick { opacity: .26; }
.tl-plot.is-active .tl-tick.is-on {
  opacity: 1;
  width: 2px;
  margin-left: -.5px;
  height: 35px;
  background: var(--vermilion);
}

.tl-caption {
  grid-column: 4 / -1;
  min-height: 1.85em;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.tl-readout { display: none; }
.tl-caption.is-reading .tl-legend { display: none; }
.tl-caption.is-reading .tl-readout {
  display: block;
  color: var(--ink);
}
.tl-readout time {
  margin-right: .95em;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--vermilion);
  font-variant-numeric: tabular-nums;
}

/* ---------- 索引ヘッダと即時フィルタ（Quick-Finder） ---------- */

.section-note {
  max-width: 42em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}

.finder {
  max-width: 38em;
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--panel);
  border-top: 1px solid var(--rule);
}

.finder-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink-2);
}

.finder-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.finder-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 6px 11px;
  background: var(--plate);
  color: var(--ink);
  border: 1px solid var(--rule-ctrl);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  appearance: none;
}
.finder-input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
.finder-input:focus {
  border-color: var(--indigo);
  outline: 2px solid var(--indigo);
  outline-offset: 1px;
}

.finder-clear,
.btn-inline {
  flex: none;
  height: 38px;
  padding: 0 13px;
  background: var(--plate);
  color: var(--ink);
  border: 1px solid var(--rule-ctrl);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.finder-clear:hover,
.btn-inline:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.finder-status {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--vermilion);
  font-variant-numeric: tabular-nums;
}
.finder-status:empty { margin-top: 0; }

.finder-empty {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.finder-empty p {
  max-width: 38em;
  font-size: 15px;
  color: var(--ink-2);
}
.finder-empty .btn-inline {
  margin-top: 14px;
}

/* ---------- 連載別の関数・項目台帳 ---------- */

.series {
  margin-top: clamp(36px, 4.8vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

.series-head {
  grid-column: 1 / span 3;
  align-self: start;
  position: sticky;
  top: 22px;
  padding-right: 8px;
}
.series-head h3 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .02em;
}
.series-head h3 a { text-decoration: none; }
.series-head h3 a:hover { color: var(--indigo); text-decoration: underline; }

.series-meta {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.series-meta > .num:first-child {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin-right: .12em;
}
.series-match {
  margin-left: .2em;
  font-weight: 600;
  color: var(--vermilion);
  font-variant-numeric: tabular-nums;
}
.series-desc {
  margin-top: 12px;
  font-size: 13.8px;
  line-height: 1.82;
  color: var(--ink-2);
}
.more {
  display: inline-block;
  margin-top: 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
}
.more:hover { text-decoration: underline; }

.ref,
.posts {
  grid-column: 4 / -1;
}

.ref {
  columns: 4;
  column-gap: var(--gap);
}
.ref-group {
  break-inside: avoid;
  padding-bottom: 24px;
}
.ref-group h4,
.posts-title {
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink-3);
}
.ref li {
  font-size: 14px;
  line-height: 1.9;
}
.ref a {
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ref a:hover {
  color: var(--indigo);
  text-decoration: underline;
}
.ref a.code { font-size: 13.5px; }
.ref-sub {
  display: none;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}
.is-filtering .ref {
  columns: 2;
}
.is-filtering .ref-sub {
  display: block;
}

.ref-parts-name {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
}
.ref-parts a {
  display: inline-block;
  margin-right: .75em;
  font-size: 13.5px;
  white-space: nowrap;
}
.ref-parts .n {
  margin-right: .22em;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--vermilion);
}
.ref-rest li { line-height: 1.68; padding: 3px 0; font-size: 13.5px; }

/* コラム抜粋・検索結果行 */
.post-list li {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 2px 16px;
  padding: 9px 0 10px;
  border-bottom: 1px solid var(--rule-fine);
  font-size: 15px;
  line-height: 1.68;
}
.post-list time {
  padding-top: .18em;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}
.post-list a { text-decoration: none; }
.post-list a:hover { color: var(--indigo); text-decoration: underline; }

/* ---------- 図版から読む解説（4葉） ---------- */

.plates-grid {
  margin-top: clamp(28px, 4vw, 44px);
}
.plates-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.6vw, 42px) var(--gap);
}

.plate-card {
  display: flex;
  flex-direction: column;
}

.plate-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 17 / 9;
  padding: 16px 18px;
  background: var(--plate);
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: border-color .15s ease;
}
.plate-frame:hover {
  border-color: var(--indigo);
}
.plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.plate-caption {
  margin-top: 12px;
}
.plate-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-3);
}
.plate-no {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--vermilion);
}
.plate-badge {
  padding: 1px 6px;
  border: 1px solid var(--rule);
  background: var(--panel);
  font-size: 11px;
  color: var(--ink-2);
}

.plate-title {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.5;
  font-weight: 700;
}
.plate-title a { text-decoration: none; }
.plate-title a:hover { color: var(--indigo); text-decoration: underline; }

.plate-desc {
  margin-top: 6px;
  font-size: 13.8px;
  line-height: 1.78;
  color: var(--ink-2);
}
.plate-credit {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}
.plate-credit a { color: var(--ink-2); }

/* ---------- DeepAge Sensor 仕様欄 ---------- */

.statement {
  max-width: 30em;
  font-family: var(--serif);
  font-size: clamp(19px, .98rem + .52vw, 24px);
  line-height: 1.62;
  font-weight: 700;
  letter-spacing: .015em;
  color: var(--ink);
}
.statement + .prose { margin-top: 16px; }

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: 32px;
  border-top: 1px solid var(--ink);
}
.specs > div {
  padding: 13px 0 15px;
  border-bottom: 1px solid var(--rule);
}
.specs dt {
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: .03em;
  color: var(--ink-3);
}
.specs dd {
  margin-top: 4px;
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 600;
  font-feature-settings: "palt";
}
.specs small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-3);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 28px;
}
.actions a {
  font-size: 15px;
  text-decoration: none;
}
.action-label {
  font-weight: 600;
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .26em;
}
.actions .host {
  margin-left: .75em;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- 幅ごとの調整 ---------- */

@media (max-width: 1120px) {
  .ref { columns: 3; }
  .lede { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .timeline { display: block; }
  .tl-plot {
    grid-template-columns: 7.2em minmax(0, 1fr);
    column-gap: 10px;
  }
  .tl-axis, .tl-track { grid-column: 2; }
  .tl-name { grid-column: 1; text-align: left; padding-right: 0; }
  .tl-count { margin-left: .4em; }
  .tl-track { height: 30px; }
  .tl-tick { height: 19px; }
  .tl-caption { display: block; }

  .series-head {
    position: static;
    padding-right: 0;
  }
  .series-desc { max-width: 40em; }
  .ref, .posts { margin-top: 22px; }
  .ref { columns: 2; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .plates-wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 540px) {
  .ref, .is-filtering .ref { columns: 2; column-gap: 14px; }
  .is-filtering .ref { columns: 1; }
  .ref li { font-size: 13.5px; line-height: 1.82; }
  .ref a.code { font-size: 12.8px; }
  .post-list li { grid-template-columns: 1fr; gap: 1px; }
  .specs { grid-template-columns: 1fr; }
  .actions { flex-direction: column; gap: 12px; }
  .actions .host { display: block; margin-left: 0; margin-top: 2px; }
}

@media print {
  .finder { display: none; }
  .tl-caption .tl-readout { display: none; }
  .series-head { position: static; }
}
