/*
  Skin Name: tool (Modern Refined)
  Description: 紫を基調としたクリーンでモダンなスキン
  Skin URI: https://yusukegoto.com/
  Author: Yusuke Goto
  Author URI: https://yusukegoto.com/
  Version: 1.1.0
  Priority: 1
*/

/* =========================================
 * Theme Tokens (変数の整理と洗練)
 * ========================================= */
:root {
  --bg: #fdfcfb;                 /* 完全な白ではなく、ほんのり温かみのある背景 */
  --surface: #ffffff;
  --surface-2: #f5f3ff;          /* ほんのり紫のニュアンス */
  --border: #ede9fe;             /* より薄く上品なボーダー */
  --text-main: #2d283e;          /* 真っ黒を避けた上品なダークグレー */
  --text-muted: #716c89;

  --primary: #7c3aed;            /* 少し明るく鮮やかな紫 */
  --primary-hover: #6d28d9;      /* ホバーで引き締める */
  --accent: #10b981;             /* 落ち着いたエメラルドグリーン */

  /* シャドウを「薄く・広く」して上品な浮遊感を演出 */
  --shadow-sm: 0 4px 12px rgba(109, 40, 217, 0.04);
  --shadow-md: 0 8px 24px rgba(109, 40, 217, 0.08);
  --shadow-hover: 0 12px 32px rgba(109, 40, 217, 0.12);
  
  --radius: 12px;                /* 丸すぎないスタイリッシュな角丸 */
  --radius-sm: 8px;

  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
 * Base
 * ========================================= */
body.body {
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover { color: var(--primary-hover); }

::selection {
  background: var(--surface-2);
  color: var(--primary);
}

/* =========================================
 * Header & Navigation
 * ========================================= */
/* ヘッダーはグラデーションをやめてクリーンな白に */
.header-container {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-in {
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-name-text {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--primary); /* グラデをやめてソリッドに */
}

.tagline {
  color: var(--text-muted);
  font-size: 0.85em;
  margin-top: 4px;
}

/* PCナビゲーション */
.navi-in {
  border-top: none; /* ヘッダーと一体化させるために線を消す */
}

.menu-pc.menu-top > li.menu-item > a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95em;
  border-radius: 999px;
  padding: 8px 16px;
  transition: all var(--transition);
}

.menu-pc.menu-top > li.menu-item > a:hover,
.menu-pc .current-menu-item > a {
  background: var(--surface-2);
  color: var(--primary);
}

/* =========================================
 * Entry Card (記事一覧カード)
 * ========================================= */
.entry-card-wrap,
.ect-entry-card-wrap {
  margin-bottom: 24px;
}

.entry-card,
.e-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5); /* ほぼ見えないハイライトとして使用 */
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition);
}

.a-wrap:hover .entry-card,
.a-wrap:hover .e-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

/* タイトルとメタ情報 */
.entry-card-title,
.e-card-title {
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 8px;
}

.entry-card-snippet {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9em;
}

.entry-card-meta {
  color: var(--text-muted);
  font-size: 0.85em;
}

/* カテゴリラベルをよりスタイリッシュに */
.cat-label,
.entry-category {
  background: var(--surface-2);
  color: var(--primary);
  border: none;
  border-radius: 4px; /* 丸すぎるのをやめて少しシャープに */
  font-weight: 600;
  font-size: 0.75em;
  padding: 4px 8px;
}

.cat-label-68 { 
  background: #ecfdf5;
  color: var(--accent);
}

/* =========================================
 * Buttons ("続きを読む" など)
 * ========================================= */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.9em;
  color: #fff;
  background: var(--primary); /* グラデーションをやめる */
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.read-more:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================
 * Search Form
 * ========================================= */
.search-box {
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.search-edit {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: all var(--transition);
}

.search-edit:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--surface-2);
}

.search-submit {
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 700;
  transition: all var(--transition);
}

.search-submit:hover {
  background: var(--primary-hover);
}

/* =========================================
 * Footer & Go to Top
 * ========================================= */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-title,
.widget-title {
  font-weight: 700;
  color: var(--text-main);
  padding-left: 12px;
  position: relative;
}

.footer-title:before,
.widget-title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 4px;
  border-radius: 4px;
  background: var(--primary);
}

/* トップへ戻るボタンもシンプルに */
.go-to-top-button {
  border-radius: 50% !important; /* 完全な丸に */
  background: var(--surface) !important;
  color: var(--primary) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--border) !important;
  transition: all var(--transition) !important;
}

.go-to-top-button:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: var(--primary) !important;
}

.go-to-top-button-icon-font {
  color: var(--primary) !important; /* アイコンを紫に */
}

/* =========================================
 * Accessibility
 * ========================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--surface-2);
  border-color: var(--primary);
}