/* Shared accessibility and responsive finishing layer. */
.rules-stage__main--final { display: flex; flex-wrap: wrap; justify-content: center; gap: .25em 0; }
.rules-stage__main--final > .rules-stage__phrase { display: inline-block; white-space: nowrap; color: inherit; margin: 0; }
html { scroll-padding-top: 90px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid #f5ce81; outline-offset: 5px; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 10000; padding: 12px 20px; background: #f5ce81; color: #111; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.splash { display: none !important; }
body.is-loading { overflow: auto; }
.hero { min-height: min(1000px, 100svh); padding-bottom: 175px; }
.hero__photo-wrap { transform: none !important; opacity: 1 !important; }
.hero__photo-wrap .hero__photo { inset: 65px 0 170px; background: url('../images/hero-design.jpg.webp') center / contain no-repeat; animation: none; }
.hero__inner { padding: 0; }
.hero .hero__title { display: block; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero__cta { bottom: 76px; max-width: calc(100% - 32px); }
.hero-fire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; mix-blend-mode: screen; }
.motion-toggle { position: absolute; right: 20px; bottom: 18px; z-index: 3; border: 1px solid #8d7449; border-radius: 3px; padding: 9px 13px; background: #080808dd; color: #e6c98a; font: inherit; font-size: 11px; cursor: pointer; }
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; }
@media(max-width: 1024px) {
  .header__nav { overflow-y: auto; justify-content: flex-start; overscroll-behavior: contain; gap: 24px; }
  .header__nav:not(.is-open) { visibility: hidden; }
  .header__nav.is-open { visibility: visible; }
  .nav-list { gap: 14px; }
  .nav-list a { display: inline-block; padding: 5px 12px; }
}
@media(max-width: 768px) {
  .hero { min-height: 0; height: auto; padding: 0; aspect-ratio: auto; }
  .hero__photo-wrap { position: relative; width: 100%; height: auto; aspect-ratio: 1446 / 1087; margin-top: 80px; }
  .hero__photo-wrap .hero__photo { inset: 0; background: url('../images/hero-design.jpg.webp') center / contain no-repeat; }
  .hero { display: block; }
  .hero__inner { position: relative; padding: 24px 16px 72px; }
  .hero__cta { position: relative; bottom: auto; width: 100%; max-width: 100%; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
  .hero__cta .btn { flex: 1 1 140px; min-width: 0; padding: 16px 10px; font-size: 13px; }
  .hero__scroll { display: none; }
  .motion-toggle { bottom: 15px; right: 16px; }
  .hero-flame { display: block; opacity: .55; }
  .section__inner { padding-inline: 20px; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-item, .hero__event, .hero__sub, .hero__title { opacity: 1 !important; transform: none !important; }
}
html, body { overflow-x: clip; }
@media (max-width: 1500px) {
 .hamburger { display: block; }
 .header__nav { position: fixed; inset: 0; width: 100%; height: 100svh; background: #080808; flex-direction: column; justify-content: flex-start; align-items: center; padding: 85px 24px 35px; gap: 24px; overflow-y: auto; transform: translateX(100%); visibility: hidden; }
 .header__nav.is-open { transform: none; visibility: visible; }
 .nav-list { flex-direction: column; gap: 14px; }
 .nav-list a { display: inline-block; padding: 5px 12px; font-size: 15px; }
}
@media (max-width: 768px) {
 .hero__cta { flex-direction: row; }
 .hero__cta .btn { width: auto; }
}
.hero__scroll { display: none; } .hero-fire { filter: contrast(1.22) saturate(1.25); }

/* The animated photographic jets replace the floating flame stickers. */
.hero .hero-flame { display: none; }

.hero-fire-transition { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; mix-blend-mode: screen; opacity: 0; }
.hero-fire-transition[data-active="true"] { opacity: 1; }

/* Timetable: gold rules and generous spacing inherit the event identity. */
.section--timetable { background: radial-gradient(ellipse at 50% 0, #241a0d66, transparent 45%), #080808; }
.schedule { max-width: 920px; margin: 0 auto; }
.schedule-date { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-block: 1px solid #a5844a; }
.schedule-date > span { font-family: var(--font-en); font-size: clamp(25px,4vw,38px); color: #f3d493; letter-spacing: .06em; }
.schedule-date small { font-size: 13px; }
.schedule-date p { font-size: 13px; color: #d2c5ae; }
.schedule-phase { display: flex; align-items: center; gap: 20px; margin: 52px 0 22px; }
.schedule-phase > span { font: 36px var(--font-en); color: #a5844a; }
.schedule-phase h3 { color: #eed4a0; font: 600 clamp(19px,3vw,25px) var(--font-en); letter-spacing: .1em; }
.schedule-phase small { display: block; font: 13px var(--font-jp); letter-spacing: .08em; color: #b5ab99; margin-top: 8px; }
.schedule-row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 21px 24px; border-bottom: 1px solid #c9a96a26; align-items: baseline; }
.schedule-time { font-family: var(--font-en); color: #e6c98a; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule-row h4 { font-size: 15px; font-weight: 500; line-height: 1.8; color: #eee8df; }
.schedule-row p { color: #b4aca0; font-size: 12px; margin-top: 6px; line-height: 1.8; }
.schedule-row--break { background: #ffffff03; }
.schedule-row--break h4, .schedule-row--break .schedule-time { color: #a99d89; }
.schedule-row--grand { background: linear-gradient(100deg,#b88a3e22,transparent); border-left: 2px solid #e6c98a; }
.schedule-row--grand h4 { color: #f3d493; font-size: 22px; }
.schedule-guide { color: #b4aca0; font-size: 12px; line-height: 1.8; margin-bottom: 20px; }
.schedule-group { border: 1px solid #b9935066; background: #100e0a; margin-block: 16px; }
.schedule-group summary { display: grid; grid-template-columns: 180px 1fr 20px; gap: 24px; align-items: center; padding: 24px; cursor: pointer; list-style: none; }
.schedule-group summary::-webkit-details-marker { display: none; }
.schedule-group summary:hover { background: #c9a96a0a; }
.schedule-group__label { display: block; color: #a99777; font: 10px var(--font-en); letter-spacing: .16em; margin-bottom: 7px; }
.schedule-group strong { display: block; color: #f0dbb3; font-size: 17px; font-weight: 500; }
.schedule-plus { color: #e6c98a; transition: transform .2s; }
.schedule-group[open] .schedule-plus { transform: rotate(45deg); }
.schedule-speakers { display: grid; grid-template-columns: 1fr 1fr; list-style: none; padding: 0 24px 22px; margin: 0; column-gap: 32px; }
.schedule-speakers li { min-width: 0; }
.schedule-speakers a { display: flex; align-items: center; gap: 16px; min-height: 55px; border-top: 1px solid #c9a96a26; color: #e6e0d8; font-size: 16px; transition: color .2s, background .2s; }
.schedule-speakers a:hover { color: #ffe0a0; background: #c9a96a0a; }
.schedule-number { font: 16px var(--font-en); color: #b99b65; min-width: 24px; }
.schedule-arrow { margin-left: auto; font-size: 13px; color: #a5844a; }
.schedule-note { font-size: 12px; color: #a99d89; padding: 24px 0 0; line-height: 1.8; }
@media(min-width: 769px) { .schedule-speakers { grid-auto-flow: column; } .schedule-group:nth-of-type(n) .schedule-speakers { grid-template-rows: repeat(5,auto); } .schedule-group:has(li:nth-child(14)) .schedule-speakers { grid-template-rows: repeat(7,auto); } }
@media(max-width: 768px) {
 .schedule-date { display: block; padding: 20px 0; }
 .schedule-date p { margin-top: 12px; }
 .schedule-row { grid-template-columns: 1fr; gap: 8px; padding: 19px 16px; }
 .schedule-group summary { grid-template-columns: 1fr 20px; gap: 12px; padding: 20px 16px; }
 .schedule-group summary > .schedule-time { grid-column: 1/-1; }
 .schedule-speakers { grid-template-columns: 1fr; padding: 0 16px 14px; }
 .schedule-speakers a { min-height: 52px; }
 .schedule-phase { margin-top: 38px; }
}

.header__logo { white-space: nowrap; flex-shrink: 0; }

/* Keep the day's flow scannable; reveal individual speakers on demand. */
.schedule-group summary { grid-template-columns: 180px 1fr auto; padding-block: 20px; }
.schedule-toggle { display: inline-flex; align-items: center; gap: 12px; color: #e6c98a; font-size: 12px; white-space: nowrap; }
.schedule-toggle__open { display: none; }
.schedule-group[open] .schedule-toggle__closed { display: none; }
.schedule-group[open] .schedule-toggle__open { display: inline; }
.schedule-group:not([open]) > .schedule-speakers { display: none; }
@media(max-width: 768px) {
 .schedule-group summary { grid-template-columns: 1fr auto; gap: 12px; padding: 18px 16px; }
 .schedule-group strong { font-size: 15px; }
 .schedule-toggle { font-size: 11px; gap: 6px; }
}
/* Compact time/content columns, including narrow phone screens. */
.schedule-avatar { display: block; width: 36px; height: 36px; flex: 0 0 36px; object-fit: cover; object-position: center 25%; border-radius: 50%; border: 1px solid #a5844a88; background: #201b13; }
.schedule-speakers a { gap: 12px; }
.schedule-row { padding-block: 13px; }
.schedule-group { margin-block: 10px; }
.schedule-group summary { padding-block: 14px; }
.schedule-phase { margin-top: 32px; margin-bottom: 14px; }
.schedule-guide { margin-bottom: 12px; }
@media(max-width: 768px) {
 .schedule-row { grid-template-columns: 108px minmax(0,1fr); gap: 12px; padding: 12px 10px; align-items: baseline; }
 .schedule-time { font-size: 12px; letter-spacing: 0; }
 .schedule-row h4 { font-size: 13px; line-height: 1.65; }
 .schedule-row p { font-size: 11px; margin-top: 4px; line-height: 1.6; }
 .schedule-row--grand h4 { font-size: 17px; }
 .schedule-group summary { grid-template-columns: 108px minmax(0,1fr); gap: 6px 12px; padding: 14px 10px; }
 .schedule-group summary > .schedule-time { grid-column: 1; grid-row: 1 / 3; align-self: center; }
 .schedule-group summary > span:nth-child(2) { grid-column: 2; min-width: 0; }
 .schedule-toggle { grid-column: 2; }
 .schedule-group strong { font-size: 14px; }
 .schedule-group__label { font-size: 9px; margin-bottom: 4px; }
 .schedule-speakers { padding-inline: 10px; }
 .schedule-speakers a { gap: 10px; font-size: 14px; }
 .schedule-number { min-width: 22px; font-size: 14px; }
}
@media(max-width: 359px) {
 .schedule-row, .schedule-group summary { grid-template-columns: 96px minmax(0,1fr); gap: 6px 8px; }
 .schedule-time { font-size: 11px; }
}
/* Two speakers per row; read left to right in appearance order. */
.schedule-group .schedule-speakers,
.schedule-group:nth-of-type(n) .schedule-speakers,
.schedule-group:has(li:nth-child(14)) .schedule-speakers {
 grid-template-columns: repeat(2,minmax(0,1fr));
 grid-template-rows: none;
 grid-auto-flow: row;
 column-gap: 20px;
}
@media(max-width: 768px) {
 .schedule-group .schedule-speakers { column-gap: 10px; padding-inline: 10px; }
 .schedule-speakers a { gap: 6px; min-height: 52px; font-size: 12px; line-height: 1.5; }
 .schedule-avatar { width: 28px; height: 28px; flex-basis: 28px; }
 .schedule-number { min-width: 16px; font-size: 11px; }
 .schedule-speakers a > span:not([class]) { min-width: 0; overflow-wrap: anywhere; }
 .schedule-arrow { display: none; }
}
.applicant-card__entry { font-family: var(--font-en); font-size: 12px; letter-spacing: .12em; color: #e6c98a; margin-bottom: 8px; }

/* Persistent ticket link, clear of the back-to-top control and phone safe area. */
.floating-ticket { position: fixed; left: auto; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 50px; padding: 12px 22px; border: 1px solid #f4d99d; border-radius: 999px; background: linear-gradient(120deg, #edcf91, #c9a96a); color: #191208; box-shadow: 0 4px 24px #0008; font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.floating-ticket:hover { background: #f2d69c; }
.to-top { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 768px) {
  .floating-ticket { left: auto; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); min-height: 46px; padding: 11px 17px; gap: 12px; font-size: 13px; }
  .to-top { right: 14px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .motion-toggle { left: 16px; right: auto; }
}

/* Align Yamazaki’s head with the neighboring Aida portrait. */
.applicant-card[href="applicants/34.html"] .applicant-card__img img { object-position: center top; }

/* Fade the actual poster edges, not the full viewport. */
.hero__photo-wrap .hero__photo {
 -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 88%, transparent);
 -webkit-mask-composite: source-in;
 mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 88%, transparent);
 mask-composite: intersect;
}
@media(min-width:769px) {
 .hero__photo-wrap .hero__photo { inset:65px auto auto 50%; width:var(--hero-photo-width, 100%); height:var(--hero-photo-height, calc(100% - 235px)); transform:translateX(-50%); }
 .hero__photo-wrap::before { opacity:.4; filter:blur(28px); }
}
@media(max-width:768px) {
 .hero__photo-wrap .hero__photo { -webkit-mask-image:linear-gradient(to bottom, transparent, #000 4%, #000 90%, transparent); mask-image:linear-gradient(to bottom, transparent, #000 4%, #000 90%, transparent); }
}

/* Event essentials and accessible, server-rendered questions. */
.event-facts,.event-faq { max-width: 820px; margin: 32px auto; }
.event-facts > div { display:grid; grid-template-columns:100px minmax(0,1fr); gap:20px; padding:16px 0; border-bottom:1px solid #c9a96a40; }
.event-facts dt { color:#e6c98a; }
.event-facts dd { margin:0; line-height:1.9; }
.event-facts a,.event-faq a { color:#e6c98a; text-decoration:underline; text-underline-offset:4px; }
.event-faq details { border-bottom:1px solid #c9a96a40; }
.event-faq summary { cursor:pointer; padding:22px 8px; color:#e6c98a; line-height:1.8; word-break:normal; overflow-wrap:break-word; }
.event-faq summary:focus-visible { outline:2px solid #e6c98a; outline-offset:3px; }
.event-faq p { padding:0 8px 24px; margin:0; line-height:2; }
.event-faq p a { display:inline-block; max-width:100%; }
@media(max-width:480px) { .event-facts > div { grid-template-columns:76px minmax(0,1fr); gap:12px; font-size:14px; } .event-faq summary,.event-faq p { font-size:14px; } }

/* Keep Japanese labels together at meaningful phrase boundaries. */
.text-phrase { display:inline-block; max-width:100%; vertical-align:top; overflow-wrap:break-word; word-break:normal; }
.applicant-card__field,.profile__title,.product-field,.product-card h3 { word-break:normal; overflow-wrap:normal; text-wrap:pretty; }

/* Consistent portrait treatment across challengers, mentors and supporters. */
.applicant-card .applicant-card__img img,
#mentors .person-card__img img,
#supporters .person-card__img img,
.page-applicant .profile__photo img,
.profile__photo img { filter:brightness(1) contrast(1) saturate(1); opacity:1; }
.applicant-card .applicant-card__img::after { background:none; }
.applicant-card:hover .applicant-card__img img,
#mentors .person-card:hover .person-card__img img,
#supporters .person-card:hover .person-card__img img { filter:brightness(1) contrast(1) saturate(1); }

#judges .person-card__img img,#judges .person-card:hover .person-card__img img{filter:none;opacity:1;object-position:center top}.judge-catch{font-size:12px;line-height:1.9;margin-top:12px;color:#ddd}.judge-more{font-size:12px;color:#e6c98a;margin-top:16px}.judge-photo-pending{display:flex;align-items:center;justify-content:center;background:#17130e}.judge-photo-pending svg{width:45%;height:auto;fill:#ad905a}.judge-photo-pending::after{display:none}

/* 白背景写真の頭の位置を小峯さんに揃える。縦長写真の上余白を調整。 */
#judges .person-card__img img[src$="tsuboi-white.png"],
#judges .person-card:hover .person-card__img img[src$="tsuboi-white.png"] { object-position: center 55%; }

/* 審査員の短い文言は意味単位で折り返す */
#judges .person-card { min-width:0; }
#judges .person-card__name { word-break:keep-all; overflow-wrap:normal; }
#judges .person-card__role, #judges .judge-catch { letter-spacing:.03em; word-break:normal; overflow-wrap:normal; }
#judges .text-phrase { white-space:nowrap; }
@media(max-width:480px) {
  #judges .person-card__body { padding:18px 10px; }
  #judges .person-card__role { font-size:11px; }
  #judges .judge-catch { font-size:11px; }
}
@media(max-width:359px) {
  #judges .people-grid--judges { grid-template-columns:1fr; }
}

/* スポンサー紹介 */
.sponsor-card{display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr);gap:40px;padding:32px;border:1px solid rgba(201,169,106,.45);background:linear-gradient(120deg,#19150e,#090909);max-width:1000px;margin:auto}.sponsor-card__photo{width:100%;height:auto;align-self:start;background:#fff}.sponsor-card__company{color:#d8bd83;font-size:18px;line-height:1.8}.sponsor-card__catch{font-size:24px;line-height:1.8;margin:18px 0}.sponsor-card__name{font-size:18px;margin-bottom:20px}.kagata-business{padding-left:1.2em;line-height:2;font-size:14px;overflow-wrap:anywhere}.sponsor-card__links{display:flex;flex-wrap:wrap;gap:16px 24px;margin-top:24px}.sponsor-card__links a{color:#e6c98a;text-decoration:underline;text-underline-offset:5px}.sponsor-card__content{min-width:0}@media(max-width:600px){.sponsor-card{grid-template-columns:1fr;gap:24px;padding:20px}.sponsor-card__photo{max-width:260px;justify-self:center}.sponsor-card__catch{font-size:20px}.sponsor-card__company{font-size:16px}}

.sponsor-card--simple{display:block;text-align:center}.sponsor-card--simple .sponsor-card__name{margin:16px 0 0}.sponsor-card--simple .sponsor-card__links{justify-content:center;gap:12px}.sponsor-card--simple .sponsor-card__links .btn{padding:14px 24px;min-width:160px;border:1px solid #c9a96a;text-decoration:none;font-size:13px;letter-spacing:.05em}.sponsor-card--simple .sponsor-card__links .btn--gold{color:#17120a}@media(max-width:480px){.sponsor-card--simple .sponsor-card__links{flex-direction:column}.sponsor-card--simple .sponsor-card__links .btn{width:100%;min-width:0}}

.sponsor-card--simple > .sponsor-card__photo{display:block;width:100%;max-width:240px;margin:0 auto 24px;}

.plan-pending{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid #51432d;text-align:left}.plan-pending strong{font-size:14px}.plan-pending span{font-size:12px;color:#c9a96a}
