/* start_now.css - Shared Design for Action Page */

/* Base Layout Overrides */
.main-content {
  background: transparent;
  box-shadow: none;
}

/* Cinematic Hero Section */
.page-title-area {
  position: relative;
  margin-bottom: 5rem;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  min-height: 300px;
}

.hero-deco-circle {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  bottom: -10%;
  right: 5%;
  font-size: 15rem;
  color: rgba(16, 185, 129, 0.04);
  transform: rotate(-25deg);
  z-index: 1;
  pointer-events: none;
  animation: watermarkPop 2s ease-out backwards;
}

@keyframes watermarkPop {
  0% { transform: rotate(-45deg) scale(0.8); opacity: 0; }
  100% { transform: rotate(-25deg) scale(1); opacity: 1; }
}

.hero-glass-card {
  position: relative;
  z-index: 4;
  padding: 1px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.05);
  text-align: center;
  max-width: 850px;
  animation: heroEntrance 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.glass-card-inner {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4rem 3.5rem;
  border-radius: 39px;
  width: 100%;
}

@keyframes heroEntrance {
  0% { transform: translateY(30px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.page-title-area h1 {
  background: linear-gradient(135deg, #1e293b 0%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
  font-weight: 800;
  line-height: 1.3;
}

.page-subtitle {
  font-family: 'Kaisei Opti', serif; /* 羊皮紙セクションと統一 */
  font-size: 1.3rem;
  color: #475569;
  margin-bottom: 1.5rem;
  font-weight: 500;
  opacity: 0.9;
}

.title-underline {
  margin: 0 auto;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #10b981, #d97706);
  border-radius: 2px;
}

/* Content Blocks */
.content-body {
  line-height: 2.2;
  color: #334155;
  font-size: 1.05rem;
}

.clean-heading {
  font-size: 1.3rem;
  color: #1e293b;
  border-bottom: 2px solid #fed7aa;
  padding-bottom: 0.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.clean-heading i {
  margin-right: 0.8rem;
  color: #f97316;
}

/* Action Checklist (Flip Cards) */
.action-checklist {
  list-style: none;
  padding: 0;
  margin: 3rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .action-checklist {
    grid-template-columns: 1fr;
  }
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 160px; /* Increased height for 3-column content */
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: bold;
  box-sizing: border-box;
}

.flip-card-front {
  background: #f1f5f9; /* Gray background */
  color: #64748b;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  line-height: 1.5;
}

.flip-card:hover .flip-card-inner {
  transform: translateY(-5px);
}

.flip-card.flipped:hover .flip-card-inner {
  transform: rotateY(180deg) translateY(-5px);
}

.flip-card:hover .flip-card-front {
  border-color: #94a3b8;
  background-color: #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.1), 0 4px 6px -2px rgba(234, 88, 12, 0.05);
}

/* Hint Icon for Clickability */
.flip-card-front::after {
  content: '\f25a'; /* fa-hand-pointer */
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.9rem;
  color: #cbd5e1;
  transition: all 0.3s;
  opacity: 0.6;
}

.flip-card:hover .flip-card-front::after {
  color: #ea580c;
  opacity: 1;
  transform: scale(1.2);
}

.flip-card-back {
  background: linear-gradient(135deg, #fef3c7, #fde68a); /* Gold/Yellow background */
  color: #92400e;
  transform: rotateY(180deg);
  border: 2px solid #f59e0b;
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.2);
  line-height: 1.4;
  font-size: 0.9rem;
}

.flip-card-back i {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #d97706;
}

/* Checklist Footer Section */
.checklist-footer {
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.checklist-instruction {
  font-size: 0.9rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.checklist-instruction i {
  color: #ea580c;
  animation: floatArrow 1.5s infinite ease-in-out;
}

@keyframes floatArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Action Highlight */
.action-highlight {
  font-size: 2rem;
  font-weight: 900;
  color: #ea580c;
  text-align: center;
  margin: 2rem 0;
  text-shadow: 2px 2px 0px #fed7aa;
  transform: skew(-10deg);
  animation: pulseAction 2s infinite;
}

@keyframes pulseAction {
  0% { transform: skew(-10deg) scale(1); }
  50% { transform: skew(-10deg) scale(1.05); }
  100% { transform: skew(-10deg) scale(1); }
}

/* Quotes */
.clean-quote {
  position: relative;
  background: #fff7ed;
  padding: 2rem 2rem 1rem 3rem;
  border-left: 4px solid #ea580c;
  margin: 2rem 0;
  font-style: italic;
  font-weight: bold;
  color: #334155;
}

.clean-quote.final {
  background: #fff7ed; /* 薄いオレンジ系 */
  border: 2px solid #fed7aa;
  border-left: 8px solid #ea580c;
  border-radius: 16px; /* 角を丸く */
  text-align: center;
  font-style: normal;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.05);
}

.quote-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: 0.2;
  font-size: 1.5rem;
  color: #ea580c;
}

.quote-author {
  margin-top: 1.5rem;
  text-align: right;
  font-size: 1rem;
  font-weight: normal;
  font-style: normal;
  color: #9a3412;
}

.quote-main-text {
  font-family: 'Kaisei Opti', serif;
  font-weight: bold;
  font-style: italic;
  font-size: 1.15rem;
  color: #334155;
  line-height: 2;
  margin-top: 1rem;
}

/* Final Call Box */
.final-call {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  margin: 3rem 0;
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.4);
}

.content-body .emphasized-text {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  color: #ea580c;
  margin: 2rem 0;
}

/* Action Impact Ice Breaker (User Specified) */
.ice-container {
  position: relative;
  height: 250px;
  background: #f0f9ff; /* 薄いブルー */
  border: 1px solid #bae6fd;
  border-radius: 20px;
  margin: 3.5rem 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.action-runner {
  position: absolute;
  left: -100px; /* Start outside left */
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  color: #f97316; /* ⑥ オレンジ系の色 */
  z-index: 10;
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.3));
}

/* Running state */
.ice-container.running .action-runner {
  /* ③ 走る人はもっと遅く (1.5s) */
  animation: runImpact 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes runImpact {
  0% { left: -80px; }
  100% { left: 45%; } /* Hit the center */
}

.frozen-world {
  position: absolute;
  inset: 0;
  background: transparent; /* 背景透過、下のcontainerのブルーを見せる */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* ④ 氷ももっと遅く (+1s) */
}

.frozen-text {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.frozen-icon {
  font-size: 4.5rem; /* ① 氷のアイコンを大きく */
  color: #3b82f6;    /* ② 色はブルー */
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.2));
}

/* Impact phase: Blow away! */
.ice-container.impact .frozen-world {
  /* ④ 氷ももっと遅く (2.5s) */
  transform: translateX(150%) rotate(25deg) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.ice-container.impact .action-runner {
  animation: runnerSlowDown 1.2s ease-out forwards;
}

@keyframes runnerSlowDown {
  0% { left: 45%; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; }
  100% { left: 55%; transform: translateY(-50%) scale(0.5); opacity: 0; }
}

.melted-world {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff7ed, #ffedd5); /* ⑥ オレンジ系の背景 */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 5.5s ease 0.8s; /* ⑤ フェードインももっと遅く (+2s) */
}

.ice-container.impact .melted-world {
  opacity: 1;
  z-index: 6;
}

.reveal-content {
  text-align: center;
  padding: 2rem;
}

.joy-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.joy-icons i {
  font-size: 2.2rem;
  color: #f97316; /* ⑦ 楽しくなるようなアイコン（オレンジ） */
}

/* Sparkle animation */
.fa-sparkles {
  animation: joyfulSparkle 2s infinite alternate;
}

@keyframes joyfulSparkle {
  0% { transform: scale(1) rotate(0); opacity: 0.8; }
  100% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

.melted-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: #9a3412; /* 深いオレンジ */
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.ice-instruction {
  position: absolute;
  bottom: 25px;
  font-size: 0.9rem;
  color: #94a3b8;
  z-index: 6;
  font-weight: 500;
  transition: opacity 0.3s;
}

.ice-container.running .ice-instruction {
  opacity: 0;
}

/* Subconscious Discovery Box */
.subconscious-discovery {
    background: linear-gradient(to right, #fdfcfb 0%, #e2d1c3 100%);
    border-left: 5px solid #ea580c;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.subconscious-discovery p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.subconscious-discovery p:last-child {
    margin-bottom: 0;
}

.discovery-icon {
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    color: #f59e0b;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: discoveryPulse 2s infinite ease-in-out;
}

@keyframes discoveryPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
        color: #fbbf24;
    }
}

/* Commitment Stage (Parchment style) */
.commitment-stage {
    margin: 5rem 0;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: visible;
}

.parchment-paper {
    background: #fdf6e3;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(0,0,0,0.03) 1px, transparent 0),
        linear-gradient(to bottom, transparent 95%, rgba(0,0,0,0.05) 5%);
    background-size: 100% 100%, 100% 32px;
    border-radius: 4px;
    padding: 3rem;
    box-shadow: 
        5px 5px 15px rgba(0,0,0,0.08),
        0 0 60px rgba(139, 69, 19, 0.05) inset;
    position: relative;
    max-width: 650px;
    width: 100%;
    transform: rotateX(2deg);
    border: 1px solid #d4c4a8;
}

.parchment-paper::before,
.parchment-paper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    left: 0;
    background: #e6d5b8;
    border-radius: 10px;
}

.parchment-paper::before { top: -8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.parchment-paper::after { bottom: -8px; box-shadow: 0 -2px 4px rgba(0,0,0,0.1); }

.commitment-title {
    font-family: 'Kaisei Opti', serif;
    color: #78350f;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    border-bottom: 1px solid #d4c4a8;
    display: inline-block;
    padding-bottom: 0.5rem;
    width: 100%;
}

.commitment-question {
    color: #92400e;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.dream-input-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.7); /* より白く、入力エリアを際立たせる */
    border: 1px solid rgba(139, 69, 19, 0.15);
    border-radius: 8px;
    padding: 1rem;
}

.dream-input {
    width: 100%;
    min-height: 150px;
    background: transparent;
    border: none;
    font-family: 'Kaisei Opti', serif;
    font-size: 1.15rem;
    color: #451a03;
    resize: none;
    line-height: 2;
    outline: none;
}

.ink-quill {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: #d97706;
    font-size: 1.8rem;
    opacity: 0.4;
    pointer-events: none;
}

.commitment-action {
    display: flex;
    justify-content: center;
}

.commit-btn {
    background: #78350f; /* 更にノートに馴染むセピア・インク色 */
    color: #fef3c7;
    border: 1px solid #451a03;
    padding: 1.2rem 3rem;
    border-radius: 4px; /* ノートに合わせて少し角を立たせる */
    font-size: 1.1rem;
    font-family: 'Kaisei Opti', serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.commit-btn:hover {
    background: #92400e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Ascending Message Animation */
.floating-message {
    position: fixed;
    pointer-events: none;
    font-family: 'Kaisei Opti', serif;
    color: #78350f;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    white-space: pre-wrap;
    max-width: 80vw;
    z-index: 999999;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    opacity: 0;
}

/* Sparkle Particles for Ascending Message */
.sparkle-particle {
    position: fixed;
    pointer-events: none;
    background: #fbbf24;
    border-radius: 50%;
    z-index: 999998;
    filter: blur(1px);
}

@keyframes floatingSparkle {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1);
    }
    100% {
        transform: translateY(-100px) translateX(var(--drift)) scale(0);
        opacity: 0;
    }
}

@keyframes ascendAndFade {
    0% {
        transform: translate(-50%, 0) scale(1) rotate(0deg);
        opacity: 0;
        filter: blur(5px);
    }
    2% {
        opacity: 1;
        filter: blur(0);
        transform: translate(-50%, -5px) scale(1.05) rotate(1deg);
    }
    30% {
        transform: translate(-55%, -30vh) scale(1.3) rotate(-2deg);
        opacity: 1;
    }
    60% {
        transform: translate(-45%, -70vh) scale(1.6) rotate(1deg);
        opacity: 1;
    }
    95% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: translate(-50% , -140vh) scale(2.2) rotate(0deg);
        opacity: 0;
        filter: blur(10px);
    }
}

/* Cheer Popup */
.cheer-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cheer-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.cheer-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 90%;
  width: 320px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 4px solid #fed7aa;
}

.cheer-popup.active .cheer-content {
  transform: scale(1);
}

.cheer-icon {
  font-size: 3rem;
  color: #ea580c;
  margin-bottom: 1rem;
}

.cheer-title {
  margin: 0 0 0.5rem 0;
  color: #ea580c;
  font-size: 1.2rem;
}

.cheer-message {
  color: #475569;
  font-weight: bold;
  line-height: 1.6;
}

.btn-simple {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s ease;
  background: white;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.btn-simple:hover {
  border-color: #ea580c;
  color: #ea580c;
  background: #fff7ed;
}

/* Sidebar Specifics */
.sidebar-widget.advice-box {
  background: rgba(255, 247, 237, 0.8); 
  border: 1px solid #fed7aa;
}

.one-point-advice {
  background: #ffffff; 
  border: 1px solid #fdba74; 
  border-radius: 12px; 
  padding: 1.5rem;
}

.advice-header {
  color: #c2410c; 
  border-bottom: 2px solid #fdba74;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-weight: bold;
}

.advice-content {
  color: #431407;
  line-height: 1.8;
  font-size: 0.9rem;
}

.advice-emphasis {
  font-weight: bold; 
  color: #ea580c;
}
