/* AI採用サイト説明書の表紙 - ビジネス向けデザイン */
.manual-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.manual-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="%23ffffff" opacity="0.1"/></svg>');
  animation: float 20s ease-in-out infinite;
}

.manual-cover.hidden {
  display: none;
}

/* 表紙表示中は背景のマニュアル要素を完全に非表示（LCP測定から除外） */
.manual-cover:not(.hidden) ~ .book-spread-container,
.manual-cover:not(.hidden) ~ .detail-panel,
.manual-cover:not(.hidden) ~ .cutin-effect-container {
  display: none !important;
}

.manual-cover:not(.hidden) ~ * .manual-card,
.manual-cover:not(.hidden) ~ * .card-content,
.manual-cover:not(.hidden) ~ * .manual-image,
.manual-cover:not(.hidden) ~ * .cutin-face-image {
  display: none !important;
}

.manual-cover .cover-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  text-align: center;
}

.manual-cover .cover-left {
  color: #1e293b;
}

.manual-cover .cover-right {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3;
}

.manual-cover .cover-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  line-height: 1.3;
}

.manual-cover .price-highlight {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: #dc2626;
  margin: 1rem 0;
  text-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.manual-cover .location-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.manual-cover .service-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-weight: 700;
}

.manual-cover .target-info {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #059669;
  margin: 0.8rem 0;
  font-weight: 500;
}

.manual-cover .manual-label {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #475569;
  margin-bottom: 3rem;
  font-weight: 500;
}

.manual-cover .button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.manual-cover .start-button,
.manual-cover .site-link-button {
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  width: 240px; /* 幅を拡大してテキスト全表示 */
  text-align: center; /* テキスト中央揃え */
  box-sizing: border-box;
  white-space: nowrap; /* 1行に強制 */
}

.manual-cover .start-button {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.manual-cover .site-link-button {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.manual-cover .start-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.manual-cover .site-link-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.manual-cover .start-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.manual-cover .start-button:hover::before {
  left: 100%;
}

.manual-cover .site-link-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(5, 150, 105, 0.4);
}

.manual-cover .site-link-button:hover::before {
  left: 100%;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.manual-cover .official-character {
  max-width: 300px;
  max-height: 400px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 25px rgba(0,0,0,0.3));
  /* LCPの主要候補として優先度を上げる */
  min-width: 200px;
  min-height: 250px;
}

.manual-cover .character-speech {
  background: white;
  color: #333;
  padding: 0.8rem 1.2rem;
  border-radius: 15px;
  border: 2px solid #e74c3c;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 10px;
  white-space: nowrap;
}

.manual-cover .character-speech::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

@keyframes characterFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
  .manual-cover .cover-layout {
    padding: 0 1rem 180px 1rem; /* キャラクター拡大に合わせて余白を増加 */
  }
  
  .manual-cover .cover-right {
    bottom: 15px;
    right: 15px;
  }
  
  .manual-cover .official-character {
    max-width: 140px;
    max-height: 180px;
    /* モバイルでも最小サイズ保証 */
    min-width: 100px;
    min-height: 120px;
  }
  
  .manual-cover .character-speech {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
    margin-bottom: 8px;
  }
  
  .manual-cover .start-button,
  .manual-cover .site-link-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 240px; /* 幅統一 */
  }
}

/* iPhone SE など小型デバイス対応 */
@media (max-width: 480px) {
  .manual-cover .cover-layout {
    padding: 0 0.5rem 220px 0.5rem; /* さらに余白を拡大 */
  }
  
  .manual-cover .cover-right {
    bottom: 20px;
    right: 20px;
  }
  
  .manual-cover .official-character {
    max-width: 100px;
    max-height: 130px;
    min-width: 80px;
    min-height: 100px;
  }
  
  .manual-cover .character-speech {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    margin-bottom: 10px;
    max-width: 140px; /* 吹き出しの幅を制限 */
  }
  
  .manual-cover .button-group {
    gap: 0.5rem; /* ボタン間の隙間を縮小 */
    flex-direction: column; /* 縦並びに変更 */
    align-items: center;
  }
  
  .manual-cover .start-button,
  .manual-cover .site-link-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 240px; /* 幅統一 */
  }
}