/* ======================================
   ペニチョコ BLOG 共通テーマ
   ====================================== */
:root{
  --base-yellow: #F2CB57;
  --base-brown:  #733907;
  --deep-brown:  #260B01;
}

body {
  background: var(--base-yellow);
  color: var(--base-brown);
  margin: 0;
  font-family: "Acumin Pro", system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

/* ======================================
   BLOGトップ（INFORMATION一覧）
   ====================================== */
.info-wrap{
  max-width: 880px;
  margin: 84px auto 120px;
  padding: 0 20px;
}

.info-title{
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: .06em;
  text-align: left;
  margin: 0 0 32px;
  position: relative;
  color: var(--base-brown);
}

.info-title::after{
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: var(--base-brown);
  margin-top: 8px;
  border-radius: 2px;
}

.info-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-item{ margin: 0; }

.info-link{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--base-brown);
  padding: 18px 2px;
  transition: opacity .15s ease;
}
.info-link:hover{
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-title-text{
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 600;
  word-break: break-word;
}

.info-date{
  font-size: 14px;
  color: var(--deep-brown);
  opacity: 0.75;
  white-space: nowrap;
}

.info-sep{
  margin: 4px 0;
  color: var(--deep-brown);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  opacity: 0.7;
}
.info-sep::before{
  content: "* * *";
}

/* NEXTボタン */
.pager{
  margin-top: 32px;
  text-align: left;
}
.pager .next{
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--base-brown);
  color: var(--base-brown);
  text-decoration: none;
  font-weight: 600;
  transition: all .2s ease;
  background: transparent;
}
.pager .next:hover{
  background: var(--base-brown);
  color: var(--base-yellow);
}

/* スマホ対応 */
@media (max-width: 560px){
  .info-link{
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .info-date{ order: 2; }
}

/* ======================================
   記事ページ（posts）
   ====================================== */
.post-wrap {
  max-width: 780px;
  margin: 84px auto 120px;
  padding: 0 20px;
}

.post-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--base-brown);
  margin: 0 0 8px;
  position: relative;
}

.post-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--base-brown);
  margin-top: 6px;
  border-radius: 2px;
}

.date {
  color: var(--deep-brown);
  opacity: 0.8;
  font-size: 14px;
  margin-bottom: 24px;
}

.post-body p {
  margin-bottom: 1.2em;
}

.post-body img {
  display: block;
  max-width: 100%;
  margin: 24px auto;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(115,57,7,0.3);
}

/* 戻るリンク */
.back-link {
  margin-top: 40px;
  text-align: left;
}
.back-link a {
  color: var(--base-brown);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.back-link a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ===== 記事の前後ナビ ===== */
.post-nav{
  margin: 40px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.post-nav a{
  display: inline-block;
  padding: 12px 14px;
  border: 1px solid var(--base-brown);
  color: var(--base-brown);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  transition: all .2s ease;
}
.post-nav a:hover{
  background: var(--base-brown);
  color: var(--base-yellow);
}
.post-nav .prev{ justify-self: start; }
.post-nav .next{ justify-self: end; text-align: right; }

/* ===== SNSリンク（HPトップと同様、フッター直上に揃える） ===== */
.sns-links{
  margin: 28px 0 8px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start; /* フッター左寄せ想定。中央にしたい場合は center */
}
.sns-btn{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(115,57,7,0.08); /* 茶の薄いトーン */
  transition: transform .12s ease, background .2s ease;
}
.sns-btn:hover{
  transform: translateY(-1px);
  background: rgba(115,57,7,0.18);
}
.sns-btn img{
  width: 22px;
  height: 22px;
  display: block;
}

/* スマホ最適化 */
@media (max-width: 560px){
  .post-nav{
    grid-template-columns: 1fr;
  }
  .post-nav .prev, .post-nav .next{
    justify-self: stretch;
    text-align: left;
  }
  .sns-btn{
    width: 40px; height: 40px;
  }
  .sns-btn img{
    width: 24px; height: 24px;
  }
}
/* ===== SNSリンク共通 ===== */
.sns-links{
  margin: 40px 0 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}
.sns-btn{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(115,57,7,0.08);
  transition: transform .12s ease, background .2s ease;
}
.sns-btn:hover{
  transform: translateY(-1px);
  background: rgba(115,57,7,0.18);
}
.sns-btn img{
  width: 22px;
  height: 22px;
  display: block;
}

/* ===== 旧ブログリンク ===== */
.old-blog-link {
  text-align: left;
  margin: 36px 0 12px;
}
.old-blog-link a {
  color: var(--base-brown);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--base-brown);
  transition: opacity 0.2s ease;
}
.old-blog-link a:hover {
  opacity: 0.7;
}

/* ===== トップページへの戻るリンク ===== */
.back-to-home,
.back-link {
  margin: 24px 0 40px;
  text-align: left;
}
.back-to-home a,
.back-link a {
  color: var(--base-brown);
  text-decoration: none;
  font-weight: 600;
  transition: opacity .2s ease;
}
.back-to-home a:hover,
.back-link a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* スマホ調整 */
@media (max-width: 560px){
  .sns-btn{
    width: 40px; height: 40px;
  }
  .sns-btn img{
    width: 24px; height: 24px;
  }
}

