@charset "utf-8";
/* ============================================================
   KOYO — Gallery / One Day · 24h Site Diary
   Navy + White + Sun + time-of-day mood progression
   Type : Oswald (display) + Noto Sans JP (body)
============================================================ */

:root {
    --navy: #002964;
    --navy-deep: #001738;
    --navy-soft: #0c3b80;
    --blue: #0456b7;
    --white: #ffffff;
    --paper: #f4f7fb;
    --paper-mid: #e6ecf4;
    --rule: rgba(255, 255, 255, 0.14);
    --rule-paper: #d6dde7;
    --sun: #feb32f;
    --gold: #b88a2c;
    --amber: #e8923a;
    --dusk: #1d3a6e;
    --night: #00102b;
    --ink: #002964;
}

/* time-of-day section backgrounds + text adjustments */
.g-hour--pre-dawn      { --bg: #000a1e; --fg: #ffffff; --fg-dim: rgba(255,255,255,0.55); --rule: rgba(255,255,255,0.10); }
.g-hour--dawn          { --bg: #001738; --fg: #ffffff; --fg-dim: rgba(255,255,255,0.6);  --rule: rgba(255,255,255,0.12); }
.g-hour--early-morning { --bg: #002964; --fg: #ffffff; --fg-dim: rgba(255,255,255,0.7);  --rule: rgba(255,255,255,0.16); }
.g-hour--morning       { --bg: #0c3b80; --fg: #ffffff; --fg-dim: rgba(255,255,255,0.75); --rule: rgba(255,255,255,0.18); }
.g-hour--mid-morning   { --bg: #4a7bb8; --fg: #ffffff; --fg-dim: rgba(255,255,255,0.78); --rule: rgba(255,255,255,0.22); }
.g-hour--late-morning  { --bg: #c4d5ea; --fg: #002964; --fg-dim: rgba(0,41,100,0.65);    --rule: rgba(0,41,100,0.18); }
.g-hour--noon          { --bg: #f4f7fb; --fg: #002964; --fg-dim: rgba(0,41,100,0.6);     --rule: rgba(0,41,100,0.18); }
.g-hour--early-afternoon { --bg: #e6ecf4; --fg: #002964; --fg-dim: rgba(0,41,100,0.6); --rule: rgba(0,41,100,0.18); }
.g-hour--afternoon     { --bg: #ecdfc4; --fg: #2a2010; --fg-dim: rgba(42,32,16,0.65);    --rule: rgba(42,32,16,0.2); }
.g-hour--golden        { --bg: #e8923a; --fg: #2a1208; --fg-dim: rgba(42,18,8,0.7);      --rule: rgba(42,18,8,0.25); }
.g-hour--dusk          { --bg: #1d3a6e; --fg: #ffffff; --fg-dim: rgba(255,255,255,0.72); --rule: rgba(255,255,255,0.18); }
.g-hour--night         { --bg: #001738; --fg: #ffffff; --fg-dim: rgba(255,255,255,0.55); --rule: rgba(255,255,255,0.10); }

body.gallery-body {
    background: var(--navy-deep);
    color: #fff;
    overflow-x: hidden;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* ============================================================
   Type helpers
============================================================ */
.mono {
    font-family: "Oswald", "Arial Narrow", sans-serif;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}
.mono.dim { opacity: 0.55; }
.serif {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.serif-it {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-style: normal;
}

/* ============================================================
   Header — navy variant
============================================================ */
.gallery-body #header {
    background: rgba(0, 23, 56, 0.88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.gallery-body #header .logo a,
.gallery-body #header .logo .logo-company-name { color: #fff !important; }
.gallery-body #header .logo .logo-company-name { border-left-color: rgba(255, 255, 255, 0.25) !important; }
.gallery-body #header .logo img.logo-colored { filter: brightness(0) invert(1); }
.gallery-body #header .g-nav a {
    color: rgba(255, 255, 255, 0.75) !important;
    font-family: "Oswald", sans-serif !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.24em !important;
}
.gallery-body #header .g-nav a:hover { color: var(--sun) !important; }
.gallery-body #header .g-nav .current a { color: var(--sun) !important; }
.gallery-body #header .g-nav a span::after { background: var(--sun) !important; }
.gallery-body #header .nav-btn .icon-animation span { background: #fff !important; }

/* ============================================================
   Progress bar + LIVE CLOCK indicator
============================================================ */
.g-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px;
    z-index: 9500; background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.g-progress__fill {
    display: block; height: 100%;
    background: var(--sun);
    transform-origin: left center; transform: scaleX(0);
    transition: transform 0.08s linear;
}
.g-clock {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    display: flex; flex-direction: column;
    color: #fff; padding: 12px 16px;
    background: rgba(0, 23, 56, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    pointer-events: none;
    min-width: 110px;
}
.g-clock__time {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    color: var(--sun);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.g-clock__when {
    margin-top: 4px;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
}
@media (max-width: 720px) {
    .g-clock { right: 12px; bottom: 12px; padding: 8px 12px; min-width: 90px; }
    .g-clock__time { font-size: 1.05rem; }
    .g-clock__when { font-size: 0.55rem; letter-spacing: 0.28em; }
}

/* ============================================================
   COVER
============================================================ */
.g-cover {
    position: relative;
    min-height: 100vh;
    background: var(--navy-deep);
    color: #fff;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 96px 5vw 36px;
    overflow: hidden;
}
.g-cover::before {
    content: "";
    position: absolute;
    inset: 80px 5vw;
    border: 1px solid var(--sun);
    pointer-events: none;
}
.g-cover__corner-tl,
.g-cover__corner-tr,
.g-cover__corner-bl,
.g-cover__corner-br {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
}
.g-cover__corner-tl,
.g-cover__corner-tr { color: var(--sun); }
.g-cover__corner-bl,
.g-cover__corner-br { color: rgba(255, 255, 255, 0.55); }
.g-cover__corner-tl .dim,
.g-cover__corner-tr .dim { color: rgba(255, 255, 255, 0.55); }

.g-cover__corner-tl { top: 102px; left: calc(5vw + 22px); }
.g-cover__corner-tr { top: 102px; right: calc(5vw + 22px); text-align: right; align-items: flex-end; }
.g-cover__corner-bl { bottom: 60px; left: calc(5vw + 22px); }
.g-cover__corner-br { bottom: 60px; right: calc(5vw + 22px); text-align: right; align-items: flex-end; }

.g-cover__center {
    grid-row: 2; align-self: center; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    gap: 26px;
    padding: 0 2vw;
}
.g-cover__eyebrow {
    color: var(--sun) !important;
    letter-spacing: 0.42em !important;
    font-size: 0.85rem !important;
}
.g-cover__title {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: clamp(80px, 14vw, 220px);
    line-height: 0.88;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}
.g-cover__title .line { display: block; overflow: hidden; padding-bottom: 0.12em; }
.g-cover__title .line > span {
    display: inline-block;
    transform: translateY(120%);
    animation: g-rise 1.4s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
.g-cover__title .line:nth-child(1) > span { animation-delay: 0.3s; }
.g-cover__title .line:nth-child(2) > span { animation-delay: 0.5s; }
.g-cover__title .dot-square {
    display: inline-block;
    background: var(--sun);
    color: var(--sun);
    width: 0.18em; height: 0.18em;
    margin-left: 0.06em;
    vertical-align: baseline;
}
@keyframes g-rise { to { transform: translateY(0); } }

.g-cover__sub {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.4vw, 1.45rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.95;
    letter-spacing: 0.12em;
    max-width: 38em;
    opacity: 0;
    animation: g-fade 1.2s ease 1.4s forwards;
}
.g-cover__sub em {
    font-style: normal;
    color: var(--sun);
    font-weight: 600;
}
@keyframes g-fade { to { opacity: 1; } }

/* 24h dial */
.g-dial {
    position: relative;
    width: 200px;
    height: 200px;
    margin-top: 24px;
    opacity: 0;
    animation: g-fade 1.2s ease 1.8s forwards;
}
.g-dial__ring {
    position: absolute; inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}
.g-dial__tick {
    position: absolute;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
}
.g-dial__tick--n { top: -10px; left: 50%; transform: translateX(-50%); }
.g-dial__tick--e { top: 50%; right: -22px; transform: translateY(-50%); }
.g-dial__tick--s { bottom: -10px; left: 50%; transform: translateX(-50%); color: var(--sun); }
.g-dial__tick--w { top: 50%; left: -22px; transform: translateY(-50%); }
.g-dial__hand {
    position: absolute;
    top: 50%; left: 50%;
    width: 2px; height: 80px;
    background: var(--sun);
    transform-origin: 50% 0;
    transform: translate(-50%, 0) rotate(85deg); /* ~05:42 pointing east-ish */
    animation: g-dial-sweep 20s linear infinite;
}
.g-dial__center {
    position: absolute;
    top: 50%; left: 50%;
    width: 10px; height: 10px;
    background: var(--sun);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
@keyframes g-dial-sweep {
    from { transform: translate(-50%, 0) rotate(85deg); }
    to   { transform: translate(-50%, 0) rotate(445deg); }
}

@media (max-width: 720px) {
    .g-cover { padding: 80px 18px 24px; min-height: 92vh; }
    .g-cover::before { inset: 64px 18px; }
    .g-cover__corner-tl, .g-cover__corner-bl { left: 28px; }
    .g-cover__corner-tr, .g-cover__corner-br { right: 28px; }
    .g-cover__corner-tl, .g-cover__corner-tr { top: 80px; }
    .g-cover__corner-bl, .g-cover__corner-br { bottom: 38px; }
    .g-cover__center { gap: 18px; }
    .g-cover__title { font-size: clamp(64px, 22vw, 130px); }
    .g-cover__sub { font-size: 1.05rem; padding: 0 16px; }
    .g-dial { width: 130px; height: 130px; margin-top: 14px; }
}

/* ============================================================
   HOUR — base
============================================================ */
.g-hour {
    position: relative;
    background: var(--bg, var(--navy-deep));
    color: var(--fg, #fff);
    padding: 110px 5vw;
    overflow: hidden;
    transition: background 0.6s ease;
}
.g-hour__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
}
.g-hour--left .g-hour__fig  { grid-column: 1; }
.g-hour--left .g-hour__meta { grid-column: 2; }
.g-hour--right .g-hour__fig  { grid-column: 2; }
.g-hour--right .g-hour__meta { grid-column: 1; }

/* TIME stamp — giant tabular */
.g-hour__time {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 0.85;
    margin-bottom: 18px;
}
.g-hour__hh,
.g-hour__mm {
    font-size: clamp(72px, 11vw, 152px);
}
.g-hour__colon {
    font-size: clamp(58px, 9vw, 120px);
    color: var(--sun);
    transform: translateY(-0.08em);
    animation: g-colon-blink 1.4s ease-in-out infinite;
}
@keyframes g-colon-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.g-hour__suf {
    margin-left: 8px;
    align-self: flex-end;
    color: var(--sun);
    font-size: 0.85rem !important;
    letter-spacing: 0.32em;
    padding-bottom: 0.3em;
}

.g-hour__when {
    color: var(--sun);
    font-size: 0.78rem !important;
    letter-spacing: 0.4em !important;
    display: block;
    margin-bottom: 18px;
}
.g-hour__title {
    margin: 0 0 18px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: var(--fg);
}
.g-hour__note {
    margin: 0 0 22px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 2;
    letter-spacing: 0.06em;
    color: var(--fg-dim);
    max-width: 32em;
}
.g-hour__note em {
    font-style: normal;
    color: var(--sun);
    font-weight: 600;
}
.g-hour__loc {
    color: var(--fg-dim);
    border-top: 1px solid var(--rule);
    padding-top: 14px;
    display: block;
    margin-top: 8px;
}

/* PHOTO — museum-print window with mat */
.g-hour__fig {
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--paper);
    padding: 14px;
    border: 1px solid var(--rule);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    aspect-ratio: 3/4;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.g-hour__fig:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.g-hour__fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: contrast(1.05) saturate(0.92);
}
.g-hour__fig:hover img { transform: scale(1.03); }

/* Bleed variant */
.g-hour--bleed {
    padding: 0;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    background: var(--bg);
}
.g-hour--bleed .g-hour__fig--bleed {
    position: absolute;
    inset: 28px;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    padding: 14px;
    z-index: 0;
}
.g-hour--bleed .g-hour__fig--bleed img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 35%;
    filter: contrast(1.08) saturate(0.85) brightness(0.95);
}
.g-hour__bleed-meta {
    position: relative;
    z-index: 1;
    padding: 60px 5vw;
    max-width: 30em;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.g-hour__bleed-meta::before {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--sun);
    margin-bottom: 18px;
}
.g-hour--bleed .g-hour__time { color: #fff; }
.g-hour--bleed .g-hour__when { color: var(--sun); }
.g-hour--bleed .g-hour__title { color: #fff; }
.g-hour--bleed .g-hour__loc { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.3); }
.g-hour--bleed::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 0;
    pointer-events: none;
}
.g-hour--bleed .g-hour__bleed-meta { z-index: 2; }

/* PRELUDE / CODA / INTERLUDE — text-only spreads */
.g-hour--prelude,
.g-hour--coda,
.g-hour--interlude {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 5vw;
}
.g-hour--prelude .g-hour__inner,
.g-hour--coda .g-hour__inner,
.g-hour--interlude .g-hour__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 800px;
}
.g-hour__stamp {
    color: var(--sun);
    letter-spacing: 0.42em !important;
}
.g-hour__prelude-text,
.g-hour__coda-text {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 4.5vw, 4.4rem);
    line-height: 1.6;
    letter-spacing: 0.06em;
    color: var(--fg);
}
.g-hour__prelude-text em,
.g-hour__coda-text em {
    font-style: normal;
    color: var(--sun);
    font-weight: 700;
}
.g-hour__prelude-tag,
.g-hour__coda-sub {
    color: var(--fg-dim);
}
.g-hour__prelude-tag .sun { color: var(--sun); }

.g-hour--interlude .g-hour__noon-time {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: clamp(120px, 22vw, 280px);
    line-height: 0.85;
    color: var(--sun);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    margin: 12px 0 24px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.g-hour--interlude .g-hour__noon-time .g-hour__colon {
    font-size: 0.85em;
    color: var(--fg-dim);
}
.g-hour__noon-text {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.5;
    color: var(--fg);
}
.g-hour__noon-text em {
    font-style: normal;
    color: var(--sun);
}
.g-hour__noon-tag,
.g-hour__noon-sub {
    color: var(--fg-dim);
}
.g-hour__noon-tag { color: var(--sun); }

/* RESPONSIVE */
@media (max-width: 920px) {
    .g-hour { padding: 80px 22px; }
    .g-hour__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .g-hour--left .g-hour__fig,
    .g-hour--right .g-hour__fig,
    .g-hour--left .g-hour__meta,
    .g-hour--right .g-hour__meta { grid-column: 1; }
    .g-hour__fig { aspect-ratio: 4/5; }
    .g-hour__time { margin-bottom: 14px; }
    .g-hour__hh,
    .g-hour__mm { font-size: clamp(60px, 18vw, 100px); }
    .g-hour__colon { font-size: clamp(48px, 14vw, 80px); }
    .g-hour--bleed { min-height: 80vh; }
    .g-hour--bleed .g-hour__fig--bleed { inset: 16px; padding: 10px; }
    .g-hour__bleed-meta { padding: 28px 22px; }
}
@media (max-width: 720px) {
    .g-hour__fig { padding: 10px; }
    .g-hour__title { font-size: 1.5rem !important; }
    .g-hour__note { font-size: 0.98rem; line-height: 1.95; }
    .g-hour__loc { font-size: 0.62rem; letter-spacing: 0.22em; }
    .g-hour__when { font-size: 0.62rem !important; letter-spacing: 0.32em !important; }
}

/* ============================================================
   PIN — Aerial Appendix
============================================================ */
.g-pin { position: relative; background: var(--navy-deep); }
.g-pin__sticky {
    position: sticky; top: 0;
    height: 100vh; width: 100%;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.g-pin__head {
    position: absolute; z-index: 3;
    top: 100px; left: 5vw;
    display: flex; flex-direction: column; gap: 14px;
    pointer-events: none;
}
.g-pin__label { color: var(--sun); }
.g-pin__title {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: clamp(56px, 9vw, 150px);
    line-height: 0.92;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.g-pin__hint { color: rgba(255, 255, 255, 0.55); margin-top: 16px; }

.g-pin__track {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    will-change: transform;
}
.g-pin__row {
    display: flex; gap: 32px;
    padding: 0 5vw;
    height: 70vh; align-items: center;
}
.g-pin__card {
    position: relative; margin: 0;
    flex: 0 0 auto;
    width: 56vw; max-width: 920px;
    height: 100%;
    overflow: hidden;
    background: var(--paper);
    cursor: pointer;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 14px;
}
.g-pin__card:nth-child(odd) { height: 58vh; }
.g-pin__card:nth-child(3n)  { height: 74vh; width: 64vw; }
.g-pin__card:nth-child(5n)  { height: 50vh; width: 44vw; }
.g-pin__card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: contrast(1.05) saturate(0.9);
}
.g-pin__card:hover img { transform: scale(1.06); }
.g-pin__card figcaption {
    position: absolute; left: 24px; bottom: 24px;
    display: flex; flex-direction: column; gap: 6px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.g-pin__card .n {
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 0.85rem; letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--sun);
    font-variant-numeric: tabular-nums;
}
.g-pin__card .t {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 1.05rem; letter-spacing: 0.08em;
    color: #fff;
}

@media (max-width: 960px) {
    .g-pin { padding: 60px 0 40px; }
    .g-pin__sticky { position: static; height: auto; }
    .g-pin__head { position: relative; top: auto; left: 0; padding: 0 22px 22px; }
    .g-pin__title { font-size: 18vw; }
    .g-pin__hint { display: none; }
    .g-pin__track {
        position: relative; inset: auto;
        overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
        padding: 14px 0 22px;
    }
    .g-pin__track::-webkit-scrollbar { display: none; }
    .g-pin__row { padding: 0 22px; height: auto; gap: 16px; }
    .g-pin__card,
    .g-pin__card:nth-child(odd),
    .g-pin__card:nth-child(3n),
    .g-pin__card:nth-child(5n) {
        width: 80vw; max-width: none; height: 55vh;
        scroll-snap-align: start;
        padding: 10px;
    }
}

/* ============================================================
   INDEX — sorted by time
============================================================ */
.g-index {
    background: var(--navy);
    color: #fff;
    padding: 130px 5vw 150px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.g-index__head {
    text-align: center;
    margin: 0 auto 70px;
    max-width: 700px;
}
.g-index__head .mono { color: var(--sun); }
.g-index__title {
    margin: 14px 0 8px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 7vw, 100px);
    line-height: 0.95;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.g-index__desc { color: rgba(255, 255, 255, 0.55); }
.g-index__sheet {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1280px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px 14px;
}
.g-index__sheet > li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.g-index__sheet .g-plate__fig {
    aspect-ratio: 3/4;
    background: var(--paper);
    margin: 0;
    padding: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.28);
    overflow: hidden;
    cursor: pointer;
}
.g-index__sheet .g-plate__fig img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.92);
}
.g-index__sheet > li > .mono {
    color: var(--sun);
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
    .g-index__sheet { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .g-index { padding: 80px 22px 100px; }
    .g-index__sheet { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
}

/* ============================================================
   COLOPHON
============================================================ */
.g-colophon {
    background: var(--navy-deep);
    color: #fff;
    padding: 100px 5vw 120px;
}
.g-colophon__inner {
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    color: var(--navy);
    padding: 90px 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    border: 1px solid var(--rule-paper);
    box-shadow: 12px 12px 0 0 rgba(0, 0, 0, 0.25);
}
.g-colophon__mark {
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--sun);
}
.g-colophon__title {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: clamp(54px, 9vw, 130px);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--navy);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}
.g-colophon__title::after {
    content: "";
    display: block;
    width: 60%;
    height: 4px;
    background: var(--sun);
    margin: 12px auto 0;
}
.g-colophon__title .line { display: block; overflow: hidden; padding-bottom: 0.12em; }
.g-colophon__title .line > span { display: inline-block; }
.g-colophon__list {
    margin: 24px 0 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 60px;
    max-width: 760px;
    width: 100%;
    text-align: left;
}
.g-colophon__list > div {
    border-top: 1px solid var(--rule-paper);
    padding-top: 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.g-colophon__list dt {
    color: rgba(0, 41, 100, 0.55);
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.g-colophon__list dd {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--navy);
}
.g-colophon__cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}
.g-colophon__btn {
    display: inline-flex; align-items: center; gap: 16px;
    padding: 18px 50px;
    border: 1.5px solid var(--navy);
    color: var(--navy); text-decoration: none;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    background: transparent;
    transition: background 0.4s ease, color 0.4s ease, padding 0.4s ease;
    position: relative; overflow: hidden;
}
.g-colophon__btn::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--sun);
    transform: scaleX(0); transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
    z-index: -1;
}
.g-colophon__btn:hover { color: var(--navy); padding: 18px 64px; }
.g-colophon__btn:hover::before { transform: scaleX(1); }
.g-colophon__insta {
    color: rgba(0, 41, 100, 0.6);
    text-decoration: none;
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.22em;
    font-size: 0.85rem;
}
.g-colophon__insta:hover { color: var(--sun); }
.g-colophon__credit { margin-top: 24px; color: rgba(0, 41, 100, 0.45); }

@media (max-width: 720px) {
    .g-colophon { padding: 60px 22px 100px; }
    .g-colophon__inner { padding: 60px 28px; }
    .g-colophon__list { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   FOOTER override
============================================================ */
.gallery-body footer {
    background: var(--navy-deep) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.gallery-body footer .footer-logo-area { background: transparent !important; }
.gallery-body footer .footer-logo a img { filter: brightness(0) invert(1); }
.gallery-body footer .footer-company-name,
.gallery-body footer .footer-list-area dt a,
.gallery-body footer .copy { color: rgba(255, 255, 255, 0.7) !important; }
.gallery-body footer .footer-list-area dt a:hover { color: var(--sun) !important; }

/* ============================================================
   Lightbox
============================================================ */
.g-lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: none; align-items: center; justify-content: center;
}
.g-lightbox.is-open { display: flex; }
.g-lightbox__overlay {
    position: absolute; inset: 0;
    background: rgba(0, 23, 56, 0.96);
    animation: lb-fade 0.3s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.g-lightbox__content {
    position: relative; z-index: 1;
    width: 92vw; max-width: 1500px; max-height: 92vh;
    display: flex; align-items: center; justify-content: center;
    animation: lb-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lb-pop { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.g-lightbox__figure {
    margin: 0; max-width: 100%; max-height: 92vh;
    display: flex; flex-direction: column;
}
.g-lightbox__img {
    width: 100%; max-height: 80vh; object-fit: contain;
    display: block; transition: opacity 0.2s ease;
    background: var(--paper);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-sizing: border-box;
}
.g-lightbox.is-swapping .g-lightbox__img { opacity: 0; }
.g-lightbox figcaption {
    display: flex; gap: 20px; justify-content: space-between;
    padding: 18px 4px 0;
    color: rgba(255, 255, 255, 0.85);
    align-items: baseline;
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.g-lightbox__title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    text-transform: none;
    letter-spacing: 0.04em;
}
.g-lightbox__loc { opacity: 0.65; }
.g-lightbox__counter { color: var(--sun); margin-left: auto; font-variant-numeric: tabular-nums; }
.g-lightbox__close,
.g-lightbox__prev,
.g-lightbox__next {
    position: absolute; z-index: 5;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff; cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.g-lightbox__close {
    top: -56px; right: 0; width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.g-lightbox__close span {
    position: absolute; width: 18px; height: 1.4px;
    background: #fff; top: 50%; left: 50%;
}
.g-lightbox__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.g-lightbox__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.g-lightbox__close:hover { background: var(--sun); border-color: var(--sun); transform: rotate(90deg); }
.g-lightbox__close:hover span { background: var(--navy); }
.g-lightbox__prev, .g-lightbox__next {
    top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.g-lightbox__prev svg, .g-lightbox__next svg { width: 22px; height: 22px; }
.g-lightbox__prev { left: -76px; }
.g-lightbox__next { right: -76px; }
.g-lightbox__prev:hover, .g-lightbox__next:hover {
    background: var(--sun); border-color: var(--sun); color: var(--navy);
}
body.lb-open { overflow: hidden; }
@media (max-width: 720px) {
    .g-lightbox__close { top: -50px; right: 0; }
    .g-lightbox__prev { left: 6px; background: rgba(0, 0, 0, 0.55); }
    .g-lightbox__next { right: 6px; background: rgba(0, 0, 0, 0.55); }
    .g-lightbox__img { padding: 8px; }
}

/* ============================================================
   LIGHT-PHASE FRAMING (overrides clock-time treatment)
   No specific HH:MM. Phase wordmarks instead.
============================================================ */

/* Hide the old giant time block entirely if any remain */
.g-hour__time { display: none !important; }

/* Phase wordmark — large but graceful, not a clock */
.g-hour__when {
    display: inline-block !important;
    font-family: "Oswald", sans-serif !important;
    font-weight: 600 !important;
    font-size: clamp(22px, 2.8vw, 38px) !important;
    letter-spacing: 0.24em !important;
    text-transform: none !important;
    color: var(--sun) !important;
    margin-bottom: 22px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sun);
    max-width: max-content;
}
.g-hour--bleed .g-hour__when {
    color: var(--sun) !important;
    border-bottom-color: rgba(254, 179, 47, 0.65);
}

/* Noon interlude — giant 真昼 instead of 12:00 */
.g-hour__noon-phase {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: clamp(120px, 24vw, 320px);
    line-height: 0.9;
    color: var(--sun);
    letter-spacing: 0.06em;
    margin: 12px 0 24px;
    font-family: "Noto Sans JP", sans-serif;
    text-shadow: 0 8px 30px rgba(0, 41, 100, 0.15);
}
.g-hour--noon .g-hour__noon-phase {
    color: rgba(0, 41, 100, 0.85);
}

/* ============================================================
   COVER — light arc (replaces 24h dial)
============================================================ */
.g-arc {
    position: relative;
    width: min(560px, 80vw);
    height: 140px;
    margin-top: 32px;
    opacity: 0;
    animation: g-fade 1.2s ease 1.8s forwards;
}
.g-arc__path {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.g-arc__ground {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
}
.g-arc__sun {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--sun);
    border-radius: 50%;
    box-shadow: 0 0 22px rgba(254, 179, 47, 0.7);
    animation: g-arc-sun 12s ease-in-out infinite;
}
@keyframes g-arc-sun {
    0%, 100% { left: 4%; top: 100%; opacity: 0.4; }
    50%      { left: 50%; top: 6px;  opacity: 1; }
}
.g-arc__label {
    position: absolute;
    bottom: -22px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
}
.g-arc__label--left  { left: 0; }
.g-arc__label--mid   { left: 50%; transform: translateX(-50%); color: var(--sun); }
.g-arc__label--right { right: 0; }

@media (max-width: 720px) {
    .g-arc { height: 100px; margin-top: 18px; }
}

/* ============================================================
   Live phase clock (right-bottom) — bigger, more graphic
============================================================ */
.g-clock {
    padding: 14px 18px;
    min-width: 130px;
}
.g-clock__time {
    font-family: "Noto Sans JP", sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.18em !important;
    color: var(--sun) !important;
}
.g-clock__when {
    font-family: "Oswald", sans-serif !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.32em !important;
    color: rgba(255, 255, 255, 0.55) !important;
}
@media (max-width: 720px) {
    .g-clock { padding: 10px 14px; min-width: 100px; }
    .g-clock__time { font-size: 0.95rem !important; }
}

/* ============================================================
   SCROLL-FUN LAYER — WebGL cover · sun-arc indicator · photo reveal
============================================================ */

/* WebGL canvas on the cover background */
.g-cover__webgl {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.g-cover.is-webgl .g-cover__webgl { opacity: 1; }
.g-cover > *:not(.g-cover__webgl) { position: relative; z-index: 1; }

/* Sticky sun arc indicator — fixed band just below header, moves with scroll */
.g-sunband {
    position: fixed;
    top: 72px;
    left: 5vw;
    right: 5vw;
    height: 100px;
    z-index: 95;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.g-sunband.is-on { opacity: 1; }
.g-sunband__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.g-sunband__svg path {
    stroke: rgba(254, 179, 47, 0.5);
    stroke-width: 1;
}
.g-sunband__sun {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--sun);
    border-radius: 50%;
    box-shadow: 0 0 32px 6px rgba(254, 179, 47, 0.55),
                0 0 12px 3px rgba(254, 179, 47, 0.9),
                0 0 4px 1px rgba(255, 255, 255, 0.85);
    transform: translate(-50%, -50%);
    left: 0;
    top: 100px;
}
.g-sunband.on-light .g-sunband__svg path { stroke: rgba(0, 41, 100, 0.5); }
.g-sunband.on-light .g-sunband__sun {
    box-shadow: 0 0 28px 6px rgba(254, 179, 47, 0.6),
                0 0 10px 3px rgba(232, 146, 58, 0.95);
}
@media (max-width: 720px) {
    .g-sunband { display: none; }
}

/* Photo reveal — soft fade + lift + yellow edge sweep (no clip-path) */
.g-hour__fig {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}
.g-hour.is-in .g-hour__fig { opacity: 1; transform: translateY(0); }

/* Reveal happens via the wrapper inner block + a yellow sweep behind */
.g-hour__inner {
    position: relative;
}
.g-hour__inner > .g-hour__fig,
.g-hour__inner > .g-hour__meta {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.g-hour.is-in .g-hour__inner > .g-hour__fig {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}
.g-hour.is-in .g-hour__inner > .g-hour__meta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

/* Bleed plates: fade in fig + bleed-meta */
.g-hour--bleed .g-hour__fig--bleed,
.g-hour--bleed .g-hour__bleed-meta {
    opacity: 0;
    transition: opacity 1.1s ease;
}
.g-hour--bleed.is-in .g-hour__fig--bleed { opacity: 1; transition-delay: 0.05s; }
.g-hour--bleed.is-in .g-hour__bleed-meta { opacity: 1; transition-delay: 0.45s; transform: translateY(0); }
.g-hour--bleed .g-hour__bleed-meta {
    transform: translateY(20px);
    transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Yellow sun-flash sweep — purely decorative, doesn't hide content */
.g-hour__inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    width: 3px;
    height: 100%;
    background: var(--sun);
    box-shadow: 0 0 20px 2px var(--sun);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}
.g-hour.is-in .g-hour__inner::after {
    animation: g-sun-sweep 1.6s cubic-bezier(0.7, 0, 0.2, 1) 0.1s forwards;
}
@keyframes g-sun-sweep {
    0%   { opacity: 0; left: -20px; }
    20%  { opacity: 1; }
    100% { opacity: 0; left: calc(100% + 20px); }
}
