/* ===================================
   My LookBook Okinawa - Stylesheet
   沖縄の美しい海と伝統をテーマにしたデザイン
   =================================== */

:root {
    /* 沖縄カラーパレット */
    --okinawa-turquoise: #00B4B4;
    --okinawa-turquoise-light: #4DD4D4;
    --okinawa-turquoise-dark: #008A8A;
    --okinawa-coral: #FF6B6B;
    --okinawa-coral-light: #FF9B9B;
    --okinawa-sand: #F5E6D3;
    --okinawa-white: #FFFFFF;
    --okinawa-dark: #2C3E50;
    --okinawa-gray: #7F8C8D;
    --okinawa-gold: #F39C12;

    /* 紅型パターンカラー */
    --bingata-red: #E74C3C;
    --bingata-blue: #3498DB;
    --bingata-yellow: #F1C40F;
    --bingata-green: #27AE60;

    /* フォント */
    --font-primary: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* シャドウ */
    --shadow-soft: 0 4px 20px rgba(0, 180, 180, 0.15);
    --shadow-medium: 0 8px 30px rgba(0, 180, 180, 0.2);
    --shadow-strong: 0 12px 40px rgba(0, 180, 180, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--okinawa-dark);
    line-height: 1.8;
    background-color: var(--okinawa-white);
}

/* ===================================
   ナビゲーション
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-main {
    height: 28px;
    width: auto;
}

.logo-region {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--okinawa-turquoise);
    margin-top: 3px;
    text-align: center;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--okinawa-dark);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Nav Dropdown */
.nav-dropdown { position: relative; list-style: none; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 1000;
    list-style: none;
    margin: 0;
}
.nav-dropdown-menu li { padding: 0; list-style: none; }
.nav-dropdown-menu li a {
    display: block;
    padding: 10px 20px !important;
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    transition: background 0.2s;
}
.nav-dropdown-menu li a::after { display: none !important; }
.nav-dropdown-menu li a:hover { background: rgba(255,255,255,0.1); color: #fff !important; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--okinawa-turquoise), var(--okinawa-coral));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--okinawa-turquoise);
}

.nav-links a:hover::after {
    width: 100%;
}

/* コイン表示 */
.coin-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--okinawa-turquoise), var(--okinawa-turquoise-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.coin-icon {
    font-size: 1.2rem;
}

/* ===================================
   ヒーローセクション - スライドショー
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* スライドショー背景 */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide:nth-child(1) {
    background-image: url('https://g-flux.jp/okinawa/images/churaumi.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('https://g-flux.jp/okinawa/images/shureimon.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('https://g-flux.jp/okinawa/images/sea.jpg');
}

.hero-slide:nth-child(4) {
    background-image: url('https://g-flux.jp/okinawa/images/kokusaidori.jpg');
}

.hero-slide:nth-child(5) {
    background-image: url('https://g-flux.jp/okinawa/images/hibiscus.jpg');
}

/* スライドインジケーター */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.hero-indicator.active {
    background: white;
    transform: scale(1.2);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    color: var(--okinawa-turquoise-light);
    -webkit-text-fill-color: var(--okinawa-turquoise-light);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   ボタン
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--okinawa-turquoise), var(--okinawa-turquoise-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 180, 180, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 180, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--okinawa-turquoise);
    border: 2px solid var(--okinawa-turquoise);
}

.btn-secondary:hover {
    background: var(--okinawa-turquoise);
    color: white;
}

.btn-coral {
    background: linear-gradient(135deg, var(--okinawa-coral), var(--okinawa-coral-light));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-coral:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* ===================================
   機能セクション
   =================================== */
.section {
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    color: var(--okinawa-turquoise);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--okinawa-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--okinawa-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* 機能カード */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.feature-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.feature-content {
    padding: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--okinawa-turquoise), var(--okinawa-turquoise-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--okinawa-dark);
}

.feature-description {
    font-size: 0.95rem;
    color: var(--okinawa-gray);
    line-height: 1.7;
}

.feature-tag {
    display: inline-block;
    background: var(--okinawa-sand);
    color: var(--okinawa-turquoise-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* ===================================
   着せ替えページ
   =================================== */
.tryon-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
}

.tryon-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tryon-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.tryon-main {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.upload-area {
    border: 3px dashed var(--okinawa-turquoise);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 180, 180, 0.05), rgba(255, 255, 255, 1));
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
}

.upload-area:hover {
    border-color: var(--okinawa-coral);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(255, 255, 255, 1));
}

.upload-icon {
    font-size: 3rem;
    color: var(--okinawa-turquoise);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    color: var(--okinawa-dark);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--okinawa-gray);
}

.preview-area {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--okinawa-sand);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.result-area {
    display: none;
    position: relative;
}

.result-area.active {
    display: block;
}

/* 衣装選択パネル */
.outfit-panel {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--okinawa-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.outfit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.outfit-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.outfit-item:hover,
.outfit-item.selected {
    border-color: var(--okinawa-turquoise);
    transform: scale(1.02);
}

.outfit-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.outfit-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 処理中表示 */
.processing-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.processing-overlay.active {
    display: flex;
}

.processing-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--okinawa-sand);
    border-top-color: var(--okinawa-turquoise);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-text {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--okinawa-dark);
}

.processing-subtext {
    color: var(--okinawa-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===================================
   g-flux連携セクション
   =================================== */
.gflux-section {
    background: linear-gradient(135deg, var(--okinawa-turquoise), var(--okinawa-turquoise-dark));
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.gflux-content {
    max-width: 800px;
    margin: 0 auto;
}

.gflux-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gflux-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.gflux-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gflux-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gflux-feature-icon {
    font-size: 1.5rem;
}

/* ===================================
   フッター
   =================================== */
.footer {
    background: var(--okinawa-dark);
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.footer-logo img {
    height: 24px;
    width: auto;
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--okinawa-turquoise-light);
    margin-top: 3px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===================================
   モーダル
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--okinawa-dark);
}

.modal-text {
    color: var(--okinawa-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 1024px) {
    .tryon-grid {
        grid-template-columns: 1fr;
    }

    .outfit-panel {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-indicators {
        bottom: 20px;
    }

    .hero-indicator {
        width: 8px;
        height: 8px;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gflux-features {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   ユーティリティ
   =================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* 紅型パターン背景 */
.bingata-pattern {
    position: relative;
}

.bingata-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg,
        var(--okinawa-coral) 0%,
        var(--okinawa-turquoise) 25%,
        var(--okinawa-gold) 50%,
        var(--okinawa-turquoise) 75%,
        var(--okinawa-coral) 100%);
}