/* ===========================================================
   Stone Artistry HISUI — note.com Article Preview CSS (DEMO ONLY)
   note 風（白基調・読みやすい本文・縦書き引用）
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

:root {
  --note-green: #2cb696;
  --note-green-dark: #1f8a73;
  --note-bg: #ffffff;
  --note-bg-soft: #f7f7f7;
  --note-bg-alt: #fafafa;
  --note-border: #ebebeb;
  --note-text: #2c2c2c;
  --note-text-soft: #595959;
  --note-text-light: #898989;
  --note-link: #2cb696;
  --serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', 'YuMincho', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic UI', 'Helvetica Neue', Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--note-text);
  background: var(--note-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* DEMO ONLY バッジ */
.demo-badge {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(192, 57, 43, .35);
  pointer-events: none;
}

/* ============= HEADER ============= */
.note-header {
  border-bottom: 1px solid var(--note-border);
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(12px);
}
.note-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
}
.note-logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--note-text);
  letter-spacing: -0.04em;
  font-family: var(--sans);
}
.note-search {
  background: var(--note-bg-soft);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--note-text-light);
}
.btn-write {
  background: var(--note-text);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
}
.btn-login {
  font-size: 14px;
  font-weight: 700;
  color: var(--note-text);
  padding: 8px 14px;
}

/* ============= ARTICLE ============= */
.note-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

/* ヘッダー画像 */
.article-header-image {
  margin: 0 -20px 28px;
  border-radius: 0;
  overflow: hidden;
  background: #1a0d12;
  aspect-ratio: 16 / 9;
}
.article-header-image img {
  width: 100%; height: 100%; object-fit: cover;
}

/* タイトル */
.article-title {
  font-size: 32px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--note-text);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

/* 著者情報 */
.article-meta {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--note-border);
  border-bottom: 1px solid var(--note-border);
  margin-bottom: 32px;
}
.article-meta__avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #1a0d12;
  overflow: hidden;
  flex-shrink: 0;
}
.article-meta__avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-meta__author {
  flex: 1;
  font-size: 14px;
}
.article-meta__author strong { font-weight: 700; display: block; font-size: 15px; margin-bottom: 2px; }
.article-meta__author span { color: var(--note-text-soft); }
.article-meta__follow {
  background: var(--note-text);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
}

/* 本文 */
.article-body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--note-text);
}
.article-body p {
  margin-bottom: 1.8em;
}
.article-body p.lead {
  font-size: 15px;
}
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 56px 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--note-text);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 36px 0 16px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* 画像 */
.article-body figure {
  margin: 32px -20px;
}
.article-body figure img {
  width: 100%;
  border-radius: 0;
}
.article-body figure figcaption {
  font-size: 13px;
  color: var(--note-text-soft);
  text-align: center;
  margin-top: 10px;
  padding: 0 20px;
}

/* 引用ブロック（縦書き風） */
.article-body blockquote {
  border-left: 4px solid var(--note-text);
  padding: 12px 20px;
  margin: 28px 0;
  background: var(--note-bg-soft);
  font-size: 15px;
  color: var(--note-text);
  line-height: 1.85;
}
.article-body blockquote p { margin-bottom: 0.8em; }
.article-body blockquote p:last-child { margin-bottom: 0; }

/* リスト */
.article-body ul.bulleted {
  margin: 20px 0 28px;
  padding-left: 0;
  list-style: none;
}
.article-body ul.bulleted li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.85;
}
.article-body ul.bulleted li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85em;
  width: 8px; height: 8px;
  background: var(--note-text);
  border-radius: 50%;
}

.article-body hr {
  border: none;
  height: 1px;
  background: var(--note-border);
  margin: 48px 0;
}

/* インラインの強調・リンク */
.article-body a {
  color: var(--note-link);
  border-bottom: 1px solid var(--note-link);
}

/* ============= タグ ============= */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 32px;
}
.article-tags li {
  background: var(--note-bg-soft);
  color: var(--note-text);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 500;
}
.article-tags li::before { content: '#'; margin-right: 2px; color: var(--note-text-light); }

/* ============= サポート / 評価 ============= */
.article-engage {
  margin: 40px 0;
  padding: 28px 20px;
  border: 1px solid var(--note-border);
  border-radius: 12px;
  text-align: center;
  background: var(--note-bg-alt);
}
.article-engage__text {
  font-size: 15px;
  color: var(--note-text-soft);
  margin-bottom: 18px;
}
.article-engage__row {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.like-btn {
  background: #fff;
  border: 1px solid var(--note-border);
  color: var(--note-text);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
}
.like-btn .heart { color: #ec5b8a; font-size: 16px; }
.support-btn {
  background: linear-gradient(180deg, #ff7a59 0%, #ec5b8a 100%);
  color: #fff;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(236, 91, 138, 0.35);
}

/* ============= 著者プロフィール ============= */
.author-profile {
  margin-top: 40px;
  padding: 28px 22px;
  border: 1px solid var(--note-border);
  border-radius: 12px;
  background: #fff;
}
.author-profile__row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.author-profile__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a0d12;
  flex-shrink: 0;
}
.author-profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-profile__name {
  flex: 1;
}
.author-profile__name strong { font-size: 17px; font-weight: 700; display: block; }
.author-profile__name span { font-size: 13px; color: var(--note-text-soft); }
.author-profile__bio {
  font-size: 14px;
  color: var(--note-text-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}
.author-profile__stats {
  display: flex; gap: 18px;
  font-size: 13px;
  color: var(--note-text-soft);
  margin-bottom: 16px;
}
.author-profile__stats strong { color: var(--note-text); font-weight: 700; }
.author-profile__cta {
  display: flex; gap: 10px;
}
.author-profile__cta .follow {
  background: var(--note-text);
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  flex: 1;
}
.author-profile__cta .magazine {
  background: #fff;
  color: var(--note-text);
  border: 1px solid var(--note-text);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  flex: 1;
}

/* ============= 関連記事 ============= */
.related {
  margin-top: 48px;
}
.related h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--note-text-soft);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--note-border);
}
.related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.related-card {
  background: #fff;
  border: 1px solid var(--note-border);
  border-radius: 8px;
  overflow: hidden;
}
.related-card__image {
  aspect-ratio: 16 / 9;
  background: #1a0d12;
}
.related-card__image img { width: 100%; height: 100%; object-fit: cover; }
.related-card__body { padding: 14px; }
.related-card__title {
  font-size: 14px; font-weight: 700;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card__author {
  margin-top: 8px;
  font-size: 12px;
  color: var(--note-text-soft);
}

/* ============= FOOTER ============= */
.note-footer {
  border-top: 1px solid var(--note-border);
  margin-top: 60px;
  padding: 36px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--note-text-light);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 720px) {
  .note-header__inner {
    grid-template-columns: auto auto;
    gap: 12px;
  }
  .note-search { display: none; }
  .btn-write { display: none; }
  .note-logo { font-size: 22px; }
  .article-title { font-size: 24px; line-height: 1.5; }
  .article-body { font-size: 15px; line-height: 1.9; }
  .article-body h2 { font-size: 20px; margin: 40px 0 16px; padding-bottom: 10px; }
  .article-body h3 { font-size: 17px; margin: 28px 0 12px; }
  .article-body figure { margin: 24px -20px; }
  .related-list { grid-template-columns: 1fr; }
  .article-meta__avatar { width: 42px; height: 42px; }
  .article-meta__follow { padding: 6px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
  .demo-badge { font-size: 10px; padding: 4px 9px; top: 8px; right: 8px; }
  .article-header-image { aspect-ratio: 4 / 3; }
  .article-title { font-size: 22px; }
}
