/* =====================================================================
   ワールドカップ2026 — スタイルシート
   読みやすさ重視のシンプル＆モダンデザイン
   ===================================================================== */

:root {
  --green: #00843d;      /* 芝のグリーン */
  --green-dark: #006a31;
  --accent: #e4002b;     /* アクセントの赤 */
  --ink: #1a1d1f;        /* 本文の文字色 */
  --muted: #5c6670;
  --line: #e6e9ec;
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-h: 0 8px 24px rgba(0, 0, 0, .10);
  --maxw: 1120px;
  --readw: 720px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "BIZ UDPGothic", Meiryo, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 800; font-size: 1.05rem; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__icon { font-size: 1.3rem; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav__link {
  display: inline-block; padding: .4rem .7rem; border-radius: 999px;
  color: var(--muted); font-size: .9rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.nav__link:hover { background: var(--bg-soft); color: var(--green-dark); text-decoration: none; }

/* ヘッダー内の検索ボックス */
.site-search { display: flex; align-items: center; margin-left: .5rem; }
.site-search__input {
  border: 1px solid var(--line); border-radius: 999px 0 0 999px; border-right: 0;
  padding: .4rem .8rem; font-size: .85rem; width: 130px; font-family: inherit;
  background: var(--bg-soft); outline: none; transition: width .2s, background .2s;
}
.site-search__input:focus { width: 170px; background: #fff; border-color: var(--green); }
.site-search__btn {
  border: 1px solid var(--line); border-left: 0; border-radius: 0 999px 999px 0;
  background: var(--bg-soft); padding: .4rem .7rem; cursor: pointer; font-size: .9rem; line-height: 1;
}
.site-search__btn:hover { background: var(--green); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; padding: 10px; border: 0; background: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; padding: 4rem 0 3.5rem; text-align: center;
}
.hero__eyebrow { margin: 0 0 .6rem; font-weight: 700; letter-spacing: .08em; opacity: .85; font-size: .85rem; }
.hero__title { margin: 0 0 1rem; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.3; }
.hero__lead { margin: 0 auto 1.6rem; max-width: 640px; opacity: .95; }
.hero__cats { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.chip {
  background: rgba(255, 255, 255, .16); color: #fff; padding: .4rem .9rem;
  border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.chip:hover { background: rgba(255, 255, 255, .3); text-decoration: none; }

/* ---------- セクション ---------- */
.section { padding: 3rem 0 1rem; }
.section--center { text-align: center; padding: 4rem 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.4rem; gap: 1rem; }
.section__title { margin: 0; font-size: 1.5rem; position: relative; padding-left: .8rem; }
.section__title::before {
  content: ""; position: absolute; left: 0; top: .15em; bottom: .15em;
  width: 5px; border-radius: 3px; background: var(--green);
}
.more { font-size: .9rem; font-weight: 600; white-space: nowrap; }

/* ---------- カードグリッド ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.card__link { display: block; color: inherit; height: 100%; }
.card__link:hover { text-decoration: none; }
.card__body { padding: 1.2rem 1.3rem 1.4rem; }
.card__cat {
  display: inline-block; background: var(--bg-soft); color: var(--green-dark);
  font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .6rem;
}
.card__title { margin: 0 0 .5rem; font-size: 1.1rem; line-height: 1.5; }
.card__desc { margin: 0 0 .8rem; color: var(--muted); font-size: .9rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__date { color: var(--muted); font-size: .8rem; }

/* ---------- 記事ページ ---------- */
.post { max-width: var(--readw); padding-top: 2rem; padding-bottom: 3rem; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-hidden] { opacity: .5; }

.post__header { margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 2px solid var(--line); }
.post__meta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; color: var(--muted); font-size: .85rem; margin-bottom: .8rem; }
.badge { background: var(--green); color: #fff; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge:hover { background: var(--green-dark); text-decoration: none; }
.post__updated { color: var(--accent); font-weight: 600; }
.post__title { margin: 0 0 .6rem; font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.4; }
.post__lead { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* 本文タイポグラフィ */
.post__body { font-size: 1.05rem; }
.post__body h2 {
  margin: 2.6rem 0 1rem; padding: .6rem 0 .6rem 1rem; font-size: 1.5rem; line-height: 1.5;
  border-left: 6px solid var(--green); background: var(--bg-soft); border-radius: 0 8px 8px 0;
}
.post__body h3 { margin: 2rem 0 .8rem; font-size: 1.2rem; padding-bottom: .3rem; border-bottom: 2px dotted var(--line); }
.post__body p { margin: 1.1rem 0; }
.post__body ul, .post__body ol { padding-left: 1.4rem; margin: 1.1rem 0; }
.post__body li { margin: .4rem 0; }
.post__body a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.post__body img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow); }
.post__body blockquote {
  margin: 1.5rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--green);
  background: var(--bg-soft); border-radius: 0 8px 8px 0; color: var(--muted);
}
.post__body code {
  background: var(--bg-soft); padding: .15em .45em; border-radius: 5px; font-size: .9em;
  font-family: "SFMono-Regular", Consolas, monospace;
}
.post__body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.post__body th, .post__body td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.post__body th { background: var(--bg-soft); font-weight: 700; }
.post__body tr:nth-child(even) td { background: #fafbfc; }

.post__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.4rem 0; }
.tag {
  background: var(--bg-soft); color: var(--muted); font-size: .82rem; font-weight: 600;
  padding: .35rem .8rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .35rem;
}
.tag:hover { background: var(--green); color: #fff; text-decoration: none; }
.tag__count { background: rgba(0, 0, 0, .08); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; }

.related { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--line); }
.related__title { font-size: 1.3rem; margin: 0 0 1.2rem; }

/* ---------- 一覧・タグページ ---------- */
.page-title { font-size: clamp(1.5rem, 4vw, 2rem); margin: .5rem 0 .4rem; }
.page-lead { color: var(--muted); margin: 0 0 1.6rem; }
.tagcloud { display: flex; flex-wrap: wrap; gap: .6rem; }
.empty { color: var(--muted); background: var(--bg-soft); padding: 2rem; border-radius: var(--radius); text-align: center; }

/* ---------- サイト内検索ページ ---------- */
.searchbox { margin: 1rem 0 1.4rem; }
#search-input {
  width: 100%; padding: .9rem 1.2rem; font-size: 1.05rem; font-family: inherit;
  border: 2px solid var(--line); border-radius: 999px; outline: none; transition: border-color .15s;
}
#search-input:focus { border-color: var(--green); }
.search-status { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; min-height: 1.2em; }
.search-results { display: grid; gap: 1rem; }
.result { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.result:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.result__link { display: block; padding: 1.1rem 1.3rem; color: inherit; }
.result__link:hover { text-decoration: none; }
.result__cat { display: inline-block; background: var(--bg-soft); color: var(--green-dark); font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.result__title { margin: .5rem 0 .4rem; font-size: 1.15rem; line-height: 1.5; }
.result__desc { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.result__tag { background: var(--bg-soft); color: var(--muted); font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; }
.result__date { color: var(--muted); font-size: .78rem; margin-left: auto; }

/* ---------- ページャー ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: 2.5rem 0; }
.pager__btn { padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.pager__btn:hover { background: var(--bg-soft); text-decoration: none; }
.pager__status { color: var(--muted); font-size: .9rem; }

/* ---------- ボタン / 404 ---------- */
.btn { display: inline-block; background: var(--green); color: #fff; padding: .7rem 1.6rem; border-radius: 999px; font-weight: 700; }
.btn:hover { background: var(--green-dark); text-decoration: none; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--green); margin: 0; line-height: 1; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #cbd2d8; margin-top: 4rem; padding: 3rem 0 1.5rem; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.brand--footer { color: #fff; font-size: 1.05rem; margin: 0 0 .6rem; }
.site-footer__desc { font-size: .85rem; line-height: 1.8; margin: 0; max-width: 32ch; }
.site-footer__heading { font-size: .95rem; color: #fff; margin: 0 0 .8rem; }
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer__nav li { margin: .35rem 0; }
.site-footer__nav a { color: #cbd2d8; font-size: .88rem; }
.site-footer__nav a:hover { color: #fff; }
.copyright { text-align: center; color: #8a939b; font-size: .8rem; margin: 2.5rem 0 0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.2rem 1rem;
    transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: .7rem .5rem; border-radius: 8px; }
  .site-search { margin: .5rem 0 0; width: 100%; }
  .site-search__input { width: 100%; flex: 1; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-footer__inner { grid-template-columns: 1fr; gap: 1.6rem; }
}
