/*
Theme Name: みーちゃん やさしいお金ブログ
Theme URI: https://www.instagram.com/mechan_otoku/
Author: みーちゃん
Description: 節約・貯金・稼ぐ・投資をやさしく伝える、読みやすいWordPressテーマです。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: miichan-money
*/

:root {
  --ink: #3f3437;
  --muted: #75696c;
  --paper: #fffaf7;
  --surface: #ffffff;
  --pink: #e97891;
  --pink-dark: #b84d68;
  --pink-soft: #fff0f3;
  --sage: #7aa58b;
  --sage-soft: #eef7f0;
  --gold: #d8a84e;
  --lavender: #8b79b7;
  --line: #eadfda;
  --shadow: 0 14px 40px rgba(93, 70, 75, .09);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
}

a { color: var(--pink-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }
img { max-width: 100%; height: auto; border-radius: 16px; }

.site-shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 36px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,250,247,.93);
  border-bottom: 1px solid rgba(234,223,218,.85);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-brand { color: var(--ink); text-decoration: none; }
.site-brand strong { display: block; font-size: 18px; line-height: 1.3; }
.site-brand span { display: block; color: var(--muted); font-size: 11px; }

.main-nav ul {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 76px;
  background:
    radial-gradient(circle at 10% 20%, rgba(233,120,145,.18), transparent 30%),
    radial-gradient(circle at 90% 30%, rgba(122,165,139,.19), transparent 26%),
    linear-gradient(145deg, #fffaf7 20%, #fff1f4 100%);
}

.hero::after {
  content: "￥";
  position: absolute;
  right: 7%;
  top: 30px;
  color: rgba(233,120,145,.09);
  font-size: clamp(180px, 30vw, 390px);
  font-weight: 900;
  line-height: 1;
  transform: rotate(8deg);
}

.hero-inner { position: relative; z-index: 1; max-width: 800px; }

.eyebrow {
  display: inline-block;
  padding: 7px 13px;
  color: var(--pink-dark);
  background: rgba(255,255,255,.8);
  border: 1px solid #f3cbd4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 770px;
  margin: 20px 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.25;
  letter-spacing: .01em;
}

.hero p { max-width: 650px; margin: 0 0 28px; color: #5d5054; font-size: 18px; font-weight: 600; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary { color: #fff; background: var(--pink); box-shadow: 0 10px 25px rgba(233,120,145,.25); }
.button-primary:hover { color: #fff; background: var(--pink-dark); }
.button-ghost { margin-left: 8px; color: var(--ink); background: #fff; border: 1px solid var(--line); }

.section { padding: 72px 0; }
.section-soft { background: #fff5f6; }
.section-title { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.35; }
.section-lead { max-width: 680px; margin: 0 0 30px; color: var(--muted); }

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: road;
}

.road-card {
  position: relative;
  min-height: 270px;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.road-card::before {
  counter-increment: road;
  content: "0" counter(road);
  display: block;
  margin-bottom: 28px;
  color: var(--pink);
  font-size: 30px;
  font-weight: 900;
}

.road-card:nth-child(2)::before { color: var(--gold); }
.road-card:nth-child(3)::before { color: var(--sage); }
.road-card:nth-child(4)::before { color: var(--lavender); }
.road-card h3 { margin: 0 0 10px; font-size: 24px; }
.road-card p { margin: 0; color: var(--muted); font-size: 14px; }
.road-card a { position: absolute; inset: 0; border-radius: var(--radius); font-size: 0; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.post-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-card-body { padding: 23px; }
.post-card .category-label { color: var(--pink-dark); font-size: 12px; font-weight: 800; }
.post-card h2, .post-card h3 { margin: 8px 0 12px; font-size: 21px; line-height: 1.55; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; }

.profile-box {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background: linear-gradient(135deg, var(--sage-soft), #fff);
  border: 1px solid #d9e9de;
  border-radius: var(--radius);
}

.profile-mark {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #f4aa83);
  border-radius: 50%;
  font-size: 42px;
  font-weight: 900;
}

.profile-photo {
  display: block;
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.profile-box h2 { margin: 0 0 8px; }
.profile-box p { margin: 0 0 14px; color: var(--muted); }

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 42px;
  align-items: start;
  padding: 56px 0 80px;
}

.article-body {
  padding: clamp(24px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-body h1 { margin: 8px 0 18px; font-size: clamp(30px, 5vw, 46px); line-height: 1.45; }
.article-body h2 { margin: 54px 0 20px; padding-bottom: 10px; border-bottom: 3px solid #f4c9d3; font-size: 28px; line-height: 1.55; }
.article-body h3 { margin: 36px 0 12px; font-size: 22px; }
.article-body p { margin: 0 0 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 28px 0;
  padding: 20px 22px;
  background: var(--pink-soft);
  border-left: 5px solid var(--pink);
  border-radius: 0 14px 14px 0;
}

.article-meta { color: var(--muted); font-size: 13px; }
.pr-note, .money-note {
  margin: 24px 0;
  padding: 17px 20px;
  border-radius: 14px;
  font-size: 14px;
}
.pr-note { background: #f8f4ed; border: 1px solid #e8ddc8; }
.money-note { background: var(--sage-soft); border: 1px solid #cfe3d5; }

.sidebar-box {
  margin-bottom: 20px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.sidebar-box h2 { margin: 0 0 12px; font-size: 18px; }
.sidebar-box ul { margin: 0; padding-left: 20px; }

.site-footer { padding: 48px 0; color: #fff; background: #55474b; }
.footer-inner { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }
.footer-inner a { color: #fff; }

.pagination { margin-top: 34px; }
.nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.page-numbers { padding: 8px 13px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.page-numbers.current { color: #fff; background: var(--pink); }

@media (max-width: 900px) {
  .roadmap, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 650px) {
  body { font-size: 15px; }
  .header-inner { min-height: 64px; }
  .main-nav { display: none; }
  .hero { padding: 62px 0 56px; }
  .hero p { font-size: 16px; }
  .button { width: 100%; }
  .button-ghost { margin: 10px 0 0; }
  .roadmap, .post-grid, .sidebar { grid-template-columns: 1fr; }
  .profile-box { grid-template-columns: 1fr; text-align: center; }
  .profile-mark { margin-inline: auto; }
  .article-body { border-radius: 16px; }
}
