@charset "UTF-8";
/* ページ全体の高さ確保 */
html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0; }

main {
  padding: 1rem; }

/* グリッド全体 */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding: 2rem; }

/* 各リンクカード */
.link-card {
  display: block;
  padding: 1.2rem 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease; }

.link-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600; }

.link-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #666; }

/* ホバー時の軽いアニメーション */
.link-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px); }

.posts-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2em 1em; }

.series-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5em;
  overflow-x: auto;
  padding-bottom: 0.5em;
  margin-bottom: 2em; }

.series-tag {
  padding: 0.4em 1em;
  border: 1px solid #ccc;
  border-radius: 9999px;
  font-size: 0.9em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s; }

.series-tag:hover {
  background: #f5f5f5; }

.series-tag.active {
  background: #333;
  color: #fff;
  border-color: #333; }

/* ぜんぶborder-boxにして幅計算のズレを防止 */
*,
*::before,
*::after {
  box-sizing: border-box; }

/* posts 一覧 */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  /* 幅に応じて折り返し */
  gap: 1.25rem;
  /* カード間のすき間 */
  align-items: start;
  /* 高さ違いのときのズレ防止 */ }

/* カード本体 */
.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  /* 長いタイトルでのはみ出し→重なり防止 */
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  /* はみ出しを切る */ }

/* タイトル等の読みやすさ */
.post-card h2,
.post-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  line-height: 1.35;
  word-break: break-word;
  /* 長い単語で崩れるのを防止 */ }

/* 日付などのメタ */
.post-card .post-meta {
  font-size: 0.875rem;
  color: var(--muted); }

/* ホバー */
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }

/* もしテーマ側で float / absolute を使っていたら打ち消す */
.post-card {
  position: relative;
  float: none; }

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

.post-card a {
  text-decoration: none;
  color: inherit; }

.post-card h2 {
  margin-top: 0;
  font-size: 1.25em; }

.post-card time {
  font-size: 0.85em;
  color: #777; }

.post-card p {
  margin: 0.5em 0 0;
  color: #444;
  font-size: 0.95em; }

.credo {
  text-align: center;
  margin: 6rem 0 3rem; }

.credo__text {
  display: inline-block;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3; }

/* ヘッダ */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000; }

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem; }

.site-header .logo a {
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  color: #333; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; }

.site-nav ul li {
  margin-left: 1.5rem; }

.site-nav ul li a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem; }

.site-nav ul li a:hover {
  color: #000; }

/* ヘッダ固定 */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000; }

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem; }

/* メインコンテンツ余白調整（固定ヘッダ分） */
main {
  flex: 1;
  padding-top: 3.5rem;
  /* ヘッダ高さ分 */ }

/* フッタを最下部に固定 */
.site-footer {
  background-color: #f8f8f8;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid #eee;
  margin-top: auto;
  /* コンテンツが少なくても下に */ }

.site-footer .social-links {
  margin-top: 0.5rem; }

.site-footer .social-links a {
  margin: 0 0.5rem;
  color: #555;
  text-decoration: none; }

.site-footer .social-links a:hover {
  color: #000; }

/* Aboutページ全体 */
.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: #333; }

.about-container h1 {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem; }

.about-container .lead {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 2rem;
  color: #555; }

.about-container section {
  margin-bottom: 2.5rem; }

.about-container h2 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.3rem; }

.about-container p {
  margin-bottom: 1rem; }

.about-container ul {
  list-style: disc;
  margin-left: 1.5rem; }

.about-container li {
  margin-bottom: 0.4rem; }

.series-nav {
  margin: 0.5rem 0 1rem; }

.series-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none; }

.series-list a {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none; }

:root {
  --page-max: 72rem;
  /* ページ上限（読み物向け） */
  --gutter: clamp(16px, 4vw, 32px);
  /* 画面に応じて変わる左右余白 */
  --prose: 65ch;
  /* 本文の最適幅 */ }

/* ページのメインコンテナ */
.container {
  inline-size: min(calc(100% - 2 * var(--gutter)), var(--page-max));
  margin-inline: auto;
  padding-inline: var(--gutter); }

/* 本文だけさらに狭める（記事や解説） */
.prose {
  max-inline-size: var(--prose);
  margin-inline: auto; }

/* 図表やヒーローを全幅で見せたいとき */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw); }

/* アプリ系ページだけ広めにしたい場合のバリエーション */
.app .container {
  --page-max: 90rem;
  /* ≈1440px */ }
