/* ============================================
   style-public-post.css
   Miru-Tone Public Post Page (Minimal)
============================================ */

/* ===============================
   基本リセット
=============================== */

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Hiragino Kaku Gothic ProN",
               "Yu Gothic", sans-serif;
}

/* ===============================
   レイアウト
=============================== */

#layout {
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

#center-column {
  width: 640px;
  max-width: 100%;
}

/* ===============================
   サービスヘッダー
=============================== */

.public-header {
  text-align: center;
  margin-bottom: 20px;
}

.public-logo-link {
  text-decoration: none;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  display: inline-block;
}

.public-tagline {
  font-size: 13px;
  color: #777;
  margin-top: 6px;
}

/* ===============================
   文脈説明
=============================== */

.public-context {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
}

/* ===============================
   投稿エリア
=============================== */

.post {
  margin: 0;
  padding: 0;
}

/* 投稿ヘッダー */

.post-author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.post-author-name {
  font-weight: 500;
  font-size: 15px;
  color: #111;
}

.post-author-handle {
  font-size: 14px;
  color: #777;
}

.post-time-header {
  font-size: 13px;
  color: #aaa;
}

.post-author-link {
  text-decoration: none;
  color: inherit;
}

.post-author-link:hover {
  text-decoration: underline;
}

/* ===============================
   投稿本文
=============================== */

.post-content {
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
  margin-bottom: 18px;
  word-break: break-word;
}

/* 本文と診断結果は完全同格 */

.post-inline-label {
  margin-left: 6px;
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

/* リンク */

.post-content a,
.post-content .hashtag {
  color: #1a0dab;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

/* ===============================
   CTAエリア
=============================== */

.public-cta {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.public-cta a {
  display: inline-block;
  margin: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.15s ease;
}

.cta-primary {
  background: #000;
  color: #fff;
}

.cta-primary:hover {
  opacity: 0.85;
}

.cta-secondary {
  border: 1px solid #ccc;
  color: #333;
}

.cta-secondary:hover {
  background: #f5f5f5;
}

/* ===============================
   投稿回遊リンク
=============================== */

.public-post-nav {
  position: sticky;
  bottom: 0;
  background: #fff;

  display: flex;
  align-items: center;

  margin-top: 28px;
  padding: 12px 16px;

  border-top: 1px solid #eee;
  font-size: 14px;
  z-index: 10;
}

.nav-left,
.nav-center,
.nav-right {
  flex: 1;
}

.nav-left {
  text-align: left;
}

.nav-center {
  text-align: center;
}

.nav-right {
  text-align: right;
}

.public-post-nav a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
}

.public-post-nav a:hover {
  background: #f5f5f5;
}
/* ===============================
   レスポンシブ
=============================== */

@media (max-width: 480px) {
  #layout {
    padding: 28px 14px;
  }

  .post-content {
    font-size: 15px;
  }
}