/* ========================================
   前略プロフィール Wedding Edition
   本家の黒背景＋ホットピンクスタイル再現
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

/* リセット */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ベース - 黒背景 */
body {
  background: #000;
  color: #fff;
  font-family: "DotGothic16", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
}

#body_wrap {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* ========================================
   キラキラ背景（星・ハート）
   ======================================== */

/* キラキラパーティクル用コンテナ */
.sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* 十字キラキラ（金色） */
.sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  animation: sparkle-float linear infinite;
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  background: #ffd700;
  border-radius: 1px;
}

.sparkle::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.sparkle::after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

/* ダイヤ型キラキラ（ピンク＆白） */
.sparkle-diamond {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ff69b4;
  transform: rotate(45deg);
  animation: sparkle-float linear infinite;
  box-shadow: 0 0 4px #ff69b4;
}

.sparkle-diamond.white {
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* ハート型キラキラ */
.sparkle-heart {
  position: absolute;
  color: #ff69b4;
  font-size: 10px;
  animation: sparkle-float linear infinite;
  text-shadow: 0 0 4px #ff1493;
}

/* 大きい十字キラキラ（金色） */
.sparkle-cross {
  position: absolute;
  width: 18px;
  height: 18px;
  animation: sparkle-float linear infinite, sparkle-glow 2s ease-in-out infinite alternate;
}

.sparkle-cross::before,
.sparkle-cross::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, transparent, #ffd700, transparent);
  border-radius: 2px;
}

.sparkle-cross::before {
  width: 3px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.sparkle-cross::after {
  width: 100%;
  height: 3px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes sparkle-float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) scale(0.5);
    opacity: 0;
  }
}

@keyframes sparkle-glow {
  0% { filter: brightness(0.8); }
  100% { filter: brightness(1.5) drop-shadow(0 0 4px #ffd700); }
}

/* 静的な背景キラキラ（常に表示） */
#body_wrap::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 5% 10%, #ffd700 60%, transparent 100%),
    radial-gradient(1px 1px at 12% 28%, #ff69b4 60%, transparent 100%),
    radial-gradient(2px 2px at 20% 50%, #ffd700 60%, transparent 100%),
    radial-gradient(1px 1px at 28% 72%, #fff 60%, transparent 100%),
    radial-gradient(2px 2px at 35% 15%, #ff69b4 60%, transparent 100%),
    radial-gradient(1px 1px at 42% 88%, #ffd700 60%, transparent 100%),
    radial-gradient(2px 2px at 50% 35%, #fff 60%, transparent 100%),
    radial-gradient(1px 1px at 58% 60%, #ff69b4 60%, transparent 100%),
    radial-gradient(2px 2px at 65% 8%, #ffd700 60%, transparent 100%),
    radial-gradient(1px 1px at 72% 42%, #fff 60%, transparent 100%),
    radial-gradient(2px 2px at 78% 78%, #ff69b4 60%, transparent 100%),
    radial-gradient(1px 1px at 85% 22%, #ffd700 60%, transparent 100%),
    radial-gradient(2px 2px at 92% 55%, #fff 60%, transparent 100%),
    radial-gradient(1px 1px at 8% 92%, #ff69b4 60%, transparent 100%),
    radial-gradient(2px 2px at 48% 5%, #ffd700 60%, transparent 100%),
    radial-gradient(1px 1px at 95% 95%, #fff 60%, transparent 100%);
  animation: twinkle-bg 2s ease-in-out infinite alternate;
}

@keyframes twinkle-bg {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

/* 全コンテンツを前面に */
.l-header, .l-main, .l-footer,
.wedding-announce, .profile-tabs,
.profile-page, .wedding-info-section {
  position: relative;
  z-index: 1;
}

/* ========================================
   ヘッダー
   ======================================== */
.l-header {
  background: linear-gradient(180deg, #ff1493 0%, #c71585 100%);
  padding: 10px 12px;
  text-align: center;
  border-bottom: 2px solid #ff69b4;
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.l-header__logo {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

.c-gnav ul {
  display: flex;
  list-style: none;
  gap: 3px;
  flex-wrap: wrap;
}

.c-gnav a {
  display: block;
  background: rgba(0, 0, 0, 0.3);
  color: #ffb6c1;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  text-align: center;
  line-height: 1.3;
  border: 1px solid #ff69b4;
}

.c-gnav a span {
  display: block;
  font-size: 8px;
  opacity: 0.6;
}

.c-gnav a:hover {
  background: rgba(255, 105, 180, 0.4);
  color: #fff;
}

/* ========================================
   マーキー
   ======================================== */
.wedding-announce {
  background: rgba(255, 20, 147, 0.15);
  border-top: 1px solid #ff69b4;
  border-bottom: 1px solid #ff69b4;
  overflow: hidden;
  padding: 6px 0;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 12s linear infinite;
  color: #ff69b4;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
}

@keyframes marquee {
  0% { transform: translateX(480px); }
  100% { transform: translateX(-100%); }
}

/* ========================================
   プロフィールタブ
   ======================================== */
.profile-tabs {
  display: flex;
  gap: 2px;
  margin: 10px 0 0;
  padding: 0 4px;
}

.profile-tab {
  flex: 1;
  padding: 8px 6px;
  border: 1px solid #ff69b4;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #1a1a1a;
  color: #ff69b4;
  font-size: 13px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-tab:hover {
  background: #2a0a1a;
}

.profile-tab.active {
  background: linear-gradient(180deg, #ff1493 0%, #c71585 100%);
  color: #fff;
  border-color: #ff1493;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* ========================================
   プロフィールページ
   ======================================== */
.profile-page {
  display: none;
  background: #000;
  opacity: 0.9;
  padding: 0 0 8px;
}

.profile-page.active {
  display: block;
}

/* プロフィールヘッダー */
.zprof-profile-header {
  text-align: center;
  padding: 16px 12px;
  background: #000;
}

.zprof-image {
  margin: 0 auto 10px;
  max-width: 160px;
}

.photo-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border: 2px solid #ff69b4;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff69b4;
  font-size: 12px;
}

.zprof-image img {
  width: 100%;
  max-width: 160px;
  height: auto;
  border: 2px solid #ff69b4;
}

.zprof-name {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.zprof-name rt {
  font-size: 10px;
  color: #ff69b4;
}

.zprof-role {
  font-size: 11px;
  color: #ff69b4;
  margin-top: 2px;
}

/* ========================================
   プロフィール項目
   黒背景 + ホットピンクバー
   ======================================== */
.zprof-section {
  margin: 0;
}

/* 見出しバー - ホットピンクのグラデーション */
.zprof-heading {
  background: linear-gradient(90deg, #ff1493 0%, #ff69b4 70%, transparent 100%);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 10px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* ハートの装飾 */
.zprof-heading::after {
  content: "♡";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

/* 回答エリア - 黒背景に白文字 */
.zprof-content {
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px 6px 16px;
  min-height: 22px;
  word-break: break-word;
  border-left: 1px solid rgba(255, 20, 147, 0.2);
}

.zprof-content ruby rt {
  font-size: 8px;
  color: #ff69b4;
}

/* 必須バッジ */
.req-badge {
  display: inline-block;
  background: #ff0000;
  color: #fff;
  font-size: 9px;
  padding: 0px 5px;
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: normal;
  text-shadow: none;
}

/* ========================================
   結婚式情報セクション
   ======================================== */
.wedding-info-section {
  margin-top: 12px;
  padding: 0;
}

.wedding-info-section .zprof-heading {
  background: linear-gradient(90deg, #ff4500 0%, #ff8c00 70%, transparent 100%);
}

.wedding-info-section .zprof-heading::after {
  content: "♥";
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   フッター
   ======================================== */
.l-footer {
  background: #111;
  color: #888;
  text-align: center;
  padding: 14px 10px;
  margin-top: 12px;
  border-top: 1px solid #ff69b4;
}

.footer-counter {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 8px;
}

.counter-number {
  display: inline-block;
  background: #000;
  color: #0f0;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
  padding: 1px 6px;
  border: 1px solid #333;
  letter-spacing: 2px;
  margin: 0 3px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.footer-nav a {
  color: #ff69b4;
  text-decoration: none;
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid #333;
  border-radius: 3px;
}

.footer-nav a:hover {
  background: #ff1493;
  color: #fff;
  border-color: #ff1493;
}

.footer-copy {
  font-size: 9px;
  color: #555;
}

/* ========================================
   ランダムなキラキラ装飾
   各セクション間にハートや星を散りばめる
   ======================================== */
.zprof-section:nth-child(5n)::before {
  content: "♡♥♡";
  display: block;
  text-align: right;
  padding: 2px 8px;
  font-size: 8px;
  color: #ff69b4;
  letter-spacing: 4px;
  opacity: 0.5;
}

.zprof-section:nth-child(7n)::before {
  content: "☆ﾟ.*･｡ﾟ";
  display: block;
  text-align: left;
  padding: 2px 8px;
  font-size: 8px;
  color: #ff69b4;
  opacity: 0.4;
}

.zprof-section:nth-child(11n)::before {
  content: "｡+ﾟ☆ﾟ+｡";
  display: block;
  text-align: center;
  padding: 2px 8px;
  font-size: 8px;
  color: #ff69b4;
  opacity: 0.4;
}

/* ========================================
   フォーム
   ======================================== */
#profile-form .zprof-heading {
  display: block;
  cursor: default;
}

#profile-form .zprof-content {
  padding: 4px 6px;
}

#profile-form input[type="text"] {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  border-radius: 0;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  padding: 6px 8px;
  outline: none;
}

#profile-form input[type="text"]:focus {
  border-color: #ff69b4;
  box-shadow: 0 0 4px rgba(255, 105, 180, 0.4);
}

#profile-form input[type="text"]::placeholder {
  color: #555;
}

.form-submit-area {
  text-align: center;
  padding: 20px 12px;
}

.submit-btn {
  background: linear-gradient(180deg, #ff1493 0%, #c71585 100%);
  color: #fff;
  border: 2px solid #ff69b4;
  border-radius: 4px;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
}

.submit-btn:hover {
  background: linear-gradient(180deg, #ff69b4 0%, #ff1493 100%);
  box-shadow: 0 0 12px rgba(255, 20, 147, 0.6);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  margin-top: 10px;
  font-size: 13px;
  min-height: 20px;
}

.form-message.success {
  color: #0f0;
}

.form-message.error {
  color: #ff4444;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 500px) {
  #body_wrap {
    max-width: 100%;
  }

  .l-header__inner {
    flex-direction: column;
    align-items: center;
  }

  .c-gnav ul {
    justify-content: center;
  }

  .zprof-heading {
    font-size: 12px;
    padding: 4px 8px;
  }

  .zprof-content {
    font-size: 11px;
    padding: 5px 8px 5px 12px;
  }

  .photo-placeholder {
    width: 120px;
    height: 120px;
  }

  .zprof-name {
    font-size: 18px;
  }

  .profile-tab {
    font-size: 11px;
    padding: 6px 4px;
  }
}
