.page-home {
  --home-shadow-strong: 10px 10px 0 rgba(0, 0, 0, 0.4);
  --home-accent-soft: rgba(255, 90, 54, 0.12);
  --home-blue-soft: rgba(0, 198, 255, 0.1);
  --home-gold-soft: rgba(255, 209, 102, 0.14);
  position: relative;
  padding-bottom: clamp(48px, 8vw, 96px);
}

.page-home__context {
  padding-top: clamp(16px, 3vw, 28px);
}

.page-home .breadcrumb__item--current {
  color: var(--text);
  font-weight: 600;
}

.page-home__section,
.page-home__closing {
  margin-top: clamp(48px, 8vw, 96px);
}

.page-home .section-index {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-home .section-index__no {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.page-home .section-index__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin: 0;
  letter-spacing: 0.02em;
}

.page-home .section-index__note {
  margin: 0 0 0 auto;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.page-home__hero {
  margin-top: clamp(12px, 2vw, 24px);
}

.home-hero {
  position: relative;
  background-color: var(--bg-2);
  background-image:
    linear-gradient(rgba(42, 49, 84, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 49, 84, 0.22) 1px, transparent 1px),
    radial-gradient(circle at 85% 20%, rgba(0, 198, 255, 0.1) 0%, transparent 45%);
  background-size:
    26px 26px,
    26px 26px,
    auto;
  border: 3px solid var(--border);
  box-shadow: var(--home-shadow-strong);
  padding: clamp(24px, 4vw, 44px);
}

.home-hero__corner {
  position: absolute;
  top: -14px;
  left: clamp(16px, 4vw, 44px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 2px solid var(--accent);
  padding: 3px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.home-hero__corner-idx {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.home-hero__corner-label {
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.home-hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--accent2);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.home-hero__lead {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 0 24px;
}

.home-hero__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.home-hero__metric {
  background: var(--bg);
  border: 2px solid var(--border);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, background 0.2s;
}

.home-hero__metric:hover {
  border-color: var(--accent2);
  background: var(--home-blue-soft);
}

.home-hero__num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.home-hero__label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.home-hero__visual {
  position: relative;
  margin: 0;
  border: 2px solid var(--border);
  background: var(--bg);
  align-self: stretch;
}

.home-hero__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__side-note {
  position: absolute;
  top: 0;
  right: 0;
  writing-mode: vertical-rl;
  background: var(--accent);
  color: #fff;
  padding: 8px 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
}

.home-hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 2px solid var(--border);
}

.home-hero__hint {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.home-hero__version {
  color: var(--gold);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  padding: 2px 10px;
}

.page-home__index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home__toc,
.page-home__subnav {
  background: var(--bg-2);
  border: 2px solid var(--border);
  padding: 18px;
}

.page-home__toc-head,
.page-home__subnav-head {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-home__toc-head::after {
  content: "ANCHOR";
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

.page-home__subnav-head::after {
  content: "PAGES";
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

.page-home__toc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-left: 3px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.page-home__toc-link:hover,
.page-home__toc-link.is-active {
  border-left-color: var(--accent);
  background: var(--home-accent-soft);
}

.page-home__toc-no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  min-width: 28px;
}

.page-home__subnav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(42, 49, 84, 0.5);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.page-home__subnav-link:last-child {
  border-bottom: none;
}

.page-home__subnav-link:hover {
  border-left-color: var(--accent2);
  background: var(--home-blue-soft);
}

.page-home__subnav-no {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.8rem;
  min-width: 28px;
}

.page-home__subnav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.page-home__subnav-title {
  font-weight: 600;
}

.page-home__subnav-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.page-home__subnav-arrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.schedule-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: var(--bg-2);
  border: 2px solid var(--border);
  padding: clamp(16px, 3vw, 32px);
}

.schedule-board__visual {
  text-align: center;
  padding: 16px;
  background: var(--bg);
  border: 2px solid var(--border);
}

.schedule-board__visual img {
  max-width: 100%;
  height: auto;
}

.schedule-board__cover {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent2);
  margin-top: 8px;
  line-height: 1.6;
}

.schedule-board__main {
  min-width: 0;
}

.schedule-board__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.schedule-window {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 2px solid var(--border);
  padding: 16px;
}

.schedule-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 64px;
  background: var(--accent);
}

.schedule-window--evening::before {
  background: var(--accent2);
}

.schedule-window__time {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.schedule-window__time span {
  color: var(--accent);
}

.schedule-window--evening .schedule-window__time span {
  color: var(--accent2);
}

.schedule-window__title {
  font-size: 1.1rem;
  margin: 8px 0 10px;
}

.schedule-window__list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.7;
}

.schedule-window__note {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 2px 8px;
}

.schedule-board__more {
  margin-top: 16px;
  border: 2px solid var(--border);
  background: var(--bg-3);
  padding: 10px 14px;
  transition: border-color 0.2s;
}

.schedule-board__more:hover {
  border-color: var(--accent);
}

.schedule-board__more summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.schedule-board__more p {
  margin: 10px 0 4px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 2px solid var(--border);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
  padding: 20px;
}

.price-card--standard {
  border-color: var(--accent);
  background: linear-gradient(145deg, #1A2043 0%, var(--bg-2) 100%);
  box-shadow: 8px 8px 0 var(--home-accent-soft);
}

.page-home .price-card .tag {
  position: absolute;
  top: -12px;
  right: 12px;
}

.price-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.price-card__price {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.price-card__price .num {
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 700;
}

.price-card--standard .price-card__price .num {
  color: var(--gold);
}

.price-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.8;
}

.price-card__features li {
  position: relative;
  padding-left: 18px;
}

.price-card__features li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.price-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
  background: var(--bg-2);
  border: 2px solid var(--border);
  padding: 16px;
}

.price-note img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.price-note p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.homeaway-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.homeaway-panel .data-panel {
  border: 2px solid var(--border);
  background: var(--bg-2);
}

.homeaway-panel .data-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border);
}

.homeaway-panel .data-panel__title {
  font-size: 1rem;
  margin: 0;
}

.homeaway-panel .data-panel__meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.homeaway-panel .data-panel__body {
  padding: 0;
  overflow-x: auto;
}

.homeaway-panel .data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}

.homeaway-panel .data-table th,
.homeaway-panel .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.homeaway-panel .data-table th {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.homeaway-panel .data-table tbody tr {
  transition: background 0.2s, border-color 0.2s;
  border-left: 3px solid transparent;
}

.homeaway-panel .data-table tbody tr:hover {
  background: var(--home-accent-soft);
  border-left: 3px solid var(--accent);
}

.homeaway-panel__diff--pos {
  color: var(--accent2);
}

.homeaway-panel__diff--neg {
  color: var(--gold);
}

.homeaway-visual {
  border: 2px solid var(--border);
  background: var(--bg-2);
  padding: 14px;
}

.homeaway-visual img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.homeaway-visual__note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.archive-layout {
  background: var(--bg-2);
  border: 2px solid var(--border);
  padding: clamp(16px, 3vw, 32px);
}

.archive-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.archive-timeline__item {
  background: var(--bg);
  border: 2px solid var(--border);
  padding: 18px;
  transition: border-color 0.2s;
}

.archive-timeline__item:hover {
  border-color: var(--accent2);
}

.archive-timeline__item--current {
  border-color: var(--accent);
}

.archive-timeline__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 3px 8px;
  margin-bottom: 10px;
}

.archive-timeline__tag--current {
  color: var(--accent);
  border-color: var(--accent);
}

.archive-timeline__tag--rotate {
  color: var(--accent2);
  border-color: var(--accent2);
}

.archive-timeline__title {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.archive-timeline__desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

.page-home__closing {
  border: 2px dashed var(--border);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: border-color 0.2s;
}

.page-home__closing:hover {
  border-color: var(--accent);
}

.page-home__closing a {
  color: var(--accent2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.page-home__closing a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 520px) {
  .page-home .section-index__note {
    margin-left: 0;
    width: 100%;
  }

  .home-hero__status {
    gap: 8px;
  }

  .home-hero__hint {
    margin-left: 0;
    width: 100%;
  }

  .price-note {
    flex-direction: column;
  }

  .homeaway-panel .data-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 700px) {
  .schedule-board__columns {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .price-note img {
    width: 180px;
  }

  .page-home__index-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .schedule-board {
    grid-template-columns: 160px 1fr;
    align-items: start;
    gap: 20px;
  }
}

@media (min-width: 860px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
  }

  .home-hero__metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-hero__metric {
    padding: 12px;
  }
}

@media (min-width: 900px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .homeaway-panel {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .archive-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
