/* ぴかりんご / Shiny Apple — Shared Stylesheet */

:root {
  --cream: #fdf8f2;
  --cream2: #f7f0e6;
  --cream3: #efe5d8;
  --lavender: #f0eaf8;
  --lavender2: #e2d5f0;
  --lavender3: #c8b8e0;
  --purple-dark: #4a3868;
  --purple-mid: #6a5888;
  --purple-light: #9a88b8;
  --gold: #c8a850;
  --brown: #5a4030;
  --brown-light: #8a7060;
  --text: #3a2c20;
  --text-mid: #6a5848;
  --text-light: #9a8878;
  --border: #ddd0c8;
  --border-lav: #d0c0e0;
}

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

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'EB Garamond', 'Zen Kurenaido', serif;
  font-size: 16px;
  line-height: 1.8;
}

/* ── HEADER ── */
header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--purple-dark);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.site-title span {
  font-size: 13px;
  color: var(--purple-light);
  font-style: italic;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  background: var(--lavender);
  border-radius: 20px;
  border: 1px solid var(--border-lav);
  overflow: hidden;
}

.lang-btn {
  padding: 4px 14px;
  font-size: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--purple-mid);
  font-family: 'EB Garamond', serif;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--purple-dark);
  color: var(--cream);
}

nav { display: flex; gap: 1.5rem; }

nav a {
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover { color: var(--purple-dark); }

/* ── HERO（トップページ用・大） ── */
.hero {
  background: linear-gradient(160deg, var(--lavender) 0%, var(--cream2) 60%, var(--cream3) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '❧';
  position: absolute;
  font-size: 180px;
  opacity: 0.04;
  top: -20px;
  left: -20px;
  color: var(--purple-dark);
}

.hero::after {
  content: '❧';
  position: absolute;
  font-size: 180px;
  opacity: 0.04;
  bottom: -40px;
  right: -20px;
  color: var(--purple-dark);
  transform: scaleX(-1);
}

.hero-flowers {
  font-size: 26px;
  letter-spacing: 8px;
  opacity: 0.6;
  display: block;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 400;
  color: var(--purple-dark);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.hero-title-en {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 400;
  font-style: italic;
  color: var(--purple-dark);
  margin-bottom: 0.4rem;
}

.hero-sub {
  font-size: 15px;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-tagline {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 2;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.hero-ornament {
  color: var(--lavender3);
  font-size: 18px;
  letter-spacing: 10px;
  display: block;
  margin-top: 2rem;
}

/* ── PAGE HERO（内部ページ用・小） ── */
.page-hero {
  background: linear-gradient(160deg, var(--lavender) 0%, var(--cream2) 100%);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-lav);
}

.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 400;
  color: var(--purple-dark);
  margin-bottom: 0.3rem;
}

.page-hero-sub {
  font-size: 14px;
  color: var(--purple-light);
  font-style: italic;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  font-size: 12px;
  color: var(--text-light);
  font-family: sans-serif;
}

.breadcrumb a { color: var(--purple-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--purple-dark); }
.breadcrumb span { margin: 0 6px; }

/* ── MAIN LAYOUT ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.container.single-col {
  grid-template-columns: 1fr;
  max-width: 700px;
}

/* ── CATEGORY PILLS ── */
.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.cat-pill {
  font-size: 13px;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid;
  cursor: pointer;
  font-family: 'EB Garamond', serif;
  transition: all 0.2s;
  background: transparent;
}

.cat-pill.all   { color: var(--purple-mid); border-color: var(--lavender3); background: var(--lavender); }
.cat-pill.life  { color: #3a6040; border-color: #a8c8a8; background: #eaf4ea; }
.cat-pill.money { color: #806030; border-color: #d0b888; background: #fdf4e0; }
.cat-pill.work  { color: #885050; border-color: #d0a0a0; background: #fce8e8; }
.cat-pill.japan { color: #505888; border-color: #a8b0d0; background: #eaeeff; }
.cat-pill.active, .cat-pill:hover { filter: brightness(0.88); }

/* ── POST CARDS ── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.post-card {
  background: #fff;
  border: 1px solid var(--border-lav);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card:hover {
  border-color: var(--lavender3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(100, 80, 150, 0.08);
}

.post-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--lavender3);
  background: var(--lavender);
}

.post-body { padding: 1rem; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.post-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: sans-serif;
}

.post-tag.life  { background: #eaf4ea; color: #3a6040; }
.post-tag.money { background: #fdf4e0; color: #806030; }
.post-tag.work  { background: #fce8e8; color: #885050; }
.post-tag.japan { background: #eaeeff; color: #505888; }

.post-date { font-size: 11px; color: var(--text-light); font-family: sans-serif; }

.post-title {
  font-size: 14px;
  color: var(--purple-dark);
  line-height: 1.55;
  font-weight: 500;
}

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border-lav);
  border-radius: 12px;
  padding: 1.3rem;
}

.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--purple-dark);
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lavender2);
  font-weight: 400;
}

.about-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--lavender2);
  border: 2px solid var(--lavender3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 0.8rem;
}

.about-name {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--purple-dark);
  margin-bottom: 4px;
}

.about-name-en {
  text-align: center;
  font-size: 13px;
  color: var(--purple-light);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.about-body {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.85;
}

.popular-list { list-style: none; }

.popular-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--lavender2);
  font-size: 13px;
  color: var(--text-mid);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
  transition: color 0.2s;
}

.popular-list li:hover { color: var(--purple-dark); }
.popular-list li:last-child { border-bottom: none; }

.popular-num {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--lavender3);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.ad-placeholder {
  background: var(--lavender);
  border: 1px dashed var(--lavender3);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  font-size: 12px;
  color: var(--purple-light);
  font-style: italic;
}

.quote-box {
  background: var(--lavender);
  border-left: 3px solid var(--lavender3);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--purple-dark);
  line-height: 1.8;
  margin-bottom: 6px;
}

.quote-attr {
  font-size: 11px;
  color: var(--purple-light);
  font-family: sans-serif;
}

/* ── CONTENT BLOCKS（about / privacy / contact） ── */
.content-section {
  background: #fff;
  border: 1px solid var(--border-lav);
  border-radius: 12px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
}

.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--purple-dark);
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lavender2);
}

.content-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--purple-mid);
  margin: 1.5rem 0 0.6rem;
}

.content-section p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.content-section ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.content-section ul li {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 0.3rem;
}

.content-section a { color: var(--purple-mid); text-decoration: underline; text-underline-offset: 3px; }
.content-section a:hover { color: var(--purple-dark); }

/* ── PROFILE PAGE ── */
.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--lavender3);
  display: block;
  margin: 0 auto 1.2rem;
  background: var(--lavender2);
}

.profile-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--lavender2);
  border: 3px solid var(--lavender3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  margin: 0 auto 1.2rem;
}

.profile-name {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--purple-dark);
  margin-bottom: 4px;
}

.profile-name-en {
  text-align: center;
  font-size: 15px;
  color: var(--purple-light);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.profile-tag {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--lavender);
  border: 1px solid var(--lavender3);
  border-radius: 20px;
  color: var(--purple-mid);
  font-family: sans-serif;
}

/* ── CONTACT FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  color: var(--text-mid);
  font-family: sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 14px;
  border: 1px solid var(--border-lav);
  border-radius: 8px;
  font-family: 'EB Garamond', 'Zen Kurenaido', serif;
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--lavender3);
  background: #fff;
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 12px;
  color: var(--text-light);
  font-family: sans-serif;
  line-height: 1.7;
}

.btn-submit {
  display: inline-block;
  padding: 12px 32px;
  background: var(--purple-dark);
  color: var(--cream);
  border: none;
  border-radius: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

.btn-submit:hover { background: var(--purple-mid); transform: translateY(-1px); }

/* ── ARTICLE（記事ページ） ── */
.article-header { margin-bottom: 2rem; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 400;
  color: var(--purple-dark);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--purple-dark);
  margin: 2.5rem 0 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lavender2);
}

.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--purple-mid);
  margin: 1.8rem 0 0.8rem;
}

.article-body p {
  font-size: 16px;
  color: var(--text);
  line-height: 2;
  margin-bottom: 1.4rem;
}

.article-body ul, .article-body ol {
  padding-left: 1.6rem;
  margin-bottom: 1.4rem;
}

.article-body li {
  font-size: 16px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 0.4rem;
}

.article-body img {
  width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-body a { color: var(--purple-mid); text-decoration: underline; text-underline-offset: 3px; }

/* アフィリエイトボックス */
.affiliate-box {
  background: #fff;
  border: 1px solid var(--lavender3);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.affiliate-box-icon { font-size: 36px; flex-shrink: 0; }
.affiliate-box-body { flex: 1; }

.affiliate-box-title {
  font-size: 14px;
  color: var(--purple-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.affiliate-box-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 8px;
}

.affiliate-box-btn {
  display: inline-block;
  padding: 6px 18px;
  background: var(--gold);
  color: #fff;
  border-radius: 16px;
  font-size: 13px;
  text-decoration: none;
  font-family: sans-serif;
  transition: all 0.2s;
}

.affiliate-box-btn:hover { filter: brightness(0.92); }

/* 関連記事 */
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--lavender2); }

.related-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--purple-dark);
  margin-bottom: 1rem;
}

/* ── FOOTER ── */
footer {
  background: var(--purple-dark);
  color: var(--lavender2);
  text-align: center;
  padding: 2.5rem 2rem;
  margin-top: 2rem;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
  color: #fff;
}

.footer-sub {
  font-size: 13px;
  color: var(--lavender3);
  font-style: italic;
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.footer-links a {
  font-size: 13px;
  color: var(--lavender3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 11px;
  color: var(--purple-light);
  font-family: sans-serif;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .container { grid-template-columns: 1fr; padding: 2rem 1rem; }
  .posts-grid { grid-template-columns: 1fr; }
  nav { display: none; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .page-hero { padding: 2rem 1rem; }
  .affiliate-box { flex-direction: column; text-align: center; }
}

/* ── LANG SWITCH ── */
.lj, .le { transition: opacity 0.15s; }
