body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    max-width: 900px;
    margin: 40px auto;
    color: #333;
}

.search-section {
    background: #eef2f3;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ロゴのコンテナ */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

/* 最近の検索全体 */
.recent-search-container {
    margin-top: 25px;
    font-size: 0.9em;
    color: #555;
    text-align: left;
    border-top: 1px solid #d1d9db;
    padding-top: 15px;
}

.recent-search-title {
    font-weight: bold;
    color: #777;
}

.recent-search-list {
    margin-top: 10px;
}

.recent-search-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* 履歴用タグの個別調整（既存のword-tagを上書き） */
.recent-tag {
    background: #f8f9fa !important;
    color: #007bff !important;
    border: 1px solid #dee2e6 !important;
    margin: 0 12px 0 0 !important;
}

.recent-search-info {
    color: #666;
}

.recent-search-date {
    color: #999;
    margin-left: 8px;
}

/* AI提案セクション */
.ai-suggestion-section {
    background: #f0f9f4;
    padding: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    margin-bottom: 30px;
}

.ai-title {
    color: #155724;
    font-size: 1em;
    margin-bottom: 10px;
    display: block;
}

/* 検索ワード強調 */
.search-hit {
    background-color: #ffeb3b;
    color: #000;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 3px;
}

.word-tag {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 5px 12px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
}

.word-tag:hover {
    background: #219150;
}

/* 検索結果を枠で囲う設定 */
.result-container {
    display: flex;
    gap: 0;
    border: 1px solid #ccc;
    margin-top: -1px;
    padding: 0;
    align-items: stretch;
}

.result-container:first-of-type {
    border-top: 1px solid #ccc;
    border-radius: 5px 5px 0 0;
}

.result-container:last-of-type {
    border-radius: 0 0 5px 5px;
}

/* 左カラム（目的内容） */
.col-left {
    flex: 7;
    padding: 10px 15px;
    background: #fff;
}

/* 右カラム（会社名） */
.col-right {
    flex: 3;
    text-align: center;
    border-left: 1px solid #ccc;
    padding: 10px 15px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-badge {
    background: #999;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
}

.company-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
}

.company-link:hover {
    text-decoration: underline;
}

/* ページネーション */
.pagination {
    margin-top: 30px;
    text-align: center;
    padding-bottom: 50px;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #007bff;
    border-radius: 4px;
}

.page-link:hover {
    background: #f2f2f2;
}

.page-link.disabled {
    color: #ccc;
    pointer-events: none;
    border-color: #eee;
}

.page-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: bold;
}

h1 {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    padding-left: 15px;
}

