@layer reset, vendor, base, layout, sections, utilities;
@import url("default.css") layer(default);
@import url("../vendor/swiper/swiper-bundle.min.css") layer(vendor);
@import url("../vendor/glightbox/glightbox.min.css") layer(vendor);

/*
ベンダーCSSの調整
------------------------------------- */
@layer vendor {
  /* GLightbox は .gbtn のボーダーを打ち消していないため、reset(kiso.css)が
     button に与える 1px のボーダーがそのまま残ってしまう。 */
  .glightbox-container .gbtn {
    border-style: none;
  }
  /* GLightbox 既定のフォーカスリング(#0f3d81)は暗いオーバーレイ上で
     コントラストが不足するため、サイトのアクセントカラーに差し替える。 */
  .glightbox-container .gbtn:is(:focus-visible, .focused) {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
  }
}


/*
デザイントークン
------------------------------------- */
/* フォント */
:root {
  /* フォント (16pxベース) */
  --font-body: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
  --font-yakuhan: YakuHanJP, "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;

  /* レイアウト */
  --content-width: 960px;
  --header-height: 72px;
  --radius-s: 4px;
  --radius-m: 8px;

  /* マージン （375px ⇒ 960px） */
  /* Space 4px: 3px → 4px */
  --space-4: clamp(0.188rem, 0.147rem + 0.171vw, 0.25rem);
  /* Space px: 7px → 8px */
  --space-8: clamp(0.438rem, 0.397rem + 0.171vw, 0.5rem);
  /* Space px: 11px → 12px */
  --space-12: clamp(0.688rem, 0.647rem + 0.171vw, 0.75rem);
  /* Space px: 14px → 16px */
  --space-16: clamp(0.875rem, 0.795rem + 0.342vw, 1rem);
  /* Space px: 18px → 20px */
  --space-20: clamp(1.125rem, 1.045rem + 0.342vw, 1.25rem);
  /* Space px: 21px → 24px */
  --space-24: clamp(1.313rem, 1.192rem + 0.513vw, 1.5rem);
  /* Space px: 26px → 32px */
  --space-32: clamp(1.625rem, 1.385rem + 1.026vw, 2rem);
  /* Space px: 32px → 40px */
  --space-40: clamp(2rem, 1.679rem + 1.368vw, 2.5rem);
  /* Space px: 40px → 48px */
  --space-48: clamp(2.5rem, 2.179rem + 1.368vw, 3rem);
  /* Space px: 48px → 56px */
  --space-56: clamp(3rem, 2.679rem + 1.368vw, 3.5rem);
  /* Space px: 56px → 64px */
  --space-64: clamp(3.5rem, 3.179rem + 1.368vw, 4rem);
  /* Space px: 64px → 72px */
  --space-72: clamp(4rem, 3.679rem + 1.368vw, 4.5rem);
  /* Space px: 72px → 84px */
  --space-84: clamp(4.5rem, 4.019rem + 2.051vw, 5.25rem);
  /* Space px: 84px → 96px */
  --space-96: clamp(5.25rem, 4.769rem + 2.051vw, 6rem);
  
  /* Space px: 48px → 32px */
  --space-48-32: clamp(2rem, 1.359rem + 2.735vw, 3rem);  
  /* Space px: 84px → 56px */
  --space-84-56: clamp(3.5rem, 2.378rem + 4.786vw, 5.25rem);
  /* Space px: 96px → 64px */
  --space-96-64: clamp(4rem, 2.718rem + 5.47vw, 6rem);

  --space-inner: clamp(3rem, 1.636rem + 5.818vw, 6rem);


  /* z-index */
  --z-header: 100;
  --z-mv: 10;

  /* モーション */
  --motion-duration-press: 0.1s;
  --motion-duration-hover: 0.2s;
  --motion-duration-reveal: 1.2s;
  --motion-duration-loop: 1s;
  --motion-duration-decay: 0.4s;
  --motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@layer base {
  :where(body) {
    background-color: var(--bg-default);
    line-height: 1.75;
    font-family: var(--font-body);
    font-size: var(--fs-16);
    color: var(--text-default);
  }
  :where(img) {
    display: block;
    height: auto;
    max-inline-size: 100%;
  }
  :where(a) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
    color: inherit;
  }
  :where(a:focus-visible) {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
  }
  /* ページ内アンカーのスムーススクロール(動きを抑える設定では即時ジャンプ) */
  @media (prefers-reduced-motion: no-preference) {
    :where(html) {
      scroll-behavior: smooth;
    }
  }
}

@layer layout {
  .inner {
    box-sizing: border-box;
    width: min(calc(100% - var(--space-inner)), var(--content-width));
    margin-inline: auto;
  }
}


/* イントロ
-------------------------------------- */
#resultsintro {
  margin: var(--space-84-56) auto;
  text-align: center;
}
#resultsintro h2 {
  margin: 0 auto var(--space-48-32);
}
#resultsintro p {
  margin: 0 auto var(--space-48);
  line-height: 1.8;
  font-size: var(--fs-20);
}

@media (max-width:960px) {
  #resultsintro p {
    text-align: justify;
    font-size: var(--fs-18);
  }
}


/* 受賞作品
-------------------------------------- */
div[class^="winners"] {
  padding: var(--space-84-56) 0 1px;
  text-align: center;
}
:nth-child(odd of div[class*="winners"]),
:nth-child(odd of div[class*="winners"]) + #about {
  background-color: var(--color-bg-app);
}
:nth-child(even of div[class*="winners"]),
:nth-child(even of div[class*="winners"]) + #about {
  background-color: var(color-white);
}
div[class^="winners"] h3 {
  margin: 0 auto var(--space-48);
  line-height: 1;
  letter-spacing: clamp(0rem, -0.120rem + 0.513vw, 0.188rem);
  font-size: clamp(1.75rem, 1.269rem + 2.051vw, 2.5rem);
  font-weight: 300;
  color: var(--color-text-strong);
}
div[class^="winners"] .icon-crown {
  max-width: var(--space-48);
  margin: 0 auto 10px;
}
div[class^="winners"] .photo {
  margin: 0 auto var(--space-96-64);
}

.photo img {
  margin: 0 auto var(--space-24);
  box-shadow: 0 5px 16px rgba(160,130,75,0);
}
div[class^="winners"] .enlarge {
  display: inline-block;
}
div[class^="winners"] .enlarge img {
  width: 100%;
}
.winners1 .enlarge img.v {
  max-width: 480px;
}
.winners1 .enlarge img.s {
  max-width: 640px;
}
.winners1 .enlarge img.h {
  max-width: 720px;
}
.winners2 .enlarge img.v {
  max-width: 420px;
}
.winners2 .enlarge img.s {
  max-width: 560px;
}
.winners2 .enlarge img.h {
  max-width: 600px;
}
.winners3 .enlarge img.v {
  max-width: 240px;
}
.winners3 .enlarge img.s {
  max-width: 280px;
}
.winners3 .enlarge img.h {
  max-width: 320px;
}
.photo .comment {
  max-width: 600px;
  margin-inline: auto;
}
.photo .comment p {
  padding-bottom: var(--space-16);
  text-align: justify;
  line-height: 1.8;
}
.photo h4 {
  margin-bottom: var(--space-32);
}
.photo h4 .title {
  display: block;
  margin: 0 auto 5px auto;
  line-height: 1.4;
  font-family: var(--font-yakuhan);
  font-weight: 400;
  font-size: var(--fs-24);
}
.photo h4 .title b {
  padding-inline: 2px;
  font-weight: 700;
}
.photo h4 .name {
  line-height: 1.4;
  font-size: var(--fs-20);
}
.photo .location {
  line-height: 1.6;
  font-family: var(--font-yakuhan);
}
.photo .location::before {
  display: block;
  content: "●　　●　　●";
  padding-bottom: var(--space-16);
  font-size: 0.5em;
  color: var(--color-separator);
}



/* 開催概要
-------------------------------------- */
#about {
  padding: 0 0 var(--space-84-56);
  text-align: center;
}
#about .btn a {
  max-width: 300px;
  border-radius: 100px;
  margin-inline: auto;
  padding: 12px 48px;
  background: var(--color-link);
  text-decoration: none;
  text-decoration-color: var(--color-link);
  font-size: var(--fs-16);
  font-weight: bold;
  color: var(--color-black);
}



@layer utilities {
  .sp {
    display: none;
  }
  .visually-hidden {
    overflow: hidden;
    clip-path: inset(50%);
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
  }
  .fadein.scrollin {
    opacity: 1;
    transform: translate(0, 0);
  }
  .fadein {
    opacity: 0;
    transform: translate(0, 50px);
    transition: all 1000ms;
  }

  @media (max-width: 959.98px) {
    .pc {
      display: none;
    }
    .sp {
      display: inline;
    }
  }
}