/* ============================================================
   character.css - ERAちゃん キャラクター紹介ページ
   ============================================================ */

/* ============================================================
   Page Hero
   ============================================================ */
.chr-hero {
  position: relative;
  background: #111111;
  min-height: 480px;
  padding: 160px 0 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* 斜めストライプ背景 */
.chr-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 40px,
    rgba(245, 200, 0, 0.03) 40px,
    rgba(245, 200, 0, 0.03) 80px
  );
  pointer-events: none;
}

/* 左側ゴールドアクセントライン */
.chr-hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, #f5c800, #e60012);
  z-index: 3;
}

.chr-hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.chr-hero-bg-text {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(100px, 20vw, 280px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  letter-spacing: 0.05em;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}

/* ヒーロー右：浮遊キャラ */
.chr-hero-chara {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: clamp(180px, 24vw, 340px);
  z-index: 4;
  animation: floatChara 3.5s ease-in-out infinite;
}

.chr-hero-chara img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(245,200,0,0.25));
}

@keyframes floatChara {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-20px) rotate(1deg); }
}

/* ヒーロー テキストエリア */
.page-hero-content {
  position: relative;
  z-index: 5;
}

.chr-hero .page-hero-label {
  color: #f5c800;
}

.chr-hero .page-hero-label::after {
  background: #f5c800;
}

.chr-hero .page-hero-title {
  color: #fff;
}

.chr-hero .page-hero-title .en {
  -webkit-text-stroke: 2px rgba(255,255,255,0.08);
}


/* ============================================================
   Main Section - プロフィール
   ============================================================ */
.chr-main {
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* 右上の黄色三角デコ */
.chr-main::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 160px 160px 0;
  border-color: transparent #f5c800 transparent transparent;
  opacity: 0.12;
  pointer-events: none;
}

.chr-main-wrap {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: flex-start;
}

/* ======= 左：画像エリア ======= */
.chr-main-img {
  position: relative;
  text-align: center;
}

/* 吹き出し */
.chr-img-balloon {
  display: inline-block;
  background: #f5c800;
  color: #111;
  font-size: 17px;
  font-weight: 900;
  padding: 10px 28px;
  border-radius: 50px;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(245,200,0,0.4);
  animation: popIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.chr-img-balloon::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #f5c800;
  border-bottom: none;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.4) rotate(-5deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* 背景の大円 */
.chr-img-frame {
  position: relative;
  display: inline-block;
  padding: 30px;
}

.chr-img-frame::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,0,0.14) 0%, rgba(245,200,0,0.04) 60%, transparent 80%);
}

/* 外枠の点線円 */
.chr-img-frame::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px dashed rgba(245,200,0,0.25);
  animation: spinSlow 18s linear infinite;
}

@keyframes spinSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.chr-img-frame img {
  width: 260px;
  height: 260px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: floatMain 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(245,200,0,0.35));
}

@keyframes floatMain {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%       { transform: translateY(-14px) rotate(1.5deg); }
}

/* デコドット */
.chr-deco {
  position: absolute;
  border-radius: 50%;
  animation: decoPulse 2.5s ease-in-out infinite;
}

.chr-deco-1 {
  width: 16px; height: 16px;
  background: #f5c800;
  top: 24px; right: 36px;
  box-shadow: 0 0 12px rgba(245,200,0,0.6);
  animation-delay: 0s;
}

.chr-deco-2 {
  width: 10px; height: 10px;
  background: #e60012;
  bottom: 44px; left: 24px;
  box-shadow: 0 0 10px rgba(230,0,18,0.5);
  animation-delay: 0.9s;
}

.chr-deco-3 {
  width: 8px; height: 8px;
  background: #f5c800;
  top: 44%; right: 12px;
  animation-delay: 1.6s;
}

@keyframes decoPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.5); opacity: 1; }
}

/* 名前プレート */
.chr-img-name {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: #111;
  color: #fff;
  padding: 12px 32px;
  margin-top: 4px;
  position: relative;
  clip-path: polygon(14px 0%, calc(100% - 14px) 0%, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0% 50%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.chr-name-en {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #f5c800;
  letter-spacing: 0.12em;
}

.chr-name-ja {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.12em;
}

/* ======= 右：プロフィール ======= */
.chr-profile-label {
  margin-bottom: 8px;
}

.chr-profile-en {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(60px, 9vw, 120px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,0,0,0.06);
  display: block;
  line-height: 1;
  margin-bottom: -30px;
  letter-spacing: 0.05em;
}

.chr-profile-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.4;
  color: #111;
  margin-bottom: 8px;
  position: relative;
}

.chr-profile-title span {
  color: #e60012;
}

/* タイトル下のゴールドライン */
.chr-profile-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #f5c800, #e60012);
  margin-top: 16px;
  margin-bottom: 24px;
}

.chr-profile-body {
  font-size: 15px;
  color: #444;
  line-height: 2;
  margin-bottom: 32px;
}

.chr-profile-body strong {
  color: #111;
  font-weight: 800;
  background: linear-gradient(transparent 60%, rgba(245,200,0,0.4) 60%);
}

/* プロフィールカード */
.chr-profile-card {
  background: #111;
  padding: 0;
  overflow: hidden;
}

.chr-profile-row {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

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

.chr-profile-key {
  width: 150px;
  flex-shrink: 0;
  font-weight: 700;
  color: #f5c800;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(245,200,0,0.06);
  border-right: 2px solid rgba(245,200,0,0.2);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.chr-profile-key i {
  color: #f5c800;
  width: 16px;
  text-align: center;
}

.chr-profile-val {
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  padding: 14px 20px;
  font-size: 14px;
}


/* ============================================================
   Features Section
   ============================================================ */
.chr-features {
  background: #111;
  position: relative;
  overflow: hidden;
}

/* 背景テクスチャ */
.chr-features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.015) 60px,
    rgba(255,255,255,0.015) 120px
  );
  pointer-events: none;
}

.chr-features-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.chr-features-en {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(60px, 10vw, 130px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  display: block;
  line-height: 1;
  margin-bottom: -36px;
  letter-spacing: 0.05em;
}

.chr-features-header .section-label {
  color: #f5c800;
}

.chr-features-header .section-label::before,
.chr-features-header .section-label::after {
  background: #f5c800;
}

.chr-features-header h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: #fff;
  position: relative;
  z-index: 1;
}

.chr-features-header h2 span {
  color: #f5c800;
}

/* カードグリッド */
.chr-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
}

.chr-feature-card {
  background: #1a1a1a;
  padding: 52px 36px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease, transform 0.35s ease;
  cursor: default;
}

/* ホバー時：黄色にドラマチック変化 */
.chr-feature-card:hover {
  background: #f5c800;
  transform: translateY(-4px);
  z-index: 1;
}

.chr-feature-card:hover .chr-feature-num {
  color: rgba(0,0,0,0.08);
}

.chr-feature-card:hover .chr-feature-icon {
  background: #111;
}

.chr-feature-card:hover .chr-feature-icon i {
  color: #f5c800;
}

.chr-feature-card:hover h3 {
  color: #111;
}

.chr-feature-card:hover p {
  color: rgba(0,0,0,0.7);
}

/* 上部ゴールドライン */
.chr-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, #f5c800, transparent);
  transition: background 0.3s ease;
}

.chr-feature-card:hover::before {
  background: rgba(0,0,0,0.15);
}

/* 背景ナンバー */
.chr-feature-num {
  font-family: 'Oswald', sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  position: absolute;
  top: 12px;
  right: 18px;
  letter-spacing: -0.02em;
  transition: color 0.35s ease;
}

/* アイコン */
.chr-feature-icon {
  width: 80px;
  height: 80px;
  background: #f5c800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: background 0.35s ease;
  position: relative;
  z-index: 1;
}

.chr-feature-icon i {
  font-size: 30px;
  color: #111;
  transition: color 0.35s ease;
}

.chr-feature-card h3 {
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 16px;
  transition: color 0.35s ease;
  position: relative;
  z-index: 1;
}

.chr-feature-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  transition: color 0.35s ease;
  position: relative;
  z-index: 1;
}


/* ============================================================
   Message Section
   ============================================================ */
.chr-message {
  background: #f8f8f8;
  position: relative;
  overflow: hidden;
}

/* 右下デコ */
.chr-message::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 200px 200px;
  border-color: transparent transparent rgba(245,200,0,0.08) transparent;
  pointer-events: none;
}

.chr-message-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: end;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.chr-message-chara {
  flex-shrink: 0;
}

.chr-message-chara img {
  width: 100%;
  height: auto;
  display: block;
  animation: floatMsg 3.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.12));
}

@keyframes floatMsg {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-12px) rotate(1deg); }
}

/* 吹き出しバブル */
.chr-message-bubble {
  background: #fff;
  border-radius: 0 20px 20px 20px;
  padding: 40px 44px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border-top: 4px solid #f5c800;
}

/* 左の三角ポインタ */
.chr-message-bubble::before {
  content: '';
  position: absolute;
  left: -16px;
  bottom: 52px;
  border: 10px solid transparent;
  border-right-color: #fff;
  border-left: none;
  filter: drop-shadow(-4px 0 4px rgba(0,0,0,0.05));
}

.chr-message-bubble::after {
  display: none;
}

.chr-message-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #e60012;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
  background: rgba(230,0,18,0.07);
  padding: 5px 12px;
  border-radius: 50px;
}

.chr-message-label::before {
  display: none;
}

.chr-message-text {
  font-size: 15px;
  color: #333;
  line-height: 2.1;
  margin-bottom: 32px;
}

.chr-message-text strong {
  color: #111;
  font-weight: 800;
  background: linear-gradient(transparent 58%, rgba(245,200,0,0.5) 58%);
  padding-bottom: 1px;
}

.chr-message-btn {
  font-size: 15px;
  padding: 16px 56px 16px 30px;
}


/* ============================================================
   CTA Section
   ============================================================ */
.chr-cta {
  background: #111;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 斜めゴールドライン */
.chr-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(to right, #f5c800 0%, #e60012 50%, #f5c800 100%);
}

/* 背景 "ERA" 透かし */
.chr-cta::after {
  content: 'ERA';
  font-family: 'Oswald', sans-serif;
  font-size: clamp(130px, 24vw, 300px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 0.1em;
  pointer-events: none;
  white-space: nowrap;
}

/* キャラ装飾（右下） */
.chr-cta-chara {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: clamp(100px, 14vw, 200px);
  opacity: 1;
  pointer-events: none;
}

.chr-cta-chara img {
  width: 100%;
  height: auto;
}

.chr-cta-wrap {
  position: relative;
  z-index: 2;
}

.chr-cta-copy {
  font-size: 12px;
  font-weight: 700;
  color: #f5c800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.chr-cta-copy::before,
.chr-cta-copy::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #f5c800;
}

.chr-cta-title {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.35;
}

/* タイトル下のゴールドアンダーライン */
.chr-cta-title span {
  position: relative;
  color: #f5c800;
}

.chr-cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 44px;
}

.chr-cta-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.btn-tel-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  padding: 17px 40px;
  transition: all 0.3s ease;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
}

.btn-tel-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-101%);
  transition: transform 0.3s ease;
  z-index: 0;
}

.btn-tel-cta:hover::before {
  transform: translateX(0);
}

.btn-tel-cta i,
.btn-tel-cta span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.btn-tel-cta i {
  color: #f5c800;
}

.btn-tel-cta:hover {
  color: #111;
  border-color: #fff;
}

.btn-tel-cta:hover i {
  color: #111;
}


/* ============================================================
   Responsive - Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .chr-main-wrap {
    grid-template-columns: 340px 1fr;
    gap: 52px;
  }

  .chr-img-frame img {
    width: 220px;
    height: 220px;
  }

  .chr-img-frame::before {
    width: 250px;
    height: 250px;
  }

  .chr-img-frame::after {
    width: 270px;
    height: 270px;
  }
}

/* ============================================================
   Responsive - Mobile
   ============================================================ */
@media (max-width: 768px) {
  /* Hero */
  .chr-hero {
    min-height: 300px;
    padding: 130px 0 70px;
  }

  .chr-hero-chara {
    width: 110px;
    right: 3%;
  }

  /* Main */
  .chr-main-wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .chr-main-img {
    max-width: 300px;
    margin: 0 auto;
  }

  .chr-img-frame img {
    width: 200px;
    height: 200px;
  }

  .chr-img-frame::before {
    width: 230px;
    height: 230px;
  }

  .chr-img-frame::after {
    width: 250px;
    height: 250px;
  }

  .chr-profile-row {
    flex-direction: column;
    gap: 0;
  }

  .chr-profile-key {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 10px 20px;
  }

  .chr-profile-val {
    padding: 10px 20px 14px;
  }

  /* Features */
  .chr-features-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .chr-feature-card {
    padding: 36px 28px;
  }

  /* Message */
  .chr-message-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: center;
  }

  .chr-message-chara {
    width: 130px;
    margin-bottom: -10px;
    z-index: 1;
  }

  .chr-message-bubble {
    border-radius: 20px;
    padding: 28px 24px;
  }

  .chr-message-bubble::before {
    display: none;
  }

  /* CTA */
  .chr-cta {
    padding: 72px 0;
  }

  .chr-cta-btns {
    flex-direction: column;
    padding: 0 20px;
  }

  .chr-cta-btns .btn,
  .btn-tel-cta {
    width: 100%;
    justify-content: center;
  }
}
/* =========================
   CHARACTER page spacing
   セクション同士の間隔を広げる
========================= */
.chr-main.section,
.chr-features.section,
.chr-message.section{
  padding-top: 110px;
  padding-bottom: 110px;
}

.chr-cta{
  padding-top: 110px;
  padding-bottom: 130px;
}

/* SPは少し控えめに */
@media (max-width: 767px){
  .chr-main.section,
  .chr-features.section,
  .chr-message.section{
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .chr-cta{
    padding-top: 72px;
    padding-bottom: 90px;
  }
}
