/* ============ PC 基本 ============ */
*,
*::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 {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

/* ============ ページ全体 ============ */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

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

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

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

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

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

.character-summary-layout {
  display: grid;
  grid-template-columns: 6fr 4fr; /* 左6:右4 */
  gap: 24px;
  align-items: stretch;
}

/* 左6（CHARACTER） */
.summary-main {
  border-radius: 16px;
  border: 1px solid #eee;
  padding: 18px 18px 18px;
}

.summary-main-inner {
  display: grid;
  grid-template-columns: 7fr 3fr; /* 左7:右3 */
  gap: 16px;
  align-items: center;
}

/* 左7：テキスト */
.summary-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

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

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

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

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

/* 右3：キャラ画像（控えめサイズ） */
.summary-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* 右4：プロフィール */
.summary-profile {
  border-radius: 16px;
  background: #f7f7f7;
  padding: 16px 18px;
}

.profile-title {
  font-size: 16px;
  margin: 0 0 10px;
}

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

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

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

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

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

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

.section-title {
  font-size: 18px;
  margin: 0 0 10px;
}

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

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

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

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

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

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

.character-sns-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

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

.sns-embed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

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

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

.related-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.related-caption {
  margin: 0;
  font-size: 13px;
  color: #555;
  max-width: 520px;
}

.character-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.character-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e1e1e1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(33.333% - 12px);
  min-width: 260px;
  max-width: 340px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.character-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

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

.character-image-main,
.character-image-move {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* PC では hover で絵柄が切り替わる想定 */
@media (hover: hover) and (pointer: fine) {
  .character-card:hover .character-image-main {
    opacity: 0;
    transform: scale(1.02);
  }

  .character-card:hover .character-image-move {
    opacity: 1;
    transform: scale(1.05);
  }
}

.character-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

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

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

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

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

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

/* ============ レスポンシブ調整（PC CSS 内） ============ */
@media (max-width: 1024px) {
  .character-summary-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-main-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .character-summary {
    margin-top: 24px;
  }

  .related-header {
    flex-direction: column;
  }

  .character-card {
    flex: 1 1 calc(50% - 12px);
  }

  .character-sns-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .sns-embed-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 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;
}

/* Fix: initial states */
.character-image-main{opacity:1;}
.character-image-move{opacity:0;}




.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;
}