/* サヨナラ・モンスター スタイルシート v1.0.1 */

/* 基本レイアウト */
#sm-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", sans-serif;
    color: #333 !important;
}

/* ヘッダー */
.sm-header {
    background: linear-gradient(135deg, #FDD1E2 0%, #fbc5d5 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sm-header h1 {
    margin: 0 0 10px !important;
    font-size: 2em !important;
    font-weight: bold !important;
    color: #fff !important;
}

.sm-header p {
    margin: 0 !important;
    font-size: 1.1em !important;
    color: #fff !important;
}

/* セクション見出しの修正（SWELLテーマ対応） */
.sm-section h2 {
    color: #C26C8F !important;
    border-left: 5px solid #FDD1E2 !important;
    padding-left: 15px !important;
    margin-bottom: 20px !important;
    font-size: 1.5em !important;
    background: transparent !important;
    font-weight: bold !important;
}

/* ナビゲーション */
.sm-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.sm-nav-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #FDD1E2;
    background: #fff;
    color: #333 !important;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.sm-nav-btn:hover {
    background: #FDD1E2;
    color: #fff !important;
}

.sm-nav-btn.active {
    background: #FDD1E2;
    color: #fff !important;
}

/* ページ */
.sm-page {
    display: none;
}

.sm-page.active {
    display: block;
}

/* セクション */
.sm-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 通知ボックス */
.sm-notice {
    background: #fff8fa;
    border: 1px solid #FDD1E2;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.sm-notice h3 {
    color: #C26C8F !important;
    margin-top: 0 !important;
    font-size: 1.3em !important;
}

.sm-notice h4 {
    color: #C26C8F !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

.sm-notice ol {
    margin: 10px 0 0 20px;
    color: #333;
}

.sm-notice ol li {
    margin-bottom: 5px;
    color: #333;
}

.sm-important {
    font-size: 1.1em;
    line-height: 1.8;
    margin: 15px 0;
}

.sm-note {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

/* 質問 */
.sm-question {
    margin-bottom: 25px;
}

.sm-question-title {
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.1em;
    line-height: 1.5;
}

.sm-tooltip {
    background: #666;
    color: #fff !important;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    cursor: help;
    white-space: nowrap;
}

/* フォーム要素 */
#sm-container textarea,
#sm-container input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    color: #333 !important;
    background: #fff !important;
}

#sm-container textarea:focus,
#sm-container input[type="text"]:focus {
    outline: none;
    border-color: #FDD1E2;
    box-shadow: 0 0 0 2px rgba(253, 209, 226, 0.2);
}

/* ラジオボタン */
.sm-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.sm-radio-item {
    display: flex;
    align-items: center;
}

.sm-radio-item input[type="radio"] {
    margin-right: 5px;
}

.sm-radio-item label {
    color: #333 !important;
    cursor: pointer;
}

/* ボタン */
.sm-button-container {
    text-align: center;
    margin-top: 30px;
}

.sm-btn-primary {
    background: #FDD1E2;
    color: #fff !important;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.sm-btn-primary:hover {
    background: #fbc5d5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.sm-btn-secondary {
    background: #666;
    color: #fff !important;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.sm-btn-secondary:hover {
    background: #555;
}

/* 成功メッセージ */
.sm-notice-after-save {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
    text-align: center;
}

.sm-success-message {
    color: #2e7d32;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* まとめプレビュー */
.sm-summary-preview {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

/* 検索ボックス */
.sm-search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.sm-search input {
    flex: 1;
}

.sm-search button {
    padding: 10px 30px;
    background: #FDD1E2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* エントリー情報 */
.sm-entries-info {
    background: #f0f0f0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.sm-entries-info p {
    margin: 0;
    color: #666;
}

/* エントリーリスト */
.sm-entries-list {
    min-height: 200px;
}

.sm-entry {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid #FDD1E2;
}

.sm-entry:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.sm-entry-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.sm-entry-meta {
    font-size: 12px;
    color: #666;
}

.sm-entry-meta span {
    margin-right: 15px;
}

/* モーダル */
.sm-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.sm-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
}

.sm-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.sm-modal-close:hover,
.sm-modal-close:focus {
    color: #000;
}

/* マーカー */
.marker-pink {
    background: linear-gradient(transparent 60%, #ffc1e0 60%);
    font-weight: bold;
    padding: 2px 0;
}

.marker-yellow {
    background: linear-gradient(transparent 60%, #fff799 60%);
    font-weight: bold;
    padding: 2px 0;
}

.marker-green {
    background: linear-gradient(transparent 60%, #bfff7f 60%);
    font-weight: bold;
    padding: 2px 0;
}

.marker-blue {
    background: linear-gradient(transparent 60%, #c1e0ff 60%);
    font-weight: bold;
    padding: 2px 0;
}

/* 読み込み中 */
.sm-loading {
    text-align: center;
    padding: 50px;
    color: #999;
}

/* 非会員向けメッセージ */
.sm-non-member-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.sm-non-member-box {
    background: linear-gradient(135deg, #fff 0%, #fef5f8 100%);
    border: 2px solid #FDD1E2;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.sm-non-member-title {
    color: #C26C8F;
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: bold;
}

.sm-icon {
    font-size: 1.5em;
    margin-right: 10px;
}

.sm-lead {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #333;
}

.sm-highlight {
    color: #C26C8F;
    font-weight: bold;
    font-size: 1.1em;
}

.sm-features,
.sm-benefits {
    text-align: left;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.sm-features h3,
.sm-benefits h3 {
    color: #C26C8F;
    margin-bottom: 20px;
    text-align: center;
}

.sm-features ul,
.sm-benefits ul {
    list-style: none;
    padding: 0;
}

.sm-features li,
.sm-benefits li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.sm-features li:before,
.sm-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2em;
}

.sm-testimonial {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-style: italic;
}

.sm-quote {
    font-size: 1.1em;
    line-height: 1.8;
    color: #666;
}

.sm-cta {
    margin-top: 40px;
}

.sm-cta-text {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

.sm-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #FDD1E2 0%, #fbc5d5 100%);
    color: #fff !important;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.sm-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    color: #fff !important;
}

.sm-arrow {
    margin-left: 10px;
}

.sm-guarantee {
    margin-top: 30px;
    color: #666;
    font-size: 1.1em;
    line-height: 1.8;
}

.sm-check {
    color: #4CAF50;
    font-weight: bold;
    margin-right: 5px;
}

/* 管理画面のテーブル調整 */
.emotion-negative {
    background-color: #fff0f0;
}

.emotion-positive {
    background-color: #f0fff0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #sm-container {
        padding: 10px;
    }
    
    .sm-header {
        padding: 20px;
    }
    
    .sm-header h1 {
        font-size: 1.5em !important;
    }
    
    .sm-section {
        padding: 20px;
    }
    
    .sm-nav {
        flex-direction: column;
    }
    
    .sm-radio-group {
        flex-direction: column;
    }
    
    .sm-non-member-box {
        padding: 30px 20px;
    }
    
    .sm-cta-button {
        padding: 15px 30px;
        font-size: 1em;
    }
}

/* 印刷対応 */
@media print {
    .sm-nav,
    .sm-button-container,
    .sm-search {
        display: none;
    }
}