/* ============================================================
   Premier Club Design System
   Ported from Next.js/Tailwind — vanilla CSS + CSS variables
   Matches glass bottle label aesthetic
   ============================================================ */

:root {
    /* Core palette */
    --cream: #FDF6E9;
    --warm-beige: #F5EDE0;
    --bg: #FAF8F5;
    --surface: #EFEBE6;
    --border: #DDD6CE;
    --light-gray: #E5DFD8;

    /* Brand colors */
    --dark-brown: #3D2B1F;
    --gold-brown: #A67C52;
    --soft-gold: #C9A96E;

    /* Text */
    --text-dark: #1a1714;
    --text: #2C2825;
    --text-body: #3D3835;
    --text-muted: #6B6560;
    --text-light: #8B8580;
    --inactive-gray: #9B9590;

    /* Category accents */
    --cat-sun: #D4A843;
    --cat-leaf: #7BA05B;
    --cat-tree: #4A7C59;
    --cat-soil: #8B6F47;
    --cat-grassland: #9AAF6B;
    --cat-atmosphere: #87ACCD;

    /* Status */
    --success: #2d8a4e;
    --error: #c44438;
    --error-bg: #fef2f2;

    /* Spacing & radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[x-cloak] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
.font-display {
    font-family: 'Outfit', sans-serif;
}

.font-serif {
    font-family: 'Noto Serif JP', serif;
}

h1, h2, h3 {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.4;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
    max-width: 640px !important;
    margin: 0 auto !important;
    padding: 0 16px;
    width: 100%;
}

.center-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
}

/* ── Cards ── */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(44,40,37,0.06);
}

.card-warm {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 8px rgba(44,40,37,0.05);
    transition: box-shadow 0.2s;
}

.card-warm:hover {
    box-shadow: 0 4px 16px rgba(44,40,37,0.1);
}

/* ── Content card (story list) ── */
.story-card {
    display: block;
    padding: 20px;
    border-left-width: 3px;
    border-left-style: solid;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.story-card__inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.story-card__icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 2px;
    flex-shrink: 0;
}

.story-card__icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-card__icon-circle img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.story-card__kanji {
    font-size: 12px;
    font-weight: 500;
}

.story-card__body {
    flex: 1;
    min-width: 0;
}

.story-card__title {
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
    font-size: 15px;
    color: var(--text-dark);
}

.story-card__desc {
    font-size: 14px;
    color: var(--inactive-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card__meta {
    font-size: 12px;
    color: var(--soft-gold);
    margin-top: 8px;
}

/* ── Story card Style B (vertical magazine) ── */
.story-card-b {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
    text-decoration: none;
    color: inherit;
}
.story-card-b:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.06);
}

.story-card-b__accent {
    height: 3px;
    width: 100%;
}

.story-card-b__content {
    padding: 20px 20px 16px;
}

.story-card-b__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.story-card-b__icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.story-card-b__icon-circle img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.story-card-b__cat {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.story-card-b__date {
    font-size: 12px;
    color: var(--inactive-gray);
    margin-left: auto;
}

.story-card-b__title {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.story-card-b__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--inactive-gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.story-card-b__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0ede8;
}

.story-card-b__type {
    font-size: 12px;
    color: var(--soft-gold);
    font-weight: 500;
}

.story-card-b__arrow {
    color: var(--soft-gold);
    transition: transform 0.2s ease;
}
.story-card-b:hover .story-card-b__arrow {
    transform: translateX(3px);
}

/* ── Story card Style C (editorial / kanji watermark) ── */
.story-card-c {
    display: block;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    padding: 28px 24px 20px;
    border: 1px solid #ece8e1;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.story-card-c:hover {
    border-color: #d9d3c9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.story-card-c__watermark {
    display: none;
}

.story-card-c__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    position: relative;
}

.story-card-c__cat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.story-card-c__cat-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.story-card-c__sep {
    color: #ddd;
    font-size: 12px;
}

.story-card-c__type {
    font-size: 12px;
    color: var(--inactive-gray);
}

.story-card-c__title {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.65;
    color: var(--text-dark);
    margin-bottom: 8px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.story-card-c__title-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.5;
}

.story-card-c__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--inactive-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.story-card-c__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.story-card-c__date {
    font-size: 12px;
    color: var(--inactive-gray);
}

.story-card-c__read {
    font-size: 13px;
    font-weight: 500;
    color: var(--soft-gold);
    transition: transform 0.2s ease;
}
.story-card-c:hover .story-card-c__read {
    transform: translateX(2px);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    min-height: 48px;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    background: var(--dark-brown);
    color: var(--cream);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
    min-height: 48px;
    letter-spacing: 0.05em;
}

.btn-primary:hover:not(:disabled) {
    background: #2a1d15;
    box-shadow: 0 4px 12px rgba(61,43,31,0.2);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) { background: var(--border); }

.btn-accent {
    background: var(--gold-brown);
    color: #fff;
}
.btn-accent:hover:not(:disabled) { background: #8a6642; }

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
}

.btn-danger {
    background: var(--error);
    color: #fff;
}

/* ── Form fields ── */
.field { margin-bottom: 20px; }

.field__label {
    display: block;
    font-size: 14px;
    color: rgba(61,43,31,0.8);
    margin-bottom: 8px;
}

.field__input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text-dark);
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    min-height: 48px;
}

.field__input:focus {
    border-color: var(--gold-brown);
    box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}

textarea.field__input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

select.field__input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B6560' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ── Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.alert-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid rgba(196,68,56,0.15);
}

.alert-success {
    background: #f0faf4;
    color: var(--success);
    border: 1px solid rgba(45,138,78,0.15);
}

/* ── Dividers ── */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

.divider-short::before,
.divider-short::after {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--soft-gold);
    opacity: 0.4;
}

.divider-short::before { margin-right: 8px; }
.divider-short::after { margin-left: 8px; }

.divider-short .divider__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--soft-gold);
    opacity: 0.5;
}

.divider-wide {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider-botanical {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.divider-botanical::before,
.divider-botanical::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--soft-gold), transparent);
    opacity: 0.3;
}

.divider-botanical .divider__leaf {
    color: var(--soft-gold);
    opacity: 0.4;
    font-size: 24px;
}

/* ── Dark hero (landing page) ── */
.hero-dark {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    overflow: hidden;
    background: #2A1C13;
}

.hero-dark__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(212,168,67,0.08) 0%, transparent 70%);
}

.hero-dark__bg-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-dark__bg-icon img {
    width: 420px;
    height: 420px;
    opacity: 0.10;
    filter: blur(1.5px);
    animation: sunAlive 120s ease-in-out infinite;
}

.hero-dark__content {
    position: relative;
    text-align: center;
    max-width: 480px;
}

/* Circle logo element */
.logo-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
    border-radius: 50%;
    border: 1px solid rgba(201,169,110,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 4px rgba(212,168,67,0.15),
        0 0 0 8px rgba(212,168,67,0.08);
}

.logo-circle__brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.35em;
    color: var(--soft-gold);
    line-height: 1.2;
    text-transform: uppercase;
}

.logo-circle__name {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 26px;
    letter-spacing: 0.2em;
    color: var(--cream);
    line-height: 1.2;
    margin-top: 2px;
}

.logo-circle__sub {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.3em;
    color: var(--soft-gold);
    line-height: 1.2;
    margin-top: 4px;
}

.hero-dark__message {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(253,246,233,0.9);
    margin-bottom: 16px;
}

.hero-dark__tagline {
    font-size: 16px;
    color: var(--soft-gold);
    letter-spacing: 0.1em;
    margin-bottom: 48px;
}

.hero-dark .btn-primary {
    width: 240px;
    padding: 14px 28px;
    background: rgba(253,246,233,0.12);
    border: 1px solid rgba(201,169,110,0.4);
    color: var(--cream);
}

.hero-dark .btn-line {
    width: 240px;
    justify-content: center;
}

.hero-dark .btn-primary:hover {
    background: rgba(253,246,233,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ── Login page ── */
.login-page {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 48px 24px;
    overflow: hidden;
}

.login-page__product-img {
    width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
    margin-bottom: 24px;
}

.login-page__brand {
    text-align: center;
    margin-bottom: 0;
}

.login-page__brand-sub {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.35em;
    color: var(--gold-brown);
}

.login-page__brand-main {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 26px;
    letter-spacing: 0.2em;
    color: var(--dark-brown);
}

.login-page__club-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.3em;
    color: var(--soft-gold);
    margin-top: -6px;
    margin-bottom: 20px;
}

/* Category icon strip */
.cycle-strip {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cycle-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.5;
}

.cycle-strip__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.cycle-strip__label {
    display: none;
}

.login-page__welcome {
    text-align: center;
    font-size: 14px;
    color: rgba(61,43,31,0.7);
    line-height: 1.8;
    margin-bottom: 32px;
}

.login-page__form-card {
    width: 100%;
    max-width: 400px;
    padding: 24px 28px;
}

.login-page__footer {
    margin-top: 32px;
    text-align: center;
}

.login-page__footer-text {
    font-size: 15px;
    color: rgba(201,169,110,0.85);
    letter-spacing: 0.1em;
}

/* ── Club layout ── */
.club-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250,248,245,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.club-header__logo {
    font-family: 'Outfit', sans-serif;
}

.club-header__logo-sub {
    font-size: 8px;
    letter-spacing: 0.3em;
    color: var(--gold-brown);
    line-height: 1;
}

.club-header__logo-main {
    font-size: 16px;
    letter-spacing: 0.15em;
    color: var(--dark-brown);
    line-height: 1.2;
}

.club-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.club-header__admin-link {
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.club-header__admin-link:hover {
    background: var(--surface);
}

.club-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

/* Bottom navigation */
.club-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(250,248,245,0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.club-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 16px;
    font-size: 10px;
    color: var(--text-muted);
    min-width: 64px;
    min-height: 48px;
    justify-content: center;
}

.club-bottom-nav__item--active {
    color: var(--gold-brown);
}

.club-bottom-nav__item svg {
    width: 22px;
    height: 22px;
}

.club-body {
    padding-bottom: 120px;
}

/* ── Home event banner ── */
.home-event-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #faf6ef 0%, #f5ede0 100%);
    border: 1px solid #e8e0d4;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-event-banner:hover {
    border-color: #d4cbbf;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.home-event-banner__icon {
    color: var(--soft-gold);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    opacity: 0.5;
    margin-left: 8px;
}

.home-event-banner__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-event-banner__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--soft-gold);
    letter-spacing: 0.04em;
}

.home-event-banner__title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-event-banner__date {
    font-size: 13px;
    color: var(--inactive-gray);
}

.home-event-banner__arrow {
    color: var(--soft-gold);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.home-event-banner:hover .home-event-banner__arrow {
    transform: translateX(2px);
}

/* ── Event cards (member-facing) ── */
.event-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ece8e1;
    border-radius: 10px;
}
.event-card--past {
    opacity: 0.6;
}

.event-card__date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    flex-shrink: 0;
}

.event-card__month {
    font-size: 11px;
    color: var(--soft-gold);
    font-weight: 600;
}

.event-card__day {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-dark);
}

.event-card__weekday {
    font-size: 12px;
    color: var(--inactive-gray);
}

.event-card__body {
    flex: 1;
    min-width: 0;
}

.event-card__title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.event-card__time {
    font-size: 13px;
    color: var(--inactive-gray);
    margin-bottom: 6px;
}

.event-card__desc {
    font-size: 14px;
    color: var(--inactive-gray);
    line-height: 1.6;
    margin-bottom: 8px;
}

.event-card__link {
    font-size: 13px;
    font-weight: 500;
    color: var(--soft-gold);
    text-decoration: none;
}
.event-card__link:hover {
    text-decoration: underline;
}

/* ── Home page ── */
.home-greeting {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text);
}

.home-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    color: var(--gold-brown);
}

/* ── Story detail ── */
.story-header {
    position: relative;
    padding: 16px 16px 24px;
    overflow: hidden;
}

.story-header__bg-icon {
    position: absolute;
    top: -32px;
    right: -32px;
    pointer-events: none;
    opacity: 0.06;
}

.story-header__bg-icon img {
    width: 160px;
    height: 160px;
}

.story-header__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--soft-gold);
    margin-bottom: 16px;
    min-height: 48px;
    transition: color 0.2s;
}

.story-header__back:hover { color: var(--gold-brown); }

.story-header__back svg {
    width: 16px;
    height: 16px;
}

.story-header__cat {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.story-header__cat-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-header__cat-icon img {
    width: 24px;
    height: 24px;
}

.story-header__cat-name {
    font-size: 14px;
    font-weight: 500;
}

.story-header__date {
    font-size: 12px;
    color: var(--soft-gold);
}

.story-header__title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.4;
    color: var(--text-dark);
}

.story-header__desc {
    color: var(--inactive-gray);
    margin-top: 8px;
    font-size: 15px;
}

.story-header__epigraph {
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

/* Story footer */
.story-footer {
    padding-bottom: 32px;
}

.story-footer__symbol {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.story-footer__icon {
    width: 36px;
    height: 36px;
    opacity: 0.5;
    flex-shrink: 0;
}

.story-footer__poetic {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.story-footer__field {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-light);
}

.story-footer__cycle-link {
    display: inline-block;
    font-size: 13px;
    color: var(--gold-brown);
    text-decoration: none;
    font-weight: 500;
}

.story-footer__cycle-link:hover {
    color: var(--text-dark);
}

/* Video embed */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Audio embed */
.audio-wrapper {
    background: var(--warm-beige);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.audio-wrapper iframe {
    width: 100%;
    height: 80px;
    border: none;
    border-radius: var(--radius-sm);
}

/* Article body (prose) */
.prose {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-dark);
}

.prose h2 {
    font-size: 20px;
    margin: 32px 0 16px;
}

.prose h3 {
    font-size: 18px;
    margin: 24px 0 12px;
}

.prose p {
    margin-bottom: 16px;
    font-weight: 300;
}

.prose a {
    color: var(--gold-brown);
    text-decoration: underline;
}

.prose blockquote {
    border-left: 3px solid var(--soft-gold);
    padding-left: 16px;
    margin: 24px 0;
    color: rgba(166,124,82,0.8);
    font-style: normal;
}

.prose hr {
    border: none;
    border-top: 1px solid #e0dbd4;
    margin: 48px 0 32px;
}

.prose .story-footnotes hr {
    display: none;
}

.prose .story-footnotes {
    font-size: 13px;
    line-height: 1.7;
    color: var(--inactive-gray);
}

.prose .story-footnotes .footnote {
    margin-bottom: 6px;
}

.prose img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

/* ── Library journey map ── */
.library-journey {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.library-journey__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.library-journey__icon {
    width: 36px;
    height: 36px;
    opacity: 0.15;
    transition: opacity 0.3s, transform 0.3s;
}

.library-journey__icon--active {
    opacity: 0.8;
    transform: scale(1.1);
}

.library-journey__icon img {
    width: 100%;
    height: 100%;
}

.library-journey__count {
    font-size: 10px;
    color: var(--text-light);
}

.library-journey__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    background: var(--gold-brown);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

/* ── Library list (flat) ── */
.library-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: opacity 0.2s;
}

.library-list__item:first-child {
    padding-top: 0;
}

.library-list__item:last-child {
    border-bottom: none;
}

.library-list__item:hover {
    opacity: 0.7;
}

.library-list__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.5;
}

.library-list__item--read .library-list__icon {
    opacity: 0.25;
}

.library-list__body {
    flex: 1;
    min-width: 0;
}

.library-list__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.library-list__dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gold-brown);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.library-list__item--read .library-list__title {
    color: var(--text-light);
    font-weight: 400;
}

.library-list__meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Library Tabs ── */
.library-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.library-tabs__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s;
}

.library-tabs__btn:hover {
    color: var(--text-dark);
}

.library-tabs__btn--active {
    color: var(--text-dark);
    font-weight: 500;
    border-bottom-color: var(--gold-brown);
}

.library-tabs__badge {
    background: var(--gold-brown);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

[x-cloak] { display: none !important; }

/* ── Gallery ── */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.gallery-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.gallery-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.gallery-item__img {
    width: 100%;
    display: block;
}

.gallery-item__video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.gallery-item__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-item__caption {
    font-size: 13px;
    color: var(--text-body);
    padding: 10px 14px 4px;
    line-height: 1.5;
}

.gallery-item__story {
    font-size: 11px;
    color: var(--text-light);
    padding: 0 14px 10px;
}

/* ── Profile page ── */
.profile-card {
    text-align: center;
    padding: 32px 24px;
}

.profile-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.7;
}

.profile-card__icon img {
    width: 100%;
    height: 100%;
}

.profile-card__name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.profile-card__id {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.profile-stat {
    text-align: center;
}

.profile-stat__value {
    font-size: 24px;
    font-weight: 600;
    color: var(--gold-brown);
}

.profile-stat__label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Admin layout ── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: var(--dark-brown);
    color: var(--cream);
    padding: 24px 0;
    flex-shrink: 0;
}

.admin-sidebar__logo {
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}

.admin-sidebar__logo-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--soft-gold);
    opacity: 0.7;
}

.admin-sidebar__logo-main {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    letter-spacing: 0.15em;
}

.admin-sidebar__label {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(253,246,233,0.4);
    padding: 0 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.admin-sidebar__nav {
    list-style: none;
}

.admin-sidebar__link {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: rgba(253,246,233,0.7);
    transition: all 0.2s;
}

.admin-sidebar__link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--cream);
}

.admin-sidebar__link--active {
    background: rgba(255,255,255,0.12);
    color: var(--cream);
    border-left: 3px solid var(--soft-gold);
}

.admin-sidebar__back {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: rgba(253,246,233,0.5);
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
}

.admin-sidebar__back:hover { color: var(--cream); }

.admin-main {
    flex: 1;
    padding: 32px;
    overflow-x: auto;
}

.admin-main__title {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

/* ── Admin table ── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 12px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(239,235,230,0.5);
}

/* ── Admin stats cards ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.stat-card__label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-card__value {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-brown);
}

/* ── Category selector (admin form) ── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cat-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.cat-grid__item:hover {
    border-color: var(--soft-gold);
}

.cat-grid__item--active {
    border-color: var(--gold-brown);
    background: rgba(166,124,82,0.05);
}

.cat-grid__item img {
    width: 24px;
    height: 24px;
}

.cat-grid__item span {
    font-size: 12px;
    font-weight: 500;
}

/* ── Badge / Tag ── */
.badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 999px;
    font-weight: 500;
}

.badge-published {
    background: #f0faf4;
    color: var(--success);
}

.badge-draft {
    background: var(--surface);
    color: var(--text-muted);
}

.badge-active {
    background: #f0faf4;
    color: var(--success);
}

.badge-grace {
    background: #fffbeb;
    color: #b45309;
}

.badge-inactive {
    background: var(--surface);
    color: var(--text-muted);
}

/* ── Spinner ── */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(201,169,110,0.3);
    border-top-color: var(--soft-gold);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--inactive-gray);
}

/* ── Home empty (pre-launch) ── */
.home-empty {
    text-align: center;
    padding: 32px 16px 48px;
}

.home-empty__cycle {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.home-empty__icon {
    width: 40px;
    height: 40px;
    opacity: 0.25;
    animation: homeEmptyPulse 3s ease-in-out infinite;
}

.home-empty__icon:nth-child(2) { animation-delay: 0.5s; }
.home-empty__icon:nth-child(3) { animation-delay: 1.0s; }
.home-empty__icon:nth-child(4) { animation-delay: 1.5s; }
.home-empty__icon:nth-child(5) { animation-delay: 2.0s; }
.home-empty__icon:nth-child(6) { animation-delay: 2.5s; }

.home-empty__icon img {
    width: 100%;
    height: 100%;
}

@keyframes homeEmptyPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.1); }
}

.home-empty__title {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.home-empty__desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.home-empty__categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 320px;
    margin: 0 auto 28px;
}

.home-empty__cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.home-empty__cat-kanji {
    font-size: 14px;
    font-weight: 500;
}

.home-empty__cat-ja {
    font-size: 11px;
    color: var(--text-light);
}

.home-empty__footer {
    font-size: 13px;
    color: var(--inactive-gray);
}

/* ── Cycle Strip (compact symbol bar on home) ── */
.cycle-strip {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cycle-strip__item {
    opacity: 0.25;
}

.cycle-strip__item--active {
    opacity: 0.7;
}

.cycle-strip__icon {
    width: 28px;
    height: 28px;
}

/* ── Featured Story (home hero) ── */
.home-featured {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

.home-featured__symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 20px;
}

.home-featured__symbol-img {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

.home-featured__content {
    padding: 0 20px 20px;
}

.home-featured__cat {
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-featured__cat-ja {
    font-weight: 400;
    opacity: 0.6;
    margin-left: 4px;
    font-size: 11px;
}

.home-featured__title {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.home-featured__desc {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-featured__poetic {
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

.home-featured__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.home-featured__read {
    color: var(--gold-brown);
    font-weight: 500;
    transition: color 0.2s;
}

.home-featured:hover .home-featured__read {
    color: var(--text-dark);
}

/* ── Cycle Page ── */
.cycle-page__intro {
    text-align: center;
    padding: 16px 0 24px;
}

.cycle-page__tagline {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cycle-page__lead {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
}

.cycle-page__symbol {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cycle-page__symbol-visual {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cycle-page__symbol-icon {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

.cycle-page__symbol-body {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.cycle-page__poetic {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cycle-page__field {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 8px;
}

.cycle-page__stats {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cycle-page__unread {
    color: var(--gold-brown);
    font-weight: 500;
}

.cycle-page__latest {
    display: block;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.cycle-page__latest:hover {
    color: var(--gold-brown);
}

.cycle-page__latest--read {
    color: var(--text-light);
    font-weight: 400;
}

.cycle-page__footer {
    text-align: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    color: var(--text-muted);
    padding: 8px 0 16px;
}

/* ── Experience Page (食体験) ── */
.exp-intro {
    text-align: center;
    padding: 16px 0 24px;
}

.exp-intro__icon {
    width: 40px;
    height: 40px;
    opacity: 0.5;
    margin-bottom: 12px;
}

.exp-intro__title {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.exp-intro__lead {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Recipe card */
.exp-recipe {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.exp-recipe__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.exp-recipe__step {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1;
    padding-top: 2px;
}

.exp-recipe__title {
    font-family: 'Noto Serif JP', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 4px;
}

.exp-recipe__sub {
    font-size: 13px;
    color: var(--text-light);
}

.exp-recipe__body {
    padding: 20px;
}

.exp-recipe__meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.exp-recipe__section {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 16px 0 8px;
}

.exp-recipe__list {
    list-style: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-body);
}

.exp-recipe__list li {
    padding-left: 12px;
    position: relative;
}

.exp-recipe__list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--text-light);
}

.exp-recipe__steps {
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-body);
}

.exp-recipe__steps li {
    margin-bottom: 4px;
}

.exp-recipe__tip {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
}

.exp-recipe__tip strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.exp-recipe__variation {
    margin: 12px 0;
    padding: 12px 14px;
    border-left: 3px solid var(--border);
    border-radius: 0 8px 8px 0;
}

.exp-recipe__variation h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.exp-recipe__variation p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Monthly recipes */
.exp-monthly__title {
    font-family: 'Noto Serif JP', serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.exp-monthly__desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.exp-monthly__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: opacity 0.2s;
}

.exp-monthly__item:hover {
    opacity: 0.7;
}

.exp-monthly__item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.exp-monthly__item--read .exp-monthly__item-title {
    color: var(--text-light);
    font-weight: 400;
}

.exp-monthly__item-date {
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 12px;
}

/* ── Utility ── */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes sunAlive {
    0%    { transform: rotate(0deg)   scale(1.0, 1.0);   opacity: 0.08; filter: blur(1.5px); }
    12.5% { transform: rotate(45deg)  scale(1.04, 0.97); opacity: 0.12; filter: blur(2px); }
    25%   { transform: rotate(90deg)  scale(1.0, 1.0);   opacity: 0.16; filter: blur(3px); }
    37.5% { transform: rotate(135deg) scale(0.97, 1.04); opacity: 0.12; filter: blur(2px); }
    50%   { transform: rotate(180deg) scale(1.0, 1.0);   opacity: 0.08; filter: blur(1.5px); }
    62.5% { transform: rotate(225deg) scale(1.04, 0.97); opacity: 0.12; filter: blur(2px); }
    75%   { transform: rotate(270deg) scale(1.0, 1.0);   opacity: 0.16; filter: blur(3px); }
    87.5% { transform: rotate(315deg) scale(0.97, 1.04); opacity: 0.12; filter: blur(2px); }
    100%  { transform: rotate(360deg) scale(1.0, 1.0);   opacity: 0.08; filter: blur(1.5px); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        padding: 16px 0;
    }
    .admin-sidebar__nav {
        display: flex;
        overflow-x: auto;
        padding: 0 16px;
        gap: 4px;
    }
    .admin-sidebar__link {
        white-space: nowrap;
        padding: 8px 16px;
        border-radius: var(--radius-sm);
    }
    .admin-sidebar__link--active {
        border-left: none;
        background: rgba(255,255,255,0.15);
    }
    .admin-sidebar__label,
    .admin-sidebar__back,
    .admin-sidebar__logo {
        display: none;
    }
    .admin-main {
        padding: 16px;
    }
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cycle-strip { gap: 12px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Guide Page ── */

.guide-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1714 0%, #2C2825 100%);
    color: var(--cream);
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guide-page__header {
    text-align: center;
    margin-bottom: 40px;
}

.guide-page__brand {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    letter-spacing: 0.25em;
    color: var(--soft-gold);
    margin-bottom: 16px;
}

.guide-page__title {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 8px;
}

.guide-page__subtitle {
    font-size: 13px;
    color: rgba(201,169,110,0.7);
    letter-spacing: 0.05em;
}

.guide-section {
    width: 100%;
    max-width: 520px;
    text-align: center;
    padding: 32px 0;
}

.guide-section__icon {
    margin-bottom: 16px;
}

.guide-section__icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.8;
}

.guide-section__heading {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--soft-gold);
    margin-bottom: 12px;
}

.guide-section__desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(253,246,233,0.75);
}

.guide-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.guide-product-card {
    background: rgba(253,246,233,0.06);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.guide-product-card__name {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 6px;
}

.guide-product-card__duration {
    font-size: 13px;
    color: var(--soft-gold);
    letter-spacing: 0.05em;
}

.guide-product-card__note {
    font-size: 12px;
    color: rgba(253,246,233,0.5);
    margin-top: 6px;
}

.guide-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    text-align: left;
}

.guide-checklist li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(253,246,233,0.75);
    margin-bottom: 8px;
}

.guide-checklist li::before {
    content: '\2022';
    position: absolute;
    left: 4px;
    color: var(--soft-gold);
}

.guide-page__footer {
    margin-top: 40px;
    text-align: center;
}

.guide-page__footer-text {
    font-size: 12px;
    color: rgba(201,169,110,0.7);
    letter-spacing: 0.1em;
    margin-top: 12px;
}

/* ── Admin bar (test users only) ── */
.club-admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1714;
    padding: 0 12px;
    height: 32px;
    font-size: 11px;
    overflow-x: auto;
}

.club-admin-bar__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.club-admin-bar__label {
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
}

.club-admin-bar__label i {
    font-size: 10px;
}

.club-admin-bar__link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    white-space: nowrap;
}

.club-admin-bar__link:hover {
    color: #fff;
}

.club-admin-bar__right {
    position: relative;
}

.club-admin-bar__action {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    white-space: nowrap;
}

.club-admin-bar__action:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.club-admin-bar__select {
    font-size: 11px;
    font-family: 'Noto Sans JP', sans-serif;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    outline: none;
}
.club-admin-bar__select option {
    background: #333;
    color: #fff;
}

/* Shared dropdown (used by admin bar) */
.club-test-menu__dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 140px;
    z-index: 100;
}

.club-test-menu__item {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.club-test-menu__item:hover {
    background: var(--surface);
}

/* ── Welcome page ── */
.welcome-page {
    min-height: 100vh;
    background: var(--dark-brown);
    color: #FDF6E9;
}

.welcome-hero {
    position: relative;
    padding: 60px 24px 40px;
    text-align: center;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.welcome-hero__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,169,110,0.15) 0%, transparent 70%);
}

/* Orbiting cycle icons */
.welcome-orbit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.welcome-orbit__ring {
    position: relative;
    width: 240px;
    height: 240px;
    animation: orbitSpin 40s linear infinite reverse; /* counter-clockwise */
}

.welcome-orbit__icon {
    position: absolute;
    width: 36px;
    height: 36px;
    top: 50%;
    left: 50%;
    margin: -18px 0 0 -18px;
    /* Place each icon counter-clockwise on the circle, starting from top */
    transform: rotate(calc(var(--i) * -60deg - 90deg)) translateX(120px) rotate(calc(var(--i) * 60deg + 90deg));
    animation: orbitCounterSpin 40s linear infinite; /* keep icons upright */
    opacity: 0.2;
}

.welcome-orbit__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes orbitCounterSpin {
    from { transform: rotate(calc(var(--i) * -60deg - 90deg)) translateX(120px) rotate(calc(var(--i) * 60deg + 90deg)); }
    to   { transform: rotate(calc(var(--i) * -60deg - 90deg + 360deg)) translateX(120px) rotate(calc(var(--i) * 60deg + 90deg - 360deg)); }
}

.welcome-brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.welcome-brand__natuleo {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.35em;
    color: var(--gold-brown);
    line-height: 1;
}

.welcome-brand__premier {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 32px;
    letter-spacing: 0.2em;
    color: var(--soft-gold);
    line-height: 1.2;
}

.welcome-brand__club {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.5em;
    color: rgba(201,169,110,0.6);
    line-height: 1;
}

.welcome-brand__emblem {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-top: 12px;
    opacity: 0.35;
}

/* Welcome content */
.welcome-content {
    padding: 40px 24px 60px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.welcome-content__greeting {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    color: #FDF6E9;
    margin-bottom: 16px;
}

.welcome-content__message {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(253,246,233,0.8);
}

.welcome-content__intro {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(253,246,233,0.7);
    margin-bottom: 24px;
}

/* Category preview grid */
.welcome-categories {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
}

.welcome-categories__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.welcome-categories__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-categories__icon img {
    width: 28px;
    height: 28px;
}

.welcome-categories__kanji {
    font-size: 13px;
    font-weight: 500;
}

.welcome-categories__ja {
    font-size: 11px;
    color: rgba(253,246,233,0.5);
}

.welcome-content__cycle-note {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(253,246,233,0.5);
}

/* Features list */
.welcome-features {
    text-align: left;
    margin-bottom: 40px;
}

.welcome-features__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(253,246,233,0.08);
}

.welcome-features__item:last-child {
    border-bottom: none;
}

.welcome-features__item i {
    font-size: 20px;
    color: var(--soft-gold);
    margin-top: 2px;
    flex-shrink: 0;
}

.welcome-features__title {
    font-size: 14px;
    font-weight: 500;
    color: #FDF6E9;
    margin-bottom: 2px;
}

.welcome-features__desc {
    font-size: 12px;
    color: rgba(253,246,233,0.6);
    line-height: 1.5;
}

/* CTA button */
.welcome-cta {
    display: inline-block;
    padding: 16px 48px;
    background: var(--soft-gold);
    color: var(--dark-brown);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.welcome-cta:hover {
    background: var(--gold-brown);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.welcome-content__footer {
    font-size: 13px;
    color: rgba(201,169,110,0.5);
    letter-spacing: 0.05em;
}

/* Welcome page overrides — no header/nav */
.welcome-page .club-header,
.welcome-page .club-bottom-nav {
    display: none;
}

.welcome-page .club-body {
    padding-bottom: 0;
}
