/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #1f2937;
  overflow-x: hidden;
}

/* ページコンテナの背景をPrepWORKカラーに変更 */
.page-container {
  min-height: 100vh;
  background: linear-gradient(to bottom, #1f2937, #f28b7d, #fdddd5);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.hero-video.visible {
  opacity: 1;
}

.hero-bg-black {
  position: absolute;
  inset: 0;
  background: black;
  z-index: 5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: black;
  z-index: 10;
  opacity: 1;
  transition: opacity 400ms ease-out;
}

.hero-overlay.fade-out {
  opacity: 0;
}

.hero-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 2400ms ease-out;
}

.hero-frame.visible {
  opacity: 1;
}

.hero-frame.fade-out {
  opacity: 0;
}

.frame-svg {
  width: 100%;
  height: 100%;
}

/* フレームのドロップシャドウをPeachカラーに */
.frame-svg rect {
  filter: drop-shadow(0 0 8px rgba(253, 221, 213, 0.5));
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  margin-top: -40px;
  opacity: 1;
  transition: opacity 400ms ease-out;
}

.hero-text.fade-out {
  opacity: 0;
}

/* PrepWORKロゴスタイル */
.hero-logo {
  position: absolute;
  left: 50%;
  top: calc(20% - 30px);
  transform: translateX(-50%) translateY(-30px);
  z-index: 45;
  animation: logoDropIn 6000ms linear forwards;
  opacity: 1;
}

.logo-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #fdddd5;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 32px;
  }
}

/* 縦書きテキストをPeachカラーに */
.vertical-text {
  font-family: "Noto Serif JP", serif;
  color: #fdddd5;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

@media (min-width: 768px) {
  .vertical-text {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .vertical-text {
    font-size: 18px;
  }
}

.hero-cta {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 40;
  opacity: 0;
  transition: opacity 400ms ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-cta.visible {
  opacity: 1;
}

.hero-text-cta {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin-top: -40px;
}

.cta-buttons {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 64px;
  gap: 14px;
}

/* プライマリーボタンをOrangeグラデーションに */
.btn-primary {
  width: 280px;
  height: 45px;
  background: linear-gradient(to right, #ff6b35, #e8846a);
  color: white;
  font-size: 16px;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 300ms ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: pulse-6s 6s infinite;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(242, 139, 125, 0.5);
}

/* セカンダリーボタンのテキストをCoralに */
.btn-secondary {
  width: 260px;
  height: 30px;
  background: transparent;
  border: 1px solid #ffffff;
  color: #f5a08c;
  font-size: 13px;
  border-radius: 9999px;
  transition: all 300ms ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: linear-gradient(to right, #ff6b35, #e8846a);
  color: white;
}

/* サブコピーをPeachに */
.cta-subcopy {
  color: #fdddd5;
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* スキップボタンをPeachカラーに */
.skip-button {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  padding: 4px 12px;
  font-size: 14px;
  border: 1px solid #fdddd5;
  color: #fdddd5;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 200ms ease;
  opacity: 1;
}

.skip-button:hover {
  background: rgba(253, 221, 213, 0.1);
}

.skip-button.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Animations */
@keyframes exposeRamp {
  0% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.35;
  }
}

@keyframes pulse-6s {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes logoDropIn {
  0% {
    transform: translateX(-50%) translateY(-30px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* Story Section */
.story-section {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

@media (min-width: 768px) {
  .story-section {
    min-height: 80vh;
  }
}

.story-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, 0.7);
}

/* ストーリーオーバーレイをCoralグラデーションに */
.story-overlay-brand {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(242, 139, 125, 0.25), rgba(245, 160, 140, 0.25));
  mix-blend-mode: overlay;
  opacity: 0.7;
}

.story-content {
  position: relative;
  z-index: 10;
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px;
}

@media (min-width: 768px) {
  .story-content {
    padding: 112px 24px;
  }
}

.story-header {
  text-align: center;
}

/* ストーリータイトルをPeachに */
.story-title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #fdddd5;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
  transition-delay: 200ms;
}

@media (min-width: 768px) {
  .story-title {
    font-size: 30px;
  }
}

.story-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-underline {
  width: 120px;
  height: 2px;
  background: #fdddd5;
  margin: 40px auto 0;
  transform: scaleX(0);
  transition: transform 600ms ease-out;
}

.story-underline.visible {
  transform: scaleX(1);
}

.story-lines {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .story-lines {
    margin-top: 48px;
    gap: 20px;
  }
}

.story-line {
  font-size: 15px;
  line-height: 2;
  color: #fdddd5;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 480ms ease-out, transform 480ms ease-out;
}

@media (min-width: 768px) {
  .story-line {
    font-size: 17px;
    line-height: 2.25;
  }
}

.story-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-line:nth-child(1) {
  transition-delay: 90ms;
}
.story-line:nth-child(2) {
  transition-delay: 180ms;
}
.story-line:nth-child(3) {
  transition-delay: 270ms;
}
.story-line:nth-child(4) {
  transition-delay: 360ms;
}
.story-line:nth-child(5) {
  transition-delay: 450ms;
}

/* Three Zones Section */
/* ゾーンセクション背景をLight Grayに */
.three-zones-section {
  padding: 80px 0;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

.zones-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.zones-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ゾーンタイトルをDark Grayに */
.zones-title {
  font-size: 30px;
  color: #1f2937;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .zones-title {
    font-size: 36px;
  }
}

/* ゾーンサブタイトルをCoralに */
.zones-subtitle {
  font-size: 18px;
  color: #f28b7d;
}

.zones-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .zones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.zone-card {
  position: relative;
  border: 2px solid;
  border-radius: 12px;
  padding: 32px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translate(80px, -80px) rotate(10deg) scale(0.8);
  transition: opacity 1500ms cubic-bezier(0.68, -0.55, 0.265, 1.55), transform 1500ms
    cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.zone-card.visible {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
}

/* ゾーンカードのボーダーカラーをPrepWORKカラーに */
.zone-card-1 {
  border-color: #f5a08c;
  transition-delay: 0ms;
}

.zone-card-2 {
  border-color: #ffb347;
  transition-delay: 500ms;
}

.zone-card-3 {
  border-color: #4a7c59;
  transition-delay: 1000ms;
}

.zone-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.zone-content {
  position: relative;
  z-index: 10;
}

.zone-header {
  text-align: center;
  margin-bottom: 24px;
}

.zone-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.zone-title {
  font-size: 20px;
  color: white;
  margin-bottom: 16px;
}

.zone-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 24px;
}

.zone-cta {
  text-align: center;
}

.zone-btn {
  display: inline-block;
  padding: 12px 24px;
  color: white;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 300ms ease;
}

/* ボタンカラーをPrepWORKカラーに */
.zone-btn-coral {
  background: linear-gradient(to right, #ff6b35, #e8846a);
}

.zone-btn-yellow {
  background: linear-gradient(to right, #ffb347, #f28b7d);
}

.zone-btn-green {
  background: linear-gradient(to right, #4a7c59, #6b9b7a);
}

.zone-btn:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Guild Room Section */
/* ギルドルームセクションをPeach系グラデーションに */
.guild-room-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #fdddd5, #f5a08c);
  position: relative;
  overflow: hidden;
}

.guild-room-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      0deg,
      rgba(242, 139, 125, 0.05) 0px,
      transparent 1px,
      transparent 2px,
      rgba(242, 139, 125, 0.05) 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(242, 139, 125, 0.05) 0px,
      transparent 1px,
      transparent 2px,
      rgba(242, 139, 125, 0.05) 3px
    );
  pointer-events: none;
}

.guild-room-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.guild-room-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ギルドルームタイトルをDark Grayに */
.guild-room-title {
  font-family: "Noto Serif JP", serif;
  font-size: 30px;
  color: #1f2937;
  margin-bottom: 16px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
}

@media (min-width: 768px) {
  .guild-room-title {
    font-size: 36px;
  }
}

.guild-room-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ギルドルームサブタイトルをMedium Grayに */
.guild-room-subtitle {
  font-size: 16px;
  color: #6b7280;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
  transition-delay: 200ms;
}

@media (min-width: 768px) {
  .guild-room-subtitle {
    font-size: 18px;
  }
}

.guild-room-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.guild-room-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .guild-room-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ギルドルームカードをWhite背景、Salmonボーダーに */
.guild-room-card {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #f5a08c;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 4px 6px rgba(242, 139, 125, 0.1);
  transition: all 300ms ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.guild-room-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.guild-room-card:nth-child(1) {
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  transition-delay: 400ms;
}

.guild-room-card:nth-child(2) {
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  transition-delay: 600ms;
}

.guild-room-card:nth-child(3) {
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  transition-delay: 800ms;
}

.guild-room-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(253, 221, 213, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.guild-room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(242, 139, 125, 0.2);
  border-color: #f28b7d;
}

.guild-room-card-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.guild-room-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 4px rgba(242, 139, 125, 0.2));
}

/* ギルドルームカードタイトルをDark Grayに */
.guild-room-card-title {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  color: #1f2937;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .guild-room-card-title {
    font-size: 20px;
  }
}

/* ギルドルームカード説明をMedium Grayに */
.guild-room-card-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.8;
  text-align: left;
}

@media (min-width: 768px) {
  .guild-room-card-description {
    font-size: 15px;
  }
}

/* Footer Section */
/* フッターをDark Gray系グラデーションに */
.footer-section {
  background: linear-gradient(to bottom, #1f2937, #111827);
  padding: 64px 0;
  position: relative;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(31, 41, 55, 0.5), #1f2937, rgba(31, 41, 55, 0.5));
}

.footer-content {
  position: relative;
  z-index: 10;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* フッタータイトルをWarm Yellowに */
.footer-title {
  font-size: 30px;
  color: #ffb347;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-icon {
  font-size: 32px;
}

.footer-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* フッターカードをCoral系に */
.footer-card {
  background: linear-gradient(to right, rgba(242, 139, 125, 0.2), rgba(245, 160, 140, 0.2));
  border: 2px solid rgba(255, 179, 71, 0.4);
  border-radius: 8px;
  padding: 24px;
  cursor: pointer;
  transition: all 300ms ease;
}

.footer-card:hover {
  border-color: rgba(255, 179, 71, 0.6);
  background: linear-gradient(to right, rgba(242, 139, 125, 0.3), rgba(245, 160, 140, 0.3));
}

.footer-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  transition: color 300ms ease;
}

/* フッターカードホバー時のテキストをPeachに */
.footer-card:hover .footer-card-content {
  color: #fdddd5;
}

.footer-card-icon {
  font-size: 24px;
}

.footer-card-text {
  font-size: 18px;
}

/* Responsive Background Images */
@media (max-width: 767px) {
  .zone-card-1 {
    background-image: url("/images/001-3-4.jpeg");
  }
  .zone-card-2 {
    background-image: url("/images/002-3-4.jpeg");
  }
  .zone-card-3 {
    background-image: url("/images/003-3-4.jpeg");
  }
}

@media (min-width: 768px) {
  .zone-card-1 {
    background-image: url("/images/001-4-3.jpeg");
  }
  .zone-card-2 {
    background-image: url("/images/002-4-3.jpeg");
  }
  .zone-card-3 {
    background-image: url("/images/003-4-3.jpeg");
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-logo {
    animation: none;
    top: calc(20% - 30px);
  }

  .guild-room-title,
  .guild-room-subtitle,
  .guild-room-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
