/* what_is_simple_life.css - Premium Simple Life Design */

:root {
  --simple-primary: #8c9986; /* Sage Green */
  --simple-secondary: #f4f5f3; /* Soft Light Gray */
  --simple-accent: #c9a96e; /* Gold/Brass for accents */
  --simple-text: #444b40; /* Deep Moss Green for text */
  --simple-bg: #ffffff;
  --simple-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  --paper-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

/* --- Global Texture --- */
body {
  background-color: var(--simple-bg);
  background-image: var(--paper-texture);
}

/* --- Hero Area --- */
.article-hero {
  background: var(--simple-gradient);
  padding: 6rem 2rem;
  border-radius: 40px;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(140, 153, 134, 0.1);
}

.article-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(140, 153, 134, 0.08) 0%,
    transparent 60%
  );
  animation: rotateHero 25s linear infinite;
  z-index: 0;
}

@keyframes rotateHero {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.article-hero .hero-inner {
  position: relative;
  z-index: 2;
}

/* --- Hero Particles --- */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--simple-accent);
  border-radius: 50%;
  opacity: 0.2;
  animation: floatParticle linear infinite;
}

.p1 {
  width: 6px;
  height: 6px;
  left: 10%;
  top: 20%;
  animation-duration: 15s;
}
.p2 {
  width: 4px;
  height: 4px;
  left: 80%;
  top: 40%;
  animation-duration: 25s;
  animation-delay: -5s;
}
.p3 {
  width: 8px;
  height: 8px;
  left: 30%;
  top: 70%;
  animation-duration: 20s;
  animation-delay: -2s;
}
.p4 {
  width: 5px;
  height: 5px;
  left: 70%;
  top: 80%;
  animation-duration: 18s;
  animation-delay: -10s;
}
.p5 {
  width: 7px;
  height: 7px;
  left: 50%;
  top: 30%;
  animation-duration: 22s;
  animation-delay: -7s;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.article-hero .sub-title {
  display: inline-block;
  padding: 0.6rem 2rem;
  background: rgba(140, 153, 134, 0.15);
  color: var(--simple-primary);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.article-hero h1 {
  font-size: 3.5rem;
  color: var(--simple-text);
  font-family: "Kaisei Opti", serif;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.hero-icons {
  margin-top: 2rem;
  color: var(--simple-primary);
  font-size: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .article-hero {
    padding: 4rem 1rem;
  }
  .article-hero h1 {
    font-size: 2.2rem;
  }
}

/* --- Content Blocks & Spacing --- */
.content-block {
  margin-bottom: 4rem;
}

.content-block h2 {
  font-family: "Kaisei Opti", serif;
  color: var(--simple-primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(140, 153, 134, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.content-block h2 i {
  font-size: 1.5rem;
  opacity: 0.7;
}

.content-block h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--simple-text);
  font-size: 1.5rem;
  margin: 3rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* --- Quote Emphasis --- */
.emphasis-quote {
  font-size: 1.4rem;
  line-height: 2;
  color: var(--simple-text);
  font-family: "Kaisei Opti", serif;
  text-align: center;
  padding: 4rem 3rem;
  margin: 6rem 0;
  border-radius: 30px;
  background: #f9faf8;
  position: relative;
}

.emphasis-quote::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(140, 153, 134, 0.1);
  border-radius: 25px;
  pointer-events: none;
}

.emphasis-quote i.fa-quote-left {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--simple-accent);
  font-size: 2.2rem;
}

.emphasis-quote-sub {
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  margin-top: 1.2rem;
  color: var(--simple-text);
  opacity: 0.85;
}

/* --- Featured Lists --- */
.featured-list {
  list-style: none;
  padding: 0;
  margin: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.featured-list li {
  background: var(--simple-secondary);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
}

.featured-list li:hover {
  transform: translateY(-8px);
  background: #fff;
  border-color: var(--simple-primary);
  box-shadow: 0 15px 30px rgba(140, 153, 134, 0.1);
}

.featured-list li i {
  font-size: 2rem;
  color: var(--simple-primary);
}

.featured-list-top {
  margin-top: 3.5rem;
}

.featured-item-desc {
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* --- Benefits Grid --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  perspective: 1200px;
}

.benefit-card {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  height: 280px;
  transition: none;
}

.benefit-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.benefit-card:hover .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;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.flip-card-front {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.flip-card-back {
  background: linear-gradient(135deg, #fdfbfb 0%, #f4f5f3 100%);
  border: 1px solid rgba(140, 153, 134, 0.3);
  box-shadow: 0 20px 40px rgba(140, 153, 134, 0.08);
  transform: rotateY(180deg);
}

.flip-hint {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.75rem;
  color: var(--simple-primary);
  opacity: 0.6;
  letter-spacing: 0.1em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Outfit", sans-serif;
}

.flip-hint i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.benefit-card:hover .flip-hint i {
  transform: rotate(180deg);
}

.flip-card-back p {
  color: var(--simple-text);
  line-height: 1.8;
  margin: 0;
  font-size: 0.95rem;
}

.benefit-card .icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(140, 153, 134, 0.1);
  color: var(--simple-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

.benefit-card h4 {
  color: var(--simple-text);
  font-family: "Kaisei Opti", serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* --- Summary Section --- */
.summary-container {
  margin-top: 6rem;
  text-align: center;
}

.summary-title {
  justify-content: center;
  border: none !important;
  font-size: 2.4rem !important;
}

.summary-text {
  max-width: 720px;
  margin: 0 auto;
  line-height: 2.2;
  font-size: 1.1rem;
  color: #555;
}

.section-title-center {
  text-align: center;
  margin-top: 7rem;
  font-family: "Kaisei Opti", serif;
  font-size: 2.2rem;
  color: var(--simple-primary);
  margin-bottom: 3rem;
}

/* --- Step Cards --- */
.steps-container {
  margin: 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step-card {
  display: flex;
  gap: 3rem;
  background: #fff;
  border-radius: 30px;
  padding: 3.5rem;
  border: 1px solid rgba(140, 153, 134, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 8rem;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  color: rgba(140, 153, 134, 0.05);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

.step-card:nth-child(even)::before {
  right: auto;
  left: 20px;
}

.step-card:nth-child(even) {
  flex-direction: row-reverse;
  background: var(--simple-secondary);
}

.step-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--simple-primary);
  box-shadow: 0 12px 25px rgba(140, 153, 134, 0.12);
  transform: rotate(-5deg);
}

.step-card:nth-child(even) .step-icon {
  transform: rotate(5deg);
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.6rem;
  color: var(--simple-text);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.step-content h4::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--simple-accent);
}

.step-content ul li {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  list-style: none;
  padding-left: 1.8rem;
  position: relative;
}

.step-content ul li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--simple-primary);
  font-size: 1.1rem;
}

/* --- Philosophy Box --- */
.philosophy-box {
  background: var(--simple-gradient);
  border-radius: 40px;
  padding: 5rem 3rem;
  text-align: center;
  margin: 6rem 0;
  border: 1px solid rgba(140, 153, 134, 0.15);
}

.philosophy-highlight {
  margin-top: 2.5rem;
  font-weight: 800;
  color: var(--simple-primary);
  font-size: 1.25rem;
  border-top: 1px solid rgba(140, 153, 134, 0.1);
  padding-top: 2rem;
  display: inline-block;
}

.philosophy-box i.fa-lightbulb {
  font-size: 4rem;
  color: var(--simple-accent);
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 15px rgba(201, 169, 110, 0.3));
}

.philosophy-box h3 {
  font-size: 2.2rem;
  color: var(--simple-text);
  font-family: "Kaisei Opti", serif;
  margin-bottom: 2rem;
  justify-content: center;
}

/* Standard Section Padding Fix */
section {
  padding: 0;
  margin-bottom: 0;
}

/* Custom Text decoration (Animated Marker) */
.highlight-text {
  background: linear-gradient(
    120deg,
    rgba(201, 169, 110, 0.3) 0%,
    rgba(201, 169, 110, 0.3) 100%
  );
  background-repeat: no-repeat;
  background-size: 0% 10px;
  background-position: 0 90%;
  font-weight: bold;
  transition: background-size 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-block.is-visible .highlight-text {
  background-size: 100% 10px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .step-card,
  .step-card:nth-child(even) {
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    text-align: center;
  }
  .step-content h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .step-content ul li {
    padding-left: 0;
  }
  .step-content ul li::before {
    display: none;
  }
}

/* --- Global Footer Enhancements --- */
.site-footer {
  text-align: center;
  padding: 6rem 2rem 4rem;
  color: #8c9986;
  border-top: 1px solid rgba(140, 153, 134, 0.1);
  margin-top: 4rem;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.05em;
}

/* --- Premium Sidebar Advice --- */
.sidebar-advice {
  background: #fffcf8 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 2rem !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(201, 169, 110, 0.2) !important;
  position: relative;
  font-family: "Zen Maru Gothic", sans-serif;
}

.sidebar-advice::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px dashed rgba(201, 169, 110, 0.4);
  pointer-events: none;
}

.sidebar-advice .header {
  border-bottom: none !important;
  justify-content: center;
  color: var(--simple-accent) !important;
  font-size: 1.1rem !important;
  margin-bottom: 1.5rem !important;
}

.sidebar-advice .header i {
  color: var(--simple-accent) !important;
}

.sidebar-advice p {
  text-align: left;
  color: var(--simple-text) !important;
  line-height: 2;
}

/* ==========================================
   PREMIUM VIDEO THEATER (SUMMARY)
   ========================================== */
.movie-summary-section {
  background: linear-gradient(to bottom, #ffffff, rgba(140, 153, 134, 0.05));
  border: 1px solid rgba(140, 153, 134, 0.1);
  padding: 4rem 2rem;
  border-radius: 30px;
  margin-top: 6rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.movie-summary-section h3 {
  color: var(--simple-primary);
  font-family: "Kaisei Opti", serif;
  font-size: 2rem;
  margin: 0 0 2rem 0;
  text-align: center;
}

.video-theater-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  background: #1a1a1a;
  padding: 15px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
}

.video-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay,
.video-replay-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: all 0.4s ease;
}
.video-overlay {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}
.video-replay-overlay {
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(5px);
}

.video-theater-container.is-playing .video-overlay {
  opacity: 0;
  visibility: hidden;
}
.video-theater-container.is-finished .video-replay-overlay {
  opacity: 1;
  visibility: visible;
}

.play-circle {
  width: 80px;
  height: 80px;
  background: var(--simple-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(201, 169, 110, 0.5);
  position: relative;
}
.play-circle i {
  color: white;
  font-size: 2.5rem;
  margin-left: 5px;
}
.play-circle::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid var(--simple-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.video-title-label {
  background: transparent;
  color: #fff;
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  font-family: "Kaisei Opti", serif;
  text-align: left;
  letter-spacing: 0.05em;
}

.video-theater-container.is-playing .video-title-label {
  opacity: 1;
}

.play-text {
  color: white;
  margin-top: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-family: "Kaisei Opti", serif;
  text-align: center;
  width: 100%;
  display: block;
}
.play-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.replay-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}
.replay-trigger i {
  font-size: 3rem;
  color: var(--simple-accent);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .movie-summary-section {
    padding: 2rem 1.5rem;
  }
  .play-circle {
    width: 60px;
    height: 60px;
  }
  .play-circle i {
    font-size: 1.5rem;
  }
}

/* --- Cinema Mode (Video Modal) Styling --- */
body.cinema-mode {
  overflow: hidden; /* スクロールをロックして没入感を高める */
}

.cinema-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85); /* 映画館のように暗く */
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  animation: fadeInBackdrop 0.4s ease forwards;
  cursor: pointer;
}

@keyframes fadeInBackdrop {
  to { opacity: 1; }
}

/* 動画が再生中の時に付与されるクラス */
.video-theater-container.cinema-active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 90vw;
  max-width: 1000px;
  z-index: 10000;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #000; /* 黒背景で完全に動画に集中させる */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  animation: modalPop 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* 閉じるためのガイドテキスト（枠外の下に配置） */
.video-theater-container.cinema-active::after {
  content: "× 画面の外側をタップして閉じる";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-family: inherit;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  opacity: 0.7;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes modalPop {
  0% { transform: translate(-50%, -45%) scale(0.95); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
