/* ========================================
   AI Prompt CMS V2.4 - Stylesheet
   階層型フォルダ構造対応版: 2025-11-01
   変更点:
   - V2.0: フォント70%縮小、行間短縮、情報密度向上
   - V2.1: フォントサイズ切り替え、タイトルクリック、行全体クリック
   - V2.2: 詳細ページの背景色改善（白背景に薄いグレー背景）
   - V2.3: 左サイドバーメニュー追加
   - V2.4: 階層型フォルダ構造、多階層カテゴリ対応
   ======================================== */

/* ========================================
   基本設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px; /* 16px → 11px (約70%) */
    line-height: 1.3; /* 1.6 → 1.3 に短縮 */
    color: #333;
    background-color: #f5f5f5;
}

/* ========================================
   ヘッダー
   ======================================== */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 0; /* 20px → 12px */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* 20px → 15px */
}

header h1 {
    font-size: 17.5px; /* 25px → 17.5px (70%) */
    font-weight: 600;
    margin: 0;
}
h1 a:link,
h1 a:visited {
  color: inherit;          /* 元の色を維持 */
  text-decoration: none;   /* 下線を消す（必要なら） */
}

h1 a:hover,
h1 a:active {
  color: #4CAF50;          /* ホバー・クリック時だけ変えたいならここ */
}

header nav {
    display: flex;
    gap: 15px; /* 20px → 15px */
    align-items: center;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 5px 10px; /* 8px 15px → 5px 10px */
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 10px; /* 14px → 10px (約70%) */
}

header nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

header .user-info {
    font-size: 10px; /* 14px → 10px */
    margin-right: 10px; /* 15px → 10px */
}

/* ========================================
   メインコンテンツ
   ======================================== */
.container {
    max-width: 1200px;
    margin: 15px auto; /* 20px → 15px */
    padding: 0 15px; /* 20px → 15px */
}

.content {
    background-color: #f5f5f5; /* V2.2: white → 薄いグレー */
    border-radius: 8px;
    padding: 20px; /* 30px → 20px */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 15px; /* 20px → 15px */
}

h2 {
    color: #667eea;
    margin-bottom: 15px; /* 20px → 15px */
    font-size: 16.8px; /* 24px → 16.8px (70%) */
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 7px; /* 10px → 7px */
}

h3 {
    color: #764ba2;
    margin-bottom: 10px; /* 15px → 10px */
    font-size: 14px; /* 20px → 14px (70%) */
    font-weight: 600;
}

/* ========================================
   フォーム
   ======================================== */
.form-group {
    margin-bottom: 12px; /* 20px → 12px */
}

.form-group label {
    display: block;
    margin-bottom: 4px; /* 5px → 4px */
    color: #555;
    font-weight: 500;
    font-size: 10px; /* 14px → 10px (約70%) */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 7px 10px; /* 10px 15px → 7px 10px */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 10px; /* 14px → 10px */
    transition: border-color 0.3s;
    line-height: 1.3;
}

.form-group textarea {
    min-height: 80px; /* 120px → 80px */
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* ========================================
   ボタン
   ======================================== */
.btn {
    display: inline-block;
    padding: 7px 14px; /* 10px 20px → 7px 14px */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 10px; /* 14px → 10px */
    font-weight: 500;
    line-height: 1.3;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-small {
    padding: 4px 8px; /* 5px 10px → 4px 8px */
    font-size: 9px; /* 12px → 9px */
}

/* ========================================
   テーブル
   ======================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px; /* 20px → 15px */
}

table th,
table td {
    padding: 8px 10px; /* 12px 15px → 8px 10px */
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 10px; /* 14px → 10px */
    line-height: 1.3;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

table tr:hover {
    background-color: #f8f9fa;
}

table .actions {
    white-space: nowrap;
}

table .actions a,
table .actions button {
    margin-right: 7px; /* 10px → 7px */
}

/* ========================================
   アラート・メッセージ
   ======================================== */
.alert {
    padding: 10px 12px; /* 15px → 10px 12px */
    border-radius: 4px;
    margin-bottom: 15px; /* 20px → 15px */
    font-size: 10px; /* 14px → 10px */
    line-height: 1.3;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ========================================
   カード
   ======================================== */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 15px; /* 20px → 15px */
    margin-bottom: 15px; /* 20px → 15px */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px; /* 15px → 10px */
}

.card p {
    color: #666;
    margin-bottom: 10px; /* 15px → 10px */
    font-size: 10px; /* 14px → 10px */
    line-height: 1.3;
}

/* ========================================
   ダッシュボード統計
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px; /* 20px → 15px */
    margin-bottom: 20px; /* 30px → 20px */
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px; /* 20px → 15px */
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    color: white;
    margin-bottom: 7px; /* 10px → 7px */
    font-size: 12px; /* 16px → 12px (75%) */
}

.stat-card .number {
    font-size: 28px; /* 42px → 28px (約67%) */
    font-weight: bold;
    margin-bottom: 4px; /* 5px → 4px */
}

/* ========================================
   フッター
   ======================================== */
footer {
    text-align: center;
    padding: 15px; /* 20px → 15px */
    color: #666;
    margin-top: 30px; /* 40px → 30px */
    font-size: 10px; /* 14px → 10px */
    line-height: 1.3;
}

/* ========================================
   ユーティリティクラス
   ======================================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 7px; } /* 10px → 7px */
.mt-2 { margin-top: 14px; } /* 20px → 14px */
.mt-3 { margin-top: 21px; } /* 30px → 21px */

.mb-1 { margin-bottom: 7px; }
.mb-2 { margin-bottom: 14px; }
.mb-3 { margin-bottom: 21px; }

.p-1 { padding: 7px; }
.p-2 { padding: 14px; }
.p-3 { padding: 21px; }

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 7px; /* 10px → 7px */
    }

    header nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    table {
        font-size: 9px; /* 12px → 9px */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   詳細表示用スタイル
   ======================================== */
.detail-section {
    margin-bottom: 15px; /* 20px → 15px */
}

.detail-section h3 {
    color: #764ba2;
    margin-bottom: 7px; /* 10px → 7px */
    font-size: 12px; /* 18px → 12px (約67%) */
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px; /* 5px → 4px */
}

.detail-section p,
.detail-section pre {
    background-color: #ffffff; /* V2.2: #f8f9fa → 白背景 */
    padding: 10px; /* 15px → 10px */
    border-radius: 4px;
    margin: 7px 0; /* 10px → 7px */
    font-size: 10px; /* 14px → 10px */
    line-height: 1.3;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #e0e0e0; /* V2.2: 境界線を追加 */
}

/* ========================================
   長文折りたたみ機能
   ======================================== */
.collapsible-text {
    position: relative;
}

.collapsible-text.collapsed {
    max-height: 52px; /* 約3行分 (11px * 1.3 * 3 ≈ 43px + padding) */
    overflow: hidden;
}

.collapsible-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, #f8f9fa);
}

.toggle-text-btn {
    display: inline-block;
    margin-top: 5px;
    color: #667eea;
    cursor: pointer;
    font-size: 10px;
    text-decoration: underline;
}

.toggle-text-btn:hover {
    color: #5568d3;
}

/* ========================================
   コピーボタン
   ======================================== */
.copy-btn-container {
    display: inline-block;
    margin-left: 10px;
}

.btn-copy {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    font-size: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background-color: #218838;
}

.btn-copy:active {
    transform: scale(0.95);
}

.btn-copy.copied {
    background-color: #17a2b8;
}

/* ========================================
   PDFファイル表示
   ======================================== */
.pdf-link {
    display: inline-block;
    margin-top: 7px; /* 10px → 7px */
    padding: 7px 14px; /* 10px 20px → 7px 14px */
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 10px; /* 14px → 10px */
    transition: background-color 0.3s;
}

.pdf-link:hover {
    background-color: #c82333;
}

.pdf-link::before {
    content: "📄 ";
    margin-right: 5px;
}

/* ========================================
   タイトルリンク（クリック可能なタイトル）
   ======================================== */
table td a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-decoration 0.3s;
}

table td a:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* ========================================
   クリック可能な行
   ======================================== */
table tbody tr.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

table tbody tr.clickable-row:hover {
    background-color: #f0f3ff; /* 薄い紫色 */
}

/* ========================================
   サイドバー（V2.3新機能）
   ======================================== */
.main-wrapper {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.sidebar-header {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header .sidebar-toggle {
    position: static;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-header .sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.sidebar-header h3 {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.sidebar-nav {
    padding: 10px 0;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

.category-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    margin: 0;
    padding: 0;
    position: relative;
}

/* 階層ごとのインデント */
.category-item.level-0 {
    /* ルート階層（すべてのプロンプト） */
}

.category-item.level-0 .category-link {
    padding-left: 15px;
}

.category-item.level-1 .category-link {
    padding-left: 20px;
}

.category-item.level-2 .category-link {
    padding-left: 35px;
}

.category-item.level-3 .category-link {
    padding-left: 50px;
}

.category-item.level-4 .category-link {
    padding-left: 65px;
}

/* カテゴリリンク */
.category-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
    gap: 8px;
    position: relative;
}

.category-link:hover {
    background-color: #f0f3ff;
}

.category-item.active > .category-link {
    background-color: #667eea;
    color: white;
    font-weight: 600;
}

/* 折りたたみボタン */
.category-toggle {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    padding: 0;
    z-index: 1;
    transition: all 0.2s ease;
}

.category-toggle:hover {
    color: #667eea;
    transform: translateY(-50%) scale(1.2);
}

.category-toggle .toggle-icon {
    display: block;
    line-height: 1;
    transition: transform 0.2s ease;
}

/* 子カテゴリがある項目のリンクは左にスペース */
.category-item.has-children > .category-link {
    padding-left: 28px;
}

.category-item.level-1.has-children > .category-link {
    padding-left: 33px;
}

.category-item.level-2.has-children > .category-link {
    padding-left: 48px;
}

.category-item.level-3.has-children > .category-link {
    padding-left: 63px;
}

/* サブツリー（子カテゴリ） */
.category-subtree {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-item.expanded > .category-subtree {
    max-height: 2000px; /* 十分大きな値 */
}

.category-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.category-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-count {
    color: #666;
    padding: 3px 8px;
    font-size: 11px;
    flex-shrink: 0;
}

.category-item.active > .category-link .category-count {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.category-item.empty {
    padding: 8px 15px;
    color: #999;
    font-size: 10px;
    font-style: italic;
}

/* サイドバーアクション */
.sidebar-actions {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

/* サイドバー折りたたみボタン（ヘッダー内に配置） */
.toggle-icon {
    display: block;
    line-height: 1;
}

/* メインコンテンツエリア */
.container {
    flex: 1;
    transition: all 0.3s ease;
}

.main-wrapper.sidebar-collapsed .container {
    margin-left: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 60px;
        height: calc(100vh - 60px);
        z-index: 100;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

    .main-wrapper {
        flex-direction: column;
    }

    /* モバイルでは階層インデントを縮小 */
    .category-item.level-1 .category-link {
        padding-left: 18px;
    }

    .category-item.level-2 .category-link {
        padding-left: 30px;
    }

    .category-item.level-3 .category-link {
        padding-left: 42px;
    }

    .category-item.level-1.has-children > .category-link {
        padding-left: 28px;
    }

    .category-item.level-2.has-children > .category-link {
        padding-left: 40px;
    }
}
/* サイドバーが閉じている時の幅を調整（☰ボタンが見える程度） */
.sidebar.collapsed {
    width: 50px !important; /* 完全に隠れないように */
    min-width: 50px !important;
}

/* サイドバーが閉じている時、☰ボタン以外を非表示 */
.sidebar.collapsed .sidebar-nav,
.sidebar.collapsed .sidebar-actions,
.sidebar.collapsed .sidebar-header h3 {
    display: none;
}

/* ☰ボタンは常に表示 */
.sidebar.collapsed .sidebar-toggle {
    display: block !important;
    margin: 10px auto;
}

/* サイドバーヘッダーの調整 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

/* 閉じている時はボタンを中央に */
.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

/* ☰ボタンのスタイル強化 */
.sidebar-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    color: #333;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* アイコンのスタイル */
.sidebar-toggle .toggle-icon {
    display: inline-block;
}

/* メインコンテンツの調整 */
.main-wrapper.sidebar-collapsed {
    margin-left: 50px !important; /* サイドバーの閉じた時の幅に合わせる */
}


/* サイドバーが閉じている時の幅を調整（☰ボタンが見える程度） */
.sidebar.collapsed {
    width: 50px !important;
    min-width: 50px !important;
}

/* サイドバーが閉じている時、☰ボタン以外を非表示 */
.sidebar.collapsed .sidebar-nav,
.sidebar.collapsed .sidebar-actions,
.sidebar.collapsed .sidebar-header h3 {
    display: none;
}

/* ☰ボタンは常に表示 */
.sidebar.collapsed .sidebar-toggle {
    display: block !important;
    margin: 0; /* マージンを削除 */
}

/* サイドバーヘッダーの調整 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

/* 閉じている時は左端に配置 */
.sidebar.collapsed .sidebar-header {
    justify-content: flex-start; /* 左寄せ */
    padding: 0; /* パディングを削除 */
}

/* ☰ボタンのスタイル強化 */
.sidebar-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    color: #fff; /* 白色に */
    transition: all 0.3s ease;
    width: 100%; /* ボタンを全幅に */
    text-align: left; /* テキストを左寄せ */
}

/* 閉じている時のボタンスタイル */
.sidebar.collapsed .sidebar-toggle {
    padding: 12px 8px;
    width: 50px;
    text-align: center; /* 中央寄せ */
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* アイコンのスタイル */
.sidebar-toggle .toggle-icon {
    display: inline-block;
    color: #fff;
}

/* メインコンテンツの調整 */
.main-wrapper.sidebar-collapsed {
    margin-left: 50px !important;
}


/* サイドバー全体のスタイル確認 */
.sidebar {
    position: fixed;
    left: 0; /* 左端に固定 */
    top: 0;
    height: 100vh;
    overflow-x: hidden;
    transition: width 0.3s ease;
}
/* ========================================
   サイドバー修正: ヘッダー下配置 & 開閉機能
   ======================================== */

/* ヘッダーの固定とz-index */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px; /* ヘッダーの実際の高さに合わせて調整 */
}

/* サイドバーをヘッダーの下に配置 */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px; /* ヘッダーの高さ分下げる */
    height: calc(100vh - 60px);
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.3s ease;
    z-index: 100;
}

/* サイドバーが閉じている時の幅 */
.sidebar.collapsed {
    width: 50px !important;
    min-width: 50px !important;
}

/* サイドバーが閉じている時、☰ボタン以外を非表示 */
.sidebar.collapsed .sidebar-nav,
.sidebar.collapsed .sidebar-actions,
.sidebar.collapsed .sidebar-header h3 {
    display: none;
}

/* ☰ボタンは常に表示 */
.sidebar.collapsed .sidebar-toggle {
    display: block !important;
    margin: 0;
}

/* サイドバーヘッダーの調整 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

/* 閉じている時は左端に配置 */
.sidebar.collapsed .sidebar-header {
    justify-content: flex-start;
    padding: 0;
}

/* ☰ボタンのスタイル */
.sidebar-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    color: #fff;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

/* 閉じている時のボタンスタイル */
.sidebar.collapsed .sidebar-toggle {
    padding: 12px 8px;
    width: 50px;
    text-align: center;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* アイコンのスタイル */
.sidebar-toggle .toggle-icon {
    display: inline-block;
    color: #fff;
}

/* メインコンテンツの調整 */
.main-wrapper {
    margin-top: 60px; /* ヘッダーの高さ分下げる */
}

.main-wrapper.sidebar-collapsed {
    margin-left: 50px !important;
}


/* ========================================
   サイドバー修正: 完全版（デザイン統一）
   ======================================== */

/* メインコンテンツにサイドバー分の左マージンを追加 */
.main-wrapper {
    margin-top: 60px;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

/* サイドバーが閉じている時 */
.main-wrapper.sidebar-collapsed {
    margin-left: 50px !important;
}

/* サイドバーの幅を明示的に指定 */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 250px;
    height: calc(100vh - 60px);
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.3s ease;
    z-index: 100;
}

/* サイドバーが閉じている時 */
.sidebar.collapsed {
    width: 50px !important;
    min-width: 50px !important;
}

/* ヘッダーの固定 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

/* サイドバーヘッダー全体（グラデーション背景） */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 50px;
}

/* 閉じている時も同じグラデーション */
.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ☰ボタンのスタイル */
.sidebar-toggle {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 12px 15px;
    color: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* 閉じている時も同じスタイル */
.sidebar.collapsed .sidebar-toggle {
    padding: 12px 15px;
    width: 50px;
    text-align: center;
    background: transparent;
    font-size: 24px;
    display: block !important;
    margin: 0;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* アイコンのスタイル */
.sidebar-toggle .toggle-icon {
    display: inline-block;
    color: #fff;
    font-weight: normal;
}

/* h3「フォルダ」のスタイル */
.sidebar-header h3 {
    color: #fff;
    margin: 0;
    padding: 0 10px;
    font-size: 18px;
    font-weight: 600;
}

/* サイドバーが閉じている時、☰ボタン以外を非表示 */
.sidebar.collapsed .sidebar-nav,
.sidebar.collapsed .sidebar-actions,
.sidebar.collapsed .sidebar-header h3 {
    display: none;
}



/* タブレット・スマホ対応（768px以下） */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        left: -250px;
        z-index: 1001;
    }

    .sidebar:not(.collapsed) {
        left: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .sidebar:not(.collapsed)::before {
        content: '';
        position: fixed;
        top: 60px;
        left: 250px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* スマホ対応（480px以下） */
@media (max-width: 480px) {
    .sidebar {
        width: 200px;
        left: -200px;
    }

    .sidebar:not(.collapsed) {
        left: 0;
    }

    .sidebar:not(.collapsed)::before {
        left: 200px;
    }
}
/* ========================================
   グローバルナビゲーション: レスポンシブ対応
   ======================================== */

/* ヘッダーコンテナの調整 */
.header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ハンバーガーメニューボタン（通常は非表示） */
.global-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

/* ハンバーガーアイコンの線 */
.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* メニューが開いている時のアイコン変化（×印） */
.global-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.global-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.global-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* タブレット・スマホ対応（768px以下） */
@media (max-width: 800px) {
    /* ハンバーガーボタンを表示 */
    .global-menu-toggle {
        display: flex;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
    }

    /* ヘッダーのh1を調整 */
    header h1 {
        font-size: 16px !important;
    }

    /* ナビゲーションを縦並びメニューに */
    header nav {
        position: fixed;
        top: 60px;
        right: -100%; /* 画面外に配置 */
        width: 280px;
        max-width: 80%;
        height: calc(100vh - 60px);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1001;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        align-items: stretch;
    }

    /* メニューが開いている時 */
    header nav.active {
        right: 0;
    }

    /* メニューリンクのスタイル */
    header nav a {
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        width: 100%;
    }

    header nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* ユーザー情報 */
    header .user-info {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        width: 100%;
        font-size: 12px;
    }

    /* フォントサイズ切り替えボタン */
    header .font-size-switcher {
        margin: 15px 20px;
        justify-content: center;
        width: auto;
    }

    /* オーバーレイ */
    body.global-menu-open::before {
        content: '';
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
}

/* スマホ対応（480px以下） */
@media (max-width: 480px) {
    header nav {
        width: 250px;
    }

    header h1 {
        font-size: 14px !important;
    }

    .global-menu-toggle {
        width: 25px;
        height: 20px;
    }

    .hamburger-line {
        height: 2px;
    }
}

/* ========================================
   検索機能のスタイル
   ======================================== */

.search-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-form {
    margin: 0;
}

.search-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    white-space: nowrap;
    padding: 10px 20px;
}

.search-results-info {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.search-results-info p {
    margin: 0;
    color: #333;
    font-size: 13px;
}

.search-results-info strong {
    color: #667eea;
    font-weight: 600;
}

/* 検索結果がない場合のメッセージ */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .search-container {
        padding: 15px;
    }

    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        min-width: 100%;
    }

    .search-btn {
        width: 100%;
    }
}

/* フォントサイズ対応 */
body.font-small .search-input {
    font-size: 10px;
    padding: 8px 12px;
}

body.font-medium .search-input {
    font-size: 12.7px;
    padding: 10px 15px;
}

body.font-large .search-input {
    font-size: 15.5px;
    padding: 12px 18px;
}
/* ========================================
   お気に入り機能のスタイル
   ======================================== */

/* アクションボタンコンテナ */
.action-buttons-container {
    display: inline-flex;
    gap: 10px;
    margin-left: 15px;
    align-items: center;
}

/* お気に入りボタン */
.btn-favorite {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #ddd;
    background: #fff;
    color: #666;
}

.btn-favorite:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* お気に入り登録済み */
.btn-favorite.favorited {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

.btn-favorite.favorited:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: #764ba2;
    color: #fff;
}

/* お気に入りページの0件表示 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-results p {
    font-size: 14px;
    margin-bottom: 15px;
}

.no-results a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.no-results a:hover {
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .action-buttons-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .btn-copy,
    .btn-favorite {
        width: 100%;
        text-align: center;
    }
}

/* フォントサイズ対応 */
body.font-small .btn-favorite {
    font-size: 10px;
    padding: 6px 12px;
}

body.font-medium .btn-favorite {
    font-size: 12.7px;
    padding: 8px 16px;
}

body.font-large .btn-favorite {
    font-size: 15.5px;
    padding: 10px 20px;
}
/**
 * 評価機能のスタイル
 * このファイルの内容をstyle.cssに追加してください
 */

/* 評価コンテナ */
.rating-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

/* 星表示 */
.rating-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 24px;
    line-height: 1;
}

.rating-stars .star {
    color: #ddd;
    cursor: default;
    transition: color 0.2s ease;
    user-select: none;
}

.rating-stars .star.filled {
    color: #ffc107;
}

.rating-stars .star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* インタラクティブな星 */
.rating-stars.interactive .star {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars.interactive .star:hover,
.rating-stars.interactive .star.hover {
    color: #ffc107;
    transform: scale(1.15);
}

.rating-stars.interactive .star:active {
    transform: scale(0.95);
}

/* 読み取り専用の星 */
.rating-stars.readonly .star {
    font-size: 18px;
}

/* 評価情報テキスト */
.rating-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.rating-average {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.rating-count {
    color: #999;
    font-size: 13px;
}

/* カード内の評価表示 */
.prompt-card .rating-container {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.prompt-card .rating-stars {
    font-size: 18px;
}

.prompt-card .rating-info {
    font-size: 13px;
}

/* 詳細ページの評価セクション */
.rating-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.rating-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.rating-section .rating-container {
    margin: 0;
}

.rating-section .rating-stars.interactive {
    font-size: 32px;
    gap: 5px;
}

.rating-section .rating-info {
    font-size: 16px;
    margin-top: 10px;
}

.your-rating-text {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* お気に入りアイコン（ハートマーク） */
.favorite-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s ease;
    color: #ddd;
    line-height: 1;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.favorited {
    color: #e74c3c;
}

.favorite-btn:active {
    transform: scale(0.9);
}

/* ハートアイコンのアニメーション */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.favorite-btn.favorited:active {
    animation: heartBeat 0.4s ease;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .rating-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rating-stars {
        font-size: 20px;
    }

    .rating-section .rating-stars.interactive {
        font-size: 28px;
    }

    .favorite-btn {
        font-size: 20px;
    }
}

/* ローディング状態 */
.rating-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.rating-container.loading::after {
    content: "保存中...";
    position: absolute;
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}
/**
 * 評価機能のスタイル（改善版）
 * このファイルの内容をstyle.cssに追加してください
 */

/* ==========================================
   評価コンテナ - コンパクトなレイアウト
========================================== */
.rating-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

/* ==========================================
   星表示
========================================== */
.rating-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 20px;
    line-height: 1;
}

.rating-stars .star {
    color: #ffc107;
    cursor: default;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-text-stroke: 1px #ffc107;
    /* デフォルトは透明（アウトラインのみ） */
    -webkit-text-fill-color: transparent;
}

/* 塗りつぶされた星（評価済み） */
.rating-stars .star.filled {
    -webkit-text-fill-color: #ffc107;
}

/* 半分の星 */
.rating-stars .star.half {
    background: linear-gradient(90deg, #ffc107 50%, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* インタラクティブな星（クリック可能） */
.rating-stars.interactive .star {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars.interactive .star:hover,
.rating-stars.interactive .star.hover {
    -webkit-text-fill-color: #ffc107;
    transform: scale(1.15);
}

.rating-stars.interactive .star:active {
    transform: scale(0.95);
}

/* 読み取り専用の星 */
.rating-stars.readonly .star {
    font-size: 18px;
}

/* ==========================================
   評価情報テキスト - コンパクト表示
========================================== */
.rating-info {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    color: #666;
}

.rating-average {
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

.rating-count {
    color: #999;
    font-size: 13px;
}

/* ==========================================
   カード内の評価表示
========================================== */
.prompt-card .rating-container {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.prompt-card .rating-stars {
    font-size: 16px;
}

.prompt-card .rating-info {
    font-size: 13px;
}

/* ==========================================
   詳細ページの評価セクション
========================================== */
.rating-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.rating-section h3 {
    display: none; /* "このプロンプトを評価"を非表示 */
}

.rating-section .rating-container {
    margin: 0;
}

.rating-section .rating-stars.interactive {
    font-size: 28px;
    gap: 4px;
}

.rating-section .rating-info {
    font-size: 15px;
}

.your-rating-text {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* ==========================================
   お気に入りボタン（ハートマーク）- 改善版
========================================== */
.favorite-container {
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
}

.favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn .icon-heart {
  width: 22px;
  height: 22px;
  transition: fill 0.2s, transform 0.2s;
}

.favorite-btn:hover .icon-heart path {
  fill: #ff4d4d;
  transform: scale(1.05);
}

.favorite-btn.favorited .icon-heart path {
  fill: #e74c3c;
}


.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* お気に入り登録済み */
.favorite-btn.favorited {
}

.favorite-btn:active {
    transform: scale(0.95);
}

/* お気に入り件数表示 */
.favorite-count {
    margin-left: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* ハートアイコンのアニメーション */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.favorite-btn.favorited:active {
    animation: heartBeat 0.4s ease;
}

/* ==========================================
   レスポンシブ対応
========================================== */
@media (max-width: 768px) {
    .rating-container {
        gap: 6px;
    }

    .rating-stars {
        font-size: 18px;
    }

    .rating-section .rating-stars.interactive {
        font-size: 24px;
    }

    .favorite-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* ==========================================
   ローディング状態
========================================== */
.rating-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.rating-container.loading::after {
    content: "保存中...";
    position: absolute;
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

/* ==========================================
   ツールチップ（オプション）
========================================== */
.rating-stars.interactive .star:hover::after {
    content: attr(data-rating) "つ星";
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
}


/* ==========================================
   表の見た目（CSS）
========================================== */


.list-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.list-table th, .list-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  text-align: left;
}

.list-table thead th {
  background: #f8f9ff;
  font-weight: 600;
  color: #444;
}

.list-table tbody tr:hover {
  background: #f7fafc;
  cursor: pointer;
}

.list-table .actions .btn {
  margin-right: 6px;
}

.link-title {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}
.link-title:hover { text-decoration: underline; }

.subtext {
  color: #777;
  font-size: 12px;
  margin-top: 4px;
}

.favorite-btn { background:none; border:none; cursor:pointer; padding:0; }
.favorite-btn .icon-heart { width:22px; height:22px; }
.favorite-btn .heart-path { fill: none; transition: fill .15s; }
.favorite-btn.favorited .heart-path { fill: #e74c3c; } /* ← ここで塗る */
.favorite-btn:hover .heart-path { fill: #ff6666; }      /* お好みで */

/* ========================================
   レビューセクション
   ======================================== */
.review-section {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.review-average {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #495057;
}

.review-average .rating-stars {
    font-size: 1.1rem;
}

/* レビュー投稿フォーム */
.review-form {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.review-form h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #495057;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.rating-input {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.rating-input .star {
    font-size: 2rem;
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
}

.rating-input .star:hover,
.rating-input .star.active {
    color: #ffc107;
    transform: scale(1.1);
}

.form-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.submit-review-btn {
    background: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-review-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

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

/* レビュー一覧 */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-author strong {
    color: #2c3e50;
    font-size: 1rem;
}

.review-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.review-actions {
    display: flex;
    gap: 8px;
}

.edit-review-btn,
.delete-review-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-review-btn {
    background: #28a745;
    color: white;
}

.edit-review-btn:hover {
    background: #218838;
}

.delete-review-btn {
    background: #dc3545;
    color: white;
}

.delete-review-btn:hover {
    background: #c82333;
}

.review-rating {
    margin-bottom: 10px;
}

.review-rating .rating-stars {
    font-size: 1rem;
}

.review-comment {
    color: #495057;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* レビュー編集フォーム */
.review-edit-form {
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #007bff;
}

.review-edit-form .form-group {
    margin-bottom: 15px;
}

.review-edit-form .rating-input .star {
    font-size: 1.8rem;
}

.review-edit-actions {
    display: flex;
    gap: 10px;
}

.save-review-btn,
.cancel-edit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-review-btn {
    background: #28a745;
    color: white;
}

.save-review-btn:hover {
    background: #218838;
}

.cancel-edit-btn {
    background: #6c757d;
    color: white;
}

.cancel-edit-btn:hover {
    background: #5a6268;
}

/* 空のレビューリスト */
.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}
