/*
Theme Name: 辰栄堂 辰巳縁暁 Simple Blog
Theme URI: https://tatsumiengyo.jp/
Author: 辰巳縁暁（たつみ えんぎょう）
Description: 和テイストの濃い紺ベースを踏襲したシンプルなブログ用WordPressテーマ
Version: 1.0
Text Domain: tatsumi-simple-blog
*/

/* ベース変数（白ベース） */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #6b7280;
  --accent: #2e5c8c;
  --accent-soft: rgba(46,92,140,.12);
  --radius-lg: 1.25rem;
  --radius-md: .75rem;
  --shadow: 0 12px 35px rgba(15,23,42,.08);
  --content-width: min(100%, 1080px);
}

/* リセットざっくり */
*,
*::before,
*::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
p { margin: 0 0 1em; }

/* ヘッダー（白ベース） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.05);
}
.header-inner {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .75rem 1.25rem;
}
.site-brand a {
  display: block;
  font-weight: 700;
  letter-spacing: .1em;
  font-size: 1rem;
  color: var(--ink);
}
.site-brand small {
  display: block;
  font-weight: 400;
  font-size: .65rem;
  opacity: .6;
  margin-top: .15rem;
}
.main-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: .8rem;
  padding: .35rem .5rem;
  border-radius: 999px;
  transition: background .2s;
  color: var(--ink);
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  background: rgba(46,92,140,.08);
  color: var(--ink);
}

/* モバイルナビ */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  gap: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform .2s;
}
@media (max-width: 820px) {
  .main-nav {
    position: absolute;
    inset: 58px 1rem auto 1rem;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 1rem;
    padding: .75rem;
    display: none;
    flex-direction: column;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .nav-toggle { display: flex; }
}

/* ヒーロー（淡いグラデ＋白） */
.hero {
  width: 100%;
  background: radial-gradient(circle at top, #e2e8f0 0%, #f3f4f6 50%, #ffffff 100%);
  padding: 3.25rem 1.25rem 2.25rem;
  text-align: center;
  box-shadow: 0 16px 35px rgba(15,23,42,.04);
}
.hero-inner {
  width: var(--content-width);
  margin: 0 auto;
}
.hero-title {
  font-family: "Shippori Mincho B1", "Hina Mincho", "Noto Serif JP", serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: .6rem;
  letter-spacing: .08em;
  color: var(--ink);
}
.hero-desc {
  max-width: 720px;
  margin: 0 auto 1.35rem;
  color: rgba(15,23,42,.7);
}
.hero-btn {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: .6rem 1.25rem;
  font-weight: 600;
  font-size: .8rem;
  transition: transform .15s ease-out;
}
.hero-btn:hover { transform: translateY(-2px); }

/* メインレイアウト */
.site-main {
  width: var(--content-width);
  margin: 2.25rem auto 3.5rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
}
@media (max-width: 980px) {
  .site-main { grid-template-columns: 1fr; }
}

/* 記事カード（白） */
.posts-list {
  display: grid;
  gap: 1.5rem;
}
.post-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,.04);
  border-radius: 1.1rem;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 10px 25px rgba(15,23,42,.03);
  transition: transform .15s ease-out, border .15s;
}
.post-card:hover {
  transform: translateY(-2px);
  border: 1px solid rgba(46,92,140,.25);
}
.post-card time {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  font-size: .7rem;
  letter-spacing: .04em;
  color: rgba(15,23,42,.5);
  margin-bottom: .25rem;
}
.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .35rem;
  line-height: 1.6;
  color: var(--ink);
}
.post-card-excerpt {
  font-size: .8rem;
  color: rgba(15,23,42,.6);
}

/* ページャー */
.pagination {
  display: flex;
  gap: .35rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  background: #fff;
  border: 1px solid rgba(15,23,42,.06);
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .7rem;
}
.pagination .current {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

/* サイドバー（白カード） */
.sidebar {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.widget {
  background: #fff;
  border: 1px solid rgba(15,23,42,.03);
  border-radius: 1rem;
  padding: 1.1rem 1.1rem .9rem;
  box-shadow: 0 5px 18px rgba(15,23,42,.02);
}
.widget-title {
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(15,23,42,.65);
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget li {
  font-size: .8rem;
  padding: .3rem 0;
}
.widget a { color: rgba(15,23,42,.7); }
.widget a:hover { color: var(--ink); }

/* single / page */
.entry {
  background: #fff;
  border: 1px solid rgba(15,23,42,.03);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem 2rem;
  box-shadow: 0 10px 28px rgba(15,23,42,.03);
}
.entry-title {
  font-size: 1.5rem;
  margin-bottom: .35rem;
  color: var(--ink);
}
.entry-meta {
  font-size: .7rem;
  color: rgba(15,23,42,.5);
  margin-bottom: 1.5rem;
}
.entry-content {
  font-size: .9rem;
  color: rgba(15,23,42,.9);
}
.entry-content h2,
.entry-content h3 {
  margin-top: 1.5rem;
  margin-bottom: .6rem;
  color: var(--ink);
}
.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* フッター */
.site-footer {
  text-align: center;
  color: rgba(15,23,42,.5);
  font-size: .7rem;
  padding: 2.5rem 1rem 3rem;
  border-top: 1px solid rgba(15,23,42,.04);
  background: #fff;
}

/* 検索フォームちょい整形 */
.search-form {
  display: flex;
  gap: .35rem;
}
.search-form .search-field {
  flex: 1;
  border: 1px solid rgba(15,23,42,.1);
  border-radius: .5rem;
  padding: .4rem .5rem;
  font-size: .8rem;
}
.search-form .search-submit {
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: .5rem;
  padding: .4rem .7rem;
  font-size: .75rem;
  cursor: pointer;
}

/* アクセシビリティ補助 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0,0,0,0);
  overflow: hidden;
}