:root{
  --bg-page:#e5e7eb;              /* ほんの少しだけ濃いグレー背景 */
  --bg-header:rgba(255,255,255,.96);
  --bg-footer:#f9fafb;
  --bg-card:#ffffff;
  --border-soft:#d1d5db;           /* ボーダーを少しだけ濃く */
  --text-main:#0f172a;             /* メイン文字を少し濃く */
  --text-sub:#4b5563;              /* サブ文字も視認性UP */
  --accent:#4f46e5;                /* アクセントを少し濃いめ */
  --accent-hover:#4338ca;
}


/* ===== リセット & ベース設定 ===== */
*, *::before, *::after {
  box-sizing: border-box; /* はみ出し防止の最重要設定 */
}

html, body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background:var(--bg-page);
  color:var(--text-main);
  max-width:100%;
  overflow-x: visible;
}


a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

/* ===== ヘッダー ===== */
.site-header {
  position: -webkit-sticky; /* Safari対策 */
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ロゴ周り */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.site-logo-main {
  font-size: 20px;
  font-weight: 900; /* 太く強調 */
  letter-spacing: 0.02em;
  font-family: "Segoe UI", Roboto, sans-serif; 
}

/* ナビゲーション */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.site-nav-item:hover {
  background: #f3f4f6;
  color: var(--text-main);
}

.site-nav-item.is-active {
  background: var(--text-main);
  color: #ffffff;
}

.site-nav a{
  padding:4px 10px;
  border-radius:999px;
}

/* アクティブ状態：.card-tag と同じ感じ */
.site-nav a.is-active{
  background:#eff6ff;  /* .card-tag と同じ */
  color:#1d4ed8;
  border-radius:999px;
  font-weight:600;
}

.site-nav-icon {
  font-size: 18px;
  display: inline-block;
  width: 1.25em;
  min-width: 1.25em;
  line-height: 1;
  text-align: center;
}

/* ===== メインコンテンツ ===== */
.site-main {
  min-height: calc(100vh - 250px);
  width: 100%;
  position: relative;
}

.page-root {
  max-width: 1200px;
  margin: 32px auto 48px;
  padding: 0 16px;
}

/* ヒーローセクション */
.hero-header {
  margin-bottom: 24px;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-title-main {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-title-sub {
  font-size: 14px;
  color: var(--text-sub);
}

.hero-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
}

/* グリッドレイアウト */
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: flex-start;
}

/* カード共通 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.card-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.card-tag {
  font-size: 10px;
  background: #eff6ff;
  color: #2563eb;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.card-desc {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

.card-desc-tight {
  margin: 0 0 12px;
}

.card-divider {
  margin: 22px 0;
  border-top: 1px dashed var(--border-soft);
}

.history-divider {
  margin: 18px 0;
  border-top: 1px dashed var(--border-soft);
}

.club-more-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.club-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
}

.club-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 検索フォーム */
.search-block {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-soft);
}

.search-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.search-block-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.search-block-caption {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.search-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.search-input-row {
  display: flex;
  gap: 8px;
}

.search-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  /* iOSでズームしないように16px以上にするのが定石 */
  font-size: 16px; 
  outline: none;
  background: #f9fafb;
  transition: all 0.2s;
}

.search-input-row input:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-input-row button{
  border:none;
  border-radius:999px;
  padding:11px 18px;  /* ← 高さアップ */
  font-size:13px;
  font-weight:600;
  background:var(--accent);
  color:#fff;
  cursor:pointer;
  white-space:nowrap;
}

.search-input-row button:hover {
  opacity: 0.9;
}

/* 名前検索の注意書き */
.name-search-note{
  margin-top:8px;
  font-size:12px;
  line-height:1.6;
  color:#92400e;               /* 文字色を濃いオレンジ系に */
  background:#fffbeb;          /* 薄い黄色背景 */
  border-left:3px solid #fbbf24; /* 左にラインで「注意」感 */
  padding:8px 12px;
  border-radius:8px;
}

/* 名前検索結果リスト */


.name-results-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.name-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-result-item:hover {
  border-color: var(--accent);
}


.name-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

/* 履歴チップ */
.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.favorite-tools-home {
  margin: 14px 0 18px;
}

.favorite-tools-manage {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-sub);
  text-decoration: underline;
}

.favorite-tools-home-body {
  min-height: 44px;
}

.favorite-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.favorite-tool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text-main);
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .08s ease;
}

.favorite-tool-card:hover {
  text-decoration: none;
  border-color: rgba(99, 102, 241, .35);
  background: #f1f5f9;
}

.favorite-tool-card:active {
  transform: scale(.995);
}

.favorite-tool-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, .18);
  background: rgba(99, 102, 241, .1);
  font-size: 17px;
}

.favorite-tool-body {
  min-width: 0;
}

.favorite-tool-title {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-tool-desc {
  margin-top: 2px;
  color: var(--text-sub);
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-tools-notice,
.favorite-tools-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed rgba(148, 163, 184, .7);
  border-radius: 14px;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  background: rgba(248, 250, 252, .75);
}

.favorite-tools-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 70, 229, .28);
  border-radius: 14px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.favorite-tools-login-btn:hover {
  background: #e0e7ff;
  text-decoration: none;
}

@media (max-width: 720px) {
  .favorite-tools-grid {
    grid-template-columns: 1fr;
  }

  .favorite-tool-card {
    padding: 11px 12px;
  }

  .favorite-tool-desc,
  .favorite-tool-icon {
    display: none;
  }
}

.history-card-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.history-clear-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--text-sub);
  cursor: pointer;
  text-decoration: underline;
}
.history-clear-btn:hover {
  color: #ef4444;
}

.history-empty {
  font-size: 12px;
  color: var(--text-sub);
  padding: 8px 0;
}

.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#historyList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.history-player-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 13px;
  border: 1px solid rgba(226, 232, 240, .95);
  background: #f8fafc;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .08s ease;
}

.history-player-card:hover {
  border-color: rgba(56, 189, 248, .45);
  background: #f1f5f9;
}

.history-player-card:active {
  transform: scale(.995);
}

.history-player-card-main {
  border-color: rgba(56, 189, 248, .45);
  background: rgba(239, 246, 255, .9);
}

.history-player-card-favorite {
  border-color: rgba(245, 158, 11, .42);
  background: rgba(255, 251, 235, .95);
}

.history-player-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(15, 23, 42, .06);
}

.history-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.history-player-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 1px;
}

.history-player-top {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-player-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.history-player-badge {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  color: #334155;
  font-size: 9px;
  font-weight: 800;
}

.history-player-card-favorite .history-player-badge {
  background: rgba(245, 158, 11, .16);
  color: #b45309;
}

.history-player-club {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-sub);
  font-size: 10px;
  font-weight: 600;
}

.history-player-club {
  white-space: nowrap;
}

.history-player-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--text-sub);
  font-size: 10px;
  font-weight: 600;
}

.history-player-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  line-height: 1;
}

.history-player-stat img {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: contain;
}

.history-player-tag {
  white-space: nowrap;
}

.history-player-close {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #64748b;
}

.history-player-close:hover {
  background: rgba(239, 68, 68, .1);
  color: #ef4444;
}

.history-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 999px;
  max-width: 100%;
  cursor: pointer;
  transition: background 0.2s;
}

.history-chip:hover {
  background: #e5e7eb;
}

.history-chip-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.history-chip-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.history-chip-tag {
  font-size: 9px;
  color: var(--text-sub);
}

.history-chip-remove {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.history-chip-remove:hover {
  color: #ef4444;
}

.history-chip-self {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}

.history-chip-account {
  border-color: rgba(56, 189, 248, .35);
  background: rgba(239, 246, 255, .9);
}

.history-chip-favorite-account {
  border-color: rgba(245, 158, 11, .38);
  background: rgba(255, 251, 235, .95);
}

.history-chip-self .history-chip-name {
  font-weight: 800;
}

.history-chip-self .history-chip-tag {
  font-size: 10px;
}


/* ===== フッター ===== */
/* フッターのベース色もメイン文字色に寄せる */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-soft);
  padding: 16px 16px 20px;
  font-size: 13px;
  color: var(--text-main);
}

/* PC 幅は 1200px に統一 */
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-main);  /* ここもメイン文字色 */
}

.site-footer-brand{
  font-weight:700;
}

.site-footer-text {
  line-height: 1.6;
  color: var(--text-main);
}

/* 注意書き：背景なしで文字だけ濃く */
.site-footer-notice {
  margin: 6px 0 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #111827;   /* さらに一段階濃い */
  background: none;
  border-radius: 0;
  padding: 0;
}


.site-footer-notice a{
  color:inherit;
  text-decoration:underline;
}
.site-footer-notice a:hover{
  text-decoration:none;
}

.site-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:6px 16px;
}

.site-footer-links a{
  font-size:12px;
  font-weight:500;
  color:var(--text-main);
}

.site-footer-links a:hover{
  color:var(--accent);
  text-decoration:underline;
}

/* コピーライトもコントラスト強めに */
.site-footer-copy {
  margin-top: 4px;
  font-size: 12px;
  color: #111827;   /* #6b7280 → より濃い色に */
}

/* スマホ時の余白調整 */
@media (max-width: 640px){
  /* ヘッダー：少しコンパクト＆折り返しやすく */
  .site-header-inner{
    padding:8px 12px;
    flex-wrap:wrap;
    gap:8px;
  }

  .site-logo{
    font-size:18px;
  }

  .site-nav{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    font-size:12px;
  }

  .site-nav a{
    padding:3px 8px;
  }

  /* フッター（さっきのやつと合わせる） */
  .site-footer-inner{
    padding:12px 20px 16px;
  }

  /* メインコンテンツ左右の余白を少し増やす */
  .page-root{
  max-width:1200px;
  margin:24px auto 40px;
  padding:0 16px;
  }
}

/* =========================================
   レスポンシブ (スマホ・タブレット)
   ========================================= */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr; /* 縦並び */
  }
}

@media (max-width: 768px) {
  /* ヘッダー: 2段組にして見切れ防止 */
  .site-header-inner {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* ナビゲーション: ボタン風に並べる */
  .site-nav {
    width: 100%;
    justify-content: space-between; 
    overflow-x: visible; /* 万が一はみ出たらスクロール */
    padding-bottom: 2px;
  }

  .site-nav-item {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    background: #f9fafb;
    font-size: 12px;
    padding: 8px 4px;
    border-radius: 6px;
  }
  
  .site-nav-label {
    font-size: 11px;
  }

  /* フッター: 縦積みレイアウト */
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

    .site-footer-left {
    max-width: 100%;
  }

  .site-footer-right {
    min-width: 100%;
  }

  .site-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .page-root {
    margin: 20px auto 32px;
    padding: 0 12px;
  }

  .card {
    padding: 16px 12px;
  }

  /* ここから追加：入力＋ボタンの横はみ出し防止 */
  .search-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

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

  .search-input-row button {
    width: 100%;
    text-align: center;
  }

  .hero-title-main {
    font-size: 22px;
  }
}

/* 名前検索結果リスト */
.name-results {
  margin-top: 16px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}

.name-results-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.name-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.name-result-meta::after {
  content: "›";
  margin-left: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #cbd5e1;
}

/* ===== スマホ用（横はみ出し防止 & 文字ちょい小さく） ===== */
@media (max-width: 480px) {
  .name-result-item {
    flex-direction: column;   /* 上: アイコン＋名前 / 下: 開く */
    align-items: stretch;
  }

  .name-result-left {
    gap: 6px;
  }

  .name-result-avatar {
    width: 32px;
    height: 32px;
  }

  .name-result-name {
    font-size: 12px;          /* ← PCよりほんの少し小さく */
  }

  .name-result-main {
    font-size: 12px;
  }

  .name-result-club,
  .name-result-tag {
    font-size: 11px;
  }

  .name-result-meta {
    margin-left: 0;
    margin-top: 4px;
    font-size: 11px;
    justify-content: flex-end;
    align-self: flex-end;     /* カードの右下に寄せる */
  }
}


.name-result-item{
  width:100%;
  text-align:left;
  border-radius:14px;
  border:1px solid #e5e7eb;
  padding:9px 10px;
  background:#f8fafc;
  cursor:pointer;
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:10px;
}

.name-result-item-main{
  border-color:#93c5fd;
  background:#eff6ff;
}

.name-result-item-favorite{
  border-color:#fbbf24;
  background:#fffbeb;
}

.name-result-item-saved{
  border-color:#d1d5db;
  background:#f9fafb;
}

/* 左側：アイコン＋3行テキスト */
.name-result-left{
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-width:0;
  flex:1;                        /* 左側が残り幅を全部取る */
}

/* アイコン */
.name-result-avatar{
  width:38px;
  height:38px;
  border-radius:0;
  flex-shrink:0;
}

/* テキスト3行を縦に並べる */
.name-result-main{
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
  text-align:left;
}

.name-result-top{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
}

.name-result-name{
  font-weight:900;
  font-size:13px;
  white-space:nowrap;
  overflow-x: visible;
  text-overflow:ellipsis;
}

.name-result-account-badge{
  flex:0 0 auto;
  padding:2px 6px;
  border-radius:999px;
  background:#e2e8f0;
  color:#334155;
  font-size:10px;
  font-weight:900;
}

.name-result-item-main .name-result-account-badge{
  background:#dbeafe;
  color:#1e40af;
}

.name-result-item-favorite .name-result-account-badge{
  background:#fef3c7;
  color:#b45309;
}

.name-result-club{
  font-size:11px;
  color:var(--text-sub);
  white-space:nowrap;
  overflow-x: visible;
  text-overflow:ellipsis;
}

.name-result-tag{
  font-size:11px;
  color:var(--text-sub);
}

.name-result-tag-line{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.name-result-meta {
  font-size: 10px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-left: 8px; /* 左側と少し離す（任意） */
}

.name-result-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.name-result-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 900;
  color: var(--text-main);
}

.name-result-stat img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 14px;
}

/* ===== 検索結果のメタ情報 ===== */
.search-meta-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
  text-align: center;
}

/* ===== 検索結果セクションヘッダー ===== */
.search-section-header {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  margin: 10px 0 6px 0;
  border-radius: 6px;
  text-align: left;
}

.exact-match-header {
  background: #dcfce7;
  color: #166534;
  border-left: 3px solid #22c55e;
}

.partial-match-header {
  background: #fef3c7;
  color: #92400e;
  border-left: 3px solid #f59e0b;
}

/* ===== 完全一致アイテムの強調表示 ===== */
.exact-match-item {
  border-color: #86efac;
  background: #f0fdf4;
}

.exact-match-item:hover {
  border-color: #22c55e;
  background: #dcfce7;
}

/* ===== 検索結果のエラーメッセージ ===== */
.name-results-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fee2e2;
  border: 1px solid #ef4444;
  border-radius: 8px;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}

.name-results-error i {
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== さらに検索するリンク ===== */
.search-more-link {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-soft);
  display: flex;
  justify-content: center;
}

.search-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.search-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.search-more-btn i {
  font-size: 16px;
}

.maintenance-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid #fdba74;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 85%);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
}

.maintenance-notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ea580c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.maintenance-notice-body {
  min-width: 0;
}

.maintenance-notice-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #9a3412;
}

.maintenance-notice-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #7c2d12;
}

@media (max-width: 640px) {
  .maintenance-notice {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
}
