/*
Theme Name: unuboe
Author: h
Description: Private Diary Theme
Version: 1.0
*/

/* =========================================
   ここから下がデザイン設定
   ========================================= */

/* --- ベース設定 --- */
body {
  background: #d6dddc; /* 背景グレー */
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
}

/* --- ヘッダー（header.php）のデザイン --- */
.site-header {
  padding: 40px 0 20px; /* 上の余白 */
  text-align: center; /* 真ん中寄せ */
}

.header-icon {
  display: inline-block;
  width: 60px; /* アイコンの幅 */
  height: 60px; /* アイコンの高さ */
  background-color: #fff; /* 白い丸 */
  border-radius: 50%;
  margin-bottom: 10px;
  text-decoration: none;
}

.site-title {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.site-title a {
  color: #fff; /* 文字色を白に */
  text-decoration: none;
}

/* --- レイアウト枠 --- */
.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 80px;
  position: relative;
}

/* --- 記事詳細コンテナ（白い箱） --- */
.single-container {
  width: 100%;
  max-width: 600px;
  background: #fff;
  padding: 0;
  box-sizing: border-box;
  margin-top: 30px;
}

/* スマホ版（画面幅が狭い時）の調整 */
@media screen and (max-width: 768px) {
  .single-container {
    margin-top: 0;
    max-width: 100%;
  }
}

/* --- index.php用：記事リストのデザイン --- */
.archive-container {
  width: 100%;
  max-width: 600px;
  margin-top: 50px;
  padding: 0 20px;
  box-sizing: border-box;
}

.post-item {
  margin-bottom: 40px;
}

.post-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  gap: 20px;
  transition: opacity 0.3s;
}

.post-link:hover {
  opacity: 0.7;
}

/* --- 図形のベーススタイル --- */
.shape-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.shape-icon.circle {
  border-radius: 50%;
}
.shape-icon.square {
  border-radius: 4px;
}
.shape-icon.triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* --- テキスト周り --- */
.post-title {
  font-size: 16px;
  font-weight: normal;
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.post-date {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.05em;
  font-family: sans-serif;
}

/* --- アイキャッチエリア（詳細ページ） --- */
.entry-eye-catch {
  width: 100%;
  height: 180px;
  background-color: #fcecec;
}

/* --- 記事ヘッダー --- */
.entry-header {
  padding: 30px 40px 20px;
}
.entry-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}
.entry-meta {
  font-size: 11px;
  color: #999;
  font-family: sans-serif;
  letter-spacing: 0.05em;
}

/* --- 記事本文 --- */
.entry-content {
  padding: 0 40px 60px;
  font-size: 14px;
  line-height: 2.2;
  text-align: justify;
}
.entry-content p {
  margin-bottom: 2em;
}

/* --- ページネーション（ドット） --- */
.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e0e0;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
}
.dot.current {
  background: #ccc;
}
.dot:hover {
  background: #999;
}
.dot.disabled {
  opacity: 0;
  pointer-events: none;
}

/* フッター */
.footer-copyright {
  text-align: center;
  padding-bottom: 20px;
  color: #ccc;
  font-size: 10px;
}

/* --- 【PC専用】右サイドメニュー --- */
.pc-side-nav {
  display: none;
}

@media screen and (min-width: 1000px) {
  .pc-side-nav {
    display: block;
    position: sticky;
    top: 100px;
    margin-left: 40px;
  }
  .pc-side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .pc-side-nav li {
    margin-bottom: 15px;
  }
  .pc-side-nav a {
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.1em;
    font-weight: 500;
    display: block;
    transition: opacity 0.3s;
  }
  .pc-side-nav a:hover {
    opacity: 0.7;
  }
}
