/* ===============================
   Variable & Reset
=============================== */
:root {
  --header-height: 80px;
  --header-height-mobile: 70px;
  --primary-color: #3b82f6;
  --line-color: #06C755;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --bg-light: #eef1f6;
  --card-bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', 'Space Grotesk', sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===============================
   Header & Nav
=============================== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
  display: flex; justify-content: space-between; align-items: center; padding: 0 5%;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); z-index: 1000;
}
.logo img { height: 50px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 14px; display: flex; flex-direction: column; align-items: center; }
.nav a span { font-size: 10px; color: var(--text-sub); font-family: 'Space Grotesk'; }
.nav a.cta { background: var(--primary-color); color: white !important; padding: 8px 18px; border-radius: 8px; flex-direction: row; gap: 5px; margin-left: 10px; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; z-index: 2000; width: 44px; height: 44px; position: relative; }
.hamburger span { display: block; width: 25px; height: 2px; background-color: var(--text-main); position: absolute; left: 10px; transition: 0.3s; }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 29px; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .header { height: var(--header-height-mobile); padding: 0 20px; }
  .logo img { height: 40px; }
  .hamburger { display: block; }
  .nav { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: rgba(255, 255, 255, 0.98); flex-direction: column; justify-content: center; gap: 30px; transition: 0.4s; box-shadow: -10px 0 30px rgba(0,0,0,0.05); }
  .nav.active { right: 0; }
  .nav a { font-size: 18px; }
}

/* ===============================
   Sections & Cards
=============================== */
.page-hero { text-align: center; padding: 140px 20px 60px; background: white; }
.hero { text-align: center; padding: 120px 20px; background: radial-gradient(circle at top right, #ffffff, #e7ecf6); position: relative; }
.section { padding: 60px 20px; max-width: 1100px; margin: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* 見切れ防止修正：overflowを削除 */
.card { 
  background: var(--card-bg); padding: 35px; border-radius: 20px; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); transition: 0.3s; 
  border: 1px solid rgba(0, 0, 0, 0.01); position: relative; 
}
.card:hover { transform: translateY(-8px); border: 1px solid var(--primary-color); }

.work-meta { display: inline-block; font-size: 11px; background: #f0f4ff; color: var(--primary-color); padding: 4px 10px; border-radius: 4px; margin-bottom: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===============================
   About Section Spec
=============================== */
.profile-flex { display: flex; gap: 50px; align-items: flex-start; }
.profile-img { width: 220px; flex-shrink: 0; border-radius: 24px; overflow: hidden; background: #f8fafc; }
.profile-img img { width: 100%; height: auto; display: block; }
.origin-story { background: #f8fafc; padding: 25px; border-radius: 16px; margin: 25px 0; border-left: 5px solid var(--primary-color); text-align: left; }
.origin-story h4 { color: var(--primary-color); margin-bottom: 10px; }

@media (max-width: 900px) {
  .profile-flex { flex-direction: column; align-items: center; text-align: center; }
}

/* ===============================
   Contact & Floating
=============================== */
.contact-options { display: flex; flex-direction: column; gap: 30px; max-width: 800px; margin: 40px auto 0; }

/* バッジの表示位置を微調整 */
.line-invite { text-align: center; border: 2px solid var(--line-color); margin-top: 20px; }
.line-badge { 
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); 
  background: var(--line-color); color: white; font-size: 11px; font-weight: bold; 
  padding: 3px 15px; border-radius: 20px; white-space: nowrap; z-index: 10;
}

.google-form-wrapper iframe { width: 100%; border: none; }
.floating-line { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background: var(--line-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.floating-line img { width: 32px; height: 32px; }

/* ===============================
   Utilities
=============================== */
.primary, .secondary { padding: 14px 30px; border-radius: 12px; text-decoration: none; font-weight: 600; display: inline-block; transition: 0.3s; }
.primary { background: var(--primary-color); color: white; }
.secondary { border: 2px solid var(--primary-color); color: var(--primary-color); }
.fade { opacity: 0; transform: translateY(20px); transition: 0.8s ease-out; }
.fade.show { opacity: 1; transform: none; }