/* ==========================================================================
   site.css — NY Hostel の見た目(サイト所有)
   構成: ヘッダー / ホームのヒーロー / 記事 / カード一覧 / 部品(路線記号・基本情報・イラスト) / フッター
   ========================================================================== */

/* ── ヘッダー ─────────────────────────────────────────── */
.site-header {
  background: var(--nyh-navy);
  border-bottom: 4px solid var(--nyh-yellow);
  backdrop-filter: none;
}
.site-logo { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-size: 1.25rem; letter-spacing: .01em; }
.site-logo:hover { color: var(--nyh-yellow); }
.site-logo__mark { flex-shrink: 0; transition: transform .25s; }
.site-logo:hover .site-logo__mark { transform: rotate(-6deg) scale(1.06); }
.site-logo__ny { color: var(--nyh-yellow); }
.site-nav__item > a { color: #dbe5fa; }
.site-nav__item > a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.site-nav__item.is-active > a { color: var(--nyh-yellow); }
.nav-toggle { border-color: rgba(255, 255, 255, .35); }
.nav-toggle__bar { background: #fff; }
.site-nav__locales { border-left-color: rgba(255, 255, 255, .25); }
@media (max-width: 820px) {
  .site-nav { background: var(--nyh-navy); }
  .site-nav__locales { border-top-color: rgba(255, 255, 255, .2); }
}

/* パンくず・本文の余白 */
.breadcrumb { font-size: .82rem; }
.site-main { padding-top: 1rem; }

/* ── 見出し・本文 ─────────────────────────────────────── */
.page h1 { font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.page__body h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); line-height: 1.25; font-weight: 800;
  margin: 2.8rem 0 .9rem; padding-left: .85rem; border-left: 8px solid var(--nyh-yellow);
}
.page__body h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; color: var(--nyh-navy-2); }
.lede { font-size: 1.18rem; line-height: 1.7; color: var(--color-text); }
.page__body p { margin: 0 0 1.1rem; }
.page__body > p:first-of-type::first-letter { }
.page__hero {
  display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover;
  border-radius: var(--radius-lg); margin-bottom: 1.25rem; box-shadow: var(--shadow-md);
}
.page__body ul, .page__body ol { padding-left: 1.3rem; }
.page__body li { margin: .35rem 0; }
.page__body li::marker { color: var(--nyh-red); font-weight: 700; }
.page__body table th { background: var(--nyh-navy); color: #fff; }
.page__body blockquote { border-left: 6px solid var(--nyh-yellow); background: var(--color-surface); }

@media (prefers-color-scheme: dark) {
  .page__body h3 { color: #cfe0ff; }
}

/* ── ホーム: ヒーロー ─────────────────────────────────── */
.page--home { max-width: none; }
.page--home .page__header {
  position: relative;
  margin-inline: calc(50% - 50vw);
  padding: clamp(5rem, 14vw, 9rem) 20px clamp(7rem, 17vw, 12rem);
  text-align: center;
  background: var(--nyh-navy) url('/assets/img/hero-skyline.svg') center bottom / cover no-repeat;
  color: #fff; overflow: hidden;
}
.page--home .page__header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 40, 76, .55), rgba(18, 40, 76, 0) 70%);
}
.page--home .page__header h1 {
  position: relative; margin: 0 auto; max-width: 18ch; font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.2rem);
  color: #fff; text-shadow: 0 3px 18px rgba(8, 18, 40, .55);
}
.page--home .page__body { max-width: var(--container-width-wide); margin-inline: auto; }
.page--home .page__body > .lede {
  max-width: 46rem; margin: -2.2rem auto 2rem; position: relative;
  background: var(--color-bg); border-radius: var(--radius-lg); padding: 1.3rem 1.6rem;
  box-shadow: var(--shadow-md); text-align: center; border-top: 5px solid var(--nyh-yellow);
}
.page--home .page__body h2 { border-left: 0; padding-left: 0; text-align: center; margin-top: 3.2rem; }
.page--home .page__body h2::after {
  content: ""; display: block; width: 90px; height: 8px; margin: .7rem auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--nyh-red) 0 33%, var(--nyh-yellow) 33% 66%, var(--nyh-green) 66%);
}

/* ── 「選ばれる理由」の帯 ──────────────────────────────── */
.why-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.why-strip__item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem;
  background: var(--color-surface); border: 2px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.1rem 1rem 1.3rem; transition: transform .2s, box-shadow .2s;
}
.why-strip__item:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-md); }
.why-strip__item img { width: 64px; height: 64px; }
.why-strip__item strong { font-size: 1.05rem; }
.why-strip__item span { font-size: .9rem; color: var(--color-text-muted); line-height: 1.5; }

/* ── 画像つきカード一覧 ───────────────────────────────── */
.nyc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; margin: 1.5rem 0 2rem; }
.nyc-card {
  display: flex; flex-direction: column; background: var(--color-bg); color: var(--color-text);
  border: 2px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.nyc-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-md); border-color: var(--nyh-yellow); text-decoration: none; }
.nyc-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--nyh-navy); }
.nyc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.nyc-card:hover .nyc-card__img img { transform: scale(1.06); }
.nyc-card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.15rem 1.2rem; flex: 1; }
.nyc-card__area {
  align-self: flex-start; background: var(--nyh-yellow); color: var(--nyh-navy);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .15rem .6rem; border-radius: 999px;
}
.nyc-card__title { font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.nyc-card__desc { font-size: .92rem; color: var(--color-text-muted); line-height: 1.55; }
.nyc-card__tags { display: flex; gap: .35rem; margin-top: .2rem; }
.nyc-card__tags img { width: 34px; height: 34px; }
.nyc-card__more { margin-top: auto; padding-top: .5rem; font-weight: 800; color: var(--color-accent); font-size: .92rem; }

/* セクション索引のカード化(子ページ一覧は残す) */
.page--section .child-list { display: none; }

/* ── 部品: 路線記号・基本情報・イラスト ───────────────── */
.route {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.55em; height: 1.55em; border-radius: 50%; font-weight: 800; font-size: .88em; line-height: 1;
  margin: 0 .12em; vertical-align: -.2em; font-family: Helvetica, Arial, sans-serif; box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; margin: 1.4rem 0;
  padding: 1rem; background: var(--nyh-navy); border-radius: var(--radius-lg); color: #fff;
  background-image: radial-gradient(circle at 100% 0, rgba(255, 199, 44, .25), transparent 55%);
}
.facts > div { background: rgba(255, 255, 255, .08); border-radius: var(--radius-md); padding: .65rem .85rem; }
.facts dt { font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--nyh-yellow); font-weight: 800; }
.facts dd { margin: .15rem 0 0; font-weight: 600; line-height: 1.4; }
.scene, .cms-figure { margin: 1.8rem 0; }
.scene img, .cms-figure img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow-md); }
.scene figcaption, .cms-figure figcaption { font-size: .82rem; color: var(--color-text-muted); margin-top: .5rem; text-align: center; }

/* callout をネイビー + イエローのトーンに */
.callout { border-radius: var(--radius-md); }

/* 目次 */
.toc { border: 2px dashed var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }

/* ── フッター ─────────────────────────────────────────── */
.site-footer { background: var(--nyh-navy); color: #cdd9f3; border-top: 6px solid var(--nyh-yellow); }
.site-footer a, .site-footer__desc, .site-footer__col a, .site-footer__bottom p, .site-footer__heading, .site-footer__heading a, .site-footer__logo { color: #cdd9f3; }
.site-footer a:hover { color: var(--nyh-yellow); }
.site-footer__bottom { border-top-color: rgba(255, 255, 255, .15); }
.footer-tagline { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem !important; font-size: .95rem !important; color: #fff !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
