/* ========================
components/link-box.css
ver.1.0  2025.07.21
ver.2.0  2025.08.13
=========================*/

/* ベース: カード風リンクボックス */
.link-box{
  --lb-border:#ddd;
  --lb-accent: #8a4b2a;  /* deep tea amber */
  --lb-bg:#fff;                   /* 背景 */
  --lb-shadow:0 1px 2px rgba(0,0,0,.04);

  display:block;
  padding:1rem 1.125rem;
  margin:1.25rem 0;
  border:1px solid var(--lb-border);
  border-left: 5px solid var(--lb-accent);
  border-radius:12px;
  background:var(--lb-bg);
  box-shadow:var(--lb-shadow);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

/* 用語集リンクリスト */
/* ==== ネイティブ黒丸＋紅茶色の枠＆縦棒 ==== */
.link-list{
  --lb-accent:#8a4b2a;                 /* 紅茶色（好みで変更可） */
  list-style: disc inside;             /* ← ネイティブの黒丸を使う */
  margin: 1rem 0;
  padding: .75rem 1rem .75rem 1.25rem; /* 左に少し余白（縦棒ぶん） */
  position: relative;
  border: 1px solid color-mix(in oklab, var(--lb-accent) 28%, white);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

/* 左の縦棒（箱の内側に揃える） */
.link-list::before{
  content: "";
  position: absolute;
  left: .5rem; top: .5rem; bottom: .5rem;
  width: 4px; border-radius: 4px;
  background: var(--lb-accent);
}

/* 行の間隔と仕切り線だけ */
.link-list > li{ padding: .45rem 0; }
.link-list > li + li{ border-top: 1px dashed rgba(0,0,0,.08); }

/* リンク色＆外部↗（a11y-links の .is-external と連携） */
.link-list a{ color: var(--lb-accent); text-decoration: none; }
.link-list a:hover{ text-decoration: underline; }
.link-list a.is-external::after{ content:"↗"; margin-left:.25em; font-size:.9em; opacity:.7; }
.link-list a.is-external:hover::after{ opacity:1; }


/* 文中のリンク（単体でも複数でもOK） */
.link-box a{
  color:var(--lb-accent);
  font-weight:600;
  text-decoration:none;
}
.link-box a:hover{ text-decoration:underline; }

/* “ボックス全体”をリンクにしたい場合（<a class="link-box" href>…） */
a.link-box{
  color:inherit;                   /* テキストは通常色のまま */
  text-decoration:none;
}
a.link-box:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  border-color: var(--lb-accent);
}

/* キーボードフォーカスの可視化（a11y） */
.link-box:focus-visible{
  outline:3px solid #5b9dd9;
  outline-offset:2px;
}

/* 外部リンクマーク：a11y-links が付ける .is-external に対応 */
.link-box a.is-external{ padding-right:.2em; }
.link-box a.is-external::after{
  content:"↗";
  margin-left:.25em;
  font-size:.9em;
  opacity:.7;
}
.link-box a.is-external:hover::after{ opacity:1; }

/* ダークモード軽い対応（任意） */
@media (prefers-color-scheme: dark){
  .link-box{
    --lb-border:#3a3a3a;
    --lb-bg:#161616;
    --lb-shadow:none;
  }
}

/* コンパクト版 */
.link-box--compact { padding:.75rem 1rem; font-size:.95em; border-left-width:3px; }

/* 色バリエ（アクセント色だけ差し替え） */
/* .link-box--neutral { --lb-accent:#6b7280; }  グレー基調 */
/*.link-box--success { --lb-accent:#16a34a; }   成功/完了 */
/*.link-box--warn    { --lb-accent:#d97706; }   注意喚起 */

/* アイコン付き行レイアウト */
.link-box--icon{ display:flex; gap:.75rem; align-items:flex-start; }
.link-box--icon .lb-ico{ flex:0 0 1.25em; line-height:1.1; }

/* タイトル＋説明の見た目 */
.link-box h3{ margin:0 0 .25rem; font-size:1.05em; }
.link-box p{ margin:.25rem 0 0; color:#555; }

/* ユーザーが動き控えめ設定のときはアニメ弱め */
@media (prefers-reduced-motion: reduce){
  .link-box{ transition:none; }
}

/* 印刷時は影をオフ（任意） */
@media print{
  .link-box{ box-shadow:none; background:#fff; }
}


/* =========================================
   Notice / Link Box
   ========================================= */
/* トップページ注意書き */
.tea-notice-link {
  margin: 2em auto;
  padding: 1.2em 1.4em;
  background-color: #f9f8f6;
  border-left: 4px solid #c8b69c;
  font-size: 0.95em;
  line-height: 1.7;
  color: #444;
  max-width: 720px;
  border-radius: 6px;
  box-sizing: border-box;
  text-align: center; /* ← これで「文字自体」も中央揃えに */
}