*, *::before, *::after { box-sizing: border-box; margin: 0; border: 0; padding: 0; }

:root {
  --bg-base: #0e0220; 
  --text-main: #f8fafc;
  --text-muted: #9ca3af;
  --silver-glow: #e2e8f0;
  --glass-bg: rgba(20, 22, 26, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* --- 🌌 新版流体背景容器 --- */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none; /* 让鼠标穿透画布，不影响点击按钮 */
  background-color: var(--bg-base);
}

/* ── 🚀 顶部导航栏 ── */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; padding: 30px 5%;
  display: flex; justify-content: space-between; align-items: center; z-index: 100;
}
.logo-text {
  font-family: 'DM Sans', sans-serif; font-size: 24px; font-weight: 800;
  letter-spacing: 0.1em; color: var(--text-main); text-decoration: none; transition: opacity 0.3s;
}
.logo-text:hover { opacity: 0.8; }
.top-nav { display: flex; align-items: center; gap: 32px; }
.top-nav a { color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 500; transition: opacity 0.3s; }
.top-nav a:hover { opacity: 0.7; }

/* --- 📦 内容布局 --- */
.main-content {
  position: relative; z-index: 2; width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 120px 5% 40px; flex: 1; 
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 文字阴影，防背景干扰 */
}
.hero-text { text-align: center; margin-bottom: 50px; width: 100%; }
.hero-badge {
  display: inline-block; font-size: 11px; letter-spacing: 0.15em; color: var(--silver-glow); font-weight: 700; text-transform: uppercase;
  padding: 6px 18px; border-radius: 100px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); margin-bottom: 24px;
}
.hero-text h1 { font-family: 'Shippori Mincho', serif; font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; line-height: 1.3; margin-bottom: 24px; }
.hero-text p { font-size: 14px; color: var(--text-muted); line-height: 1.8; max-width: 500px; margin: 0 auto; }

/* --- 🎯 4宫格布局 --- */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%; max-width: 900px; }
.bento-card { 
  background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); 
  border: 1px solid var(--glass-border); border-radius: 20px; aspect-ratio: 1 / 1; 
  display: flex; flex-direction: column; align-items: center; justify-content: center; 
  color: #f8fafc; cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden; 
}
.bento-card:hover { transform: translateY(-8px); background: rgba(30, 34, 40, 0.6); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.8); }
.bento-icon { font-size: 36px; margin-bottom: 12px; transition: transform 0.4s; }
.bento-card:hover .bento-icon { transform: scale(1.15); }
.bento-title { font-size: 16px; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 4px; }
.bento-subtitle { font-size: 10px; color: #9ca3af; font-family: 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.1em; }

/* --- 🪟 弹窗系统 --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(12px); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-window { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -45%) scale(0.95); width: 90%; max-width: 600px; max-height: 85vh; overflow-y: auto; background: rgba(20, 22, 26, 0.9); backdrop-filter: blur(30px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 24px; padding: 40px; z-index: 1001; opacity: 0; pointer-events: none; box-shadow: 0 40px 100px rgba(0,0,0,0.9); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-window.active { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-close-btn { position: absolute; top: 24px; right: 24px; width: 32px; height: 32px; border-radius: 50%; border:0; background: rgba(255,255,255,0.05); color: white; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* --- ✉️ 留言表单样式 --- */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); color: white; font-family: inherit; font-size: 14px; outline: none; transition: all 0.3s ease; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.contact-form input:focus, .contact-form textarea:focus { border-color: #60a5fa; background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2); }
.contact-form .submit-btn { margin-top: 8px; padding: 14px; border-radius: 50px; background: white; color: black; font-size: 15px; font-weight: bold; cursor: pointer; transition: all 0.3s; border: none; }
.contact-form .submit-btn:hover { opacity: 0.8; transform: translateY(-2px); }

/* --- 🔗 底部 Footer --- */
.site-footer { position: relative; z-index: 2; width: 100%; padding: 24px 5%; text-align: center; }
.social-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.social-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-main); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.social-icon:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,0.4); font-size: 12px; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.copyright { font-size: 11px; color: rgba(255,255,255,0.2); }

@media (max-width: 900px) { .top-nav { display: none; } }
@media (max-width: 768px) {
  .site-header { justify-content: center; padding: 20px 5%; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 400px; }
  .bento-card { border-radius: 16px; }
  .hero-text h1 { font-size: 32px; }
  .main-content { padding-top: 90px; }
}