/* IDopinio Custom Theme Styles - Minimal Clean Design */

/* フォント設定 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
    background: #ffffff;
    color: #111827;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* メインコンテナ */
#main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* 検索セクション */
#main > div:first-child {
    background: #f9fafb;
    border-radius: 12px;
    padding: 48px 32px !important;
    margin-bottom: 48px;
}

#main h1 {
    font-size: 32px !important;
    font-weight: 700;
    color: #111827;
    margin-bottom: 32px !important;
    letter-spacing: -0.02em;
}

/* 検索フォーム */
#main form {
    margin-bottom: 16px !important;
}

#main input[type="text"] {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    background: white;
    transition: all 0.2s;
}

#main input[type="text"]:focus {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#main input[type="submit"] {
    background: #111827 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#main input[type="submit"]:hover {
    background: #1f2937 !important;
}

/* ヒントテキスト */
#main form + div {
    color: #6b7280 !important;
    font-size: 13px !important;
}

/* コンテンツボックス共通 */
#main td > div {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.2s;
    background: white;
}

#main td > div:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* ボックスヘッダー */
#main td > div > div:first-child {
    background: white !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 16px 20px !important;
    font-weight: 600 !important;
    font-size: 14px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ボックスコンテンツ */
#main td > div > div:last-child {
    padding: 20px !important;
    background: white;
}

/* リンク */
#main a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

#main a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* バッジ・カウント */
#main span[style*="background: #f0f0f0"] {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    color: #6b7280 !important;
}

/* レビュー項目 */
.review-item {
    border-bottom: 1px solid #f3f4f6;
    padding: 12px 0;
}

.review-item:last-child {
    border-bottom: none;
}

/* テーブルの余白調整 */
#main table {
    border-spacing: 24px !important;
}

#main td {
    padding: 0 !important;
}

/* 情報セクション（免責事項など） */
#main > div[style*="background: #fffef0"] {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    margin-top: 48px !important;
}

/* 単一ページのスタイル調整 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.site-main {
    background: white;
}

/* SNS IDページのサイドバー */
#main td[style*="width: 250px"] > div {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden;
}

#main td[style*="width: 250px"] > div > div:first-child {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
}

/* SNS IDページのヘッダー */
#main div[style*="background: #f9f9f9"] {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* SNS IDページのレビューセクションヘッダー */
#main div[style*="background: #f0f0f0"] {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 16px 20px !important;
    font-weight: 600 !important;
}

/* SNS IDページのフィルターセクション */
#main div[style*="background: #f9f9f9"][style*="border-top: none"] {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-top: none !important;
    padding: 16px !important;
}

/* SNS IDページのレビューリスト */
#main #reviews-list {
    background: white !important;
    padding: 20px !important;
}

/* SNS IDページのメインコンテンツ */
#main div[style*="background: #fff"][style*="border: 1px solid #ddd"] {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 32px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* レビューフォーム */
#review-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

#review-form h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

/* レビューアイテム */
.review-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 評価バー */
.rating-bar {
    background: #f3f4f6 !important;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
}

/* 統計情報 */
.sns-id-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.stat-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 20px;
    flex: 1;
    text-align: center;
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.stat-item .stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ボタン共通スタイル */
button,
.button,
input[type="button"] {
    background: #111827 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover,
.button:hover,
input[type="button"]:hover {
    background: #1f2937 !important;
}

/* 通報ボタンのスタイルをオーバーライド */
button.report-review {
    background: transparent !important;
    border: none !important;
    color: #111827 !important;
    padding: 2px !important;
    opacity: 0.4;
}

button.report-review:hover {
    background: transparent !important;
    opacity: 1;
}

/* フォーム要素 */
input[type="text"],
input[type="email"],
textarea,
select {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    background: white;
    transition: all 0.2s;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ヘッダー調整 */
.site-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    margin-bottom: 0;
}

/* フッター調整 */
.site-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 32px 0;
    margin-top: 48px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* タブ・ナビゲーション */
.tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.tab-nav a {
    padding: 12px 20px;
    color: #6b7280;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-nav a:hover {
    color: #111827;
    text-decoration: none;
}

.tab-nav a.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* アラート・通知 */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border: 1px solid #60a5fa;
    color: #1e40af;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #34d399;
    color: #065f46;
}

/* 画像ギャラリー */
.review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.review-images img {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* ページネーション */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f9fafb;
    text-decoration: none;
}

.pagination .current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* 削除依頼ページ */
.deletion-request-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.deletion-criteria {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.deletion-criteria ul {
    margin: 12px 0 0 20px;
}

.deletion-criteria li {
    margin: 8px 0;
    color: #4b5563;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #main {
        padding: 20px 16px;
    }

    #main > div:first-child {
        padding: 32px 20px !important;
    }

    #main h1 {
        font-size: 24px !important;
    }

    #main table {
        display: block;
    }

    #main tr {
        display: block;
    }

    #main td {
        display: block;
        width: 100% !important;
        margin-bottom: 20px;
    }

    #main input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px;
    }

    #main input[type="submit"] {
        width: 100%;
        margin-left: 0 !important;
    }

    .container {
        padding: 20px 16px;
    }
}