@charset "UTF-8";
:root {
  --ink: #222222;
  --paper: #fffdfb;
  --wine: #9c484f;
  --gold: #a98b42;
  --pale-gold: linear-gradient(90deg, #e0c780 0%, #c9b886 50%, #ab9f8b 100%);
  --beige: #faf6ed;
  --content: 700px;
}
* { box-sizing: border-box; }
h1, h2, h3, h4, #wrapper, p {text-align: center;}
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans JP", sans-serif; font-size: 14px; line-height: 1.8; }
a { color: inherit; }
h1 {font-size: 1rem;}
p {font-size: 14px;}
/* .mini-header { height: 44px; padding: 5px 10px; background: #171311; } */
/* .mini-header a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: #fff; text-decoration: none; } */
header {height: 56px; align-items: center; background: #101010;}
.insta_icon img {display: inline-block;vertical-align: top; margin:10px;}
.instagram-mark { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border: 2px solid currentColor; border-radius: 5px; font-size: 12px; line-height: 1; }
.hero { overflow: hidden; color: #f8f4f0; background: linear-gradient(178deg, #3e2a1e 0%, #171413 26%, #101010 75%); }
.hero-inner { width: min(var(--content), calc(100% - 48px)); min-height: 180px; margin: auto; display: flex; align-items: center; gap: clamp(28px, 5vw, 72px); padding: 80px 0; }
.contest-logo { width: clamp(100px, 12vw, 150px); height: auto; aspect-ratio: 1; object-fit: cover; flex: 0 0 auto; }
.hero-title h1 { margin: 0; font-family: Questrial, sans-serif; font-size: clamp(24px, 2.7vw, 32px); font-weight: 400; line-height: 1.2; letter-spacing: .025em; }
.hero-title p { margin: 8px 0 0; color: #c7c0ba; font-family: Questrial, sans-serif; font-size: 13px; font-style: italic; letter-spacing: .035em; }
.sp-only { display: none; }
.gallery-window { width: 100%; overflow: hidden; padding: 0 0 28px; }
/* 流れる速度は result.js が実測幅から計算して --loop-duration / --loop-distance に設定 */
.gallery-track { display: flex; align-items: center; width: max-content; will-change: transform; backface-visibility: hidden; animation: gallery-scroll var(--loop-duration, 600s) linear infinite; animation-play-state: paused; }
.gallery-track.is-ready { animation-play-state: running; }
.gallery-track img { display: block; width: auto; height: clamp(180px, 25vw, 390px); max-width: 260px; margin-right: 12px; object-fit: cover; flex: 0 0 auto; }
/* .gallery-window:hover .gallery-track.is-ready { animation-play-state: paused; } */
@keyframes gallery-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(var(--loop-distance, 50%) * -1), 0, 0); } }
.section-pad { padding: clamp(64px, 7vw, 100px) 24px; }
.section-heading { text-align: center; }
.section-heading h2, .message-copy h2 { margin: 0; font-family: Questrial, sans-serif; font-size: clamp(32px, 2.4vw, 36px); font-weight: 400; letter-spacing: .07em; }
.section-heading p { margin: 14px 0 0; font-size: 14px; line-height: 1.9; }
.video-frame { width: min(100%, 720px); margin: 40px auto 0; aspect-ratio: 16 / 9; border: 1px solid #e8e4df; background: #fff; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; text-decoration: none; }
.play-icon { display: inline-flex; width: 52px; height: 34px; align-items: center; justify-content: center; padding-left: 3px; color: #fff; background: #f00035; border-radius: 8px; font-size: 17px; }
.grand-prix { padding-top: 0; padding-bottom: 112px; }
.grand-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); width: min(100%, 900px); margin: auto; padding-top: 112px; border-top: 1px solid #e7e1d8; }
.account { margin: 10px 0 0; text-align: center; font-size: 14px; }
.account a { color: #17306b; text-decoration: none; }
.grand-copy h2 { margin: 0; color: transparent; background: var(--pale-gold); -webkit-background-clip: text; background-clip: text; font-family: Questrial, sans-serif; font-size: clamp(40px, 5vw, 58px); font-weight: 400; letter-spacing: .035em; line-height: 1.15; }
.grand-award { margin: 2px 0 26px; color: #8b7650; font-family: "Noto Serif JP", serif; font-size: 16px; }
.grand-comment { padding: 24px 26px; background: var(--beige); }
.grand-comment h3, .judge-comment h4 { margin: 0 0 12px; font-family: Questrial, sans-serif; font-size: 12px; font-weight: 400; letter-spacing: .07em; text-align: center; }
.grand-comment p, .judge-comment p { margin: 0; font-size: 14px; line-height: 1.9; text-align: left;}
.other-awards { width: min(100% - 48px, 900px); margin: 0 auto; }
.award-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 30px; }
.award-card { min-width: 0; padding: 22px 22px 26px; border: 1px solid #eee9e4; background: #fff; text-align: center; box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1); }
.award-name { margin: 0 0 18px; color: var(--wine); font-family: "Noto Serif JP", serif; font-size: 16px; font-weight: 400; }
.judge-comment { margin-top: 24px; text-align: left; }
.judge-comment h4 { margin-bottom: 10px; }
.message-section { padding-top: 80px; padding-bottom: 40px; }
.message-copy { width: min(100%, 780px); margin: auto; text-align: center; }
.message-copy h2 { font-size: clamp(32px, 2.2vw, 36px); }
.message-copy > p { margin: 24px auto 0; font-size: 14px; line-height: 2; }
.message-copy .message-small { margin-top: 26px; font-size: 13px; text-align: left; }
.thank-you { margin-top: 76px; }
.cta-section { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(100% - 40px, 520px); margin: 0 auto; padding: 20px 0 90px; }
.instagram-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 10px; border: 1px solid #ddd8d2; box-shadow: 2px 3px 0 #d5d0ca; background: #fff; text-decoration: none; font-size: 13px; }
.instagram-button .instagram-mark { color: #b94b86; }
.past-button { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; padding: 10px 18px; color: #fff; background: #30317d; text-decoration: none; letter-spacing: .06em; font-size: 13px; }
.site-footer { padding: 34px 20px 24px; color: #f7f4f1; background: #050505; text-align: center; }
.site-footer h2 { margin: 0 0 20px; font-family: Questrial, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: .12em; }
.site-footer p { margin: 0 0 20px; font-size: 10px; }
.site-footer small { font-size: 9px; }

/* 受賞作品のフェードイン（JS有効時のみ。headで html に .js を付与） */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 受賞作品スライダー（画像・動画） */
.media-slider { position: relative; width: 100%; }
.media-slider:not(.slick-initialized) .media-item:not(:first-child) { display: none; }
.media-item { display: block; width: 100%; line-height: 0; }
.award-card .media-item { height: 420px; }
.grand-photo .media-item { aspect-ratio: 4 / 5; max-height: 560px; }
.media-item img, .media-item video { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-slider .slick-arrow { position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 1px 5px rgba(0,0,0,.28); font-size: 0; color: transparent; cursor: pointer; }
.media-slider .slick-arrow::before { content: "" !important; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border: solid #222; border-width: 2px 2px 0 0; opacity: 1; }
.media-slider .m-prev { left: 6px; }
.media-slider .m-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.media-slider .m-next { right: 6px; }
.media-slider .m-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.media-slider .slick-arrow.slick-disabled { opacity: .3; cursor: default; }
.media-slider .slick-dots { position: static; display: flex; justify-content: center; gap: 7px; width: auto; margin: 12px 0 0; padding: 0; list-style: none; line-height: 1; }
.media-slider .slick-dots li { width: auto; height: auto; margin: 0; }
.media-slider .slick-dots button { display: block; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #d6d0c7; font-size: 0; cursor: pointer; }
.media-slider .slick-dots button::before { content: none; }
.media-slider .slick-dots .slick-active button { background: var(--wine); }

@media (max-width: 768px) {
  body { font-size: 13px; }
  .mini-header { height: 28px; padding: 3px 4px; }
  .mini-header a { width: 22px; height: 22px; }
  .hero-inner { width: calc(100% - 32px); min-height: 0; flex-direction: column-reverse; align-items: center; gap: 12px; padding: 48px 0; }
  .contest-logo { width: clamp(88px, 25vw, 112px); }
  .hero-title { width: 100%; text-align: left; }
  .hero-title h1 { font-size: clamp(20px, 5.1vw, 26px); line-height: 1.18; }
  .hero-title p { margin-top: 5px; font-size: 11px; }
  .sp-only { display: block; }
  .gallery-window { padding-bottom: 32px; }
  .gallery-track img { height: clamp(296px, 42vw, 190px); max-width: 300px; margin-right: 8px; }
  .section-pad { padding: 50px 16px 72px; }
  .section-heading h2, .message-copy h2 { font-size: 27px; }
  .section-heading p { margin-top: 10px;}
  .video-frame { margin-top: 22px; }
  .grand-prix { padding-top: 0; padding-bottom: 42px; }
  .grand-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 0; border-top: 0; }
  .grand-copy { display: contents; }
  .grand-copy h2 { order: 0; font-size: clamp(34px, 9vw, 42px); }
  .grand-award { order: 1; margin: 0 0 18px; font-size: 16px; }
  .grand-photo { order: 2; }
  .grand-photo .account { order: 3; }
  .grand-comment { order: 4; margin-top: 24px; padding: 20px 18px; }
  .grand-comment p { font-size: 14px; }
  .other-awards { width: calc(100% - 32px); }
  .award-grid { grid-template-columns: 1fr; gap: 32px; }
  .award-card { padding: 18px 18px 24px; }
  .award-name { margin-bottom: 14px; font-size: 16px; }
  .award-card .media-item { height: auto; max-height: 390px; aspect-ratio: 4 / 5; }
  .judge-comment { margin-top: 22px; }
  .judge-comment p { font-size: 14px; }
  .message-section { padding-top: 58px; padding-bottom: 28px; }
  .message-copy > p { margin-top: 18px; line-height: 1.9; }
  .message-copy .message-small { margin-top: 22px;}
  .thank-you { margin-top: 58px; }
  .cta-section { width: calc(100% - 36px); gap: 15px; padding: 18px 0 58px; }
  .instagram-button { min-height: 56px; font-size: 14px; }
  .past-button { min-height: 56px; font-size: 14px; }
  .site-footer { padding: 28px 16px 20px; }
  .pc-only { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
