@charset "UTF-8";
/* ============================================================
   選定遊戯 / SENTEI YUGI  – teaser site
   Design width: 1086px (main column 1040px + right rail 46px)
   ============================================================ */

/* ---------- Custom properties ---------- */
:root{
  --bg:#ffffff;
  --ink:#1a1a1a;
  --muted:#8a8a8a;
  --rule:#cfcfcf;
  --accent:#a5121f;
  --rail-bg:#4c0910;
  --rail-fg:#ffffff;
  --rail-fg-soft:#e8dcdc;

  --font-jp:"Shippori Mincho B1","Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",serif;
  --font-en:"Cormorant Garamond","EB Garamond",Georgia,"Times New Roman",serif;

  --shell:1086px;
  --rail:46px;
  --main:1040px;
  --pad:40px;
  --header-h:58px;
}

/* ---------- Reset / base ---------- */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:var(--header-h);}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-jp);
  font-weight:400;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%;height:auto;}
ul{margin:0;padding:0;list-style:none;}
p,h1,h2,h3{margin:0;}
a{color:inherit;text-decoration:none;}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;}
.icon{width:1em;height:1em;fill:currentColor;display:block;}
.icon-sm{width:.8em;height:.8em;}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--ink);color:#fff;padding:8px 16px;font-size:13px;
}
.skip-link:focus{left:0;}

:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

/* ---------- Shell (main column + right rail) ---------- */
.shell{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-right:var(--rail);
  position:relative;
  background:var(--bg);
}

/* ============================================================
   Header
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:40;
  height:var(--header-h);
  display:flex;align-items:center;
  background:var(--bg);
  border-bottom:1px solid var(--rule);
  padding-left:26px;padding-right:24px;
}
.brand{
  display:flex;align-items:center;
  flex:0 0 auto;
}
.brand img{
  display:block;
  height:41px;width:auto;   /* 800x191 -> ~172px box, kanji ink ~162x35 as in the mock */
}
.gnav{margin-left:auto;margin-top:6px;}
.gnav ul{display:flex;align-items:center;gap:20px;}
.gnav a,.gnav span{
  font-family:var(--font-en);
  font-weight:700;
  font-size:12.5px;
  letter-spacing:.05em;
  line-height:1;
  white-space:nowrap;
  position:relative;
  display:block;
  padding-bottom:8px;
}
.gnav a:hover{color:var(--accent);}
.gnav .is-current::after,
.gnav .is-top::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--accent);
}
.gnav .is-top::after{background:#9a9a9a;height:1px;}
.gnav .is-disabled{color:var(--muted);cursor:default;}
.gnav-divider{
  width:1px;height:24px;background:var(--rule);
  margin:0 32px 0 44px;flex:0 0 auto;
}
.header-sns{font-size:23px;display:flex;align-items:center;}
.header-sns:hover{color:var(--accent);}

/* ============================================================
   Right rail — maroon band over the header + hero only (mock)
   ============================================================ */
.hero-wrap{position:relative;}
.rail{
  position:absolute;z-index:20;
  top:calc(-1 * var(--header-h));
  right:calc(-1 * var(--rail));
  width:var(--rail);
  height:calc(100% + var(--header-h));
  background:linear-gradient(180deg,
    var(--rail-bg) 0%,
    var(--rail-bg) 86%,
    rgba(76,9,16,0) 96%);
  display:flex;flex-direction:column;align-items:center;
  pointer-events:none;
}
.rail>*{pointer-events:auto;}
.rail-menu{
  margin-top:68px;
  display:flex;flex-direction:column;align-items:center;gap:7px;
}
.burger{display:block;width:24px;}
.burger i{display:block;height:2px;background:var(--rail-fg);margin-bottom:5px;transition:background .2s;}
.burger i:last-child{margin-bottom:0;}
.rail-menu:hover .burger i{background:#f0c6cb;}
.rail-menu-label{
  font-family:var(--font-en);font-weight:600;font-size:9px;
  letter-spacing:.12em;line-height:1;color:var(--rail-fg);
}
.rail-vertical{
  margin-top:214px;
  writing-mode:vertical-rl;
  text-orientation:mixed;
  font-family:var(--font-en);
  font-weight:600;
  font-size:17px;
  letter-spacing:.3em;
  color:var(--rail-fg-soft);
  white-space:nowrap;
}

/* ============================================================
   Hero / KV
   ============================================================ */
.kv{
  position:relative;
  container-type:inline-size;
  overflow:hidden;
  background:#e9e9ea;
}
.kv-img{
  width:100%;
  height:auto;
  aspect-ratio:1040 / 854;
  object-fit:cover;
  /* portrait KV: vertical offset chosen so the mask clears the title block */
  object-position:50% 56%;
}
/* white veil under the text layer: bottom fade + glow behind the title block */
.kv-veil{
  position:absolute;inset:0;
  pointer-events:none;
  background-image:
    radial-gradient(ellipse 46% 27% at 52% 80%,
      rgba(255,255,255,.95) 0%,
      rgba(255,255,255,.86) 34%,
      rgba(255,255,255,.5) 66%,
      rgba(255,255,255,0) 100%),
    linear-gradient(180deg,
      rgba(255,255,255,0) 52%,
      rgba(255,255,255,.42) 64%,
      rgba(255,255,255,.86) 80%,
      #fff 94%);
}

/* -- left vertical lead copy -- */
.kv-lead{
  position:absolute;
  left:5.4%;top:36%;
  display:flex;align-items:flex-start;
  font-family:var(--font-jp);
  font-weight:600;
  font-size:clamp(20px,3.65cqw,40px);
  letter-spacing:.02em;
  line-height:1.53;
  color:#141414;
}
/* soft white haze so the dark copy reads over the artwork */
.kv-lead::before{
  content:"";position:absolute;
  inset:-22px -26px -30px -30px;
  background:radial-gradient(ellipse at 50% 50%,
    rgba(255,255,255,.9) 40%,
    rgba(255,255,255,.62) 70%,
    rgba(255,255,255,0) 100%);
  z-index:0;
}
.kv-lead-col,
.kv-lead-rule{position:relative;z-index:1;}
.kv-lead-col{
  writing-mode:vertical-rl;
  text-orientation:mixed;
  font-feature-settings:"vert" 1,"vkrn" 1;
  white-space:nowrap;
}
.kv-lead-col--b{margin-top:2.5em;}
.kv-lead-rule{
  flex:0 0 auto;
  width:1px;height:7.4em;
  background:var(--accent);
  margin:-.62em 1px 0 1px;
}

/* -- small vertical notes -- */
.kv-note{
  position:absolute;
  writing-mode:vertical-rl;
  text-orientation:mixed;
  font-feature-settings:"vert" 1;
  font-weight:400;
  font-size:clamp(11px,1.55cqw,17px);
  letter-spacing:.14em;
  line-height:1.42;
  color:#1f1f1f;
  white-space:nowrap;
}
.kv-note--left{left:3.2%;bottom:2.4%;}
.kv-note--right{right:3.4%;bottom:1.8%;text-align:left;}

/* -- centre title block -- */
.kv-title{
  position:absolute;
  left:51.4%;transform:translateX(-50%);
  top:60%;
  width:78%;
  text-align:center;
  color:#0d0d0d;
}
/* official title logo (kanji + slashes + SENTEI YUGI rule, all baked in) */
.kv-logo{
  margin:0;
  font-size:0;
  line-height:0;
}
.kv-logo img{
  display:inline-block;
  width:clamp(210px,63cqw,655px);
  height:auto;
}
.kv-catch{
  margin-top:4px;
  font-family:var(--font-jp);
  font-weight:800;
  font-size:clamp(24px,6.08cqw,64px);
  letter-spacing:.02em;
  line-height:1.2;
  color:var(--accent);
}
.kv-credit{
  margin-top:.8em;
  font-family:var(--font-jp);
  font-weight:600;
  font-size:clamp(11px,1.65cqw,17px);
  letter-spacing:.16em;
  line-height:1;
  display:flex;align-items:center;justify-content:center;gap:.72em;
}
.kv-credit::before,.kv-credit::after{
  content:"";height:1px;width:clamp(30px,7.9cqw,83px);background:currentColor;flex:0 0 auto;
}

/* ============================================================
   NEWS + MOVIE row
   ============================================================ */
.row{
  display:grid;
  grid-template-columns:1fr 1px 415px;
  column-gap:26px;
  padding:17px 2px 14px var(--pad);
  align-items:start;
}
.row-divider{align-self:stretch;background:var(--rule);width:1px;}

/* -- shared section heading -- */
.sec-head{
  display:flex;align-items:baseline;gap:18px;
  padding-bottom:10px;
}
.sec-title{
  position:relative;
  font-family:var(--font-en);
  font-weight:700;
  font-size:45px;
  letter-spacing:.07em;
  line-height:1;
  padding-bottom:4px;
}
.news .sec-title::after{
  content:"";position:absolute;left:2px;bottom:0;width:54px;height:2px;background:var(--accent);
}
.sec-sub{
  font-family:var(--font-jp);
  font-weight:400;
  font-size:15px;
  letter-spacing:.12em;
  line-height:1;
}
.viewall{
  margin-left:auto;
  display:flex;align-items:center;gap:.5em;
  font-family:var(--font-en);
  font-weight:600;
  font-size:13px;
  letter-spacing:.16em;
  line-height:1;
}
.viewall:hover{color:var(--accent);}
.viewall .icon{width:.95em;height:.95em;}

/* -- news list -- */
.news-list{border-top:1px solid var(--rule);margin-top:7px;}
.news-list li{
  display:flex;align-items:center;
  gap:31px;
  padding:12px 0 20px;
  border-bottom:1px solid var(--rule);
}
.news-date{
  font-family:var(--font-en);
  font-weight:600;
  font-size:15px;
  letter-spacing:.09em;
  line-height:1;
  flex:0 0 auto;
}
.badge-new{
  flex:0 0 auto;
  background:var(--accent);color:#fff;
  font-family:var(--font-en);
  font-weight:600;
  font-size:11px;
  letter-spacing:.16em;
  line-height:1;
  padding:5px 10px 4px;
  text-indent:.16em;
}
.news-text{
  font-family:var(--font-jp);
  font-weight:400;
  font-size:19px;
  letter-spacing:.03em;
  line-height:1.9;
}

/* -- movie -- */
.movie .sec-head{padding-bottom:0;}
.movie .sec-title{padding-bottom:0;}
.movie-thumb{
  position:relative;
  margin-top:0;
  aspect-ratio:415 / 157;
  overflow:hidden;
  background:#111;
}
.movie-thumb img{width:100%;height:100%;object-fit:cover;object-position:50% 38%;}
/* the artwork is light where the mask is, so lift the white button/label off it */
.movie-thumb::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(180deg,rgba(0,0,0,.12) 0%,rgba(0,0,0,.12) 52%,rgba(0,0,0,.6) 100%),
    rgba(0,0,0,.22);
}
.play{
  position:absolute;z-index:2;left:50%;top:49%;transform:translate(-50%,-50%);
  width:58px;height:58px;border-radius:50%;
  background:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 14px rgba(0,0,0,.28);
}
.play .icon{width:20px;height:20px;fill:#1a1a1a;margin-left:3px;}
.movie-label{
  position:absolute;z-index:2;left:50%;bottom:9%;transform:translateX(-50%);
  color:#fff;
  font-family:var(--font-en);
  font-weight:600;
  font-size:15px;
  letter-spacing:.3em;
  line-height:1;
  text-indent:.3em;
  text-shadow:0 1px 8px rgba(0,0,0,.6);
  white-space:nowrap;
}
.movie-status{
  margin-top:12px;
  text-align:center;
  font-family:var(--font-en);
  font-weight:600;
  font-size:13px;
  letter-spacing:.3em;
  line-height:1;
  text-indent:.3em;
}

/* ============================================================
   INTRODUCTION
   ============================================================ */
.intro{
  /* full-bleed across the whole 1086px shell, rail column included (mock) */
  position:relative;z-index:30;
  margin-right:calc(-1 * var(--rail));
  min-height:197px;
  display:flex;align-items:center;
  color:#fff;
  background:#101012 url("../assets/img/intro-bg.jpg") 50% 55%/cover no-repeat;
  padding:24px var(--pad);
  overflow:hidden;
}
.intro::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(8,8,10,.86) 0%,rgba(8,8,10,.74) 26%,rgba(8,8,10,.32) 50%,rgba(8,8,10,.05) 70%,rgba(8,8,10,0) 100%);
}
.intro-body{position:relative;z-index:1;flex:1 1 auto;}
.intro-label{
  display:flex;align-items:center;gap:14px;
  font-family:var(--font-en);
  font-weight:600;
  font-size:11px;
  letter-spacing:.35em;
  line-height:1;
  color:#fff;
}
.intro-label .rule{display:block;width:60px;height:1px;background:rgba(255,255,255,.75);}
.intro-head{
  margin-top:16px;
  font-family:var(--font-jp);
  font-weight:600;
  font-size:clamp(24px,3.45vw,37px);
  letter-spacing:.06em;
  line-height:1.3;
}
.intro-text{
  margin-top:13px;
  font-family:var(--font-jp);
  font-weight:400;
  font-size:15px;
  letter-spacing:.06em;
  line-height:2;
}
.intro-aside{
  position:relative;z-index:1;
  flex:0 0 auto;
  margin-left:auto;margin-right:55px;   /* keeps it clear of the full-bleed right edge */
  text-align:right;
  font-family:var(--font-jp);
  font-weight:400;
  font-size:13px;
  letter-spacing:.14em;
  line-height:2.05;
  color:#fff;
  white-space:nowrap;
}
.intro-aside .rule{
  display:inline-block;vertical-align:middle;
  width:46px;height:1px;background:#fff;margin-left:4px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  border-top:1px solid var(--rule);
  padding:0 0 0 var(--pad);
}
.footer-row{
  min-height:82px;
  display:flex;align-items:center;
  gap:0;
}
.btn-outline{
  display:inline-flex;align-items:center;gap:12px;
  border:1px solid var(--ink);
  padding:10px 22px;
  font-family:var(--font-jp);
  font-weight:400;
  font-size:16px;
  letter-spacing:.08em;
  line-height:1;
  white-space:nowrap;
  transition:background .2s,color .2s;
}
.btn-outline .icon{width:20px;height:20px;}
.btn-outline .icon-sm{width:13px;height:13px;margin-left:6px;}
.btn-outline:hover{background:var(--ink);color:#fff;}
.footer-divider{width:1px;height:22px;background:var(--rule);margin:0 40px;flex:0 0 auto;}
.footer-sns{display:flex;align-items:center;gap:32px;}
.footer-sns .icon{width:22px;height:22px;}
.footer-sns .icon-yt{width:28px;height:28px;}
.footer-sns a:hover{color:var(--accent);}
.footer-url{
  font-family:var(--font-en);
  font-weight:600;
  font-size:16px;
  letter-spacing:.1em;
  line-height:1;
  white-space:nowrap;
}
.footer-credit{
  position:relative;
  margin-left:auto;
  font-family:var(--font-jp);
  font-weight:400;
  font-size:14px;
  letter-spacing:.06em;
  line-height:1;
  white-space:nowrap;
}
.footer-note{
  position:absolute;right:0;top:calc(100% + 14px);
  font-size:10px;letter-spacing:.05em;color:var(--muted);
}
.copyright{
  text-align:center;
  padding:0 0 16px;
  color:var(--muted);
  font-family:var(--font-jp);
  font-size:10px;
  letter-spacing:.08em;
  line-height:1;
}

/* ============================================================
   Overlay menu
   ============================================================ */
.overlay{
  position:fixed;inset:0;z-index:100;
  background:var(--bg);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:44px;
  animation:fade .22s ease-out;
}
.overlay[hidden]{display:none;}
@keyframes fade{from{opacity:0}to{opacity:1}}
.overlay-close{
  position:absolute;top:14px;right:11px;
  width:40px;height:40px;display:flex;align-items:center;justify-content:center;
}
.overlay-close span{position:relative;display:block;width:22px;height:2px;background:transparent;}
.overlay-close span::before,.overlay-close span::after{
  content:"";position:absolute;left:0;top:0;width:22px;height:2px;background:var(--ink);
}
.overlay-close span::before{transform:rotate(45deg);}
.overlay-close span::after{transform:rotate(-45deg);}
.overlay-nav ul{display:flex;flex-direction:column;align-items:center;gap:24px;}
.overlay-nav a,.overlay-nav span{
  font-family:var(--font-en);
  font-weight:600;
  font-size:20px;
  letter-spacing:.22em;
  line-height:1;
  text-indent:.22em;
}
.overlay-nav a:hover{color:var(--accent);}
.overlay-nav .is-disabled{color:var(--muted);cursor:default;}
.overlay-foot{
  font-family:var(--font-en);font-weight:600;font-size:11px;
  letter-spacing:.3em;color:var(--muted);text-indent:.3em;
}
body.is-locked{overflow:hidden;}

/* ============================================================
   Responsive – < 900px
   ============================================================ */
@media (max-width:899px){
  :root{--pad:20px;}
  .shell{padding-right:0;}
  .rail{display:none;}

  .site-header{padding-left:18px;padding-right:12px;height:54px;}
  :root{--header-h:54px;}
  .brand{font-size:23px;}
  .gnav{display:none;}
  .gnav-divider{display:none;}
  .header-sns{margin-left:auto;font-size:18px;}

  /* mobile hamburger lives in the header */
  .rail.is-mobile{
    display:flex;position:static;width:auto;height:auto;border:0;
    background:none;
    margin-left:16px;flex-direction:row;
  }
  .rail.is-mobile .burger i{background:var(--ink);}
  .rail.is-mobile .rail-menu-label{color:var(--ink);}
  .rail.is-mobile:hover .burger i{background:var(--accent);}
  .rail.is-mobile .rail-menu{margin-top:0;gap:5px;}
  .rail.is-mobile .rail-vertical{display:none;}
  .rail.is-mobile .burger{width:22px;}
  .rail.is-mobile .burger i{margin-bottom:4px;}

  /* hero */
  /* taller hero so the portrait KV keeps all four faces */
  .kv-img{aspect-ratio:1040 / 1400;}
  /* the girl occupies the top-left here, so the lead copy drops below her hand */
  .kv-lead{left:5.4%;top:44%;font-size:clamp(13px,3.4cqw,26px);}
  .kv-lead::before{inset:-14px -16px -18px -18px;}
  .kv-note{font-size:clamp(8px,1.9cqw,12px);}
  .kv-title{width:92%;top:73.5%;left:50%;}
  .kv-logo img{width:min(74cqw,655px);}
  .kv-catch{margin-top:2px;font-size:clamp(22px,7cqw,48px);}
  .kv-credit{font-size:clamp(9px,1.9cqw,13px);}

  /* stacked news / movie */
  .row{
    grid-template-columns:1fr;
    row-gap:34px;
    padding:24px var(--pad) 32px;
  }
  .row-divider{display:none;}
  .sec-title{font-size:34px;}
  .news-list li{gap:14px;flex-wrap:wrap;padding:16px 0;}
  .news-text{flex:1 0 100%;font-size:15px;}
  .news-date{font-size:14px;}
  .movie-thumb{margin-inline:auto;}

  /* introduction */
  .intro{
    margin-right:0;
    flex-direction:column;align-items:flex-start;
    padding:32px var(--pad) 34px;
    min-height:0;
  }
  .intro::before{
    background:linear-gradient(180deg,rgba(8,8,10,.9) 0%,rgba(8,8,10,.8) 70%,rgba(8,8,10,.72) 100%);
  }
  .intro-head{font-size:clamp(21px,5.6vw,28px);}
  .intro-text{font-size:12.5px;}
  .intro-aside{
    margin:22px 0 0;text-align:left;white-space:normal;
  }

  /* footer */
  .footer-row{
    flex-direction:column;flex-wrap:wrap;justify-content:center;
    gap:20px;padding:28px 0 10px;text-align:center;
  }
  .footer-divider{display:none;}
  .footer-credit{margin:0;}
  .footer-note{position:static;display:block;margin-top:10px;}
}

/* the two tiny corner notes are illegible on small phones */
@media (max-width:599px){
  .kv-note{display:none;}
}

@media (max-width:420px){
  .kv-lead{left:4%;}
  .kv-note--left{left:2.5%;}
  .btn-outline{font-size:13px;padding:11px 16px;}
}
