/* 全体設定 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
  }
  
  .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
  }
  
  /* 非公式バッジ */
  .badge-unofficial {
    display: inline-block;
    background-color: #e53e3e;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
  }
  
  /* ヘッダー */
  .header {
    background-color: #1a365d; /* 九産大ブルー */
    color: #ffffff;
    text-align: center;
    padding: 20px 16px;
  }
  
  .header h1 {
    margin: 0;
    font-size: 1.45rem;
  }
  
  .header p {
    margin: 4px 0 6px 0;
    font-size: 0.85rem;
    opacity: 0.85;
  }
  
  /* 情報基準日 */
  .last-updated {
    font-size: 0.75rem;
    color: #cbd5e1;
  }
  
  /* サイト紹介ボックス（JS開閉・検索バーとの隙間を広めに設定） */
  .about-box {
    margin-bottom: 20px;
  }
  
  .about-toggle-btn {
    width: 100%;
    background-color: #e2e8f0;
    color: #1e293b;
    border: none;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
  }
  
  .about-toggle-btn:hover {
    background-color: #cbd5e1;
  }
  
  .about-content {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px;
    margin-top: 6px;
    font-size: 0.83rem;
    line-height: 1.65;
    color: #334155;
  }
  
  .about-content p {
    margin: 0 0 12px 0;
  }
  
  .about-content p:last-child {
    margin-bottom: 0;
  }
  
  /* テキストリンク（卒業研究リンク用） */
  .text-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: bold;
    margin-left: 2px;
  }
  
  .text-link:hover {
    color: #1d4ed8;
  }
  
  /* 検索バー */
  .search-box {
    margin-bottom: 24px;
  }
  
  .search-box input {
    width: 100%;
    padding: 13px 14px;
    font-size: 0.95rem;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
  }
  
  .search-box input:focus {
    border-color: #1a365d;
  }
  
  /* セクション見出し */
  .top-links h2,
  .list-header h2 {
    font-size: 1.05rem;
    margin: 0 0 10px 0;
    color: #1a365d;
  }
  
  /* クイックリンクボタン（スマホで2行になっても上下左右中央に揃える） */
  .top-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
  }
  
  .quick-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #1a365d;
    border: 1.5px solid #1a365d;
    text-align: center;
    padding: 10px 6px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.3;
    word-break: keep-all;
  }
  
  /* リストヘッダーと件数表示 */
  .list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .list-header h2 {
    margin: 0;
  }
  
  .item-count {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: bold;
  }
  
  /* フラットリスト */
  .link-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .link-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
  }
  
  /* アコーディオン設定 */
  .link-item details {
    width: 100%;
  }
  
  /* 質問（タップするエリア） */
  .question {
    font-size: 0.93rem;
    font-weight: bold;
    color: #1a365d;
    cursor: pointer;
    padding: 14px 16px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1.4;
    user-select: none;
  }
  
  /* ブラウザデフォルトの矢印アイコンを消す */
  .question::-webkit-details-marker {
    display: none;
  }
  
  /* 右側にプラスアイコンを表示 */
  .question::after {
    content: "＋";
    font-size: 1.1rem;
    color: #64748b;
    font-weight: normal;
    margin-left: 12px;
    flex-shrink: 0;
  }
  
  /* 開いた状態（マイナスアイコン＋下線） */
  details[open] .question::after {
    content: "－";
  }
  
  details[open] .question {
    border-bottom: 1px dashed #e2e8f0;
    background-color: #f8fafc;
  }
  
  /* 回答（開くエリア） */
  .answer {
    padding: 14px 16px;
  }
  
  /* 補足テキスト枠 */
  .note-text {
    margin: 0;
    font-size: 0.85rem;
    color: #334155;
    background-color: #f1f5f9;
    padding: 10px 12px;
    border-radius: 6px;
    line-height: 1.55;
  }
  
  /* 外部リンクボタン（下にリンクがある時だけ上の余白をつける） */
  .link-btn {
    display: inline-block;
    background-color: #1a365d;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 6px;
    margin-top: 10px;
    transition: opacity 0.2s;
  }
  
  .link-btn:hover {
    opacity: 0.9;
  }
  
  /* フッター */
  .footer {
    text-align: center;
    padding: 20px 16px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.6;
  }
  
  .footer p {
    margin: 4px 0;
  }
