@import url('../../src/site-theme.css');

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans JP', sans-serif; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--cyan); }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
.home-shell { width: min(1120px, 100%); margin: auto; padding: 24px 32px 32px; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px; background: var(--bg); z-index: 10; }
.skip-link:focus { top: 8px; }
.home-opening { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 12px 0 30px; }
.eyebrow { color: var(--cyan); font-family: var(--display-font); font-size: 17px; font-weight: 600; letter-spacing: .12em; line-height: 1.4; }
h1 { font-size: clamp(58px, 8.3vw, 100px); font-weight: 900; letter-spacing: -.065em; line-height: 1.25; }
.home-heading .eyebrow { margin-bottom: 8px; }
.tagline { font-family: "Shippori Mincho", "Yu Mincho", serif; font-size: 22px; font-weight: 500; line-height: 1.6; letter-spacing: .05em; }
.home-intro { margin-top: 10px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.home-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-menu a { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 8px; font-size: 14px; font-weight: 800; text-decoration: none; }
.home-menu a + a { border-left: 1px solid var(--line-soft); }
.home-menu a span { color: var(--cyan); font-size: 18px; }
.home-menu a:hover { background: var(--surface-raised); }
/* Preserve the full illustration at every viewport width. */
.hero-visual { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.hero-visual img { width: 100%; height: auto; display: block; }
.home-section { margin-top: 52px; }
.section-heading { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-bottom: 18px; border-bottom: 2px solid transparent; }
h2 { margin-top: 5px; font-size: 26px; font-weight: 900; line-height: 1.5; letter-spacing: -.03em; }
.more-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; white-space: nowrap; font-size: 13px; text-decoration: none; }
.more-link span { color: var(--cyan); font-size: 24px; }
.event-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event-teaser { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.event-teaser:first-child { padding-left: 0; }
.event-teaser:last-child { border-right: 0; padding-right: 0; }
.event-teaser:hover { background: var(--surface); color: var(--ink); }
.event-teaser:hover h3 { color: var(--cyan); }
.teaser-date { display: flex; align-items: center; gap: 12px; }
.teaser-date time { font-family: 'Six Caps', var(--display-font); font-size: 64px; line-height: 1; }
.teaser-date .date-text { font-family: inherit; font-size: 20px; font-weight: 800; line-height: 1.5; }
.teaser-weekday { display: block; font-family: var(--display-font); font-size: 20px; line-height: 1.3; }
.teaser-weekday.is-sunday { color: #ff7474; }
.teaser-weekday.is-saturday { color: #7ca7ff; }
.teaser-area { display: block; font-size: 12px; color: var(--muted); }
h3 { font-size: 19px; font-weight: 800; line-height: 1.65; overflow-wrap: anywhere; }
.news-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-teaser { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-width: 0; gap: 18px; padding: 24px 22px; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-teaser:first-child { padding-left: 0; }
.story-teaser:last-child { padding-right: 0; border-right: 0; }
.story-teaser:hover { background: var(--surface); color: var(--ink); }
.story-teaser:hover h3 { color: var(--cyan); }
.story-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.story-backdrop, .event-backdrop { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: .24; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 75%); }
.story-heading, .story-teaser h3, .story-description, .teaser-date, .event-teaser h3, .event-details { position: relative; z-index: 1; }
.event-details { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 3px 10px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.event-details dt { font-family: var(--display-font); font-size: 13px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.event-details dt, .event-details dd { margin: 0; overflow-wrap: anywhere; }
.story-description { color: var(--muted); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.story-meta { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.story-meta span { color: var(--cyan); }
.feed-message { grid-column: 1 / -1; padding: 24px 0; font-size: 14px; color: var(--muted); line-height: 1.9; }
.home-about { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; margin-top: 56px; padding: 30px 0; border-top: 2px solid var(--violet); border-bottom: 1px solid var(--line); }
.home-about__body p { font-size: 14px; line-height: 2; color: var(--muted); }
.about-links { display: flex; flex-wrap: wrap; column-gap: 24px; margin-top: 12px; }
.about-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.home-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-top: 24px; }
.home-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: none; color: var(--muted); }
.home-footer .home-footer__brand { color: var(--ink); font-size: 18px; font-weight: 900; gap: 14px; }
.home-footer__brand span { font: 600 12px var(--display-font); letter-spacing: .1em; color: var(--muted); }
/* Share content rows across desktop cards, including wrapped venue names. */
@media (min-width: 761px) {
  .event-preview, .news-preview { row-gap: 18px; }
  .event-teaser, .story-teaser {
    display: grid;
    grid-template-rows: subgrid;
    align-items: start;
    row-gap: 18px;
  }
  .event-teaser { grid-row: span 4; }
  .event-details {
    grid-row: span 2;
    grid-template-rows: subgrid;
    align-self: stretch;
    align-items: start;
    row-gap: 3px;
  }
  .story-teaser { grid-row: span 3; }
}
@media (max-width: 760px) {
  .home-shell { padding: 16px 16px 24px; }
  .home-opening { display: block; padding: 12px 0 24px; }
  h1 { font-size: clamp(58px, 15vw, 90px); }
  .home-opening__copy { margin-top: 18px; }
  .tagline { font-size: 18px; }
  .tagline br { display: none; }
  .home-intro { font-size: 12px; margin-top: 8px; }
  .home-section { margin-top: 36px; }
  .section-heading { align-items: start; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 10px; }
  .eyebrow { font-size: 15px; }
  h2 { font-size: 22px; }
  .more-link { margin-left: auto; font-size: 12px; gap: 12px; }
  .event-preview { grid-template-columns: 1fr; }
  .event-teaser, .event-teaser:first-child, .event-teaser:last-child { padding: 22px 0; border-right: 0; gap: 12px; }
  .teaser-date time { font-size: 62px; }
  .news-preview { grid-template-columns: 1fr; }
  .story-teaser, .story-teaser:first-child, .story-teaser:last-child { padding: 22px 0; border-right: 0; gap: 12px; }
  .home-about { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; padding: 24px 0; }
  .home-footer { gap: 2px; }
}

/* Keep the line visible without JavaScript; only pending reveals are collapsed. */
.section-rule { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; pointer-events: none; }
.section-rule::after { content: ""; display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleX(1); transform-origin: left center; transition: transform 700ms cubic-bezier(.22, 1, .36, 1); }
.section-rule.is-reveal-pending::after { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  .section-rule::after, .section-rule.is-reveal-pending::after { transform: none; transition: none; }
}
