/* =========================================================
   Kabe-Tech お絵描き練習ツール 共通スタイル
   - 全ツールがこの 1 ファイルを読み込む（デザイン統一の要）
   - 既存サイト(index.html)の配色・カードに合わせている
   ========================================================= */

:root {
  --accent: #4a90e2;
  --accent-dark: #357abd;
  --bg: #f4f7f6;
  --text: #333;
  --muted: #888;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }

body {
  font-family: sans-serif;
  line-height: 1.6;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg);
}

/* ---- グローバルナビ ---- */
.global-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 24px; }
.global-nav .brand { font-weight: bold; color: var(--accent); text-decoration: none; font-size: 1.05rem; }
.global-nav .nav-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.global-nav .nav-links a { color: #555; text-decoration: none; font-size: 0.9rem; font-weight: bold; }
.global-nav .nav-links a:hover, .global-nav .nav-links a[aria-current="page"] { color: var(--accent); }

/* ---- パンくず ---- */
.breadcrumb { font-size: .8rem; color: #999; margin-bottom: 14px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- ヘッダー ---- */
header { border-bottom: 3px solid var(--accent); padding-bottom: 10px; margin-bottom: 24px; }
header h1 { margin: 0; font-size: 1.6rem; }
.site-tagline { margin: 6px 0 0; color: #666; font-size: 0.95rem; }

/* ---- ツール一覧グリッド（ハブページ用） ---- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tool-card { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); padding: 22px 14px; text-align: center; text-decoration: none; color: var(--text); transition: transform .12s, box-shadow .12s; border: 1px solid #eee; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(74,144,226,0.18); border-color: #cfe0f7; }
.tool-card .icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.tool-card .name { font-weight: bold; font-size: 0.95rem; display: block; }
.tool-card .desc { font-size: 0.75rem; color: var(--muted); margin-top: 4px; display: block; }
.tool-card.soon { opacity: .55; }
.tool-card.soon .badge { display: inline-block; font-size: .65rem; background: #fff3cd; color: #856404; border-radius: 8px; padding: 1px 7px; margin-top: 6px; }

/* ---- 作業エリア（各ツール共通の白カード） ---- */
.work-area { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); padding: 22px; margin-bottom: 24px; }

/* ---- ボタン ---- */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 9px 18px; text-decoration: none; border: none; border-radius: 6px; font-weight: bold; font-size: 0.9rem; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { background: #b9c6d6; cursor: not-allowed; }
.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #5a6268; }
.btn.active { background: var(--accent-dark); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- 戻るリンク ---- */
.back-link { display: inline-block; margin-bottom: 20px; color: var(--accent); text-decoration: none; font-weight: bold; }
.back-link:hover { text-decoration: underline; }

/* ---- 解説カード ---- */
.desc-card { background:#fff; border-radius:12px; box-shadow: var(--card-shadow); padding:22px; margin-bottom: 24px; }
.desc-card h2 { margin-top:0; font-size:1.15rem; }
.desc-card p { font-size: .95rem; }

/* ---- フッター ---- */
footer { margin-top: 50px; padding-top: 20px; border-top: 1px solid #ddd; text-align: center; font-size: 0.85rem; }
footer a { color: #666; text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  header h1 { font-size: 1.35rem; }
}
