/*
Theme Name: proweogjewogjwe
Author: gowjeigwe
Description: Custom blog theme (grid)
Version: 1.0
*/

:root{
  --bg: #1c1d21;
  --surface: #26272b;
  --text: #e6e6eb;
  --muted: #a0a0b0;
  --border: #33343a;
  --accent: #6f5ae6;
  --accent2: #b7a8ff;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }

.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #22232a;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.site-brand a{
  font-weight: 800;
  letter-spacing: -0.02em;
}
.global-nav__list{
  list-style:none;
  display:flex;
  gap: 14px;
  margin:0;
  padding:0;
}
.global-nav__list a{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 10px;
}
.global-nav__list a:hover{
  background: rgba(111,90,230,.10);
  text-decoration:none;
}

/* Hero */
.hero{
  position: relative;
  padding: 72px 20px 84px;
  overflow: hidden;
}
.hero__inner{
  max-width: 1120px;
  margin: 0 auto;
  text-align:center;
  position: relative;
  z-index: 2;
}
.hero__pill{
  display:inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(111,90,230,.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.hero__title{
  margin: 14px 0 8px;
  font-size: 48px;
  letter-spacing: -0.02em;
}
.hero__lead{
  margin: 0 auto 18px;
  max-width: 720px;
  color: var(--muted);
}
.hero__search{
  display:flex;
  justify-content:center;
}

/* Search form */
.search__input{
  width: min(520px, 100%);
  padding: 14px 16px 14px 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  box-shadow: 0 8px 24px rgba(25, 10, 70, 0.06);
  background-image: radial-gradient(circle at 18px 50%, rgba(0,0,0,.25) 2px, transparent 3px);
  background-repeat:no-repeat;
  background-position: 18px 50%;
}
.search__input:focus{
  border-color: rgba(111,90,230,.5);
}

/* Diagonal accent */
.hero__slash{
  position:absolute;
  left:-10%;
  right:-10%;
  bottom:-60px;
  height: 180px;
  background: linear-gradient(90deg, rgba(111,90,230,.12), rgba(183,168,255,.35));
  transform: rotate(-6deg);
  z-index: 1;
}

/* Grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .hero__title{ font-size: 40px; }
}
@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
  .hero{ padding: 56px 20px 72px; }
  .hero__title{ font-size: 34px; }
}

/* Card */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 14px 32px rgba(25, 10, 70, 0.08);
}
.card__img img, .card__img--ph{
  display:block;
  width:100%;
  height: 210px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(111,90,230,.12), rgba(183,168,255,.35));
}
.card__body{
  padding: 16px 18px 18px;
}
.card__cat{
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.card__title{
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}
.card__title a:hover{ text-decoration:none; color: var(--accent); }
.card__excerpt{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.card__author{
  display:flex;
  align-items:center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.card__avatar img{
  border-radius: 999px;
}
.card__name{
  font-size: 13px;
  font-weight: 800;
}
.card__date{
  font-size: 12px;
  color: var(--muted);
}

/* Footer */
.site-footer{
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  color: var(--muted);
}

.post-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* ヒーロー（アイキャッチを背景として使用） */
.post-hero {
  position: relative;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -96px;
  padding-top: 160px;

  border-radius: 20px;
  overflow: hidden;
  padding: 96px 24px 72px;
  margin-bottom: 48px;

  /* 画像がない記事でも成立するように */
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
}

/* 薄く色をかけて読みやすくする */
.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 26, 0.66);
  backdrop-filter: blur(4px);
}

/* 中身は前面に */
.post-hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.post-hero__title {
  font-size: 2.2rem;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--text);
}

.post-hero__meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.post-hero__sep {
  margin: 0 10px;
  opacity: 0.8;
}

.post-body {
  max-width: 760px;
  margin: 0 auto;
}

.post-content {
  line-height: 1.9;
  font-size: 1rem;
}

.post-content p {
  margin: 0 0 1.4em;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .post-hero {
    padding: 72px 18px 54px;
  }
  .post-hero__title {
    font-size: 1.7rem;
  }
}
