/* One category palette follows the exhibitor from the index to their application. */
:root {
  --ink: #1d302e;
  --accent: #164f5b;
  --accent-ink: #ffffff;
  --label: #164f5b;
  --wash: #eef3ef;
}
.page-tent, .tent {
  --accent: #486980;
  --accent-ink: #ffffff;
  --label: #38566a;
  --wash: #edf1f3;
}
.page-craft, .craft {
  --accent: #526f59;
  --accent-ink: #ffffff;
  --label: #405b47;
  --wash: #edf1eb;
}
.page-gourmet, .gourmet {
  --accent: #945866;
  --accent-ink: #ffffff;
  --label: #78434e;
  --wash: #f5eef0;
}
.page-kitchen, .kitchen {
  --accent: #a45320;
  --accent-ink: #ffffff;
  --label: #645124;
  --wash: #f5f1e4;
}
body { color: var(--ink); }
.mast { gap: clamp(12px,2vw,34px); }
.mast .brand img { height: 41px; width: auto; max-width: 100%; margin: auto; object-fit: contain; }
.nav, .news h2, .section-head h2 {
  font-family: "Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
}
.nav { letter-spacing: .015em; }
.hero.home { min-height: clamp(480px,74svh,740px); }
.hero.home .shade {
  background: linear-gradient(90deg,rgba(15,33,35,.64),rgba(15,33,35,.42) 40%,rgba(15,33,35,.72));
}
.identity .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92%,430px);
  height: auto;
  aspect-ratio: auto;
  padding: clamp(15px,2vw,31px);
  background: #fff;
  margin: 0 auto clamp(16px,2vw,30px);
}
.identity .mark::before, .identity .mark::after { display: none; }
.mark img.festival-logo { width: 100%; height: auto; max-height: 140px; object-fit: contain; }
.hero.home .season {
  display: block;
  width: auto;
  max-width: 34em;
  margin: 0;
  padding: 0;
  background: none;
  font-size: clamp(15px,1.35vw,20px);
  line-height: 1.75;
  font-weight: 650;
}
.hero.home .primary, .page-home .primary { background: #f9faf7; color: #1d3735; border-color: #f9faf7; }
.hero.home .secondary { background: #1d302e80; }
.news { background: #f5f6f2; color: var(--ink); }
.news h2, .section-head h2 { font-size: clamp(25px,3.1vw,47px); letter-spacing: -.055em; line-height: 1.25; }
.tag { background: #384e49; }
.category-strip {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  width: 100%;
}
.category-strip .category-link, .category.category {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  text-decoration: none;
}
.category-strip .category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 57px;
  padding: .7em clamp(14px,2.6vw,49px);
  font-size: clamp(15px,1.5vw,23px);
  font-weight: 800;
  line-height: 1.4;
}
.category-strip .category-link:is(:hover,:focus-visible), .category:hover h3 { text-decoration: underline; }
.category-strip .category-link:focus-visible { outline-offset: -5px; outline: 2px solid currentColor; }
.category { padding-bottom: 18px; }
.category h3 { padding-inline: 14px; margin: 12px 0 2px; color: inherit; }
.category small { display: block; padding-inline: 14px; color: inherit; }
#apply .primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
a.btn:hover { filter: none; text-decoration: underline; }
@media(max-width:1023px) {
  .mast { gap: 0 12px; }
  .mast .brand img { height: 29px; }
}
@media(max-width:640px) {
  .hero.home { min-height: auto; gap: 18px; }
  .identity .mark { width: min(78vw,300px); padding: 15px 20px; }
  .mark img.festival-logo { max-height: 84px; }
  .hero.home .season { text-align: left; }
  .category-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-strip .category-link { padding: .8em 11px; min-height: 48px; }
  .category h3,.category small { padding-inline: 9px; }
  .jump { gap: 9px 18px; }
}
.base-fee{display:block;margin-top:.3em;font-variant-numeric:tabular-nums}.category-eyebrow{display:block;margin-top:.8em;font-weight:700;font-size:14px}.application-flow{margin:0;padding-inline-start:1.6em}.application-flow li{padding:0 0 1.15em .35em}.application-flow p{margin:.25em 0 0}.section-head h2{font-size:clamp(26px,3.2vw,52px);line-height:1.3;letter-spacing:-.045em}.category-strip .category-link[aria-current=page]{text-decoration:underline;text-underline-offset:.35em;text-decoration-thickness:2px}

/* PCの募集要項では料金と受付条件を読みやすい見出し階層にする。 */
@media (min-width: 1024px) {
  .section-head h2 { font-size: 30px; line-height: 1.4; letter-spacing: -.025em; }
  .page-home .section-head h2 { font-size: 32px; }
  .news h2, #notice h2 { font-size: 24px; line-height: 1.4; }
}

body:not(.page-home) { color:#182742; }
body:not(.page-home) .mast { background:rgba(15,26,46,.72); }
.detail.hero { color:white; padding-inline:4%; }
.detail.hero .shade { background:linear-gradient(90deg,rgba(17,29,52,.9),rgba(16,29,53,.65) 60%,rgba(16,29,53,.45)); }
.detail.hero .hero-photo { width:100%;height:100%;inset:0;position:absolute;object-fit:cover; }
.detail.hero .primary { background:var(--accent);color:var(--accent-ink);border-color:#ffffff75; }

body:not(.page-home) .jump { background:white;color:#182742;border-bottom:1px solid #ccd4df; }
:is(.section-head, .news, #notice) h2 span { display:block;font:800 clamp(30px,2.65vw,46px)/1.15 Arial,sans-serif;letter-spacing:-.04em; }
:is(.section-head, .news, #notice) h2 small { display:block;margin-top:.45rem;font:700 16px/1.6 Meiryo,sans-serif;letter-spacing:normal; }
body:not(.page-home) .pale { background:#f1f4f8; }
@media(max-width:640px){.detail.hero {padding-inline:5%;padding-bottom:28px;}:is(.section-head, .news, #notice) h2 span {font-size:28px;} }

.external-icon {
  display:inline-block; position:relative; width:.95em; height:.85em;
  margin-inline-start:.4em; vertical-align:baseline; color:inherit;
}
.external-icon::before, .external-icon::after {
  content:""; position:absolute; box-sizing:border-box;
  width:70%; height:75%; border:1.5px solid currentColor; border-radius:1px;
}
.external-icon::before { bottom:0; left:0; border-top:0; border-right:0; }
.external-icon::after { top:0; right:0; }

.mast .brand img {
  background: transparent;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 0 1px white) drop-shadow(0 0 1px white);
}
.hero.home {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(110px,12vh,160px) 6% clamp(36px,6vh,75px);
}
.hero.home .hero-copy { width:100%; max-width:45rem; align-self:flex-start; text-align:left; }
.hero.home .shade { background:linear-gradient(90deg,rgba(13,29,32,.87),rgba(13,29,32,.67) 38%,rgba(13,29,32,.12) 78%); }
.hero.home .festival-name { margin:0 0 .55em; font-weight:700; }
.hero.home .hero-copy h1 { margin:0 0 .3em; }
.hero-schedule { display:flex; flex-wrap:wrap; gap:.25em 1.5em; margin:1.25em 0; font-weight:700; }
.hero.home .actions { justify-content:flex-start; }
@media(max-width:640px){
  .hero.home { padding:130px 5% 32px; }
  .hero.home .shade { background:linear-gradient(0deg,rgba(13,29,32,.94),rgba(13,29,32,.7) 64%,rgba(13,29,32,.23)); }
  .hero.home .hero-copy h1 {font-size:clamp(36px,10vw,52px);}
}

.mast .social-links, .foot .social-links {
  display:flex; align-items:center; flex-wrap:nowrap; gap:2px; margin:0;
}
.social-links a {
  display:grid; place-items:center; width:36px; height:36px; color:inherit;
  border-radius:50%; text-decoration:none;
}
.social-links a:hover, .social-links a:focus-visible { background:rgba(255,255,255,.18); }
.social-links a:focus-visible { outline:2px solid currentColor; }
.social-links svg { width:18px; height:18px; fill:currentColor; }
.foot { align-items:center; }
@media(max-width:1250px) and (min-width:1024px) {
  .mast {gap:10px;} .mast .nav {gap:12px;} .mast .brand {width:165px;}
}
@media(max-width:1023px) {
  .mast {height:124px;grid-template-rows:45px 30px 40px;}
  .mast .social-links {grid-column:1/-1;grid-row:3;justify-self:end;}
  .hero.home,.hero.detail {padding-top:150px;}
}
@media(max-width:640px) {
  .foot .social-links { margin-top:12px; }
}

/* Emanon forces its heading color with !important. The five guide layouts
   instead inherit the heading ink from the surrounding hero, card or section. */
:is(.page-home, .page-tent, .page-craft, .page-gourmet, .page-kitchen) main :is(h1, h2, h3, h4, h5, h6) {
  color: inherit !important;
}

body:is(.page-tent, .page-craft, .page-gourmet, .page-kitchen) .pale {
  background-color: var(--wash);
}
:is(.page-tent, .page-craft, .page-gourmet, .page-kitchen) .section-head {
  color: var(--label);
}

body:is(.page-tent, .page-craft, .page-gourmet, .page-kitchen) .detail.hero {
  border-block-end: 8px solid var(--accent);
}

.page-home .festival-movie {
  margin: 2rem 0 0;
  min-width: 0;
}
.festival-movie figcaption {
  margin-bottom: .65rem;
  font-weight: 700;
}
.festival-movie iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #182742;
}
.festival-movie a { display: inline-block; margin-top: .6rem; }
.festival-documents { min-width: 0; }
.festival-documents h3:not(:first-child) { margin-top: 1.8rem; }
.festival-documents ul { padding-inline-start: 1.3em; }
.festival-documents li + li { margin-top: .45rem; }
.festival-documents a { text-underline-offset: .25em; }
.festival-documents details { border-top: 1px solid #ccd8dc; }
.festival-documents details:last-child { border-bottom: 1px solid #ccd8dc; }
.festival-documents summary {
  cursor: pointer;
  padding: .75rem .25rem;
  font-weight: 700;
}
#categories .booth-spec{display:block;margin-top:.65rem;font-size:.875rem;line-height:1.6;font-weight:400}
#about .overview-schedule{margin:1.5rem 0;border-block:1px solid #bac8ca;padding:.8rem 0}
#about .overview-schedule summary{cursor:pointer;font-weight:700;padding:.4rem 0}
#about .actions .primary{background:#23394a;color:white}

.hero.home .hero-copy .festival-name {
  margin: 0 0 .25em;
  font-size: clamp(24px, 6.6vw, 52px);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: .015em;
}
.hero.home .hero-copy h1 {
  margin-top: 0;
  font-size: clamp(22px, 4.8vw, 42px);
  line-height: 1.3;
}

#category-route {padding-block:1.4rem 0}
#category-route header {display:flex;align-items:baseline;justify-content:space-between;gap:.7rem;flex-wrap:wrap}
#category-route h2 {margin:0;font-size:1.25rem;color:#294535}
#category-route header a {font-size:.95rem;text-decoration:underline;text-underline-offset:.2em}
#category-route ol {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));list-style:none;margin:.65rem 0 0;padding:0;border-block:1px solid #cad3c9}
#category-route li {display:flex;align-items:center;gap:.4rem;position:relative;min-width:0;padding:.65rem .8rem .65rem .45rem;font-size:.95rem;font-weight:650;line-height:1.45}
#category-route li img {width:40px;height:30px;flex:none}
#category-route li:not(:last-child)::after {content:"";position:absolute;right:.2rem;width:.35rem;height:.35rem;border:solid #69806d;border-width:1.5px 1.5px 0 0;transform:rotate(45deg)}
@media(max-width:950px){#category-route ol{grid-template-columns:repeat(3,minmax(0,1fr))}#category-route li:nth-child(3)::after{display:none}}
@media(max-width:600px){#category-route ol{grid-template-columns:repeat(2,minmax(0,1fr))}#category-route li{padding:.5rem .8rem .5rem .15rem}#category-route li:nth-child(3)::after{display:block}#category-route li:nth-child(even)::after{display:none}#category-route li img{width:32px;height:24px}}
