:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --accent: #2563eb;
  --muted: #6b7280;
  --radius: 12px;
  --max-width: 1100px;
  --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}




/* 以下、記事用スタイル */
/* 記事ページ用CSS */

body {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  /* ここで太くする */
  margin: 0;
  padding: 0;
  background: #eef3ff;
  color: #222;
  line-height: 1.8;
}

.shippori-mincho-regular {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  /* 太字に */
}


.lead {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.05));
  padding: 20px 24px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}


/* ヘッダー */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
}


header.site-header {
  background: linear-gradient(90deg, var(--card), #f3f4f6);
  padding: 18px 20px;
  border-radius: 18px;
  margin: 20px auto 0;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  flex-wrap: nowrap;
  /* 折り返し防止 */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0
}

.brand .logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.site-title {
  font-size: 18px;
  font-weight: 700
}

.site-sub {
  font-size: 13px;
  color: var(--muted)
}

nav.main-nav {
  display: flex;
  gap: 10px;
  white-space: nowrap
}

nav.main-nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600
}

nav.main-nav a:hover {
  color: var(--accent)
}




.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
}

.site-title {
  font-weight: 600;
}

.main-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #333;
}

/* 記事エリア */
.post-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.post h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.meta {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.post-cover {
  width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post h2 {
  margin-top: 2rem;
  border-left: 4px solid #444;
  padding-left: 0.6rem;
  font-size: 1.3rem;
}

.post-photo {
  width: 100%;
  margin: 1rem 0;
  border-radius: 4px;
}

ul {
  padding-left: 1.2rem;
}

.photo-gallery-wide {
  max-width: 600px;
  margin: 2rem auto 1rem;
}

.photo-gallery-wide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

.photo-gallery-2 {
  max-width: 600px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.photo-gallery-2 img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .photo-gallery-3 {
    grid-template-columns: 1fr;
  }

  .photo-gallery-3 img {
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
}

.homi_fig {
  text-align: center;
}

.minobu_kuonji {
  text-align: center;
}

/* 戻るボタン */
.back {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid #444;
  border-radius: 4px;
  text-decoration: none;
  color: #222;
  font-size: 0.9rem;
}

.back:hover {
  background: #eee;
}

.inagako_fig {
  text-align: center;
}





.site-footer {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #0a0a2a;
  color: #fff;
  font-size: 0.9rem;
  overflow: hidden;

}

/* 星の共通スタイル */
.star-field span {
  position: absolute;
  border-radius: 50%;
  background: white;
  opacity: 0.8;
  animation: moveStars linear infinite;
}

/* 星のサイズ・高さ・速度を個別設定 */
.star-field span:nth-child(1) {
  width: 1px;
  height: 1px;
  top: 10%;
  left: -5%;
  animation-duration: 6s;
  animation-delay: 0s;
}

.star-field span:nth-child(2) {
  width: 2px;
  height: 2px;
  top: 30%;
  left: -5%;
  animation-duration: 8s;
  animation-delay: 1s;
}

.star-field span:nth-child(3) {
  width: 1.5px;
  height: 1.5px;
  top: 50%;
  left: -5%;
  animation-duration: 7s;
  animation-delay: 2s;
}

.star-field span:nth-child(4) {
  width: 3px;
  height: 3px;
  top: 70%;
  left: -5%;
  animation-duration: 9s;
  animation-delay: 3s;
}

.star-field span:nth-child(5) {
  width: 2px;
  height: 2px;
  top: 90%;
  left: -5%;
  animation-duration: 10s;
  animation-delay: 4s;
}

.star-field span:nth-child(6) {
  width: 1px;
  height: 1px;
  top: 20%;
  left: -5%;
  animation-duration: 7s;
  animation-delay: 5s;
}

.star-field span:nth-child(7) {
  width: 2.5px;
  height: 2.5px;
  top: 40%;
  left: -5%;
  animation-duration: 8s;
  animation-delay: 1.5s;
}

.star-field span:nth-child(8) {
  width: 1.5px;
  height: 1.5px;
  top: 60%;
  left: -5%;
  animation-duration: 9s;
  animation-delay: 2.5s;
}

.star-field span:nth-child(9) {
  width: 1px;
  height: 1px;
  top: 80%;
  left: -5%;
  animation-duration: 6s;
  animation-delay: 0.5s;
}

.star-field span:nth-child(10) {
  width: 3px;
  height: 3px;
  top: 95%;
  left: -5%;
  animation-duration: 10s;
  animation-delay: 3.5s;
}

@keyframes moveStars {
  0% {
    transform: translateX(0);
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(110vw);
    opacity: 0;
  }
}