/* =========================================================
   NPT48 Official Site — modelled on the ≠ME official site:
   airy white/pale-grey pages, thin Comfortaa type with wide
   letter-spacing, hairline section titles, a floating wordmark
   and "≠" menu button, a diagonal full-screen menu, circular
   member photos, and NPT48 sky blue in place of ≠ME mint.
   ========================================================= */

:root {
  --accent: #66cbff;        /* NPT48 sky blue */
  --accent-dark: #2fa9e6;
  --accent-ink: #0b7bbd;    /* sky blue dark enough for small text */
  --accent-pale: rgba(102, 203, 255, .16);
  --ink: #000;
  --text: #222;
  --muted: #767676;
  --line: #ddd;
  --gray: #f7f7f7;
  --new: #ffafc1;
  --hover: #ffffc7;
  --tag-movie: #0b7bbd;
  --tag-release: #986ad6;
  --inner: 65%;
  --font: "Comfortaa", "Noto Sans Thai", "Work Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 14px; line-height: 1.8;
  color: var(--ink); background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .3s, opacity .3s; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: #333; color: #fff; }
body.menu-open { overflow: hidden; }
[hidden] { display: none !important; }
.icon { width: 1em; height: 1em; flex: none; }

.inner { width: var(--inner); margin: 0 auto; position: relative; }
@media (max-width: 767px) { :root { --inner: 88%; } }

/* Fade-up on scroll (reveal.js adds .in-view) */
[data-pop] { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 80ms); }
[data-pop].in-view { opacity: 1; transform: none; }

/* ---------- Header: floating wordmark + "≠" button ---------- */
.brand {
  position: fixed; top: 49px; left: 4%; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  font-weight: 300; font-size: 28px; line-height: 1; letter-spacing: .02em;
  transition: opacity .4s, visibility .4s;
}
.brand img { width: auto; height: 30px; mix-blend-mode: multiply; }
.brand:hover { opacity: .5; }
body.is-home:not(.is-scrolled) .brand { opacity: 0; visibility: hidden; }
body.menu-open .brand { opacity: 0; visibility: hidden; }

.nav-btn {
  position: fixed; top: 58px; right: 6%; z-index: 80;
  width: 36px; height: 12px;
  transition: transform .3s ease;
}
.nav-btn span {
  position: absolute; left: 0; width: 100%; height: 1px; background: var(--ink);
  transition: all .3s ease;
}
.nav-btn span:nth-child(1) { top: 0; }
.nav-btn span:nth-child(2) { top: 10px; }
.nav-btn::after { content: ""; position: absolute; inset: -16px -6px; }
.nav-btn:hover span:nth-child(1) { top: -2px; }
.nav-btn:hover span:nth-child(2) { top: 12px; }
body.menu-open .nav-btn { transform: rotate(225deg); }
body.menu-open .nav-btn span { background: #fff; }
body.menu-open .nav-btn span:nth-child(1) { top: 6px; transform: rotate(90deg); }
body.menu-open .nav-btn span:nth-child(2) { top: 6px; }

@media (max-width: 767px) {
  /* On phones a soft white band keeps the wordmark readable over scrolled content */
  .site-header::before {
    content: ""; position: fixed; inset: 0 0 auto 0; z-index: 59; height: 76px;
    background: rgba(255, 255, 255, .94); transition: opacity .4s;
  }
  body.is-home:not(.is-scrolled) .site-header::before, body.menu-open .site-header::before { opacity: 0; }
  .brand { top: 22px; left: 5%; font-size: 22px; }
  .brand img { height: 24px; }
  .nav-btn { top: 32px; right: 6%; width: 30px; }
}

/* ---------- Full-screen menu: a diagonal sky-blue wipe ---------- */
.site-menu {
  position: fixed; inset: 0; z-index: 70;
  overflow: hidden; visibility: hidden;
  transition: visibility 0s .5s;
}
.site-menu::before {
  content: ""; position: absolute; z-index: 0;
  width: 300vmax; height: 300vmax; top: 50%; left: 50%; margin: -150vmax 0 0 -150vmax;
  background: var(--accent);
  transform: rotate(45deg) scaleX(.001);
  transition: transform .4s ease;
}
body.menu-open .site-menu { visibility: visible; transition: none; }
body.menu-open .site-menu::before { transform: rotate(45deg) scaleX(1); }

.site-menu-logo {
  position: absolute; z-index: 1; top: 45%; left: 25%;
  transform: translate(-50%, -50%);
  color: #fff; text-align: center; line-height: 1;
  opacity: 0; transition: opacity .3s;
}
.site-menu-logo b { display: block; font-weight: 300; font-size: clamp(56px, 8vw, 120px); letter-spacing: .02em; }
.site-menu-logo small { display: block; margin-top: 18px; font-size: 13px; font-weight: 300; letter-spacing: .3em; }
body.menu-open .site-menu-logo { opacity: 1; transition-delay: .25s; }

.site-menu-nav {
  position: absolute; z-index: 1; top: 50%; left: 55%;
  transform: translateY(-50%);
  opacity: 0; transition: opacity .3s;
}
body.menu-open .site-menu-nav { opacity: 1; }
.site-menu-nav li { overflow: hidden; margin-bottom: 26px; }
.site-menu-nav ul:first-child a {
  display: block; color: #fff; font-size: 16px; line-height: 1.2;
  font-weight: 300; letter-spacing: .2em;
  transform: translateY(110%);
  transition: transform .4s ease, color .3s;
  transition-delay: calc(.25s + var(--i, 0) * 40ms), 0s;
}
body.menu-open .site-menu-nav ul:first-child a { transform: none; }
.site-menu-nav a:hover, .site-menu-nav a.active { color: var(--hover); }
.site-menu-sns { display: flex; gap: 18px; margin-top: 8px; }
.site-menu-sns li { margin: 0; }
.site-menu-sns a { display: block; color: #fff; width: 22px; height: 22px; }
.site-menu-sns svg { width: 100%; height: 100%; }
.site-menu-sns a:hover { color: var(--hover); }

@media (max-width: 767px) {
  .site-menu-logo { top: 18%; left: 50%; }
  .site-menu-nav { top: 30%; left: 50%; transform: translateX(-50%); text-align: center; }
  .site-menu-sns { justify-content: center; }
}

/* ---------- Page title (sub pages): letter-spaced on a hairline ---------- */
main { position: relative; }
.page { padding: 150px 0 140px; }
.page-tit {
  position: absolute; top: 48px; left: 0; right: 0; z-index: 1;
  font-size: 18px; font-weight: 400; line-height: 1.5;
  overflow: hidden; pointer-events: none;
}
.page-tit::before {
  content: ""; position: absolute; top: 50%; left: 0; height: 1px; width: 0;
  background: var(--line); transition: width .5s ease .2s;
}
.page-tit span {
  display: block; width: var(--inner); margin: 0 auto; position: relative; top: 2px;
  letter-spacing: 3em; transform: translateY(110%);
}
.loaded .page-tit::before { width: 100%; }
.loaded .page-tit span { animation: titVisible .9s ease-out .4s forwards; }
@keyframes titVisible {
  0% { letter-spacing: 3em; transform: translateY(110%); }
  60% { letter-spacing: 3em; transform: none; }
  100% { letter-spacing: .5em; transform: none; }
}
@media (max-width: 767px) {
  .page { padding: 130px 0 100px; }
  .page-tit { top: 84px; font-size: 15px; }
}

/* ---------- Home section titles ---------- */
.home-sec { position: relative; padding: 80px 0; background: #fff; }
.home-sec--gray { background: var(--gray); }
.sec-tit { position: relative; margin-bottom: 70px; font-size: 18px; line-height: 1.5; }
.sec-tit::before {
  content: ""; position: absolute; top: 50%; left: 0; height: 1px; width: 0;
  background: var(--line); transition: width .4s ease .3s;
}
.sec-tit h2 { font: inherit; overflow: hidden; }
.sec-tit h2 span {
  display: block; width: var(--inner); margin: 0 auto; position: relative; top: 2px;
  letter-spacing: 3em; transform: translateY(110%);
}
.sec-tit.in-view::before { width: 100%; }
.sec-tit.in-view h2 span { animation: titVisible .9s ease-out .5s forwards; }
.sec-tit[data-pop] { opacity: 1; transform: none; }

/* "VIEW MORE" link with a diagonal accent stroke that fills on hover */
.more {
  position: absolute; top: 2px; right: 17.5%; z-index: 1;
  display: inline-block; font-size: 13px; line-height: 1.6; letter-spacing: .2em;
  isolation: isolate; transition: color .2s;
}
.more::after {
  content: ""; position: absolute; z-index: -1; top: 10px; right: 11px;
  width: 40px; height: 1px; background: var(--accent);
  transform: rotate(-60deg); transition: all .2s ease;
}
.more:hover { color: #fff; }
.more:hover::after { width: 110%; height: 100%; top: -1px; right: -3px; transform: none; }
.back { text-align: center; margin-top: 70px; }
.back .more { position: relative; top: 0; right: 0; }
@media (max-width: 767px) {
  .home-sec { padding: 60px 0; }
  .sec-tit { margin-bottom: 44px; font-size: 15px; }
  .sec-tit .more { position: static; display: table; margin: 18px 6% 0 auto; font-size: 11px; }
}

.data-empty { padding: 40px 16px; text-align: center; color: var(--muted); width: 100%; }

#loading-overlay {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 80px 16px; color: var(--muted); font-size: 13px; letter-spacing: .1em;
}
.spinner-ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Outlined category tags (≠ME style) */
.tag {
  display: inline-block; font-size: 10px; line-height: 1; letter-spacing: .05em;
  border: 1px solid currentColor; padding: 6px 10px 5px; vertical-align: middle;
}
.tag--movie { color: var(--tag-movie); }
.tag--release, .tag--single { color: var(--accent-ink); }
.tag--album { color: var(--tag-release); }
.tag--dvd { color: #0089ff; }
.new { display: inline-block; font-size: 10px; color: var(--new); margin-left: 10px; letter-spacing: .05em; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; padding: 9vh 3vw 90px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vh;
  background: #fff;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0; width: 0; height: 0;
  background: var(--accent-pale); transform: rotate(-45deg);
  transition: width .6s ease .4s, height .6s ease .4s;
}
.hero::before { bottom: -30vw; left: -27vw; }
.hero::after { top: -30vw; right: -27vw; }
.loaded .hero::before, .loaded .hero::after { width: 30vw; height: 70vw; }
.hero-logo { position: relative; z-index: 1; text-align: center; color: var(--accent); line-height: 1; }
.hero-logo b { display: block; font-weight: 300; font-size: clamp(54px, 7vw, 104px); letter-spacing: .02em; }
.hero-logo small { display: block; margin-top: 16px; font-size: 12px; color: var(--accent-ink); letter-spacing: .3em; }
.hero-visual { position: relative; z-index: 1; width: 100%; max-width: 1500px; overflow: hidden; }
.hero-visual img { width: 100%; height: auto; transform: scale(1.12); transition: transform 1.2s ease-out; }
.loaded .hero-visual img { transform: none; }
.scroll-line {
  position: absolute; z-index: 2; bottom: 0; left: 50%; width: 1px; height: 60px; overflow: hidden;
}
.scroll-line::after {
  content: ""; position: absolute; left: 0; width: 100%; background: var(--accent);
  animation: scrollLine 1.2s linear .4s infinite;
}
@keyframes scrollLine {
  0% { top: 0; height: 0; }
  46% { top: 0; height: 100%; }
  54% { top: 0; height: 100%; transform: translateY(0); }
  100% { top: 100%; height: 0; }
}
@media (max-width: 767px) {
  .hero { min-height: 0; padding: 100px 0 70px; gap: 32px; }
  .hero::before, .hero::after { display: none; }
}

/* ---------- Home: banner carousel ---------- */
.slider { --bnr-w: min(900px, 86vw); position: relative; padding: 20px 0 50px; overflow: hidden; }
.slider-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 20px calc((100% - var(--bnr-w)) / 2);
}
.slider-track::-webkit-scrollbar { display: none; }
.banner-card {
  flex: 0 0 var(--bnr-w); scroll-snap-align: center;
  aspect-ratio: 2000 / 533; overflow: hidden; background: var(--gray); border: 1px solid #eee;
}
.banner-card img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
a.banner-card:hover img { opacity: .5; }
.slider-arrow, .rail-arrow {
  position: absolute; z-index: 3; top: 50%;
  width: 40px; height: 70px; margin-top: -35px;
  opacity: 0; transition: opacity .3s, left .3s, right .3s;
}
.slider-arrow::before, .rail-arrow::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px;
  border-left: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
  transform: translate(-30%, -50%) rotate(45deg);
}
.slider-arrow--next::before, .rail-arrow--next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.slider-arrow { top: calc(50% - 15px); }
.slider-arrow--prev { left: calc(50% - var(--bnr-w) / 2 - 60px); }
.slider-arrow--next { right: calc(50% - var(--bnr-w) / 2 - 60px); }
.slider:hover .slider-arrow, .rail-wrap:hover .rail-arrow, .rail-arrow:focus-visible { opacity: 1; }
.slider-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.slider-dots button:hover { background: var(--muted); transform: scale(1.2); }
.slider-dots button.active { background: var(--muted); }
@media (max-width: 767px) { .slider-arrow { display: none; } .slider-track { gap: 12px; } }

/* ---------- Home: NEWS ---------- */
.info-list li + li { margin-top: 30px; }
.info-list a { display: block; position: relative; overflow: hidden; padding-top: 10px; transition: padding-left .3s ease; }
.info-list .arrow {
  position: absolute; top: 50%; left: -35px; width: 23px; height: 9px; margin-top: -2px;
  color: var(--accent); transition: left .3s ease;
}
.info-list a:hover { padding-left: 40px; }
.info-list a:hover .arrow { left: 0; }
.info-list .date { display: block; font-size: 11px; letter-spacing: .1em; margin-bottom: 5px; }
.info-list .date .tag { margin-left: 10px; }
.info-list .tit { display: block; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.info-list li[hidden] { display: none; }

/* ---------- Home: PROFILE rail (circles) ---------- */
.rail-wrap { position: relative; }
.rail {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail:active { cursor: grabbing; }
.rail-arrow--prev { left: 2%; }
.rail-arrow--next { right: 2%; }
@media (hover: none) { .rail-arrow { display: none; } }

.members-rail { gap: 3vw; padding: 0 6vw; scroll-padding: 0 6vw; }
.members-rail .member-tile { flex: 0 0 calc((100% - 12vw) / 5.5); scroll-snap-align: start; }
@media (max-width: 1023px) { .members-rail .member-tile { flex-basis: calc((100% - 6vw) / 3.4); } }
@media (max-width: 639px) { .members-rail .member-tile { flex-basis: 40%; } }
.home-members .back { margin-top: 50px; }

/* ---------- Home: MOVIE (centred carousel) ---------- */
.movie-rail { gap: 20px; padding: 20px 21vw 0; }
.movie-item { flex: 0 0 58vw; scroll-snap-align: center; position: relative; }
.movie-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #ddd;
  border: 4px solid transparent; transition: border-color .3s;
}
.movie-thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .4);
  transition: opacity .3s;
}
.movie-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.movie-thumb iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.movie-item:hover .movie-thumb img { transform: scale(1.05); }
.movie-item.is-current .movie-thumb { border-color: var(--accent); }
.movie-item.is-current .movie-thumb::before { opacity: 0; }
.movie-title { margin-top: 12px; font-size: 13px; line-height: 1.6; }
.movie-date { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.movie-rail-wrap .rail-arrow { top: calc(20px + 58vw * 9 / 32); }
.movie-rail-wrap .rail-arrow--prev { left: calc(21vw - 60px); }
.movie-rail-wrap .rail-arrow--next { right: calc(21vw - 60px); }
.movie-rail-wrap .rail-arrow { opacity: 1; }
@media (max-width: 767px) {
  .movie-rail { gap: 12px; padding: 10px 8vw 0; }
  .movie-item { flex-basis: 84vw; }
}

/* ---------- SNS circles (top of the footer) ---------- */
.sns-circles { display: flex; justify-content: center; gap: 20px; }
.sns-circles a {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #fff; transition: color .3s, background .3s;
}
.sns-circles svg { width: 22px; height: 22px; }
.sns-circles a:hover { color: var(--hover); background: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; padding: 90px 0 50px; text-align: center; }
.site-footer .sns-circles { margin-bottom: 50px; }
.footer-logo { display: inline-block; margin-bottom: 44px; }
.footer-logo img { width: clamp(64px, 6vw, 90px); height: auto; }
.footer-logo:hover { opacity: .5; }
.logo-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; max-width: 760px; margin: 0 auto 50px; }
.logo-grid a { opacity: .75; transition: opacity .3s; }
.logo-grid img { width: 40px; height: auto; }
.logo-grid a:hover { opacity: 1; }
.bnr-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 3%; width: 70%; margin: 0 auto 40px; }
.bnr-list li { width: 22%; min-width: 200px; line-height: 0; }
.bnr-list img { width: 100%; height: auto; }
.bnr-list a { display: block; transition: opacity .3s; }
.bnr-list a:hover { opacity: .5; }
.footer-info {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
  width: 90%; margin: 0 auto;
}
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 12px; letter-spacing: .1em; }
.footer-menu a:hover { color: var(--accent-ink); }
.footer-copy { font-size: 10px; margin-left: auto; }
@media (max-width: 767px) {
  .footer-info { flex-direction: column; align-items: center; }
  .footer-menu { justify-content: center; }
  .footer-copy { margin: 0; }
  .logo-grid { width: 90%; }
  .bnr-list { width: 88%; }
  .bnr-list li { width: 100%; min-width: 0; max-width: 320px; }
}

/* ---------- Category tabs (team filter, discography types) ---------- */
.category-list { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 80px; }
.category-list button, .category-list a {
  position: relative; padding: 0; font-size: 11px; letter-spacing: .05em; color: var(--muted);
}
.category-list button::before, .category-list a::before {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .7s cubic-bezier(.19, 1, .22, 1);
}
.category-list button:hover, .category-list a:hover, .category-list .active { color: var(--ink); }
.category-list button:hover::before, .category-list a:hover::before { transform: scaleX(1); transform-origin: left; }
.category-list .active::before { transform: scaleX(1); }
@media (max-width: 767px) { .category-list { margin-bottom: 44px; gap: 10px 20px; } }

/* ---------- Member tiles (profile grid + home rail) ---------- */
.member-tile { display: block; min-width: 0; }
.member-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #eef7fd; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease-out; }
.member-tile:hover .member-photo img { transform: scale(1.1); }
.member-name { margin-top: 15px; padding: 0 2vw; font-size: 14px; line-height: 1.5; letter-spacing: .05em; }
.member-name small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.members-rail .member-name { text-align: center; padding: 0; }

.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 5%; }
.member-grid .member-tile.active .member-name { color: var(--accent-ink); }
@media (max-width: 767px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 6%; }
  .member-name { padding: 0 4px; font-size: 13px; }
}

/* ---------- Member detail ---------- */
.prof-detail { display: flex; align-items: flex-start; gap: 7%; }
.prof-detail .ph { flex: 0 0 45%; aspect-ratio: 2 / 3; overflow: hidden; background: #eef7fd; }
.prof-detail .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.prof-detail .status { flex: 1; min-width: 0; padding-top: 11vw; }
.prof-detail .status h2 { font-size: clamp(22px, 2vw, 30px); font-weight: 400; line-height: 1.4; margin-bottom: 30px; }
.prof-detail .status h2 b { font-weight: inherit; }
.prof-detail .status h2 span { display: block; font-size: 11px; letter-spacing: .05em; margin-top: 3px; }
.prof-detail dl { display: grid; grid-template-columns: 8.5em 1fr; gap: 7px 0; margin-bottom: 30px; }
.prof-detail dt { color: var(--muted); font-size: 11px; letter-spacing: .05em; padding-top: 3px; }
.prof-detail dd { overflow-wrap: anywhere; }
.prof-sns { display: flex; gap: 8px; }
.prof-sns a {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; transition: background .3s;
}
.prof-sns svg { width: 16px; height: 16px; }
.prof-sns a:hover { background: var(--accent); }
@media (max-width: 767px) {
  .prof-detail { flex-direction: column; gap: 28px; }
  .prof-detail .ph { flex: none; width: 100%; }
  .prof-detail .status { padding-top: 0; }
}

/* ---------- Discography ---------- */
.disco-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 5%; }
.disco-item { display: block; min-width: 0; }
.disco-cover { position: relative; aspect-ratio: 1; overflow: hidden; margin-bottom: 15px; background: var(--gray); }
.disco-cover .blur { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); object-fit: cover; filter: blur(6px); opacity: .7; }
.disco-cover .main { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease-out; }
.disco-item:hover .disco-cover .main { transform: scale(1.1); }
.disco-meta { font-size: 11px; letter-spacing: .1em; margin-bottom: 5px; }
.disco-meta .tag { margin-right: 10px; }
.disco-title { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 767px) { .disco-list { grid-template-columns: repeat(2, 1fr); gap: 28px 6%; } .disco-title { font-size: 13px; } }

.disco-detail { display: flex; align-items: flex-start; gap: 5%; }
.disco-detail .ph { flex: 0 0 45%; aspect-ratio: 1; background: var(--gray); }
.disco-detail .ph img { width: 100%; height: 100%; object-fit: cover; }
.disco-detail .text-area { flex: 1; min-width: 0; }
.disco-detail .tag { margin-bottom: 20px; }
.disco-detail h2 { font-size: clamp(20px, 2vw, 28px); font-weight: 400; line-height: 1.5; margin-bottom: 10px; }
.disco-detail .date { font-size: 12px; letter-spacing: .1em; margin-bottom: 30px; }
.disco-detail .txt { margin-bottom: 40px; overflow-wrap: anywhere; }
.disco-detail .txt h3 { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .1em; margin-bottom: 4px; }
.disco-detail .txt p + h3 { margin-top: 18px; }
.disco-detail .txt a { color: var(--accent-ink); }
.disco-detail .txt a:hover { text-decoration: underline; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; height: 48px; padding: 0 24px;
  border: 1px solid var(--ink); font-size: 12px; letter-spacing: .2em;
  transition: background .3s, color .3s;
}
.btn-line:hover { background: var(--ink); color: #fff; }
@media (max-width: 767px) {
  .disco-detail { flex-direction: column; gap: 28px; }
  .disco-detail .ph { flex: none; width: 100%; }
}

/* ---------- About ---------- */
.about .lead { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.8; margin-bottom: 80px; }
.about p { margin-bottom: 20px; line-height: 2; }
.about .message { border: 11px solid #eee; padding: 35px; margin-top: 70px; }
.about .message p { margin: 0; }
.about .message span { display: block; text-align: right; margin-top: 10px; color: var(--muted); font-size: 12px; }
@media (max-width: 767px) { .about .lead { margin-bottom: 44px; } .about .message { padding: 22px; border-width: 8px; } }

/* =========================================================
   NEW RELEASE special site (release.html), modelled on the
   ≠ME single special sites: opening loader, full-screen key
   visual, the KV blurred behind the page, big serif section
   titles, product boxes and pill buttons — in the pink/violet
   sunset of the 2nd single artwork instead of sky blue.
   ========================================================= */
body.rl {
  --rl-ink: #4b2a5e;        /* plum, for titles and body text */
  --rl-pink: #bd3e6d;       /* buttons and labels (white text passes AA) */
  --rl-pink-pale: #f3c3d6;
  --rl-violet: #a86bd6;
  --rl-serif: "Cormorant Garamond", "Noto Sans Thai", serif;
  background: #f4e6f1; color: var(--rl-ink);
}

/* Loader */
.rl-loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 0 24px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #8f55c2, var(--rl-pink));  /* dark enough for white text */
  transition: opacity .8s ease, visibility .8s;
}
.rl-loader.is-done { opacity: 0; visibility: hidden; }
.rl-loader-logo { animation: rlLoaderIn 1s ease both; }
.rl-loader-logo span { display: block; font-size: 12px; letter-spacing: .4em; margin-bottom: 14px; }
.rl-loader-logo b { display: block; font-weight: 300; font-size: clamp(26px, 4vw, 44px); line-height: 1.3; }
@keyframes rlLoaderIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Blurred KV behind everything */
.rl-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.rl-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(1.15); transform: scale(1.2); }
.rl-bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 245, 250, .5); }

/* Key visual */
.rl-fv { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #2b1838; }
.rl-kv {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform: scale(1.08); transition: transform 2.4s cubic-bezier(.2, .7, .2, 1);
}
.rl-fv::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(58, 22, 70, .7), rgba(58, 22, 70, 0) 55%);
}
.rl-ready .rl-kv { transform: none; }
.rl-fv-txt { position: absolute; z-index: 2; left: 6%; bottom: 9%; color: #fff; }
.rl-fv-txt > * { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.rl-ready .rl-fv-txt > * { opacity: 1; transform: none; }
.rl-ready .rl-fv-txt > :nth-child(2) { transition-delay: .15s; }
.rl-ready .rl-fv-txt > :nth-child(3) { transition-delay: .3s; }
.rl-ready .rl-fv-txt > :nth-child(4) { transition-delay: .45s; }
.rl-fv-eyebrow { font-size: 12px; letter-spacing: .4em; margin-bottom: 12px; }
.rl-fv-tit { font-weight: 300; font-size: clamp(36px, 5.4vw, 74px); line-height: 1.22; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.rl-fv-tit small { display: block; margin-top: 12px; font-family: "Comfortaa", sans-serif; font-size: clamp(12px, 1.2vw, 16px); letter-spacing: .1em; }
.rl-fv-pill {
  display: inline-block; margin-top: 26px; padding: 5px 34px 4px; border: 1px solid #fff; border-radius: 999px;
  font-size: clamp(13px, 1.3vw, 18px); letter-spacing: .1em;
}
.rl-fv-date { margin-top: 10px; font-size: clamp(22px, 2.8vw, 40px); letter-spacing: .1em; }
.rl-fv-nav { position: absolute; z-index: 2; right: 6%; bottom: 9%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rl-fv-nav a { color: #fff; font-family: var(--rl-serif); font-size: 26px; font-weight: 300; letter-spacing: .04em; line-height: 1.3; }
.rl-fv-nav a:hover { opacity: .6; }
.rl-scroll {
  position: absolute; z-index: 2; right: 2.4%; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff;
}
.rl-scroll span { writing-mode: vertical-rl; font-size: 11px; letter-spacing: .2em; }
.rl-scroll i { position: relative; width: 1px; height: 64px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.rl-scroll i::after { content: ""; position: absolute; left: 0; width: 100%; background: #fff; animation: scrollLine 2s ease-in-out infinite; }

/* Sections */
body.rl main { overflow-x: clip; }  /* titles slide in from just outside the column */
.rl-container { width: min(1140px, 90%); margin: 0 auto; padding: 30px 0 140px; }
.rl-sec { padding-top: 110px; scroll-margin-top: 20px; }
.rl-tit {
  margin-bottom: 56px; font-family: var(--rl-serif); font-weight: 300; line-height: 1;
  font-size: clamp(56px, 9vw, 112px); letter-spacing: .02em; color: var(--rl-ink);
}
.rl-tit[data-pop] { transform: translateX(-40px); transition-duration: .9s; }
.rl-tit--rev { text-align: right; }
.rl-tit--rev[data-pop] { transform: translateX(40px); }
.rl-tit[data-pop].in-view { transform: none; }

.rl-movs { display: grid; gap: 56px; }
.rl-mov-frame { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 24px 50px rgba(0, 0, 0, .2); }
.rl-mov-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rl-mov figcaption { margin-top: 16px; font-size: 14px; letter-spacing: .04em; }
.rl-mov figcaption span, .rl-chip {
  display: inline-block; margin: 0 10px; padding: 3px 9px 2px; border: 1px solid var(--rl-pink);
  color: var(--rl-pink); font-size: 11px; line-height: 1.4; letter-spacing: .08em; vertical-align: middle;
}
.rl-chip { margin: 0 12px 0 0; }

.rl-product { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6%; align-items: start; margin-bottom: 100px; }
.rl-product:last-child { margin-bottom: 0; }
.rl-product--rev .rl-product-img { order: 2; }
.rl-product-img { aspect-ratio: 1; overflow: hidden; background: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, .18); }
.rl-product-img img { width: 100%; height: 100%; object-fit: cover; }
.rl-product-type { font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.rl-product-name { margin-top: 8px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 400; line-height: 1.5; }
.rl-product-meta { margin: 14px 0 26px; font-size: 13px; letter-spacing: .03em; }
.rl-box { margin-bottom: 22px; }
.rl-box-label {
  display: inline-block; padding: 3px 10px 2px; background: var(--rl-pink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
}
.rl-tracks, .rl-box-txt { background: rgba(255, 255, 255, .92); padding: 6px 20px; }
.rl-box-txt { padding: 14px 20px; font-size: 13px; }
.rl-tracks li { padding: 12px 0; border-bottom: 1px dashed var(--rl-pink-pale); color: var(--rl-pink); font-size: 13px; line-height: 1.6; }
.rl-tracks li:last-child { border-bottom: 0; }
.rl-tracks b { display: inline-block; width: 2.4em; font-weight: 400; }

.rl-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 240px;
  padding: 18px 36px; border-radius: 999px; background: var(--rl-pink); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .04em; line-height: 1.4; text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12); transition: transform .3s, box-shadow .3s, background .3s;
}
.rl-btn:hover { transform: translateY(-3px); background: #a6335e; box-shadow: 0 10px 22px rgba(0, 0, 0, .16); }
.rl-btn--sm { min-width: 0; padding: 13px 30px; font-size: 13px; }

.rl-specials { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.rl-special {
  padding: 36px 32px 40px; background: #fff; text-align: center;
  box-shadow: 10px 10px 0 var(--rl-pink-pale);
}
.rl-special--wide { grid-column: 1 / -1; }
.rl-special-tit { margin-bottom: 24px; color: var(--rl-pink); font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.rl-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

@media (max-width: 767px) {
  .rl-fv { min-height: 520px; }
  .rl-kv { object-position: 38% 40%; }
  .rl-fv-txt { left: 7%; right: 7%; bottom: 15%; }
  .rl-fv-nav { left: 7%; right: auto; bottom: 5%; flex-direction: row; gap: 18px; }
  .rl-fv-nav a { font-size: 18px; }
  .rl-scroll { display: none; }
  .rl-sec { padding-top: 80px; }
  .rl-tit { margin-bottom: 36px; }
  .rl-movs { gap: 36px; }
  .rl-product { grid-template-columns: 1fr; gap: 28px; margin-bottom: 70px; }
  .rl-product--rev .rl-product-img { order: 0; }
  .rl-specials { grid-template-columns: 1fr; gap: 28px; }
  .rl-special { padding: 28px 20px 32px; }
  .rl-btn { min-width: 0; width: 100%; }
}

/* =========================================================
   APPLICATION pages (app.html, app-introduction.html), after
   the BLM48 site's fan-club pages: grid paper, scalloped white
   cards, slanted bands, "PICK UP" features and bouncy outlined
   titles — with NPT48 sky blue in place of BLM48 gold.
   ========================================================= */
body.app-body {
  --ap-sky: var(--accent);         /* #66cbff */
  --ap-sky-deep: var(--accent-dark);
  --ap-sky-pale: #e3f5ff;
  --ap-band: #d6f0ff;
  --ap-paper: #f4fbff;
  --ap-ink: #222;
  --ap-ink-soft: #555;
  --ap-label: #0b6fa8;             /* deep sky for small text on pale blue */
  --ap-icon: #1b8fd0;
  --ap-line: #e2e8ec;
  --ap-thai: "K2D", "Noto Sans Thai", sans-serif;
  color: var(--ap-ink);
}
.app-page, .ai-page { padding-top: 130px; }
@media (max-width: 767px) { .app-page, .ai-page { padding-top: 96px; } }

/* Outlined, stacked "pop" lettering (split per letter by pop-title.js) */
.pop-title {
  --pop-line: var(--ap-sky-deep);
  --pop-shade: #bfe8ff;
  position: relative; z-index: 0; display: inline-block;
  font-family: "Fredoka", "K2D", sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: .03em;
  color: #fff; -webkit-text-stroke: .075em var(--pop-line); paint-order: stroke fill;
}
.pop-title .pop-ch { position: relative; display: inline-block; white-space: pre; }
.pop-title .pop-ch::before, .pop-title .pop-ch::after {
  content: attr(data-ch); position: absolute; left: 0; top: 0;
  color: var(--pop-shade); -webkit-text-stroke: .075em var(--pop-line); paint-order: stroke fill;
}
.pop-title .pop-ch::before { transform: translate(.06em, .06em); z-index: -1; }
.pop-title .pop-ch::after { transform: translate(.12em, .12em); z-index: -2; color: #eef9ff; }
.pop-title.is-split .pop-ch { opacity: 0; }
.pop-title.is-in .pop-ch { opacity: 1; animation: popIn .7s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(.15s + var(--i, 0) * .06s); }
.pop-title.is-in.is-floating .pop-ch { animation: popFloat 2.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.18s); }
@keyframes popIn {
  0% { opacity: 0; transform: translateY(.6em) scale(.4) rotate(-12deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes popFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.07em); } }

.app-page {
  background:
    linear-gradient(rgba(102, 203, 255, .14) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(102, 203, 255, .14) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ap-paper);
  overflow: hidden;
}
.app-inner { width: min(960px, calc(100% - 32px)); margin: 0 auto; }

/* Scalloped edge: circles of diameter 2r tiled round the box, the middle filled in */
.scallop {
  --r: 14px;
  background: #fff;
  -webkit-mask:
    linear-gradient(#000 0 0) 50% / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat,
    radial-gradient(farthest-side, #000 97%, #0000) 0 0 / calc(2 * var(--r)) calc(2 * var(--r)) round;
  mask:
    linear-gradient(#000 0 0) 50% / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat,
    radial-gradient(farthest-side, #000 97%, #0000) 0 0 / calc(2 * var(--r)) calc(2 * var(--r)) round;
}
.app-more-item, .app-step, .app-info-box { --r: 10px; }
@media (max-width: 760px) { .scallop { --r: 10px; } }
.scallop-shadow { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .08)); }

.app-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: min(300px, 100%); padding: 17px 34px; border-radius: 999px;
  background: var(--ap-sky); color: #000;
  font-family: var(--ap-thai); font-size: 15px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 6px 0 var(--ap-sky-deep); transition: transform .15s, box-shadow .15s;
}
.app-btn:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--ap-sky-deep); }
.app-btn.is-line { background: #00843b; color: #fff; box-shadow: 0 6px 0 #005c29; }
.app-btn.is-line:hover { box-shadow: 0 3px 0 #005c29; }
.app-more-link { margin-top: 22px; }
.app-more-link a { position: relative; padding-bottom: 3px; font-size: 12px; letter-spacing: .05em; border-bottom: 1px solid #bbb; }
.app-more-link a:hover { border-color: var(--ap-ink); }

/* Hero */
.app-hero { position: relative; padding: 10px 0 clamp(70px, 10vw, 110px); }
.app-hero-card { position: relative; z-index: 1; width: min(560px, 100%); margin: 0 auto; padding: clamp(44px, 7vw, 64px) clamp(26px, 6vw, 56px); text-align: center; }
.app-hero-brand { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.app-hero-brand img { height: clamp(28px, 5vw, 38px); width: auto; }
.app-hero-brand small { font-size: clamp(14px, 2.6vw, 18px); letter-spacing: .08em; }
.app-hero-title { font-size: clamp(44px, 11vw, 76px); margin: 4px 0 2px; }
.app-hero-free {
  display: inline-flex; align-items: baseline; gap: 6px; margin: 16px 0 26px;
  padding: 6px 18px; border-radius: 999px; background: var(--ap-sky-pale); font-size: 14px;
}
.app-hero-free strong { font-size: 24px; }
.app-hero-qr { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; text-align: left; font-size: 12px; color: var(--ap-ink-soft); line-height: 1.7; }
.app-hero-qr img, .ai-qr img { width: 84px; height: 84px; border-radius: 10px; border: 1px solid var(--ap-line); padding: 6px; background: #fff; }

.app-hero-deco { position: absolute; inset: 0; pointer-events: none; }
.app-hero-deco span {
  position: absolute; width: clamp(90px, 16vw, 170px); aspect-ratio: 1; border-radius: 26px;
  display: grid; place-items: center; font-size: clamp(28px, 5vw, 50px); color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}
.app-hero-deco span:nth-child(1) { left: -2%; top: 8%; background: #f19bc2; transform: rotate(-9deg); }
.app-hero-deco span:nth-child(2) { right: -1%; top: 2%; background: var(--ap-sky); transform: rotate(8deg); }
.app-hero-deco span:nth-child(3) { left: 4%; bottom: 14%; background: #ffd04d; transform: rotate(6deg); }
.app-hero-deco span:nth-child(4) { right: 3%; bottom: 10%; background: #b79ae6; transform: rotate(-7deg); }
@media (max-width: 700px) {
  .app-hero-deco span:nth-child(1) { left: -30px; top: -10px; }
  .app-hero-deco span:nth-child(2) { right: -30px; top: auto; bottom: 30px; }
  .app-hero-deco span:nth-child(3), .app-hero-deco span:nth-child(4) { display: none; }
}

.app-quick { display: flex; justify-content: center; gap: clamp(22px, 6vw, 48px); margin-top: 34px; position: relative; z-index: 1; }
.app-quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ap-label); font-size: 11px; letter-spacing: .08em; }
.app-quick i {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--ap-sky); font-size: 22px; color: var(--ap-icon); transition: transform .2s;
}
.app-quick a:hover i { transform: translateY(-3px); }

/* Slanted, endlessly scrolling band of outlined text */
/* It runs along the top edge of the PICK UP #01 band. That band's top edge
   rises 10.5vw across the page (tan 6deg = .105), the same slope as the
   ticker, so the two stay flush at any width. The ticker's bottom-centre is
   pinned to the middle of that edge and rotated about it. */
.app-band--ticker { margin-top: clamp(70px, 8vw, 110px); padding-top: calc(10.5vw + clamp(80px, 9vw, 120px)); }
.app-band--ticker::before { clip-path: polygon(0 10.5vw, 100% 0, 100% 93%, 0 100%); }
.app-band > .app-ticker {
  position: absolute; z-index: 2; top: 5.25vw; left: 50%; width: 130vw;
  padding: clamp(6px, 1vw, 12px) 0; overflow: hidden;
  background: #9edbff; border-block: 1px solid #5cbcf0;
  transform-origin: 50% 100%; transform: translate(-50%, -100%) rotate(-6deg);
}
.app-ticker-track { display: flex; width: max-content; animation: tickerRun 40s linear infinite; }
.app-ticker span {
  flex: none; padding-right: 2.2em; white-space: nowrap;
  font-family: "Comfortaa", "Noto Sans Thai", sans-serif; font-weight: 300;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.3; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px #fff;
}
@keyframes tickerRun { to { transform: translateX(-50%); } }

/* Intro */
.app-intro { text-align: center; padding: 0 0 clamp(60px, 9vw, 100px); }
.app-intro p { font-size: clamp(14px, 1.6vw, 16px); line-height: 2.1; }
.app-intro p + p { margin-top: 14px; }

/* PICK UP blocks on slanted bands */
.app-band { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
.app-band::before { content: ""; position: absolute; inset: 0; background: var(--ap-band); clip-path: polygon(0 7%, 100% 0, 100% 93%, 0 100%); }
.app-band.is-alt::before { background: #fff; clip-path: polygon(0 0, 100% 7%, 100% 100%, 0 93%); }
.app-band > * { position: relative; }
.pickup { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.app-band.is-alt .pickup-media { order: 2; }
.pickup-label { display: inline-block; font-weight: 700; color: var(--ap-label); font-size: 13px; letter-spacing: .25em; margin-bottom: 10px; }
.pickup-label .pop-title { font-size: 44px; margin-left: 8px; vertical-align: -4px; letter-spacing: .03em; }
.pickup h2 { font-family: var(--ap-thai); font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; line-height: 1.45; margin-bottom: 16px; }
.pickup h2 em { font-style: normal; color: var(--ap-label); background: linear-gradient(transparent 62%, #fff 62%); }
.app-band.is-alt .pickup h2 em { background: linear-gradient(transparent 62%, var(--ap-sky-pale) 62%); }
.pickup p { font-size: 14px; line-height: 2; color: var(--ap-ink-soft); }
.pickup-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pickup-tags span { padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ap-sky); font-size: 12px; }
.app-band.is-alt .pickup-tags span { background: var(--ap-sky-pale); }
.pickup-media { display: flex; justify-content: center; }
.pickup-phone { width: min(270px, 70vw); height: auto; filter: drop-shadow(16px 24px 26px rgba(0, 40, 70, .18)); transform: rotate(-4deg); }
.pickup-tile { width: min(340px, 100%); padding: 38px 30px; text-align: center; }
.pickup-tile-icons { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.pickup-tile-icons i { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 26px; color: #fff; }
.pickup-tile strong { display: block; font-size: 30px; }
.pickup-tile small { font-size: 12px; color: var(--ap-ink-soft); }

/* More contents */
.app-more { padding: clamp(70px, 10vw, 110px) 0; text-align: center; }
.app-more-ttl { display: inline-block; padding: 12px 34px; border-radius: 999px; background: var(--ap-label); color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 40px; }
.app-more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app-more-item { padding: 30px 24px 26px; }
.app-more-item i { font-size: 28px; color: var(--ap-icon); margin-bottom: 14px; }
.app-more-item h3 { font-size: 13px; letter-spacing: .12em; margin-bottom: 8px; }
.app-more-item p { font-size: 12px; line-height: 1.8; color: var(--ap-ink-soft); }
@media (max-width: 760px) { .app-more-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* How to join / usage */
.app-howto { position: relative; padding: clamp(80px, 12vw, 130px) 0 clamp(70px, 10vw, 110px); }
.app-howto::before { content: ""; position: absolute; inset: 0; background: var(--ap-band); clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); }
.app-howto > * { position: relative; }
.app-howto-head { text-align: center; margin-bottom: 40px; }
.app-howto-head .pop-title { display: table; margin: 0 auto 10px; font-size: clamp(38px, 8vw, 56px); }
.app-howto-head h2 { font-family: var(--ap-thai); font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
.app-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; counter-reset: step; }
.app-step { position: relative; height: 100%; padding: 34px 28px 26px; text-align: center; counter-increment: step; }
.app-step::before { content: "STEP " counter(step); display: inline-block; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--ap-label); }
.app-step i { display: block; font-size: 30px; color: var(--ap-icon); margin-bottom: 12px; }
.app-step h3 { font-family: var(--ap-thai); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.app-step p { font-size: 12.5px; line-height: 1.8; color: var(--ap-ink-soft); }
.app-step p a { color: #00733a; font-weight: 700; }
@media (max-width: 860px) { .app-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .app-steps { grid-template-columns: 1fr; } }

.app-info { display: grid; gap: 14px; }
.app-info-box { padding: 32px clamp(30px, 5vw, 48px); }
.app-info-box h3 {
  display: table; margin: 0 auto 16px; padding: 4px 22px; border-radius: 999px; border: 1px solid var(--ap-sky);
  font-family: var(--ap-thai); font-size: 13px; font-weight: 700; color: var(--ap-label);
}
.app-price { text-align: center; }
.app-price strong { font-size: clamp(38px, 7vw, 52px); }
.app-price span { font-size: 15px; margin-left: 4px; }
.app-info-box ul { font-size: 13.5px; line-height: 2; }
.app-info-box li { padding-left: 1em; text-indent: -1em; }
.app-info-box li::before { content: "・"; }
.app-info-box .note { margin-top: 10px; font-size: 12px; color: var(--ap-ink-soft); line-height: 1.8; text-align: center; }
.app-final { text-align: center; margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.app-final .app-more-link { margin-top: 4px; }

/* Floating join badge */
.app-float {
  position: fixed; right: clamp(12px, 3vw, 36px); bottom: clamp(12px, 3vw, 36px); z-index: 55;
  width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; border: 4px solid var(--ap-sky); box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(0, 0, 0, .12);
  color: var(--ap-label); line-height: 1.3; text-align: center;
  opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .3s, transform .3s;
}
.app-float.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.app-float small { font-size: 11px; letter-spacing: .15em; }
.app-float b { font-family: var(--ap-thai); font-size: 16px; }
.app-float:hover { transform: scale(1.05); }

@media (max-width: 760px) {
  .pickup { grid-template-columns: 1fr; text-align: center; }
  .app-band.is-alt .pickup-media { order: 0; }
  .pickup-tags { justify-content: center; }
  .app-float { width: 88px; height: 88px; }
  .app-float b { font-size: 14px; }
}

/* App introduction: announcement, four app screens on a sky strip, notes */
.ai-page { background: #fff; }
.ai-inner { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.ai-intro { text-align: center; padding: clamp(30px, 5vw, 60px) 0 clamp(40px, 6vw, 60px); }
.ai-intro h1 { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .35em; font-family: var(--ap-thai); font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; letter-spacing: .04em; line-height: 1.4; }
.ai-intro h1 img { height: .95em; width: auto; }
.ai-rule { display: block; width: 26px; height: 5px; margin: 26px auto 34px; border-top: 1px solid var(--ap-ink); border-bottom: 1px solid var(--ap-ink); }
.ai-intro p { font-size: clamp(14px, 1.7vw, 17px); line-height: 2.2; }

.ai-features { position: relative; padding: 10px 0 clamp(70px, 10vw, 110px); }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ai-item { display: flex; flex-direction: column; }
.ai-phone { position: relative; z-index: 1; display: flex; justify-content: center; margin-bottom: -34%; }
.ai-phone img { width: 112%; max-width: none; height: auto; }
.ai-card { flex: 1; background: var(--ap-sky); padding: calc(34% + 24px) clamp(16px, 2vw, 24px) 30px; border-left: 1px solid rgba(255, 255, 255, .7); color: #000; }
.ai-item:first-child .ai-card { border-left: 0; }
.ai-num { display: block; font-size: 11px; font-weight: 700; letter-spacing: .3em; color: #003a5c; margin-bottom: 8px; text-align: center; }
.ai-card h2 { font-family: var(--ap-thai); font-size: clamp(15px, 1.5vw, 17px); font-weight: 800; line-height: 1.6; text-align: center; margin-bottom: 14px; }
.ai-card p { font-size: 13px; line-height: 1.9; }
.ai-card .note { margin-top: 8px; font-size: 12.5px; color: #003a5c; }
.ai-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ai-tags span { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .75); font-size: 12px; }
@media (max-width: 900px) {
  .ai-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .ai-item:nth-child(3) .ai-card { border-left: 0; }
}
@media (max-width: 520px) {
  .ai-grid { grid-template-columns: 1fr; row-gap: 46px; }
  .ai-item .ai-card { border-left: 0; border-radius: 16px; }
  .ai-phone { margin-bottom: -26%; }
  .ai-phone img { width: 78%; }
  .ai-card { padding-top: calc(26% + 24px); }
}

.ai-cta { text-align: center; padding: clamp(60px, 9vw, 90px) 0; background: var(--ap-sky-pale); }
.ai-cta h2 { font-family: var(--ap-thai); font-size: clamp(20px, 3vw, 28px); font-weight: 800; margin-bottom: 30px; }
.ai-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ai-btns .app-btn { min-width: min(280px, 100%); padding: 17px 30px; }
.ai-qr { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; text-align: left; font-size: 12px; line-height: 1.7; color: var(--ap-ink-soft); }

.ai-notes { padding: clamp(60px, 9vw, 90px) 0 clamp(80px, 10vw, 120px); }
.ai-note { width: min(760px, 100%); margin: 0 auto; }
.ai-note + .ai-note { margin-top: 50px; }
.ai-note h2 { font-family: var(--ap-thai); font-size: 16px; font-weight: 800; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--ap-line); }
.ai-note p, .ai-note li { font-size: 13.5px; line-height: 2; }
.ai-note li { padding-left: 1.2em; text-indent: -1.2em; }
.ai-note li::before { content: "※ "; }
.ai-note a { color: #00733a; font-weight: 700; }
.ai-note .app-more-link a { color: inherit; font-weight: 400; }
