/* --- Team Creative Lab 共通スタイル --- */
/* バージョン管理: https://common.team-creative-lab.com/styles/global.css?v=1.3.0 */

/* CSS 変数（各サイトで :root を上書きしてカスタマイズ可能） */
:root {
  --tcl-primary: #0969da;
  --tcl-accent: #2da44e;
  --tcl-bg: #ffffff;
  --tcl-text: #24292f;
  --tcl-nav-bg: #f0f0f0;
  --tcl-nav-border: #ddd;
  --tcl-nav-hover: #ddd;
  --tcl-nav-text: #333;
  --tcl-nav-sub-text: #666;

  /* レイアウト共通変数 */
  --tcl-max-width: 48rem;     /* max-w-3xl 相当 */
  --tcl-container-px: 1rem;   /* px-4 相当 */
  --tcl-header-h: 3.5rem;     /* h-14 相当 */

  /* ブランドカラー（Astro サイト共通） */
  --tcl-brand: #0b1f3a;
  --tcl-brand-accent: #16c79a;

  /* タイポグラフィ */
  --tcl-font-sans: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --tcl-text-base: 1rem;
  --tcl-text-sm: 0.875rem;
  --tcl-text-lg: 1.125rem;
  --tcl-text-xl: 1.25rem;
  --tcl-text-3xl: 1.875rem;
  --tcl-text-4xl: 2.25rem;
}

/* ページ共通レイアウト */
.tcl-page-main {
  max-width: var(--tcl-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 3rem var(--tcl-container-px);
}

/* ページ見出し h1 */
.tcl-h1 {
  font-size: var(--tcl-text-3xl);
  font-weight: bold;
  color: var(--tcl-brand);
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .tcl-h1 {
    font-size: var(--tcl-text-4xl);
  }
}

/* ヒーロー eyebrow（小見出し） */
.tcl-hero-eyebrow {
  font-size: var(--tcl-text-sm);
  font-weight: bold;
  color: var(--tcl-brand-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ヒーロー body（リード文） */
.tcl-hero-body {
  color: #475569; /* slate-600 */
  font-size: var(--tcl-text-lg);
  line-height: 1.75;
}

/* ヒーローセクション */
.tcl-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url('https://cdn.jsdelivr.net/gh/team-creative-lab/hatenablog-styles/header-hatenablog-common.png');
  background-size: cover;
  background-position: center center;
  padding: 80px 20px;
  text-align: center;
}

.tcl-hero-title {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* 共通ナビゲーション */
.tcl-cross-nav {
  background-color: var(--tcl-nav-bg);
  padding: 10px 0;
  border-bottom: 1px solid var(--tcl-nav-border);
}

.tcl-cross-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tcl-cross-nav li a {
  display: flex;
  flex-direction: column;
  padding: 8px 15px;
  text-decoration: none;
  color: var(--tcl-nav-text);
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.tcl-cross-nav li a:hover {
  background-color: var(--tcl-nav-hover);
}

/* Active Link（現在のサイト） */
.tcl-cross-nav li a.active {
  color: var(--tcl-primary);
  border-bottom: 2px solid var(--tcl-primary);
}

.tcl-cross-nav li a span:last-child {
  font-size: 0.7rem;
  font-weight: normal;
  color: var(--tcl-nav-sub-text);
  margin-top: 2px;
}

/* はてなブログ向け：既存グローバルナビゲーションを非表示 */
#global-navigation {
  display: none !important;
}

/* はてなブログ向け：ヘッダータイトルテキストを非表示 */
#title a {
  display: none;
}

/* はてなブログ向け：ヘッダー画像サイズ調整 */
#blog-title {
  height: auto;
  padding: 15px 0;
}

#blog-title-image {
  max-width: 250px;
  height: auto;
}

/* はてなブログ向け：プロフィールアイコンの歪み修正 */
.entry-header-html img[alt="プロフィールアイコン"] {
  padding-right: 0 !important;
  object-fit: cover !important;
}
