/*
Theme Name: Mira
Theme URI: https://example.com/mira
Author: Mira
Description: ビデオ会議 UI（参加前画面・会議画面）を備えたクラシックテーマです。通常の固定ページや投稿も表示できます。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mira
Tags: custom-menu, translation-ready, full-width-template
*/

/* ===========================================================
   通常ページ（投稿・固定ページ）用のスタイル。
   会議画面のスタイルは assets/css/ 側にあり、この CSS とは
   同時に読み込まれない。
   =========================================================== */

:root {
  --blue: #0b5cff;
  --blue-dark: #084ed9;

  --page: #f7f8fb;
  --surface: #ffffff;

  --ink: #020617;
  --ink-strong: #0f172a;
  --ink-muted: #334155;
  --ink-faint: #64748b;

  --line: #e2e8f0;
  --line-faint: #f1f5f9;

  --radius: 8px;
  --shadow-card: 0 18px 55px rgb(15 23 42 / 8%);

  --wrap: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
}

/* ---------- サイトヘッダー ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header__inner {
  margin: 0 auto;
  display: flex;
  height: 64px;
  max-width: 1152px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.site-branding__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.site-branding__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.site-branding__tagline {
  margin: 0;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.2;
}

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

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-muted);
}

.site-nav a:hover {
  color: var(--blue);
}

/* ---------- 本文 ---------- */

.site-main {
  margin: 0 auto;
  max-width: var(--wrap);
  padding: 48px 16px 64px;
}

.entry + .entry {
  margin-top: 48px;
}

.entry__title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

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

.entry__meta {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--ink-faint);
}

.entry__thumb {
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.entry__content > * + * {
  margin-top: 1.2em;
}

.entry__content h2 {
  margin-top: 2em;
  font-size: 24px;
  font-weight: 600;
}

.entry__content h3 {
  margin-top: 1.6em;
  font-size: 19px;
  font-weight: 600;
}

.entry__content blockquote {
  margin-left: 0;
  border-left: 3px solid var(--line);
  padding-left: 16px;
  color: var(--ink-muted);
}

.entry__content code {
  background: var(--line-faint);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.entry__content pre {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--ink-strong);
  color: #e2e8f0;
  padding: 16px;
}

.entry__content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ---------- ページ送り ---------- */

.pagination {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

.pagination .page-numbers.current {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

/* ---------- 404 ---------- */

.not-found {
  text-align: center;
  padding: 64px 0;
}

.not-found h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
}

.not-found p {
  margin: 0 0 24px;
  color: var(--ink-faint);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blue);
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

.button-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__inner {
  margin: 0 auto;
  max-width: 1152px;
  padding: 24px 16px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- レスポンシブ ---------- */

@media (min-width: 640px) {
  .site-header__inner,
  .site-footer__inner,
  .site-main {
    padding-left: 24px;
    padding-right: 24px;
  }
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
