/* === ちいさなまるノート 共通スタイル === */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.85; color: #3a2818; background: #fff8ec;
}

/* === ナビゲーション === */
.navbar {
  background: #fff; padding: 16px 24px;
  box-shadow: 0 2px 8px rgba(244, 162, 97, 0.1);
  position: sticky; top: 0; z-index: 100;
}
.navbar .container {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid #f4a261;
}
.brand-text { font-weight: 700; color: #c2410c; font-size: 18px; }
.brand-sub { font-size: 11px; color: #8b4513; letter-spacing: 0.1em; }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: #5b3a1f; text-decoration: none; font-weight: 700; font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover { color: #c2410c; }

/* === ヒーローセクション === */
.hero {
  background: linear-gradient(135deg, #ffeacc 0%, #ffe0e0 100%);
  padding: 60px 24px 50px; text-align: center;
  position: relative; overflow: hidden;
}
.hero-character {
  width: 180px; height: 180px; object-fit: cover; border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 6px 20px rgba(255, 138, 128, 0.2);
  margin-bottom: 20px;
}
.hero-tag {
  display: inline-block; font-size: 12px; letter-spacing: 0.3em;
  color: #c2410c; background: rgba(255,255,255,0.7);
  padding: 6px 18px; border-radius: 20px; margin-bottom: 16px;
  border: 1px dashed #ff8a80;
}
.hero-title {
  font-size: 32px; font-weight: 700; color: #1a1a1a;
  margin-bottom: 14px; letter-spacing: 0.05em; line-height: 1.4;
}
.hero-title .accent { color: #ff5252; }
.hero-sub {
  font-size: 16px; color: #5b3a1f; margin-bottom: 24px; line-height: 1.8;
}
.cta-btn {
  display: inline-block; padding: 14px 32px;
  background: linear-gradient(135deg, #ff8a80, #c2410c);
  color: #fff; text-decoration: none; font-weight: 700;
  border-radius: 28px; box-shadow: 0 4px 14px rgba(255, 138, 128, 0.3);
  transition: transform 0.15s;
}
.cta-btn:hover { transform: translateY(-2px); }

/* === セクション === */
section { padding: 60px 24px; }
.container { max-width: 1080px; margin: 0 auto; }
h2 {
  font-size: 28px; text-align: center; margin-bottom: 12px;
  color: #1a1a1a; letter-spacing: 0.05em;
}
h2 .en {
  display: block; font-family: Georgia, serif; font-size: 13px;
  color: #ff8a80; margin-bottom: 8px; letter-spacing: 0.4em; font-weight: normal;
}
.section-divider {
  width: 60px; height: 3px; background: #ff8a80; margin: 0 auto 40px;
}

/* === カードグリッド === */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card {
  background: #fff; border-radius: 12px;
  overflow: hidden; text-decoration: none; color: inherit;
  border-top: 4px solid #ff8a80;
  box-shadow: 0 3px 14px rgba(255, 138, 128, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 138, 128, 0.15);
}
.card-head {
  padding: 16px 20px 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.card-num {
  font-family: Georgia, serif; font-size: 13px;
  color: #ff8a80; letter-spacing: 0.15em; font-weight: 700;
}
.card-tag {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 10px; color: #fff; background: #ff8a80;
}
.card-tag.tag-care { background: #ff8a80; }
.card-tag.tag-iku { background: #f4a261; }
.card-tag.tag-life { background: #16a34a; }
.card-tag.tag-self { background: #7c3aed; }
.card-body { padding: 0 20px 16px; }
.card-title {
  font-size: 17px; line-height: 1.5; font-weight: 700;
  color: #1a1a1a; margin-bottom: 10px;
}
.card-desc { font-size: 13px; color: #6b6b6b; line-height: 1.7; }
.card-foot {
  padding: 12px 20px; background: #fff8ec;
  text-align: center; font-size: 13px;
  color: #c2410c; font-weight: 700;
  border-top: 1px solid #ffe0e0;
}
.card-foot::after { content: " →"; }

/* === 記事ページ === */
.article-hero {
  background: linear-gradient(135deg, #ffeacc 0%, #ffe0e0 100%);
  padding: 50px 24px 30px; text-align: center;
}
.article-tag {
  display: inline-block; font-size: 12px; padding: 6px 14px;
  border-radius: 12px; color: #fff; background: #ff8a80;
  margin-bottom: 14px;
}
.article-title {
  font-size: 26px; font-weight: 700; color: #1a1a1a;
  margin-bottom: 14px; line-height: 1.5;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.article-meta { font-size: 13px; color: #6b6b6b; }

.article-body {
  max-width: 720px; margin: 0 auto; padding: 50px 24px;
  background: #fff; border-radius: 16px; margin-top: -30px;
  box-shadow: 0 4px 20px rgba(255, 138, 128, 0.1);
  position: relative; z-index: 2;
}
.article-body p { margin-bottom: 1.4em; font-size: 15px; }
.article-body h3 {
  font-size: 20px; color: #c2410c; margin: 32px 0 14px;
  border-left: 4px solid #ff8a80; padding-left: 12px;
}
.article-body .point-box {
  background: #fff8ec; border: 2px dashed #ff8a80; border-radius: 10px;
  padding: 20px 24px; margin: 24px 0;
}
.article-body .point-box strong { color: #c2410c; }

/* === Aboutセクション === */
.about-text { max-width: 720px; margin: 0 auto; font-size: 15px; line-height: 1.95; }
.about-text p { margin-bottom: 1.4em; }
.about-notice {
  background: #fff8ec; border-left: 4px solid #ff8a80;
  padding: 18px 24px; border-radius: 4px; font-size: 13px;
  color: #5b3a1f; line-height: 1.75; margin-top: 24px;
}

/* === コンタクトセクション === */
.contact-card {
  max-width: 540px; margin: 40px auto;
  background: #fff; border-radius: 16px; padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(255, 138, 128, 0.1);
  border-top: 4px solid #ff8a80;
}
.contact-icon { font-size: 48px; margin-bottom: 14px; }
.contact-text { color: #5b3a1f; margin-bottom: 24px; line-height: 1.8; }

/* === フッター === */
footer {
  background: #fff; color: #5b3a1f;
  padding: 40px 24px; text-align: center;
  border-top: 1px solid #ffe0e0;
}
footer .clover { font-size: 14px; color: #ff8a80; margin-bottom: 12px; }
footer .quote {
  font-style: italic; color: #5b3a1f; line-height: 1.7;
  margin-bottom: 18px; font-size: 14px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
footer .copy {
  font-size: 11px; color: #9ca3af; letter-spacing: 0.1em;
  border-top: 1px solid #ffe0e0; padding-top: 14px; margin-top: 18px;
}

/* === 記事末尾CTAナビ === */
.article-bottom {
  max-width: 720px; margin: 30px auto; padding: 24px;
  display: flex; justify-content: space-between; gap: 14px;
}
.article-bottom a {
  flex: 1; padding: 14px 20px; background: #fff;
  border: 2px solid #ff8a80; border-radius: 12px;
  text-align: center; color: #c2410c; font-weight: 700;
  text-decoration: none; font-size: 13px;
  transition: all 0.15s;
}
.article-bottom a:hover { background: #ff8a80; color: #fff; }

@media (max-width: 880px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .nav-links { gap: 16px; font-size: 12px; }
}
@media (max-width: 580px) {
  .hero { padding: 40px 20px 35px; }
  .hero-character { width: 140px; height: 140px; }
  .hero-title { font-size: 22px; }
  .hero-sub { font-size: 14px; }
  section { padding: 40px 20px; }
  h2 { font-size: 22px; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .article-title { font-size: 22px; }
  .article-body { padding: 30px 20px; }
  .article-bottom { flex-direction: column; }
  .nav-links { display: none; }
  .brand-text { font-size: 16px; }
}
