@font-face { font-family: "Dela Gothic One"; src: url("/assets/fonts/DelaGothicOne-subset.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; font-weight: 700; src: url("/assets/fonts/ZenMaruGothic-Bold-subset.woff2") format("woff2"); font-display: swap; }
:root { --navy: #0b1230; --navy2: #172257; --brick: #e2462f; --cream: #fff4d6; --gold: #ffcf4a; --sea: #2bb3b1; --ink: #14183a;
  --disp: "Dela Gothic One", "Hiragino Kaku Gothic StdN", "Yu Gothic", sans-serif; --pop: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 700 16px/1.7 var(--pop); color: var(--ink); background: var(--cream); background-image: radial-gradient(rgba(20, 24, 58, .07) 1.5px, transparent 1.6px); background-size: 18px 18px; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---- ヒーロー：夜の函館（くびれた街の灯） ---- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, #070b22 0%, var(--navy) 45%, var(--navy2) 100%); padding: clamp(36px, 8vw, 84px) 20px clamp(190px, 24vw, 250px); text-align: center; border-bottom: 6px solid var(--ink); }
.hero-night { position: absolute; left: 0; bottom: 0; width: 100%; height: min(100%, 420px); }
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
.hero-kicker { margin: 0 0 6px; font: 400 clamp(12px, 2.6vw, 16px) var(--disp); letter-spacing: .38em; color: var(--gold); }
.hero-kicker span { color: var(--sea); }
.site-logo { position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .12em; margin: 0; font: 400 clamp(46px, 13vw, 118px)/1.05 var(--disp); letter-spacing: .01em; rotate: -2.5deg; filter: drop-shadow(0 .08em 0 var(--ink)); }
.site-logo span { -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; }
.site-logo .l1 { color: var(--gold); font-size: .8em; }
.site-logo .l2 { color: #fff; }
.site-logo .star { position: absolute; right: -.42em; top: -.3em; width: .62em; height: .62em; rotate: 14deg; animation: twinkle 3.4s ease-in-out infinite; }
.site-logo .star path { fill: var(--brick); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
@keyframes twinkle { 50% { rotate: -8deg; scale: 1.12; } }
.hero-lead { margin: 18px 0 2px; font-size: clamp(17px, 4.2vw, 26px); line-height: 1.5; text-shadow: 0 2px 0 var(--ink); }
.hero-lead span { display: inline-block; }
.hero-sub { margin: 0; font-size: clamp(12px, 2.8vw, 15px); color: #c9d2ff; }

/* ---- 作品一覧 ---- */
main { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; }
h2 { display: flex; align-items: baseline; gap: 12px; margin: clamp(26px, 5vw, 44px) 0 16px; font: 400 clamp(22px, 5vw, 32px)/1.2 var(--disp); }
h2 span { padding: 2px 14px 6px; color: #fff; background: var(--brick); border: 4px solid var(--ink); border-radius: 10px; box-shadow: 4px 5px 0 var(--ink); rotate: -1.5deg; }
h2 small { font: 700 14px var(--pop); color: #5b6185; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 26px 22px; }
.cards.single { grid-template-columns: minmax(0, 560px); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 6px 8px 0 var(--ink); overflow: hidden; transition: translate .15s, box-shadow .15s; }
.card:has(.card-link:hover), .card:has(.play:hover) { translate: -2px -3px; box-shadow: 9px 12px 0 var(--ink); }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:focus-visible, .play:focus-visible, .like:focus-visible { outline: 4px solid var(--sea); outline-offset: 3px; }
.card-shot { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-bottom: 4px solid var(--ink); overflow: hidden; }
.card-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .3s; }
.card-link:hover .card-shot img { scale: 1.04; }
.card-time { position: absolute; left: 10px; bottom: 10px; padding: 1px 10px 2px; font-size: 12.5px; color: var(--ink); background: var(--gold); border: 3px solid var(--ink); border-radius: 999px; }
.card-time:empty { display: none; }
.card-body { padding: 14px 16px 6px; }
.card-title { margin: 0; font: 400 clamp(21px, 5vw, 26px)/1.25 var(--disp); }
.card-tag { margin: 6px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--brick); }
.card-desc { margin: 4px 0 0; font-size: 14px; line-height: 1.65; color: #3c4168; }
.card-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.card-tags li { padding: 0 10px 1px; font-size: 12px; color: #0d5a59; background: #d9f4f1; border: 2px solid #0d5a59; border-radius: 999px; }
.card-actions { display: flex; align-items: stretch; gap: 12px; padding: 12px 16px 16px; margin-top: auto; }
.play { flex: 1; display: grid; place-items: center; min-height: 52px; font: 400 21px/1 var(--disp); letter-spacing: .2em; text-indent: .2em; text-decoration: none; color: #fff; background: var(--brick); border: 4px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 var(--ink); }
.play:active, .like:active { translate: 0 3px; box-shadow: 0 2px 0 var(--ink); }
.like { flex: none; display: inline-flex; align-items: center; gap: 6px; min-width: 104px; min-height: 52px; padding: 0 14px; justify-content: center; font: 700 14px var(--pop); color: var(--ink); background: #fff; border: 4px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 var(--ink); cursor: pointer; }
.like svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; transition: scale .2s; }
.like .like-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.like-count { font: 400 18px/1 var(--disp); font-variant-numeric: tabular-nums; min-width: 1.2em; text-align: left; }
.like[aria-pressed="true"] { background: #ffe3ea; } .like[aria-pressed="true"] svg { fill: #ff3d6e; stroke: #b3123c; }
.like.bump svg { animation: bump .35s cubic-bezier(.3, 1.8, .5, 1); } @keyframes bump { 40% { scale: 1.45; } }
.like[disabled] { opacity: .6; cursor: progress; }
.card.soon .card-shot::after { content: "じゅんびちゅう"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 22px var(--disp); color: #fff; background: rgba(11, 18, 48, .7); }
.card.soon .play { background: #8a8fa8; pointer-events: none; }
.msg { padding: 18px; background: #fff; border: 4px dashed var(--ink); border-radius: 14px; }
.about p { max-width: 720px; margin: 0 0 6px; } .fine { font-size: 12.5px; color: #5b6185; }
.foot { padding: 22px 16px calc(26px + env(safe-area-inset-bottom, 0px)); text-align: center; color: #fff; background: var(--navy); border-top: 6px solid var(--ink); }
.foot p { margin: 0; font: 400 16px var(--disp); letter-spacing: .1em; } .foot .fine { margin-top: 6px; font: 700 11.5px var(--pop); color: #aab3e6; letter-spacing: 0; }
/* スマホ：カードは1列、画像→題名→説明→ボタンの順。「遊ぶ」と「いいね」は別ボタンで十分な大きさ */
@media (max-width: 520px) { .card-actions { gap: 10px; } .like { min-width: 96px; } }
@media (prefers-reduced-motion: reduce) { .site-logo .star, .like.bump svg { animation: none; } .card, .card-shot img { transition: none; } }
