/* ===================================
   Web Tools Collection - Portal Page
   ポータルページ専用スタイル
   =================================== */

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

*::before, *::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* ボディとレイアウト */
body {
  background: linear-gradient(135deg, #1e3a5f 0%, #043F76 50%, #2a5a8a 100%);
  font-family: "Zen Kaku Gothic New", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  letter-spacing: .05em;
}

/* 背景エフェクト */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.4), transparent);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.3), transparent);
  bottom: -10%;
  right: -10%;
  animation-delay: 5s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.3), transparent);
  top: 50%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* グリッドパターン */
.grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* ノイズテクスチャ */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* メインコンテナ */
.header,
.tools-section,
.features-section,
.footer {
  position: relative;
  z-index: 10;
}

/* ヘッダー */
.header {
  text-align: center;
  padding: 80px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.logo-icon {
  font-size: 3rem;
  animation: pulse 3s ease-in-out infinite;
}

.site-title {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.site-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-weight: 400;
}

/* ツールセクション */
.tools-section {
  padding: 40px 20px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ツールグリッド */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
}

/* ツールカード */
.tool-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 35px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(102, 126, 234, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(102, 126, 234, 0.3);
}

.tool-card:hover::before {
  opacity: 1;
}

/* グローエフェクト */
.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.4), transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.tool-card:hover .glow-effect {
  transform: translate(-50%, -50%) scale(1.5);
}

/* カードアイコン */
.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* カードタイトル */
.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

/* カードサブタイトル */
.card-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* カード説明 */
.card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

/* カードタグ */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.card-tags .tag {
  padding: 5px 12px;
  background: rgba(4, 63, 118, 0.08);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* カード矢印 */
.card-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.card-arrow svg {
  width: 20px;
  height: 20px;
  color: white;
}

.tool-card:hover .card-arrow {
  background: var(--primary-dark);
  transform: translateX(5px);
}

/* 特徴セクション */
.features-section {
  padding: 60px 20px 80px;
  text-align: center;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
}

.feature-label {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

/* フッター */
.footer {
  text-align: center;
  padding: 60px 20px 40px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.footer p {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* アニメーション */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
  .site-title {
    font-size: 3rem;
  }
  
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 60px 20px 40px;
  }
  
  .site-title {
    font-size: 2.5rem;
  }
  
  .site-description {
    font-size: 1rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tool-card {
    padding: 30px;
  }
  
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .feature-item{
    padding: 20px 10px;
  }

  .feature-label{
    margin: 0;
  }
}

@media (max-width: 480px) {
  .logo-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .logo-icon {
    font-size: 2.5rem;
  }
  
  .site-title {
    font-size: 2rem;
  }
  
  .card-title {
    font-size: 1.4rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}
