/**
 * TOKYO LABEL FUWALY - Brand CSS v5.0
 * 
 * DESIGN_SYSTEM v2.0 完全準拠
 * 
 * Core Identity: "香りそうな静けさ × 朝の光 × 日本美の余白"
 * 
 * @version 5.0.0
 * @updated 2024-12-17
 */

/* ==========================================================================
   1. CSS Variables（デザイントークン）
   ========================================================================== */

:root {
    /* Primary Colors */
    --color-white: #FFFFFF;
    --color-sakura-pale: #F8D6DA;
    --color-soft-gold: #E2C98C;
    --color-gold-dark: #C8A859;
    
    /* Text Colors */
    --color-text-primary: #3A3A3A;
    --color-text-secondary: #555555;
    --color-text-light: #888888;
    --color-text-footer: #444444;
    
    /* Backgrounds */
    --color-bg-light: rgba(0, 0, 0, 0.03);
    --color-bg-sakura: rgba(248, 214, 218, 0.3);
    
    /* Gradients */
    --gradient-hero: linear-gradient(180deg, #FFFFFF 0%, #F8D6DA 50%, rgba(226, 201, 140, 0.1) 100%);
    --gradient-button: linear-gradient(135deg, #E2C98C 0%, #C8A859 100%);
    
    /* Typography */
    --font-heading: "Playfair Display", serif;
    --font-body: "Noto Serif JP", serif;
    
    /* Font Sizes - PC */
    --fs-h1: 42px;
    --fs-h2: 32px;
    --fs-h3: 24px;
    --fs-body: 17px;
    --fs-small: 13px;
    
    /* Line Heights */
    --lh-heading: 1.4;
    --lh-subheading: 1.5;
    --lh-body: 1.9;
    --lh-small: 1.6;
    
    /* Spacing */
    --section-gap: 140px;
    --container-max: 1100px;
    --container-padding: 40px;
    
    /* Transitions */
    --transition-default: all 0.3s ease;
}

/* ==========================================================================
   2. Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text-primary);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-heading);
}

h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-subheading);
}

h3 {
    font-size: var(--fs-h3);
    line-height: var(--lh-subheading);
}

/* 英字見出し */
.heading-en {
    font-family: var(--font-heading);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ゴールド見出し */
.heading-gold {
    color: var(--color-soft-gold);
}

p {
    margin-bottom: 1.5em;
    letter-spacing: 0.03em;
}

a {
    color: var(--color-soft-gold);
    text-decoration: none;
    transition: var(--transition-default);
}

a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-gap) 0;
}

.section-title {
    font-size: var(--fs-h2);
    color: var(--color-soft-gold);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.08em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(226, 201, 140, 0.4);
    margin: 24px auto 0;
}

/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 0.3px solid rgba(226, 201, 140, 0.3);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 0.2em;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.site-logo a {
    color: inherit;
}

.main-nav {
    display: flex;
    gap: 36px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--color-soft-gold);
}

/* ==========================================================================
   6. Hero Sections
   ========================================================================== */

/* Base Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Hero with gradient extension */
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.9) 60%, #FFFFFF 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 40px;
}

.hero-title {
    font-size: 44px;
    font-weight: 400;
    color: var(--color-text-primary);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: 0.2em;
    color: var(--color-soft-gold);
    margin-bottom: 16px;
}

.hero-text {
    font-size: 18px;
    line-height: 2;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

/* Page-specific Hero Backgrounds */
.hero-home .hero-bg {
    background-image: url('../images/hero-home.png');
}

.hero-ladies .hero-bg {
    background-image: url('../images/hero-ladies.png');
}

.hero-auth .hero-bg {
    background-image: url('../images/hero-auth.png');
}

.hero-concept .hero-bg {
    background-image: url('../images/hero-concept.png');
}

.hero-system .hero-bg {
    background-image: url('../images/hero-system.png');
}

.hero-reserve .hero-bg {
    background-image: url('../images/hero-reserve.png');
}

.hero-faq .hero-bg {
    background-image: url('../images/hero-faq.png');
}

.hero-members .hero-bg {
    background-image: url('../images/hero-members.png');
}

.hero-recruit .hero-bg {
    background-image: url('../images/hero-recruit.png');
}

.hero-policy .hero-bg {
    background-image: url('../images/hero-policy.png');
}

/* Lower page hero (shorter) */
.hero-lower {
    min-height: 60vh;
}

/* Auth Page - Special */
.hero-auth {
    min-height: 100vh;
}

.hero-auth .hero-bg::after {
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 214, 218, 0.3) 50%, rgba(255, 255, 255, 0.95) 100%);
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 15px;
    letter-spacing: 0.08em;
    padding: 18px 48px;
    border-radius: 30px;
    transition: var(--transition-default);
    cursor: pointer;
    text-align: center;
}

/* Standard Button (White × Gold Line) */
.btn-standard {
    background: var(--color-white);
    border: 1px solid var(--color-soft-gold);
    color: var(--color-soft-gold);
}

.btn-standard:hover {
    background: rgba(226, 201, 140, 0.1);
    color: var(--color-soft-gold);
}

/* Primary Button (Gold Fill) */
.btn-primary {
    background: var(--gradient-button);
    border: none;
    color: var(--color-white);
    font-size: 16px;
    padding: 20px 56px;
}

.btn-primary:hover {
    filter: brightness(1.05);
    color: var(--color-white);
}

/* Navy Button */
.btn-navy {
    background: #1a1a2e;
    border: none;
    color: var(--color-white);
    border-radius: 8px;
}

.btn-navy:hover {
    background: #2a2a3e;
    color: var(--color-white);
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   8. Cards
   ========================================================================== */

.card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: var(--transition-default);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Cast Card */
.cast-card {
    position: relative;
}

.cast-card-image {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.cast-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cast-card:hover .cast-card-image img {
    transform: scale(1.03);
}

.cast-card-info {
    padding: 20px;
    text-align: center;
}

.cast-card-name {
    font-size: 18px;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.cast-card-spec {
    font-size: 14px;
    color: var(--color-text-light);
}

/* New Badge */
.badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-button);
    color: var(--color-white);
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Cast Grid */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* ==========================================================================
   9. Sections
   ========================================================================== */

/* Members Section */
.section-members {
    background: var(--color-white);
    border: 1px solid var(--color-soft-gold);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin: var(--section-gap) auto;
    max-width: 800px;
}

.section-members h2 {
    font-size: 26px;
    color: var(--color-soft-gold);
    margin-bottom: 24px;
}

.section-members p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 2;
}

/* Concept Section */
.section-concept {
    text-align: center;
    padding: var(--section-gap) 0;
}

.section-concept h2 {
    font-size: 36px;
    color: var(--color-soft-gold);
    margin-bottom: 40px;
}

.section-concept p {
    font-size: 18px;
    line-height: 2.2;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(226, 201, 140, 0.3);
    padding: 32px 0;
}

.faq-question {
    font-size: 18px;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.faq-question::before {
    content: 'Q';
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-soft-gold);
    flex-shrink: 0;
}

.faq-answer {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.9;
    padding-left: 36px;
}

/* CTA Section */
.section-cta {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-sakura-pale) 50%, var(--color-white) 100%);
}

.section-cta p {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 2;
}

/* ==========================================================================
   10. Forms
   ========================================================================== */

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 1px solid rgba(226, 201, 140, 0.5);
    border-radius: 8px;
    background: var(--color-white);
    transition: var(--transition-default);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-soft-gold);
    box-shadow: 0 0 0 3px rgba(226, 201, 140, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-light);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
    background: var(--color-white);
    padding: 80px 0 40px;
    border-top: 0.3px solid rgba(226, 201, 140, 0.5);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-brand {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.2em;
    color: var(--color-text-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 13px;
    color: var(--color-text-footer);
    letter-spacing: 0.05em;
}

.footer-nav a:hover {
    color: var(--color-soft-gold);
}

.footer-contact {
    text-align: center;
    margin-bottom: 40px;
}

.footer-phone {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-soft-gold);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.footer-hours {
    font-size: 13px;
    color: var(--color-text-light);
}

.footer-cta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-light);
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   12. Auth Page
   ========================================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-content {
    max-width: 500px;
    padding: 40px;
}

.auth-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 0.25em;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.auth-notice {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.auth-enter-btn {
    display: inline-block;
    background: var(--gradient-button);
    color: var(--color-white);
    font-size: 16px;
    letter-spacing: 0.15em;
    padding: 20px 80px;
    border-radius: 30px;
    text-transform: uppercase;
    transition: var(--transition-default);
}

.auth-enter-btn:hover {
    filter: brightness(1.05);
    color: var(--color-white);
}

/* ==========================================================================
   13. Single Cast Page
   ========================================================================== */

.cast-single {
    padding-top: 100px;
}

.cast-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.cast-gallery {
    display: grid;
    gap: 16px;
}

.cast-gallery-main img {
    width: 100%;
    border-radius: 12px;
}

.cast-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.cast-gallery-thumbs img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-default);
}

.cast-gallery-thumbs img:hover,
.cast-gallery-thumbs img.active {
    opacity: 1;
}

.cast-info h1 {
    font-size: 32px;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.cast-spec-table {
    margin: 32px 0;
}

.cast-spec-row {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 0;
}

.cast-spec-label {
    width: 100px;
    font-size: 14px;
    color: var(--color-text-light);
}

.cast-spec-value {
    font-size: 16px;
    color: var(--color-text-primary);
}

.cast-comment {
    font-size: 16px;
    line-height: 2;
    color: var(--color-text-secondary);
    padding: 24px;
    background: rgba(248, 214, 218, 0.1);
    border-radius: 12px;
}

/* Related Casts */
.related-casts {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.02);
}

.related-casts h2 {
    text-align: center;
    font-size: 24px;
    color: var(--color-soft-gold);
    margin-bottom: 40px;
}

/* ==========================================================================
   14. LINE QR Section
   ========================================================================== */

.line-section {
    text-align: center;
    padding: 60px 0;
}

.line-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
}

.line-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.line-id {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ==========================================================================
   15. 404 Page
   ========================================================================== */

.page-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px;
    background: var(--gradient-hero);
}

.page-404-code {
    font-family: var(--font-heading);
    font-size: 120px;
    color: var(--color-soft-gold);
    line-height: 1;
    margin-bottom: 24px;
}

.page-404-title {
    font-size: 24px;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.page-404-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

/* ==========================================================================
   16. Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gold { color: var(--color-soft-gold); }
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-light { color: var(--color-text-light); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

/* ==========================================================================
   17. Responsive - Tablet
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --section-gap: 100px;
        --container-padding: 30px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .cast-main {
        gap: 40px;
    }
}

/* ==========================================================================
   18. Responsive - Mobile
   ========================================================================== */

@media (max-width: 767px) {
    :root {
        --fs-h1: 28px;
        --fs-h2: 24px;
        --fs-h3: 20px;
        --fs-body: 15px;
        --fs-small: 11px;
        --section-gap: 80px;
        --container-padding: 20px;
    }
    
    /* Header */
    .main-nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    /* Hero */
    .hero {
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-text {
        font-size: 15px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    /* Cast Grid */
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Cast Single */
    .cast-main {
        grid-template-columns: 1fr;
    }
    
    /* Buttons */
    .btn {
        padding: 16px 36px;
        font-size: 14px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 16px;
    }
    
    /* Footer */
    .footer-nav {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-cta {
        flex-direction: column;
    }
    
    /* Section Members */
    .section-members {
        padding: 40px 24px;
    }
    
    .section-members h2 {
        font-size: 22px;
    }
    
    /* 404 */
    .page-404-code {
        font-size: 80px;
    }
}

/* ==========================================================================
   19. Snow Monkey Override
   ========================================================================== */

/* Snow Monkey defaults override */
.l-contents {
    padding: 0 !important;
}

.c-entry__content {
    padding: 0 !important;
}

.p-entry-header {
    display: none !important;
}

.l-header {
    display: none !important;
}

.l-footer {
    display: none !important;
}

/* Admin bar adjustment */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
