/* ============================================
   VOODOO REVERSAL PRO - Professional Styling
   ============================================ */

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

/* ===== ログイン画面スタイル ===== */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.5s;
}

.auth-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #8b00ff;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 0 40px rgba(139, 0, 255, 0.5);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-size: 4em;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

.auth-header h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #8b00ff, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 0.9em;
    color: #999;
}

.auth-form {
    animation: fadeIn 0.5s;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #ff6b9d;
    font-size: 1.5em;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 0, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1em;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #8b00ff;
    box-shadow: 0 0 15px rgba(139, 0, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8b00ff, #ff6b9d);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 0, 255, 0.4);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 255, 0.6);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 0.9em;
}

.auth-switch a {
    color: #ff6b9d;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.auth-switch a:hover {
    color: #8b00ff;
    text-decoration: underline;
}

/* ヘッダー右側（ユーザー情報） */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(139, 0, 255, 0.1);
    border: 1px solid #8b00ff;
    border-radius: 20px;
}

.user-name {
    color: #ff6b9d;
    font-weight: 500;
    font-size: 0.9em;
}

.logout-btn {
    background: rgba(255, 107, 157, 0.2);
    border: 1px solid #ff6b9d;
    padding: 6px 12px;
    border-radius: 15px;
    color: #ffffff;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 107, 157, 0.3);
    transform: scale(1.05);
}

:root {
    --primary-purple: #8b00ff;
    --primary-pink: #ff6b9d;
    --dark-bg: #0a0015;
    --card-bg: rgba(20, 0, 40, 0.8);
    --border-glow: rgba(139, 0, 255, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #c96dd8;
    --success-green: #00ff88;
    --warning-red: #ff0066;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0015 0%, #1a0033 50%, #0a0015 100%);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* LINEアプリ対応 */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

/* 星空エフェクト */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #eee, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite;
    opacity: 0.5;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.2; }
}

/* 宇宙背景 */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(139, 0, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ローディング画面 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* アニメーションを削除してJS制御のみに */
}

.loading-content {
    text-align: center;
}

.pentagram {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    border: 3px solid var(--primary-purple);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: rotatePentagram 2s linear infinite;
    box-shadow: 0 0 30px var(--border-glow);
}

@keyframes rotatePentagram {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.loading-progress {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
    /* アニメーション削除 - 即座に100%表示 */
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-symbol {
    font-size: 4em;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-text h1 {
    font-size: 2em;
    color: var(--primary-pink);
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.8);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-style: italic;
}

/* 月齢インジケーター */
.moon-phase-indicator {
    text-align: center;
    padding: 15px;
    background: var(--card-bg);
    border: 2px solid var(--primary-purple);
    border-radius: 10px;
    min-width: 150px;
}

.moon-display {
    font-size: 3em;
    margin-bottom: 10px;
}

.moon-label {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* タブナビゲーション */
.tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 2px solid var(--primary-purple);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.tab-btn:hover {
    background: rgba(139, 0, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--border-glow);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border-color: var(--primary-pink);
    box-shadow: 0 5px 20px var(--border-glow);
}

/* タブコンテンツ */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

/* 占星術チャート */
.astrology-chart {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

#astrologyCanvas {
    border-radius: 50%;
    box-shadow: 0 0 30px var(--border-glow);
}

.chart-info p {
    margin: 10px 0;
    font-size: 1.1em;
}

.chart-info span {
    color: var(--primary-pink);
    font-weight: bold;
}

/* 儀式コンテナ */
.ritual-container {
    background: var(--card-bg);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px var(--border-glow);
    position: relative;
}

/* 高度なブードゥー人形 */
.voodoo-doll-advanced {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    height: 200px;
}

.doll-shadow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 10px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), transparent);
    animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% { width: 80px; opacity: 0.5; }
    50% { width: 100px; opacity: 0.8; }
}

.voodoo-doll-advanced .doll-body {
    display: inline-block;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.doll-head {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b4513, #654321);
    border-radius: 50%;
    margin: 0 auto 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.eye {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    top: 20px;
}

.eye.left { left: 12px; }
.eye.right { right: 12px; }

.mouth {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #000;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}

.doll-torso {
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #654321, #8b4513);
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.stitches::before,
.stitches::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 60px;
    background: repeating-linear-gradient(
        to bottom,
        #000 0px,
        #000 5px,
        transparent 5px,
        transparent 10px
    );
    top: 10px;
}

.stitches::before { left: 20px; }
.stitches::after { right: 20px; }

.doll-arm {
    position: absolute;
    width: 18px;
    height: 55px;
    background: linear-gradient(135deg, #8b4513, #654321);
    border-radius: 9px;
    top: 58px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.doll-arm.left {
    left: -15px;
    transform: rotate(-25deg);
}

.doll-arm.right {
    right: -15px;
    transform: rotate(25deg);
}

.doll-leg {
    position: absolute;
    width: 18px;
    height: 45px;
    background: linear-gradient(135deg, #654321, #8b4513);
    border-radius: 9px;
    bottom: -40px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.doll-leg.left { left: 12px; }
.doll-leg.right { right: 12px; }

.pin {
    position: absolute;
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, #silver, #gray);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: pinGlow 1s ease-in-out infinite;
}

.pin1 { top: 70px; left: 20px; transform: rotate(-15deg); }
.pin2 { top: 80px; left: 35px; transform: rotate(5deg); }
.pin3 { top: 75px; right: 25px; transform: rotate(15deg); }

@keyframes pinGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.8); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 0, 1); }
}

/* フォームの高度なスタイル */
.curse-form-advanced {
    margin-top: 30px;
}

/* ステップインジケーター */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(139, 0, 255, 0.3);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid rgba(139, 0, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border-color: var(--primary-pink);
    box-shadow: 0 0 20px var(--border-glow);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.step.active .step-label {
    color: var(--primary-pink);
    font-weight: bold;
}

/* フォームステップ */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* フォームグループ */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-pink);
    font-size: 1em;
    font-weight: bold;
}

.info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--primary-purple);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 0.8em;
    cursor: help;
    margin-left: 5px;
}

input[type="text"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(139, 0, 255, 0.1);
    border: 2px solid var(--primary-purple);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1em;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 15px var(--border-glow);
}

.field-hint {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 0.85em;
}

/* 強度スライダー */
.intensity-slider-container {
    position: relative;
    padding: 10px 0;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: rgba(139, 0, 255, 0.2);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--border-glow);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--border-glow);
    border: none;
}

.intensity-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.85em;
    color: #999;
}

.intensity-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background: rgba(139, 0, 255, 0.1);
    border-radius: 8px;
}

#intensityValue {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-pink);
}

.intensity-desc {
    color: var(--text-secondary);
    font-style: italic;
}

/* 儀式カード */
.ritual-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.ritual-card {
    position: relative;
}

.ritual-card input[type="radio"] {
    display: none;
}

.ritual-card label {
    display: block;
    padding: 20px;
    background: rgba(139, 0, 255, 0.1);
    border: 2px solid var(--primary-purple);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.ritual-card label:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--border-glow);
}

.ritual-card input[type="radio"]:checked + label {
    background: rgba(139, 0, 255, 0.3);
    border-color: var(--primary-pink);
    box-shadow: 0 0 20px var(--border-glow);
}

.ritual-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.ritual-name {
    font-size: 1em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.ritual-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.ritual-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
}

.ritual-tag.recommended {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
}

.ritual-tag.fast {
    background: linear-gradient(135deg, #ff6b00, #ff9900);
    color: #fff;
}

.ritual-tag.durable {
    background: linear-gradient(135deg, #0066ff, #0099ff);
    color: #fff;
}

/* ボタングループ */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.prev-btn,
.next-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--primary-purple);
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.prev-btn {
    background: rgba(139, 0, 255, 0.1);
    color: var(--text-primary);
}

.next-btn {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: var(--text-primary);
}

.prev-btn:hover,
.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--border-glow);
}

/* 確認ボックス */
.confirmation-box {
    background: rgba(139, 0, 255, 0.1);
    border: 2px solid var(--primary-purple);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.confirmation-box h3 {
    color: var(--primary-pink);
    margin-bottom: 15px;
}

#confirmationDetails {
    line-height: 1.8;
}

#confirmationDetails p {
    margin: 8px 0;
}

/* 警告ボックス */
.warning-box {
    background: rgba(255, 0, 102, 0.1);
    border: 2px solid var(--warning-red);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.warning-box h4 {
    color: var(--warning-red);
    margin-bottom: 15px;
}

.warning-box ul {
    margin-left: 20px;
    line-height: 1.8;
}

.agree-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-weight: normal;
}

.agree-checkbox input[type="checkbox"] {
    width: auto;
}

/* 高度な儀式ボタン */
.ritual-button-advanced {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ritual-button-advanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--border-glow);
}

.ritual-button-advanced:active {
    transform: translateY(0);
}

/* 結果表示 */
.result-advanced {
    margin-top: 30px;
    padding: 30px;
    background: rgba(139, 0, 255, 0.2);
    border: 2px solid var(--primary-pink);
    border-radius: 15px;
    display: none;
    animation: slideIn 0.5s ease-out;
}

.result-advanced.show {
    display: block;
}

.result-advanced h3 {
    color: var(--primary-pink);
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

.result-advanced p {
    margin: 12px 0;
    line-height: 1.8;
}

.result-advanced hr {
    border: 1px solid var(--primary-pink);
    margin: 20px 0;
}

/* 履歴 */
.history-container {
    background: var(--card-bg);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    padding: 30px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.export-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--success-green), #00cc66);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.5);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background: rgba(139, 0, 255, 0.1);
    border: 2px solid var(--primary-purple);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}

.history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--border-glow);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.history-item-title {
    font-weight: bold;
    color: var(--primary-pink);
    font-size: 1.1em;
}

.history-item-date {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.history-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
    font-size: 0.9em;
}

/* ガイド */
.guide-container {
    background: var(--card-bg);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    padding: 30px;
}

.guide-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(139, 0, 255, 0.1);
    border-radius: 10px;
}

.guide-section h3 {
    color: var(--primary-pink);
    margin-bottom: 15px;
}

.guide-section p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.moon-guide,
.curse-types-guide {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.moon-phase-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.moon-icon {
    font-size: 3em;
    min-width: 60px;
}

.moon-info h4 {
    color: var(--primary-pink);
    margin-bottom: 8px;
}

details {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
}

details summary {
    font-weight: bold;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

details[open] summary {
    margin-bottom: 15px;
}

.tips-list {
    list-style: none;
    padding-left: 0;
}

.tips-list li {
    padding: 10px;
    margin: 8px 0;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--primary-pink);
    border-radius: 5px;
}

/* 設定 */
.settings-container {
    background: var(--card-bg);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    padding: 30px;
}

.setting-group {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(139, 0, 255, 0.1);
    border-radius: 10px;
}

.setting-group h3 {
    color: var(--primary-pink);
    margin-bottom: 15px;
}

.setting-group label {
    display: block;
    margin: 10px 0;
    font-weight: normal;
    font-size: 1em;
}

.setting-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.settings-btn {
    padding: 10px 20px;
    margin: 5px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--border-glow);
}

.settings-btn.danger {
    background: linear-gradient(135deg, var(--warning-red), #cc0044);
}

/* 統計 */
.stats-section-advanced {
    margin-top: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(139, 0, 255, 0.1);
    border: 2px solid var(--primary-purple);
    border-radius: 10px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--border-glow);
}

.stat-icon {
    font-size: 2.5em;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-pink);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* フッター */
footer {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 0.9em;
    margin-top: 50px;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--primary-pink);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    /* ログイン画面のモバイル対応 */
    .auth-container {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .auth-logo {
        font-size: 3em;
    }
    
    .auth-header h1 {
        font-size: 1.5em;
    }
    
    .auth-form h2 {
        font-size: 1.3em;
    }
    
    /* ヘッダーのモバイル対応 */
    .header-right {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-info {
        font-size: 0.85em;
        padding: 6px 12px;
    }
    
    .user-name {
        font-size: 0.85em;
    }
    
    .logout-btn {
        padding: 5px 10px;
        font-size: 0.8em;
    }
    
    .logo-text h1 {
        font-size: 1.5em;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .ritual-options {
        grid-template-columns: 1fr;
    }
    
    .astrology-chart {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
}

/* 特殊エフェクト */
.ritual-active {
    animation: ritualPulse 1s ease-in-out infinite;
}

@keyframes ritualPulse {
    0%, 100% {
        box-shadow: 0 0 30px var(--border-glow);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 107, 157, 0.8);
    }
}
