@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

:root {
  --cream: #fbf5f3;
  --blush: #f3dfe1;
  --blush-dark: #dfb9bd;
  --mauve: #6e5254;
  --mauve-soft: #9c7d7f;
  --ink: #4a3536;
  --accent-deep: #E3C8BB;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Zen Maru Gothic', sans-serif;
  background: var(--cream);
  color: var(--mauve);
  line-height: 1.85;
  font-size: 15px;
}

h1, h2, h3, .brand, .catch, .step-card .title, .roadmap-step-head .step-no {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
}

a { color: inherit; }

/* ---------- 常時表示コミュニティバー ---------- */
.community-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent-deep);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
}
.community-bar a {
  text-decoration: none;
  font-weight: 700;
  color: var(--mauve);
}
.community-bar a:hover { text-decoration: underline; }

/* ---------- サイト全体の固定背景写真（2026-07-08追加） ---------- */
/* body の background-attachment:fixed は古いiOS Safariで不安定なため、専用の固定divで実装 */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(251,245,243,.82), rgba(251,245,243,.82)),
    url('images/bg-bookshelf.png') center top / cover no-repeat;
}

/* ---------- ヘッダー / ヒーロー ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 64px 20px 50px;
}
.hero h1 { font-size: clamp(19px, calc(7vw - 3px), 25px); margin-bottom: 14px; line-height: 1.5; }
.hero p.sub { color: var(--ink); margin-bottom: 26px; font-size: 15px; }

.btn {
  display: inline-block;
  background: var(--accent-deep);
  color: var(--mauve) !important;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(168, 102, 111, 0.3);
}
.btn.outline { background: var(--white); color: var(--accent-deep) !important; border: 1px solid var(--blush-dark); }
.btn.small { padding: 10px 20px; font-size: 13px; }

/* ---------- section 共通 ---------- */
.section { padding: 40px 20px; max-width: 980px; margin: 0 auto; }
.section-label {
  text-align: center; color: var(--accent-deep); letter-spacing: 3px;
  font-size: 11px; text-transform: uppercase; margin-bottom: 8px;
}
.section h2 { text-align: center; font-size: 24px; margin-bottom: 30px; }

/* ---------- STEP早見グリッド ---------- */
.step-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 600px) { .step-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card {
  background: var(--white); border-radius: 16px; padding: 22px 8px; text-align: center;
  text-decoration: none; color: var(--mauve); border: 1px solid var(--blush);
  transition: transform .15s;
}
.step-card:hover { transform: translateY(-3px); }
.step-card .num { font-size: 12px; color: var(--accent-deep); font-weight: 700; letter-spacing: 1px; }
.step-card .title { font-size: 14px; margin-top: 8px; letter-spacing: -0.02em; }

/* ---------- ロードマップ本体 ---------- */
.roadmap-step { margin-bottom: 44px; scroll-margin-top: 60px; }
.roadmap-step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.roadmap-step-head .step-no { font-size: 34px; color: var(--blush-dark); }
.roadmap-step-head .step-label { font-size: 11px; color: var(--accent-deep); letter-spacing: 1px; }
.roadmap-step-head h3 { font-size: 20px; }

.article-scroll {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.article-card {
  scroll-snap-align: start;
  flex: 0 0 220px;
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--blush); text-decoration: none; color: var(--mauve);
}
.article-card .thumb {
  height: 120px; background: linear-gradient(135deg, var(--blush), var(--cream));
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--mauve-soft);
  text-align: center; padding: 8px;
}
.article-card .body { padding: 12px 14px 16px; }
.article-card .tag { font-size: 11px; color: var(--accent-deep); }
.article-card .title { font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 14px; margin-top: 4px; }

/* ---------- プロフィール ---------- */
.profile-wrap { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; justify-content: center; }
.profile-photo {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--white));
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--mauve-soft);
  border: 1px solid var(--blush-dark); text-align: center; flex: 0 0 120px;
}
.profile-text { max-width: 420px; color: var(--ink); }
.profile-text .handle { font-weight: 700; margin-bottom: 6px; }
.profile-text .bio { white-space: pre-line; font-size: 14px; margin: 10px 0; }

/* ---------- LINEオープンチャット独立セクション ---------- */
.line-section {
  background: var(--white); border-radius: 24px; padding: 36px 24px; text-align: center;
  max-width: 560px; margin: 0 auto; border: 1px solid var(--blush);
}
.line-section .thumb {
  height: 160px; border-radius: 16px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.5) 0%, transparent 55%),
    linear-gradient(135deg, var(--blush-dark), var(--blush) 60%, var(--cream));
  display: flex; align-items: center; justify-content: center; color: var(--mauve-soft); font-size: 13px; margin-bottom: 22px;
}
.line-section h2 { margin-bottom: 10px; }
.line-section p { color: var(--mauve-soft); margin-bottom: 22px; font-size: 14px; }

/* ---------- 人気記事 ---------- */
.popular-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .popular-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- フッター ---------- */
footer { text-align: center; padding: 36px 20px 50px; color: var(--mauve-soft); font-size: 13px; }
footer a { text-decoration: underline; }

/* ---------- 記事ページ ---------- */
.breadcrumb { font-size: 13px; color: var(--mauve-soft); padding: 18px 20px 0; max-width: 720px; margin: 0 auto; }
.breadcrumb a { text-decoration: none; color: var(--accent-deep); }
.article-header { max-width: 720px; margin: 0 auto; padding: 10px 20px 20px; }
.article-header .cat { font-size: 12px; color: var(--accent-deep); letter-spacing: 1px; }
.article-header .cat .pr { color: var(--accent-deep); }
.article-header h1 { font-size: 24px; margin: 8px 0; }
.article-header .date { font-size: 12px; color: var(--mauve-soft); }

.article-body { max-width: 720px; margin: 0 auto; padding: 0 20px 60px; }
.article-body h2 { font-size: 18px; margin: 30px 0 12px; border-left: 4px solid var(--blush-dark); padding-left: 10px; }

.bubble { display: flex; gap: 10px; margin: 18px 0; align-items: flex-start; }
.bubble .avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--blush-dark); flex: 0 0 38px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--mauve);
  overflow: hidden;
}
.bubble .avatar img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.45); display: block; }
.bubble .avatar img[alt="困ってる人"] { transform: scale(1.2); }
.bubble .text { background: var(--white); border: 1px solid var(--blush); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.bubble .who { font-size: 11px; color: var(--mauve-soft); margin-bottom: 3px; }

.summary-box { background: var(--white); border: 1px solid var(--blush-dark); border-radius: 14px; padding: 18px 22px; margin: 22px 0; }
.summary-box ul { padding-left: 20px; }

.cta-box { text-align: center; margin: 34px 0; padding: 26px 20px; background: var(--blush); border-radius: 16px; }
.cta-box .note { font-size: 12px; color: var(--mauve-soft); margin-top: 10px; }

.author-box {
  display: flex; gap: 14px; align-items: center; margin: 34px 0; padding: 18px; background: var(--white);
  border-radius: 14px; border: 1px solid var(--blush);
}
.author-box .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blush-dark); flex: 0 0 56px; overflow: hidden; }
.author-box .avatar img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.45); display: block; }
.author-box .name { font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 16px; }
.author-box .desc { font-size: 12px; color: var(--mauve-soft); }

.back-link { display: block; text-align: center; padding: 10px 20px 30px; color: var(--mauve-soft); text-decoration: none; font-size: 14px; }
.back-link:hover { text-decoration: underline; }
