@charset "UTF-8";

/* === Omajinai Omikuji Styles === */
:root {
    --oma-red: #c92a2a;
    --oma-pink: #ff8da1;
    --oma-pink-bg: #fff0f5;
    --oma-paper-bg: #fdfaf6;
    --oma-text: #333;
    --oma-gold: #d4af37;
    --oma-ng-bg: #fff5f5;
    --oma-ng-text: #d32f2f;
}

.oma-wrap {
    max-width: 800px;
    margin: 20px auto;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    color: var(--oma-text);
}

/* ツール部分 */
.oma-tool-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
}

.oma-h2 { font-size: 1.3em; margin: 0 0 20px; font-weight: bold; letter-spacing: 0.05em; }

.oma-tabs { display: flex; gap: 20px; flex-wrap: wrap; text-align: left; }
.oma-tab { flex: 1; min-width: 280px; padding: 20px; border-radius: 10px; border: 1px solid #eee; background: #fafafa; transition: .3s; }
.oma-tab:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.oma-tab.love { background: #fffafb; border-color: #ffeef0; }

.oma-tab-title { font-weight: bold; margin-bottom: 15px; border-bottom: 2px solid #ddd; display: inline-block; padding-bottom: 5px; }
.oma-tab.love .oma-tab-title { border-color: var(--oma-pink); color: #d65d75; }

.oma-btn { display: block; width: 100%; border: none; padding: 14px; border-radius: 50px; font-weight: bold; color: #fff; cursor: pointer; font-size: 1em; transition: opacity .2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.oma-btn.gen { background: var(--oma-red); }
.oma-btn.love { background: var(--oma-pink); }
.oma-btn:hover { opacity: 0.9; transform: translateY(1px); }

.oma-select-row { display: flex; gap: 10px; margin-bottom: 15px; }
.oma-select-wrap { flex: 1; }
.oma-select-label { font-size: 0.85em; color: #888; margin-bottom: 5px; }
.oma-select { width: 100%; padding: 8px; border-radius: 6px; border: 1px solid #ddd; background: #fff; font-family: inherit; }

/* 結果表示部分 */
.oma-result-wrapper { margin-bottom: 40px; animation: omaSlideUp 0.8s ease-out; }
@keyframes omaSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.oma-paper-strip {
    background: var(--oma-paper-bg); border: 1px solid #e0d8c3;
    background-image: radial-gradient(#e6dec8 1px, transparent 1px); background-size: 24px 24px;
    padding: 30px; border-radius: 4px; box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex; gap: 30px; position: relative; overflow: hidden;
}
.oma-paper-strip::before {
    content: ""; display: block; width: 100%; height: 6px;
    background: repeating-linear-gradient(45deg, #eee, #eee 10px, #fff 10px, #fff 20px);
    position: absolute; top: 0; left: 0; opacity: 0.5;
}
.oma-theme-love .oma-paper-strip { border-color: #ffd1dc; background-image: radial-gradient(#fceef0 1px, transparent 1px); }

/* 縦書きエリア */
.oma-vertical-area {
    writing-mode: vertical-rl; text-orientation: upright;
    min-height: 300px; border-left: 1px solid #ddd; padding-left: 20px;
    display: flex; align-items: center; justify-content: center; gap: 20px;
}
.oma-rank-vertical { font-size: 2.8em; font-weight: bold; color: var(--oma-red); letter-spacing: 0.1em; font-family: "HiraMinProN-W6", serif; }
.oma-msg-vertical { font-size: 1.1em; line-height: 2.2; color: #555; max-height: 320px; text-align: justify; }
.oma-theme-love .oma-rank-vertical { color: #e05a74; }

/* 横書き詳細エリア */
.oma-detail-area { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* 総合運：詳細リスト */
.oma-general-details {
    background: #fff; border: 1px solid #eee; padding: 15px; border-radius: 8px; margin-bottom: 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 15px;
}
.oma-detail-row { font-size: 0.9em; border-bottom: 1px dashed #eee; padding-bottom: 4px; }
.oma-detail-label { font-weight: bold; color: #999; margin-right: 8px; font-size: 0.85em; }
.oma-detail-val { color: #333; font-weight: bold; }

/* 恋愛運：ボックス */
.oma-love-advice-box { background: #fff; border: 2px dashed #ffc0cb; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.oma-love-tag { font-size: 0.8em; color: #e05a74; font-weight: bold; background: #fff0f5; display: inline-block; padding: 2px 8px; border-radius: 4px; margin-bottom: 4px; }
.oma-love-text { margin: 0; font-size: 0.95em; line-height: 1.6; }

/* NG行動 */
.oma-ng-text { margin-top: 12px; padding: 8px; background: var(--oma-ng-bg); border-left: 3px solid var(--oma-ng-text); color: #555; font-size: 0.9em; line-height: 1.5; }
.oma-ng-text strong { color: var(--oma-ng-text); }

/* ラッキーアイテム等 */
.oma-lucky-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.oma-lucky-cell { background: #fff; padding: 10px; border-radius: 8px; text-align: center; border: 1px solid #eee; }
.oma-icon { font-size: 1.4em; display: block; margin-bottom: 4px; }
.oma-label { font-size: 0.75em; color: #999; display: block; }
.oma-val { font-weight: bold; font-size: 1em; }

.oma-action-box { background: #fff; padding: 15px; border-radius: 8px; border-left: 4px solid var(--oma-gold); }
.oma-action-label { font-size: 0.85em; font-weight: bold; color: #999; margin-bottom: 4px; }
.oma-action-val { font-size: 1.1em; font-weight: bold; }

.oma-result-footer { text-align: center; margin-top: 20px; }
.oma-retry-btn { font-size: 0.9em; color: #888; text-decoration: underline; cursor: pointer; }
.oma-error { padding: 20px; background: #f8d7da; color: #721c24; border-radius: 5px; text-align: center; }

@media (max-width: 600px) {
    .oma-paper-strip { flex-direction: column; padding: 20px; }
    .oma-vertical-area { writing-mode: horizontal-tb; border-left: none; border-bottom: 1px solid #eee; padding: 0 0 20px; min-height: auto; flex-direction: column; }
    .oma-msg-vertical { text-align: left; }
    .oma-general-details { grid-template-columns: 1fr; }
}