@charset "UTF-8";
/* =====================================================================
   Dondon's Premium Templates — Gallery (demo showcase)
   ※ このページは配布物ではないデモ用ショーケース。演出重視。
   ===================================================================== */

:root {
    /* Palette — deep ink + champagne gold + platinum */
    --ink-900: #0a0e15;
    --ink-800: #0e1420;
    --ink-700: #131b2a;
    --ink-600: #1a2434;
    --line: rgba(226, 232, 240, 0.10);
    --line-strong: rgba(226, 232, 240, 0.18);

    --gold-1: #E7C784;
    --gold-2: #C9A24B;
    --gold-deep: #9C7B32;
    --platinum: #B9C4D2;
    --jade: #6FBEA9;

    --ivory: #F4EFE7;
    --text: #EAE7E0;
    --muted: #97A1B0;
    --muted-2: #6D7788;

    --grad-gold: linear-gradient(100deg, var(--gold-2) 0%, var(--gold-1) 45%, #F3E4C0 100%);

    --f-serif: "Cormorant Garamond", "Shippori Mincho", serif;
    --f-mincho: "Shippori Mincho", serif;
    --f-sans: "Noto Sans JP", sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--f-sans);
    background: var(--ink-900);
    color: var(--text);
    line-height: 1.9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}
@media (max-width: 1024px), (hover: none) { body { cursor: auto; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }

/* Ambient aurora field + grain behind everything ----------------------- */
body::before {
    content: ""; position: fixed; inset: -20% -10% -10% -10%; z-index: -2;
    background:
        radial-gradient(40% 35% at 18% 18%, rgba(201, 162, 75, 0.20), transparent 60%),
        radial-gradient(38% 40% at 82% 12%, rgba(111, 190, 169, 0.13), transparent 60%),
        radial-gradient(45% 45% at 75% 80%, rgba(185, 196, 210, 0.10), transparent 60%),
        radial-gradient(50% 50% at 25% 88%, rgba(201, 162, 75, 0.10), transparent 60%);
    filter: blur(40px) saturate(120%);
    animation: auroraDrift 26s ease-in-out infinite alternate;
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes auroraDrift { 0% { transform: translate3d(0,0,0) scale(1);} 100% { transform: translate3d(-3%, 2%, 0) scale(1.08);} }

/* Custom cursor -------------------------------------------------------- */
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 10001;
    transform: translate(-50%, -50%); mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor-ring { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.6); transition: width .3s var(--ease), height .3s var(--ease), border-color .3s, background .3s; }
.cursor-ring.grow { width: 74px; height: 74px; border-color: var(--gold-1); background: rgba(231,199,132,0.08); }
@media (max-width: 1024px), (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* Scroll progress ------------------------------------------------------ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--grad-gold); z-index: 10000; box-shadow: 0 0 12px rgba(231,199,132,0.5); }

/* Preloader ------------------------------------------------------------ */
.preloader { position: fixed; inset: 0; z-index: 10002; background: var(--ink-900); display: flex; align-items: center; justify-content: center; transition: opacity .8s var(--ease), visibility .8s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .mono { font-family: var(--f-serif); font-size: 1.6rem; letter-spacing: 0.5em; text-indent: 0.5em; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0; animation: monoIn 1.4s var(--ease) forwards; }
@keyframes monoIn { 0%{opacity:0; letter-spacing:1.2em;} 60%{opacity:1;} 100%{opacity:1; letter-spacing:0.5em;} }

/* Sticky mini header --------------------------------------------------- */
.mini-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 900; display: flex; align-items: center; justify-content: space-between; padding: 14px 5%; background: rgba(10,14,21,0.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .5s var(--ease); }
.mini-header.show { transform: translateY(0); }
.mini-header .mh-brand { font-family: var(--f-serif); font-size: 1.1rem; letter-spacing: 0.14em; color: var(--ivory); }
.mini-header .mh-brand b { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; }
.mini-header .mh-cta { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 8px 18px; border-radius: 40px; color: var(--text); transition: .3s; }
.mini-header .mh-cta:hover { border-color: var(--gold-1); color: var(--gold-1); }

/* Hero ----------------------------------------------------------------- */
.lp-header { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 5% 90px; overflow: hidden; }
.lp-header .lp-container { position: relative; z-index: 2; max-width: 900px; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.eyebrow::after { background: linear-gradient(90deg, var(--gold-2), transparent); }

.lp-title { font-family: var(--f-mincho); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3.15rem); line-height: 1.5; letter-spacing: 0.04em; color: var(--ivory); margin-bottom: 26px; }
.lp-title .text-gradient { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-lead { font-size: 0.98rem; color: var(--muted); max-width: 620px; margin: 0 auto 46px; line-height: 2.1; }

.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: inline-block; transform: translateY(110%); opacity: 0; }
.lp-header.in .reveal-line > span { animation: lineUp 1s var(--ease) forwards; }
.lp-header.in .reveal-line:nth-child(2) > span { animation-delay: .12s; }
@keyframes lineUp { to { transform: translateY(0); opacity: 1; } }

.fade-seq { opacity: 0; transform: translateY(20px); }
.lp-header.in .fade-seq { animation: fadeSeq .9s var(--ease) forwards; }
.lp-header.in .d1 { animation-delay: .5s; } .lp-header.in .d2 { animation-delay: .68s; } .lp-header.in .d3 { animation-delay: .86s; }
@keyframes fadeSeq { to { opacity: 1; transform: translateY(0); } }

.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 auto 48px; max-width: 780px; }
.feature-item { padding: 20px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.02); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.72rem; color: var(--muted); line-height: 1.6; transition: .4s var(--ease); }
.feature-item i { font-size: 1.15rem; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.feature-item small { color: var(--muted-2); font-size: 0.9em; }
.feature-item:hover { border-color: var(--line-strong); transform: translateY(-4px); background: rgba(255,255,255,0.04); }

.lp-scroll-hint { font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted-2); }
.lp-scroll-hint i { display: block; margin-top: 8px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0); opacity: .5;} 50%{ transform: translateY(6px); opacity: 1;} }

/* Marquee ribbon ------------------------------------------------------- */
.marquee { border-block: 1px solid var(--line); padding: 16px 0; overflow: hidden; background: rgba(255,255,255,0.015); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { font-family: var(--f-serif); font-size: 1.05rem; letter-spacing: 0.18em; color: var(--muted-2); display: inline-flex; align-items: center; gap: 42px; white-space: nowrap; padding-right: 42px; }
.marquee-track span::after { content: "✦"; color: var(--gold-deep); font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Gallery -------------------------------------------------------------- */
#gallery-view { padding: 96px 0 40px; position: relative; }
.category-sec { margin-bottom: 92px; }

.cat-head { margin-bottom: 40px; }
.cat-index { display: block; font-family: var(--f-serif); font-size: 0.82rem; letter-spacing: 0.3em; color: var(--gold-2); margin-bottom: 6px; }
.cat-title { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: 0.06em; color: var(--ivory); display: inline-flex; align-items: baseline; gap: 16px; position: relative; padding-bottom: 14px; }
.cat-title .jp { font-family: var(--f-sans); font-size: 0.72rem; letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; }
.cat-title::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--grad-gold); transition: width 1s var(--ease); }
.category-sec.in .cat-title::after { width: 96px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* Card ----------------------------------------------------------------- */
.card { position: relative; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, var(--ink-700), var(--ink-800)); border: 1px solid var(--line); cursor: none; transform-style: preserve-3d; will-change: transform; transition: border-color .5s, box-shadow .5s; opacity: 0; }
@media (max-width: 1024px), (hover: none) { .card { cursor: pointer; } }
.card::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(231,199,132,0.16), transparent 60%); transition: opacity .4s; }
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(231,199,132,0.4); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(231,199,132,0.15); }

.card-thumb { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(0.96) brightness(0.96); }
.card:hover .card-thumb img { transform: scale(1.08); filter: saturate(1.05) brightness(1); }
.card-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,14,21,0.55)); }

.overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: var(--ivory); background: rgba(10,14,21,0.34); backdrop-filter: blur(2px); opacity: 0; transition: opacity .45s var(--ease); }
.overlay-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; }
.overlay .play { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold-1); display: grid; place-items: center; color: var(--gold-1); transform: scale(.8); transition: transform .5s var(--ease); }
.card:hover .overlay { opacity: 1; }
.card:hover .overlay .play { transform: scale(1); }

.card-body { position: relative; z-index: 2; padding: 20px 22px 24px; }
.card-tag { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-2); }
.card-body h3 { font-family: var(--f-serif); font-weight: 600; font-size: 1.32rem; letter-spacing: 0.03em; color: var(--ivory); margin: 6px 0; line-height: 1.25; }
.card-body p { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

.card.reveal { opacity: 1; }

/* ON SALE -------------------------------------------------------------- */
.coming-soon { position: relative; text-align: center; padding: 130px 5%; overflow: hidden; }
.coming-soon::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 50%, rgba(201,162,75,0.12), transparent 70%); }
.coming-container { max-width: 640px; margin: 0 auto; }
.coming-label { font-size: 0.72rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 24px; }
.coming-date { font-family: var(--f-serif); color: var(--ivory); line-height: 1; display: flex; align-items: baseline; justify-content: center; gap: 14px; margin-bottom: 22px; }
.coming-date .month { font-size: clamp(3.4rem, 12vw, 6.4rem); font-weight: 600; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.coming-date .day { font-size: 1.4rem; color: var(--platinum); letter-spacing: 0.1em; }
.coming-date .time { font-size: 1.6rem; color: var(--ivory); letter-spacing: 0.08em; }
.coming-msg { font-size: 0.92rem; color: var(--muted); letter-spacing: 0.08em; }
.coming-line { width: 1px; height: 60px; margin: 34px auto 0; background: linear-gradient(var(--gold-2), transparent); }

/* Footer --------------------------------------------------------------- */
.footer { text-align: center; padding: 40px 5% 60px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.72rem; letter-spacing: 0.18em; }

/* Scroll reveal utility ------------------------------------------------ */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-up.in { opacity: 1; transform: translateY(0); }

/* Preview modal (restyled) -------------------------------------------- */
#preview-modal { position: fixed; inset: 0; z-index: 10005; background: rgba(6,9,14,0.9); backdrop-filter: blur(10px); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
#preview-modal.is-active { opacity: 1; visibility: visible; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: rgba(10,14,21,0.6); }
.toolbar-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.close-btn { background: none; border: 1px solid var(--line-strong); color: var(--text); padding: 9px 16px; border-radius: 40px; cursor: pointer; font-size: 0.78rem; letter-spacing: 0.08em; transition: .3s; }
.close-btn:hover { border-color: var(--gold-1); color: var(--gold-1); }
.tmpl-name { font-family: var(--f-serif); font-size: 1rem; letter-spacing: 0.06em; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-switcher { display: flex; gap: 6px; background: rgba(255,255,255,0.04); padding: 5px; border-radius: 40px; }
.device-btn { background: none; border: none; color: var(--muted); width: 38px; height: 34px; border-radius: 40px; cursor: pointer; transition: .3s; }
.device-btn.active { background: var(--grad-gold); color: #1a1206; }
.ext-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); transition: .3s; }
.ext-btn:hover { border-color: var(--gold-1); color: var(--gold-1); }
.preview-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; }
.preview-stage.desktop iframe { width: 100%; height: 100%; border-radius: 8px; }
.preview-stage.mobile iframe { width: 390px; max-width: 100%; height: 844px; max-height: 100%; border-radius: 26px; box-shadow: 0 0 0 10px #11151d, 0 30px 60px rgba(0,0,0,0.6); }
#preview-frame { border: none; background: #fff; transition: width .4s var(--ease), height .4s var(--ease); }

/* Responsive ----------------------------------------------------------- */
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } .lp-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .lp-title { line-height: 1.6; } .cat-title { font-size: 1.4rem; } }

/* Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    body::before { animation: none; }
    .card, .reveal-up, .reveal-line > span, .fade-seq { opacity: 1 !important; transform: none !important; }
    body { cursor: auto; } .cursor-dot, .cursor-ring { display: none; }
}
