/*
Theme Name: Mauve Note
Theme URI:
Author: 
Description: モーヴ＆クリームの雑記ブログ用シンプルテーマ
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: mauve-note
*/

/* ============================
   CSS変数
============================ */
:root {
  --white:        #ffffff;
  --bg:           #ffffff;
  --bg-section:   #fdfbfc;
  --border:       #f0e6ee;
  --accent:       #a87ca0;
  --accent-light: #faf4f9;
  --accent-dark:  #8a6082;
  --sub:          #c4956a;
  --sub-light:    #fdf8f3;
  --text:         #333333;
  --text-mid:     #666666;
  --text-light:   #999999;

  --font-heading: 'Shippori Mincho', serif;
  --font-body:    'Noto Sans JP', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow:     0 2px 16px rgba(0,0,0,0.06);
}

/* ============================
   リセット・ベース
============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ============================
   サイトヘッダー
============================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; color: var(--text); }
.site-logo span { color: var(--accent); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.site-nav a {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* ============================
   レイアウト
============================ */
.site-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}

@media (max-width: 768px) {
  .site-main {
    grid-template-columns: 1fr;
  }
  .sidebar { order: 2; }
}

/* ============================
   記事一覧（index）
============================ */
.post-list { display: flex; flex-direction: column; gap: 28px; }

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
  display: block;
}
.post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(168,124,160,0.1);
}

.post-card-inner {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: flex-start;
}
.post-card-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: block;
}
.post-card-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}
.post-card-body { flex: 1; min-width: 0; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.post-card-cat {
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 99px;
  text-decoration: none;
}
.post-card-cat:hover { background: var(--accent-dark); color: var(--white); text-decoration: none; }
.post-card-date {
  font-size: 12px;
  color: var(--text-light);
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 10px;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); text-decoration: none; }

.post-card-excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 16px;
}

.post-card-more {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 16px;
  border-radius: 99px;
  transition: background 0.2s, color 0.2s;
}
.post-card-more:hover {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* ページネーション */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: var(--white);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination .current { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ============================
   記事個別（single）
============================ */
.post-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 52px 24px 44px;
  text-align: center;
}
.post-hero-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}
.badge-accent { background: var(--accent); color: var(--white); }
.badge-outline { border: 1px solid var(--border); color: var(--text-mid); background: transparent; }

.post-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(21px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 20px;
  letter-spacing: 0.02em;
}
.post-hero-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* 記事本文 */
.post-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  line-height: 2;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin: 40px 0 20px;
}
.post-content h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin: 28px 0 14px;
}
.post-content p { margin-bottom: 18px; }
.post-content ul,
.post-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
.post-content li { margin-bottom: 6px; }
.post-content strong { color: var(--accent-dark); font-weight: 700; }

.post-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  color: var(--text-mid);
  font-size: 14px;
}

/* ============================
   サイドバー
============================ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* カテゴリ一覧 */
.widget-cat-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.widget-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-mid);
  transition: background 0.15s;
}
.widget-cat-list li a:hover {
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}
.widget-cat-count {
  background: var(--bg-section);
  border: 1px solid var(--border);
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 99px;
  color: var(--text-light);
}

/* 最新記事 */
.widget-post-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.widget-post-list li { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.widget-post-list li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-post-list a { font-size: 13px; color: var(--text); line-height: 1.7; }
.widget-post-list a:hover { color: var(--accent); text-decoration: none; }
.widget-post-date { font-size: 11px; color: var(--text-light); margin-top: 3px; }

/* ============================
   フッター
============================ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 32px 24px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.footer-logo span { color: var(--accent); }
.footer-copy {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* ============================
   アイキャッチ（全幅）
============================ */
.post-thumbnail-wrap {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
}
.post-thumbnail-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

/* ============================
   前後の記事リンク
============================ */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}
.post-nav-prev,
.post-nav-next { flex: 1; }
.post-nav-next  { text-align: right; }

.post-nav-link {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    font-size: 13px;
    color: var(--text-mid);
    transition: border-color 0.2s, color 0.2s;
}
.post-nav-link:hover {
    border-color: var(--accent);
    color: var(--text);
    text-decoration: none;
}
.post-nav-label {
    display: block;
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 4px;
    font-weight: 700;
}

/* ============================
   コメント欄
============================ */
.comments-area {
    margin-top: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow);
}
.comments-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

/* コメントリスト */
.comment-list { list-style: none; padding: 0; }
.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.comment-list .comment:last-child { border-bottom: none; }

.comment-author .fn {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.comment-author img {
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.comment-meta {
    font-size: 12px;
    color: var(--text-light);
    margin: 4px 0 10px;
}
.comment-content p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text);
}
.reply a {
    font-size: 12px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 12px;
    border-radius: 99px;
    margin-top: 8px;
    display: inline-block;
}
.reply a:hover {
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
}

/* コメントフォーム */
.comment-respond {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.comment-reply-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}
.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    margin-bottom: 16px;
    transition: border-color 0.2s;
    outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.comment-form .submit:hover { background: var(--accent-dark); }

/* ============================
   レスポンシブ補足
============================ */
@media (max-width: 600px) {
  .site-header { padding: 0 16px; }
  .site-nav ul { gap: 12px; }
  .post-content { padding: 24px 18px; }
  .post-card { padding: 20px 18px; }
}


.affili-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fdf8fc;
  border: 1px solid #f0e6ee;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 12px 0;
  text-decoration: none;
  color: #333333;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 10px rgba(168, 124, 160, 0.07);
}
.affili-card:hover {
  box-shadow: 0 6px 20px rgba(168, 124, 160, 0.16);
  transform: translateY(-2px);
}
.affili-card__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: #f0e6ee;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.affili-card__icon svg {
  width: 20px; height: 20px;
  stroke: #a87ca0; fill: none;
  stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.affili-card__body { flex: 1; }
.affili-card__label {
  font-size: 11px; color: #a87ca0;
  letter-spacing: 0.08em; margin-bottom: 3px; font-weight: 500;
}
.affili-card__text {
  font-family: "Shippori Mincho", serif;
  font-size: 15px; font-weight: 600; line-height: 1.5;
}
.affili-card__arrow {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: #a87ca0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.affili-card:hover .affili-card__arrow { background: #8a6082; }
.affili-card__arrow svg {
  width: 13px; height: 13px;
  stroke: #fff; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
