/* =========================================================
   なずなブログ共通スタイル
   グリーフの庭 / なずなの時間 共通CSS
   サイトごとの色味の差は :root の CSS変数を
   layouts/partials/head.html 側でインラインoverrideして出し分ける
   ========================================================= */

:root {
  --color-main: #D8A7A0;       /* メインのくすみピンク */
  --color-accent: #EFE6DD;     /* サブ・アクセント（サイトごとに上書き） */
  --color-bg: #FDFBF9;         /* ごく薄いオフホワイト */
  --color-text: #4A4A4A;       /* 濃いグレー */
  --color-text-light: #7a7a7a;
  --color-border: #e8ddd6;
  --font-serif: "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --max-width: 760px;
}

.icon-leaf {
  color: var(--color-main);
  vertical-align: -4px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.03em;
  font-size: 16px;
}

a {
  color: var(--color-main);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.6;
}

p {
  margin: 0 0 1.4em;
}

/* ------------------- レイアウト全体 ------------------- */

.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------- ヘッダー ------------------- */

.site-header {
  position: relative;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-accent) 70%, white), var(--color-bg));
  overflow: hidden;
}

.site-header-decor {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 14px;
  opacity: 0.55;
}

.site-header-decor .icon-leaf {
  transform: rotate(-15deg);
}

.site-header-decor .icon-leaf:nth-child(2) {
  transform: rotate(0deg) scale(1.15);
}

.site-header-decor .icon-leaf:nth-child(3) {
  transform: rotate(15deg);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px 28px;
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
}

.site-title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
}

.site-tagline {
  margin: 10px 0 18px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover {
  border-bottom: 1px solid var(--color-main);
  opacity: 1;
}

/* ------------------- メインコンテンツ ------------------- */

main {
  min-height: 50vh;
}

.content-section {
  padding: 48px 0 64px;
}

/* ------------------- 装飾ディバイダー ------------------- */

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0;
}

.ornament-divider .ornament-line {
  height: 1px;
  width: 70px;
  background: linear-gradient(90deg, transparent, var(--color-border) 50%, transparent);
}

.ornament-divider .icon-leaf {
  opacity: 0.8;
}

/* ------------------- プロフィールカード（トップ・About共通） ------------------- */

.profile-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 48px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--color-main), color-mix(in srgb, var(--color-main) 40%, var(--color-accent)));
}

.profile-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-accent);
}

.profile-card-body h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.profile-card-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.profile-card-body .profile-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* ------------------- 記事一覧 ------------------- */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-list-item {
  position: relative;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 24px;
  padding-left: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-list-item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 4px;
  height: calc(100% - 40px);
  border-radius: 3px;
  background: var(--color-main);
  opacity: 0.55;
}

.post-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.post-list-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.post-list-title a {
  color: var(--color-text);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.category-tag {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-size: 0.75rem;
  padding: 1px 10px;
  border-radius: 999px;
}

.post-summary {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0;
}

.section-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  margin: 0 0 28px;
  padding-bottom: 12px;
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-main), transparent);
}

/* ------------------- 個別記事 ------------------- */

.post-header {
  margin-bottom: 32px;
  text-align: center;
}

.post-header h1 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.post-categories {
  margin-top: 14px;
}

.category-badge {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 999px;
  margin: 0 4px;
}

.post-content {
  font-size: 1.02rem;
}

.post-content h2 {
  font-size: 1.3rem;
  margin: 2em 0 0.8em;
}

.post-content h3 {
  font-size: 1.1rem;
  margin: 1.8em 0 0.6em;
}

.post-content ul,
.post-content ol {
  padding-left: 1.6em;
}

.post-content blockquote {
  margin: 1.5em 0;
  padding: 0.6em 1.4em;
  border-left: 3px solid var(--color-main);
  background-color: var(--color-accent);
  color: var(--color-text);
  font-size: 0.95em;
}

.post-footer-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

/* ------------------- About ページ ------------------- */

.about-body {
  font-size: 1.02rem;
}

.about-body h2 {
  font-size: 1.2rem;
  margin: 2em 0 0.8em;
}

/* About パターンB: 本文優先・プロフィールは文末に控えめに */
.profile-card-compact {
  margin-top: 40px;
  margin-bottom: 0;
}

.profile-card-compact img {
  width: 72px;
  height: 72px;
}

/* ------------------- フッター ------------------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-bg), color-mix(in srgb, var(--color-accent) 70%, white));
  margin-top: 48px;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.footer-decor {
  margin-bottom: 10px;
  opacity: 0.6;
}

/* ------------------- レスポンシブ（スマホ対応） ------------------- */

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .site-header-inner {
    padding: 24px 16px 20px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .site-nav {
    gap: 16px;
  }

  .content-section {
    padding: 32px 0 48px;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
  }

  .profile-card img {
    width: 96px;
    height: 96px;
  }

  .post-header h1 {
    font-size: 1.35rem;
  }
}
