@charset "UTF-8";
/*
Theme Name: Riddle Creative
Theme URI: http://riddle-creative.hidewo-kawasaki.jp/
Author: Riddle Creative
Version: 3.5.0
*/

@import url('https://fonts.googleapis.com/css2?family=Hina+Mincho&family=M+PLUS+1p:wght@400;700;800;900&family=Montserrat:wght@400;700;900&display=swap');

:root {
  --color-bg-dark: #12161c;
  --color-sec3-bg: #fdfcf7;
  --color-sec3-logo: #e6f1d8;
  --color-sec4-overlay: rgba(48, 147, 57, 0.65);
  --color-sec5-top1: #ba654b;
  --color-sec5-top2: #f8d369;
  --color-sec5-bottom: #7ac7bc;
  --color-accent-red: #e63946;
  --font-mincho: "Hina Mincho", serif;
  --font-main: "M PLUS 1p", sans-serif;
  --font-en: "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-dark);
  font-family: var(--font-main);
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   ローダー
   ========================================== */
.loader-screen {
  position: fixed;
  inset: 0;
  background-color: #0b0e14;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000000;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-brand {
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  color: #7b889b;
  margin-bottom: 20px;
}

.loader-count {
  font-family: var(--font-en);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.loader-screen.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================
   スクロールナビゲーション
   ========================================== */
.fixed-scroll-nav {
  position: fixed;
  right: 40px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  user-select: none;
}

.nav-track {
  width: 1px;
  height: 75px;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  transition: background-color 0.4s;
}

.is-light-active .nav-track {
  background-color: rgba(0, 0, 0, 0.25) !important;
}

.nav-dot {
  width: 9px;
  height: 9px;
  background-color: var(--color-accent-red);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.9);
  transition: top 0.15s ease-out, transform 0.2s;
}

.nav-dot:hover {
  transform: translate(-50%, -50%) scale(1.4);
}

.nav-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: lowercase;
  transition: color 0.4s;
}

.is-light-active .nav-label {
  color: #777777 !important;
}

/* ==========================================
   セクション共通
   ========================================== */
.scene-sec {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}

/* ==========================================
   セクション2：全画面粗ノイズ ＆ 1枚ロゴの激しい赤青RGB
   ========================================== */
.sec-2-glitch {
  background-color: var(--color-bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 画面全体の荒いノイズオーバーレイ */
.fullscreen-heavy-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: 
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0px, rgba(0, 0, 0, 0.35) 2px, transparent 2px, transparent 4px),
    radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 100% 4px, 5px 5px;
  animation: heavyNoiseRun 0.08s infinite;
}

@keyframes heavyNoiseRun {
  0%   { transform: translate(0, 0); opacity: 0.8; }
  25%  { transform: translate(-3px, 2px); opacity: 0.5; }
  50%  { transform: translate(2px, -3px); opacity: 1; }
  75%  { transform: translate(-2px, -1px); opacity: 0.6; }
  100% { transform: translate(3px, 1px); opacity: 0.9; }
}

.glitch-logo-stage {
  position: relative;
  z-index: 5;
  display: block;
}

/* 画像は1枚のみ。歪みなし、等倍。赤青RGBを外側に同時発光 */
.main-logo-exact {
  width: 260px;
  max-width: 70vw;
  height: auto;
  display: block;
  object-fit: contain;
  animation: heavyRgbGlitch 0.25s infinite steps(2);
}

@keyframes heavyRgbGlitch {
  0% {
    filter: drop-shadow(0 0 0 transparent);
    transform: translate(0, 0);
  }
  20% {
    filter: drop-shadow(14px 0 0 rgba(255, 0, 50, 0.95)) drop-shadow(-14px 0 0 rgba(0, 240, 255, 0.95));
    transform: translate(2px, -1px);
  }
  40% {
    filter: drop-shadow(0 0 0 transparent);
    transform: translate(0, 0);
  }
  60% {
    filter: drop-shadow(-16px 0 0 rgba(255, 0, 50, 0.9)) drop-shadow(16px 0 0 rgba(0, 240, 255, 0.9));
    transform: translate(-3px, 1px);
  }
  80% {
    filter: drop-shadow(20px 0 0 rgba(255, 0, 50, 1)) drop-shadow(-20px 0 0 rgba(0, 240, 255, 1));
    transform: translate(3px, 0);
  }
  100% {
    filter: drop-shadow(0 0 0 transparent);
    transform: translate(0, 0);
  }
}

/* ==========================================
   セクション3：ページめくり背景 (#fdfcf7)
   （左上テキスト ＋ 右下巨大ロゴ #e6f1d8）
   ========================================== */
.sec-3-peel {
  background-color: var(--color-sec3-bg);
  box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  padding: 12vh 0 0 12vw;
  z-index: 10;
}

.sec-3-content {
  position: relative;
  z-index: 2;
}

.sec-3-content h2 {
  font-family: var(--font-mincho);
  font-size: clamp(2.8rem, 5.8vw, 4.6rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: #111111;
  margin-bottom: 24px;
}

.sec-3-content p {
  font-family: var(--font-en);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  letter-spacing: 0.28em;
  color: #222222;
  font-weight: 700;
  text-transform: uppercase;
}

/* 右下に固定配置する巨大ロゴ（セクション3・4共通仕様） */
.sec-bg-logo-anchor {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: min(520px, 46vw);
  height: min(440px, 42vw);
  z-index: 1;
  pointer-events: none;
}

.colored-mask-logo {
  width: 100%;
  height: 100%;
  background-color: var(--color-sec3-logo); /* #e6f1d8 */
  -webkit-mask-image: url('http://riddle-creative.hidewo-kawasaki.jp/wp-content/uploads/2026/09/rogo-scaled.png');
  mask-image: url('http://riddle-creative.hidewo-kawasaki.jp/wp-content/uploads/2026/09/rogo-scaled.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: right bottom;
  mask-position: right bottom;
}

/* ==========================================
   セクション4：左から右へスライド (65%透過・2/3重なり)
   ========================================== */
.sec-4-slide-wrap {
  background-color: var(--color-sec3-bg);
  position: relative;
  display: flex;
  align-items: center;
  z-index: 15;
}

.slide-panel-green {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-sec4-overlay); /* 65%透過 */
  backdrop-filter: blur(1px);
  z-index: 3;
  display: flex;
  align-items: center;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.slide-panel-green.is-active {
  width: 66.666%; /* 画面の2/3まで覆い被さり、右下のロゴに重なる */
}

.slide-text-box {
  padding-left: 12vw;
  padding-right: 5vw;
  width: 100%;
  max-width: 780px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease 0.35s, transform 0.8s ease 0.35s;
}

.slide-panel-green.is-active .slide-text-box {
  opacity: 1;
  transform: translateX(0);
}

.statement-text {
  font-family: var(--font-mincho);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 2.3;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ==========================================
   セクション5：日照背景 + CSSテレビ(ボヨン表示) + ABOUT
   ========================================== */
.sec-5-about {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
}

.sec-5-top {
  flex: 1;
  width: 100%;
  min-height: 55vh;
  position: relative;
  overflow: hidden;
  background: repeating-conic-gradient(
    var(--color-sec5-top1) 0deg 15deg,
    var(--color-sec5-top2) 15deg 30deg
  );
}

.sec-5-bottom {
  flex: 1;
  width: 100%;
  min-height: 45vh;
  background-color: var(--color-sec5-bottom);
  position: relative;
  padding: 40px 8%;
}

.tv-wrapper {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -220%) scale(0.3);
  z-index: 10;
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
}

.tv-wrapper.is-bounce {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.retro-tv {
  width: 440px;
  height: 310px;
  background: #3e2723;
  border-radius: 40px;
  border: 12px solid #271613;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.retro-tv::before,
.retro-tv::after {
  content: "";
  position: absolute;
  top: -48px;
  width: 8px;
  height: 55px;
  background: #8d6e63;
  border-radius: 4px;
  transform-origin: bottom center;
}
.retro-tv::before { left: 45%; transform: rotate(-25deg); }
.retro-tv::after { right: 45%; transform: rotate(25deg); }

.tv-screen {
  flex: 1;
  height: 100%;
  background: #111111;
  border-radius: 28px;
  border: 4px solid #1a1a1a;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.tv-screen-content {
  color: #66fcf1;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 16px;
  line-height: 1.6;
}

.tv-panel {
  width: 60px;
  height: 100%;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.tv-dial {
  width: 36px;
  height: 36px;
  background: #5d4037;
  border-radius: 50%;
  border: 3px solid #271613;
}

.tv-speaker {
  width: 44px;
  height: 8px;
  background: #271613;
  border-radius: 4px;
}

.about-huge-title {
  position: absolute;
  bottom: 40px;
  left: 8%;
  font-family: var(--font-main);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   セクション6：LAST
   ========================================== */
.sec-6-last {
  background-color: var(--color-bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 25;
}

.last-instruction {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-accent-red);
  padding: 24px 44px;
  border: 2px dashed var(--color-accent-red);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
}

.last-instruction:hover {
  background-color: rgba(230, 57, 70, 0.1);
  transform: scale(1.03);
}