/* ========================================
   こころのほとり — Style Sheet
   Clean, minimal, calming blog design
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #FAF8F5;
  --bg-card: #FFFFFF;
  --text: #4A4A4A;
  --text-light: #7A7A7A;
  --accent: #C4A882;
  --accent-light: #D9C9AB;
  --sage: #9DB4A0;
  --sage-light: #C5D6C8;
  --rose: #D4A0A0;
  --rose-light: #E8CACA;
  --border: #E8E4DF;
  --shadow: rgba(0, 0, 0, 0.04);
  --max-width: 720px;
  --side-padding: 20px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--rose);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1.2rem;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.wide-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

/* --- Header --- */
.site-header {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--side-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--accent);
}

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: 0.2s;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.coming-soon {
  font-size: 0.65rem;
  color: var(--rose);
  vertical-align: super;
  margin-left: 2px;
}

/* --- Hero --- */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  background: linear-gradient(160deg, #FAF3ED 0%, #FCEAE3 30%, #F0DDD4 60%, #E8D5CC 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(50px);
}

.hero-circle-1 {
  width: 350px;
  height: 350px;
  background: #F2B5B5;
  top: -100px;
  right: -80px;
}

.hero-circle-2 {
  width: 300px;
  height: 300px;
  background: #B5D8BA;
  bottom: -80px;
  left: -60px;
}

.hero-circle-3 {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: 0.08em;
}

.hero-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 1.2rem;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.hero-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0;
}

/* --- Section --- */
.section {
  padding: 2.5rem 0;
}

.section-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-light);
  display: inline-block;
}

/* --- Article Cards --- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.article-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: inherit;
}

.card-category {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.cat-attachment {
  background: var(--sage-light);
  color: #5A7A5E;
}

.cat-self-worth {
  background: var(--rose-light);
  color: #9A6868;
}

.cat-couple {
  background: #E0D5C8;
  color: #7A6A55;
}

.card-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.card-excerpt {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

.card-date {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.8rem;
}

/* --- Article List Page --- */
.article-list-item {
  display: flex;
  gap: 1.2rem;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.article-list-item:hover {
  transform: translateY(-1px);
}

.article-thumb {
  width: 100px;
  min-width: 100px;
  height: 80px;
  background: var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-light);
}

.article-list-info {
  flex: 1;
}

.article-list-info .card-title {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.article-list-info .card-excerpt {
  font-size: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Article Detail --- */
.article-header {
  padding: 2.5rem 0 0.5rem;
  text-align: center;
}

.article-header .card-category {
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

.article-body {
  padding-bottom: 3rem;
}

.article-body p {
  margin-bottom: 1.4rem;
  line-height: 2;
}

.article-body h2 {
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--accent);
}

.article-body h3 {
  color: #8C7A5A;
}

.article-body .lead-text {
  font-size: 1.05rem;
  color: var(--text);
  background: linear-gradient(transparent 70%, var(--rose-light) 70%);
  display: inline;
  padding: 0 2px;
}

.article-body blockquote {
  background: var(--bg);
  border-left: 3px solid var(--sage);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  color: var(--text);
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* Empathy box */
.empathy-box {
  background: #FFF9F5;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0 2rem;
  border: 1px solid #F0E6DA;
}

.empathy-box p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.empathy-box p:last-child {
  margin-bottom: 0;
}

/* Summary box */
.summary-box {
  background: #F5F9F6;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 3.5rem 0 2rem;
  border: 1px solid #DDE8DF;
}

.summary-box h3 {
  color: var(--sage);
  margin-top: 0;
  margin-bottom: 0.8rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 1rem 0 0;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 0.4rem;
}

/* --- Affiliate Banner --- */
.affiliate-banner {
  margin: 2.5rem 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #FFF9F5, #FDF5F5);
  border-radius: 12px;
  text-align: center;
  border: 1px solid #F0E6DA;
}

.affiliate-placeholder {}

.affiliate-lead {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.affiliate-link {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--rose);
  color: #FFF;
  border-radius: 30px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.affiliate-link:hover {
  background: #C48E8E;
  color: #FFF;
  transform: translateY(-1px);
}

/* Sidebar affiliate (footer style) */
.sidebar-affiliate {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  box-shadow: 0 1px 4px var(--shadow);
}

.sidebar-affiliate h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.sidebar-affiliate p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* --- About Page --- */
.about-content {
  padding: 2rem 0 3rem;
}

.about-content h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.about-content p {
  margin-bottom: 1.4rem;
  line-height: 2;
}

.about-values {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.about-values li {
  padding: 0.8rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.8;
}

.about-values li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
  text-align: center;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Related Articles */
.related-articles {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  margin-top: 0;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.related-item {
  display: block;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px var(--shadow);
  transition: transform 0.2s ease;
}

.related-item:hover {
  transform: translateY(-1px);
  color: inherit;
}

.related-item .card-category {
  margin-bottom: 0.3rem;
}

.related-item .card-title {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Affiliate sub text */
.affiliate-sub {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.8rem;
  margin-bottom: 0;
}

/* --- Responsive --- */

/* Tablet+ */
@media (min-width: 600px) {
  .hero {
    padding: 6rem 2rem 5rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-tagline {
    font-size: 1.15rem;
  }

  .hero-circle-1 {
    width: 450px;
    height: 450px;
  }

  .hero-circle-2 {
    width: 350px;
    height: 350px;
  }

  .article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .article-header h1 {
    font-size: 1.7rem;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .article-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Mobile nav */
@media (max-width: 599px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  :root {
    --side-padding: 16px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .article-thumb {
    width: 80px;
    min-width: 80px;
    height: 65px;
  }
}
