/* ============ SP 基本 ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #111;
  background: #ffffff;
  line-height: 1.6;
}

/* ============ HEADER ============ */
.site-header {
  background: #000;
  color: #fff;
}

.site-header-inner {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-logo-img {
  height: 20px;
  display: block;
}

.global-nav a {
  font-size: 11px;
  color: #f5f5f5;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ PAGE ============ */
.page {
  padding: 20px 14px 28px;
}

/* ============ ページ上部全面ヘッダー画像 ============ */
.hero-header {
  width: 100%;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 33.333%; /* 3:1 比率 */
  overflow: hidden;
  background: #eee;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ CHARACTER ＋ プロフィール ============ */
.character-summary {
  margin: 18px 0 20px;
}

.summary-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 8px;
}

.character-summary-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 左6 → 上側のボックスとして扱う（見た目） */
.summary-main {
  border-radius: 14px;
  border: 1px solid #eee;
  padding: 12px 12px 14px;
}

.summary-main-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.character-name-main {
  font-size: 22px;
  margin: 0;
}

.character-tagline {
  font-size: 12px;
  color: #555;
  margin: 0;
}

.character-lead {
  font-size: 12px;
  color: #555;
  margin: 2px 0 6px;
}

.hero-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sns-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 4px;
  text-decoration: none;
}

.sns-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.summary-visual {
  display: flex;
  justify-content: center;
}

.character-visual {
  max-width: 220px;
  max-height: 260px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 右4 → 下側のプロフィール */
.summary-profile {
  border-radius: 14px;
  background: #f7f7f7;
  padding: 12px 12px;
}

.profile-title {
  font-size: 15px;
  margin: 0 0 8px;
}

.profile-list {
  margin: 0;
  padding: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid #e3e3e3;
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row dt {
  font-size: 11px;
  color: #777;
}

.profile-row dd {
  margin: 0;
  font-size: 12px;
  color: #333;
}

/* ============ ストーリー ============ */
.character-story-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  margin: 0 0 8px;
}

.story-tagline {
  font-size: 13px;
  color: #444;
  font-weight: 600;
  margin: 0 0 6px;
}

.story-body p {
  font-size: 12px;
  color: #555;
  margin: 0 0 6px;
}

/* ============ ひとことメッセージ ============ */
.character-message-section {
  margin-bottom: 20px;
}

.message-card {
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(140, 160, 255, 0.3);
  background: linear-gradient(135deg, #eef3ff, #f1e9ff);
}

.message-text {
  margin: 0;
  font-size: 13px;
  color: #3f3d56;
}

/* ============ SNS SECTION ============ */
.character-sns-section {
  margin-bottom: 20px;
  padding: 14px 12px;
  border-radius: 16px;
  background: #f5f5f5;
}

.character-sns-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.sns-caption {
  margin: 0;
  font-size: 12px;
  color: #555;
}

.sns-embed-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sns-embed-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  min-height: 100px;
}

.sns-embed-placeholder {
  font-size: 11px;
  color: #888;
  margin: 0;
}

/* ============ 関連キャラクター ============ */
.related-characters-section {
  margin-bottom: 24px;
}

.related-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.related-caption {
  margin: 0;
  font-size: 12px;
  color: #555;
}

.character-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.character-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e1e1e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.character-image {
  position: relative;
  padding-top: 82%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 15%, #ffffff 0, #f5f5f5 40%, #e9e9e9 100%);
}

.character-image-main {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* SP では move 画像は使わない想定 */
.character-image-move {
  display: none;
}

.character-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.character-name {
  font-size: 14px;
  margin: 0;
}

.character-desc {
  font-size: 12px;
  color: #555;
  margin: 0;
}

.character-sns {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid #eee;
  padding: 14px 0 18px;
  background: #ffffff;
}

.site-footer-inner {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

.footer-meta {
  font-size: 10px;
  color: #888;
  margin: 0;
}

/* inline story inside CHARACTER */
.character-inline-story {
  margin: 10px 0 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #eee;
}
.inline-story-tagline {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #444;
}
.inline-story-body {
  font-size: 12px;
  color: #555;
  margin: 0 0 6px;
  line-height: 1.5;
}


/* リンクエフェクト無効化 */
.character-card a,
.character-card a:link,
.character-card a:visited,
.character-card a:hover,
.character-card a:active {
  text-decoration: none;
  color: inherit;
}

.character-card-link {
  text-decoration: none !important;
  color: inherit !important;
}

/* SPではトップナビゲーションを非表示 */
.site-header {
  display: none;
}