/* fashion.css - エウリスのクローゼット専用スタイル（キッチンの水色版背景） */

/* fashion.css - エウリスのクローゼット専用スタイル（キッチンの水色版背景） */

body {
    background-color: #cce7fa !important; /* 背景を少し濃い水色に変更 */
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 46px, rgba(50, 130, 220, 0.1) 46px, rgba(50, 130, 220, 0.1) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 46px, rgba(50, 130, 220, 0.1) 46px, rgba(50, 130, 220, 0.1) 50px),
        repeating-linear-gradient(0deg, rgba(50, 130, 220, 0.05), rgba(50, 130, 220, 0.05) 15px, transparent 15px, transparent 50px),
        repeating-linear-gradient(90deg, rgba(50, 130, 220, 0.05), rgba(50, 130, 220, 0.05) 15px, transparent 15px, transparent 50px) !important;
    background-size: 50px 50px !important;
    color: #333 !important; /* テキストを濃い色にして視認性確保 */
}

/* ライトテーマ向けのベースカラー上書き */
:root {
    --text-color: #333;
    --text-muted: #666;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --primary-color: #64b5f6; /* 水色のアクセント */
    --accent-gold: #1565c0; /* タイトル等、暗めの青 */
}

/* 一部の暗すぎる要素を白背景ベースに調整 */
.post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(100, 180, 255, 0.2);
    color: var(--text-color);
}
.card-header, .card-footer {
    border-color: rgba(0,0,0,0.1) !important;
}

.form-container, .view-content, .admin-list, .login-box {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 15px rgba(100, 180, 255, 0.2) !important;
    color: var(--text-color) !important;
}

.form-control, .post-submit-btn, .like-btn {
    border-color: rgba(100, 180, 255, 0.4) !important;
}
.form-control {
    background: #fff !important;
    color: #333 !important;
}
.form-group label {
    color: #333 !important;
}
.upload-area {
    border-color: #aaa !important;
    background: rgba(255,255,255,0.5) !important;
    color: #555 !important;
}

.fashion-header p.page-subtitle {
    color: #555 !important;
}

/* 管理画面等のテーブルヘッダー */
.admin-list th {
    background: rgba(100, 180, 255, 0.2) !important;
    color: #1565c0 !important;
}
.admin-list td {
    border-color: rgba(0,0,0,0.05) !important;
}
.tab {
    background: rgba(255,255,255,0.7) !important;
    color: #333 !important;
}
.tab.active {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* 装備カードの色 */
.equip-card {
    background: rgba(255,255,255,0.6) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
}
.eq-header { color: #1565c0 !important; border-bottom-color: rgba(0,0,0,0.1) !important; }

/* 可愛いタイトルの装飾（ステッチ風リボン） */
.fashion-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}
.page-title {
    display: inline-block;
    color: #fff !important;
    background: #64b5f6;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    border: 3px dashed #fff;
    box-shadow: 0 4px 15px rgba(100, 180, 255, 0.5), inset 0 0 0 4px #64b5f6;
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.2;
    word-break: keep-all; /* 単語の途中で改行させない */
    overflow-wrap: anywhere;
}

/* タイトルの下に配置する大きめのスクショ画像 */
.title-eulis-img-large {
    max-width: 100%;
    height: auto;
    width: 200px; /* ある程度大きく表示 */
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: bounce-eulis 3.5s ease-in-out infinite; /* ちょっと浮かせて可愛く */
}

@keyframes bounce-eulis {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* 320px などの狭い画面でも不自然な改行を防ぐ調整 */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.4rem;
        padding: 0.6rem 1.5rem;
        border-radius: 25px;
    }
    .title-eulis-img-large {
        width: 160px;
    }
}
@media (max-width: 360px) {
    .page-title {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
    .title-eulis-img-large {
        width: 140px;
    }
}

.page-subtitle {
    font-weight: bold;
    color: #1565c0 !important;
    background: rgba(255,255,255,0.7);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
}

/* ページ内のアイコン等 */
h1.page-title i { color: #fff !important; }

/* スペシャルサンクスエリア */
.special-thanks-box {
    margin: 3rem auto 1rem;
    max-width: 800px;
    background: rgba(255,255,255,0.8);
    border: 2px solid #64b5f6;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(100, 180, 255, 0.2);
    color: #333;
    font-weight: bold;
}
.special-thanks-box a {
    color: #1565c0;
    text-decoration: underline;
}

/* ── リアクションボタン (view.php用) ── */
.like-area {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}
.reaction-btn {
    background: rgba(0, 0, 0, 0.05); /* 白背景の上で見えるように薄い黒 */
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--accent-gold); /* 濃い青文字 */
    padding: 0.8rem 0.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.reaction-btn:hover { 
    background: rgba(0, 0, 0, 0.1); 
    transform: translateY(-3px); 
    border-color: var(--primary-color); 
    box-shadow: 0 6px 15px rgba(100, 180, 255, 0.2);
}
.reaction-btn.reacted { 
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.2), rgba(21, 101, 192, 0.1));
    border-color: var(--accent-gold); 
    color: var(--accent-gold); 
}
.reaction-btn .count { 
    font-size: 1rem; 
    font-weight: 900; 
}
.reaction-btn .icon { 
    font-size: 1.4rem; 
}

@media (max-width: 480px) {
    .like-area { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 0.4rem; 
        margin-top: 1rem;
    }
    .reaction-btn { 
        padding: 0.4rem 0.2rem; 
        font-size: 0.75rem; 
        border-radius: 8px;
        gap: 2px;
    }
    .reaction-btn .icon { font-size: 1.1rem; }
}

@media (max-width: 350px) {
    .like-area { gap: 0.25rem; }
    .reaction-btn { font-size: 0.7rem; }
    .reaction-btn .icon { font-size: 1rem; }
}
