@charset "UTF-8";
/* all_perfect.css - 「すべては最高。」ページ専用のプレミアムデザイン */

/* =========================================
   1. Hero Area Styles (Existing)
   ========================================= */
.recipe-hero-box.layer-sunshine {
  position: relative;
  padding: 5rem 2rem;
  border-radius: 32px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 100%);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 20px 50px rgba(134, 239, 172, 0.15);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* 放射状の光を演出する装飾要素 */
.recipe-hero-box.layer-sunshine::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(253, 224, 71, 0.2) 0%,
    transparent 60%
  );
  animation: rotate-light 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate-light {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-decoration-sun {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.hero-decoration-sun i {
  font-size: 3.5rem;
  color: #eab308;
  filter: drop-shadow(0 0 15px rgba(234, 179, 8, 0.4));
}

.recipe-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: white;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.recipe-hero-box h1 {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.main-title {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  color: #064e3b;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.sub-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #d97706;
  opacity: 0.9;
}

.hero-introduction {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
  font-weight: 500;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.2rem;
  }
  .sub-title {
    font-size: 1.2rem;
  }
}

/* =========================================
   2. Background Decoration (Sunbeam & Blobs)
   ========================================= */
/* Sunbeam Decoration */
.sunbeam-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sunbeam {
  position: absolute;
  top: -50%;
  left: 20%;
  width: 100px;
  height: 200%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(253, 224, 71, 0.2),
    transparent
  );
  transform: rotate(25deg);
  animation: beamMove 8s infinite linear;
}

.sunbeam:nth-child(2) {
  left: 50%;
  animation-delay: -2s;
  width: 150px;
}
.sunbeam:nth-child(3) {
  left: 80%;
  animation-delay: -5s;
  width: 80px;
}

@keyframes beamMove {
  0% {
    transform: rotate(25deg) translateX(-100px);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: rotate(25deg) translateX(100px);
    opacity: 0;
  }
}

/* Background Decoration Blobs */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-decoration.sunbeam-surge .sunbeam {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(253, 224, 71, 0.6),
    transparent
  );
  animation-duration: 4s;
  box-shadow: 0 0 50px rgba(253, 224, 71, 0.4);
}

.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(134, 239, 172, 0.1);
  filter: blur(80px);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
  animation: blob-float 20s infinite alternate;
}

.blob-1 {
  top: -100px;
  right: -100px;
  background: rgba(134, 239, 172, 0.15);
}

.blob-2 {
  bottom: -150px;
  left: -150px;
  background: rgba(125, 211, 252, 0.15);
  animation-delay: -5s;
}

@keyframes blob-float {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(50px, 30px) rotate(90deg) scale(1.1);
  }
  100% {
    transform: translate(-30px, 50px) rotate(180deg) scale(1);
  }
}

/* =========================================
   3. Content Styles (Sections, Boxes, Highlights)
   ========================================= */
.content-section,
.content-block {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
}

/* Premium Gold H2 Style */
.content-section h2 {
  font-size: 1.6rem;
  color: #92400e; /* Deep Gold/Brown */
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(to right, #fbbf24, #f59e0b, transparent) 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  letter-spacing: 0.05em;
}

.content-section h2 i {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d97706; /* Fallback */
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.content-section p,
.content-block p {
  line-height: 1.9;
  color: #334155;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.highlight-box {
  background: #fffbeb;
  border-left: 5px solid #f59e0b;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
}

.highlight-box p {
  margin-bottom: 0;
  font-weight: 700;
  color: #92400e;
  font-size: 1.1rem;
}

/* Summary Box */
/* Summary Box */
.summary-box {
  background: white;
  border: 1px solid #fed7aa; /* Pale orange border */
  border-radius: 20px;
  padding: 0;
  margin: 3rem 0 4rem; /* Increased bottom margin */
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08); /* Warm shadow */
  overflow: hidden;
}

.summary-box h3 {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); /* Gold/Orange Gradient */
  color: white;
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
}

.summary-list {
  padding: 2rem;
  margin: 0;
  list-style: none;
}

.summary-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #475569; /* Slate text */
}

.summary-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #f59e0b; /* Orange check */
  position: absolute;
  left: 0;
  top: 2px;
}

/* Golden Point Box */
.golden-point-box {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 6px solid #fbbf24;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.golden-point-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle at top right,
    rgba(253, 224, 71, 0.1),
    transparent
  );
  pointer-events: none;
}

.golden-point-box .box-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e293b;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.golden-point-box .box-title i {
  color: #fbbf24;
  font-size: 1.3rem;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.3));
}

.golden-point-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.golden-point-box ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: #475569;
  line-height: 1.6;
  font-weight: 500;
}

.golden-point-box ul li:last-child {
  margin-bottom: 0;
}

.golden-point-box ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #fbbf24;
  font-weight: bold;
}

/* Genius Tag */
.genius-tag {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: #78350f;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin: 1rem 0;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
  animation: genius-shimmer 2s infinite alternate;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes genius-shimmer {
  from {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
  }
  to {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(252, 211, 77, 0.6);
  }
}

/* =========================================
   4. Interactive Elements (Trial Flip, Magic Word)
   ========================================= */
/* Trial Flip Scene */
.trial-flip-scene {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 3rem 2rem;
  margin: 3rem 0;
  position: relative;
  text-align: center;
}

/* Interior Layout for Trial Scene */
.trial-flip-scene .trial-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap; /* Responsive wrap */
}

/* On mobile, stack them */
@media (max-width: 768px) {
  .trial-flip-scene .trial-stage {
    flex-direction: column;
    gap: 2rem;
  }
}
.god-cloud {
  font-size: 3rem;
  color: #facc15;
  margin-bottom: 2rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.god-label {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #475569;
  margin-top: 0.5rem;
}
.trial-card-container {
  perspective: 1000px;
  width: 300px;
  height: 420px;
  margin: 0 auto;
}
.trial-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}
.trial-card.is-flipped {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  border: 1px solid #e2e8f0;
}
.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 6px solid #fbbf24; /* Thicker gold border */
  box-shadow: inset 0 0 20px rgba(251, 191, 36, 0.2); /* Inner glow */
}

/* Enhancing entire scene background when flipped (controlled by JS toggle on container) */
.trial-flip-scene.is-flipped {
  background: #fffbeb;
  border-color: #fcd34d;
  transition: background 0.5s ease;
}
.trial-icon {
  font-size: 4rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.result-icon {
  font-size: 4rem;
  color: #f59e0b;
  margin-bottom: 1rem;
}
.trial-controls {
  margin-top: 2rem;
}
.flip-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}
.flip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(59, 130, 246, 0.4);
}
.divine-message {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f0f9ff;
  border-radius: 12px;
  color: #0369a1;
  font-weight: bold;
  opacity: 0;
  transition: all 0.5s;
  transform: translateY(20px);
}

/* Foreshadowing Secret Hover */
.foreshadow-secret {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 2px;
}

.foreshadow-secret:hover {
  text-shadow: 0 0 8px rgba(253, 224, 71, 0.8);
  color: #15803d;
}

.foreshadow-secret::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff6b6b);
  background-size: 300% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.foreshadow-secret:hover::after {
  opacity: 1;
  animation: rainbow-scroll 2s linear infinite;
}

@keyframes rainbow-scroll {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Magic Word & Resonance */
.magic-word-trigger {
  cursor: pointer;
  position: relative;
  display: inline-block;
  color: #c2410c;
  border-bottom: 2px dashed #fcd34d;
  padding: 0 4px;
  transition: all 0.3s;
}

.magic-word-trigger:hover {
  background: rgba(253, 224, 71, 0.1);
  transform: scale(1.05);
}

.resonance-wave {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(253, 224, 71, 0.3);
  border: 2px solid rgba(253, 224, 71, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  animation: resonance-expand 1.5s cubic-bezier(0.1, 0.5, 0.5, 1) forwards;
}

@keyframes resonance-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
    border-width: 10px;
  }
  100% {
    width: 300vw;
    height: 300vw;
    opacity: 0;
    border-width: 0;
  }
}

/* Character Voice Styling */
.voice-man {
    font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic Pro', 'Meiryo UI', sans-serif;
    color: #0369a1;
    font-weight: bold;
}

.voice-god {
    font-family: 'Noto Serif JP', serif;
    color: #d97706;
    font-weight: bold;
    font-size: 1.1em;
}
