/* ========= 共通リセット ========= */
*,
*::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;
}

/* ========= ヘッダー（スマホ） ========= */

.site-header {
  background: #000000;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.global-nav {
  display: flex;
  gap: 10px;
}

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

/* ========= ページ枠 ========= */

.page {
  padding: 18px 14px 28px;
}

/* ========= ヒーロー ========= */

.hero {
  padding: 16px 16px 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #f5f5f5;
}

.hero-inner {
  max-width: 100%;
}

.hero-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 4px;
}

.hero-title {
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 8px;
}

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

/* ========= キャラクターセクション ========= */

.characters-section {
  margin-bottom: 20px;
  background: #f3f3f3;
  border-radius: 14px;
  padding: 14px 14px 16px;
}

.characters-section-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.characters-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.characters-section-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.characters-section-desc {
  margin: 0;
  font-size: 11px;
  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;

  /* スクロール時のアニメの初期状態 */
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.character-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}


/* IntersectionObserver で付与されるクラス */
.character-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ========= 画像エリア ========= */

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

/* SP では hover が効かないので、カード本体だけふわっと表示させる */
/* 画像の絵柄切り替えは行わず、常にメイン画像のみ表示 */

.character-image-main {
  opacity: 1;
  transform: scale(1);
}

.character-image-move {
  display: none;
}
/* ========= テキストエリア ========= */

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

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

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

/* ========= SNS アイコン列 ========= */

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

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

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

/* ========= SEO アコーディオン ========= */

.seo-accordion {
  margin-top: 18px;
  border-radius: 14px;
  background: #f7f7f7;
  padding: 12px 12px;
}

.seo-accordion details {
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 10px;
}

.seo-accordion summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.seo-body {
  padding-top: 6px;
  font-size: 11px;
  color: #555;
}

.seo-body h2,
.seo-body h3 {
  font-size: 12px;
  margin: 10px 0 4px;
}

/* ========= フッター ========= */

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