/* ========= 共通リセット ========= */
*,
*::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 {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

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

.global-nav a {
  font-size: 13px;
  text-decoration: none;
  color: #f5f5f5;
  opacity: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width 0.2s ease;
}

.global-nav a:hover::after {
  width: 100%;
}

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

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

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

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

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

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

.hero-title {
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 14px;
}

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

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

.characters-section {
  margin-bottom: 32px;
  background: #f3f3f3;
  border-radius: 18px;
  padding: 26px 28px 28px;
}

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

.characters-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

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

.characters-section-desc {
  margin: 0;
  font-size: 13px;
  color: #555;
  max-width: 520px;
}

/* ========= カードレイアウト（最大3列） ========= */

.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); /* 最大3列 */
  min-width: 260px;
  max-width: 340px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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


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

/* ========= 画像エリア（hoverでふわっと切り替え） ========= */

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

/* 初期状態：メインのみ表示 */
.character-image-main {
  opacity: 1;
  transform: scale(1);
}

.character-image-move {
  opacity: 0;
  transform: scale(1.02);
}

/* hover 時：ゆったりと切り替え */
.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;
}

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

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

.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;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.sns-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

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

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

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

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

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

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

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

.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) {
  .characters-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .character-card {
    flex: 1 1 calc(50% - 12px); /* タブレットでは2列 */
  }
}
