/* ================================================================
   EUDAIMONIA UNIVERSE — Brand Kit System
   Cosmos × Lavender | 6-Color Logo Palette
   ================================================================ */

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Calibri', 'Noto Sans JP', 'Inter', sans-serif;
  color: #c0c8d4;
  background: #06080F;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.35s; }
ul { list-style: none; }

/* PALETTE — Brand Kit */
:root {
  /* Cosmos Main Theme */
  --bg: #06080F;
  --bg2: #0C1023;
  --bg3: #12162E;
  --nebula: #1A1548;
  --card-bg: #12162E;

  /* 6 Logo Colors */
  --teal: #00B5A0;
  --blue: #4A70B5;
  --purple: #7B50A3;
  --magenta: #D64A8C;
  --yellow: #E8C830;
  --orange: #E87030;

  /* Lavender Sub Theme */
  --lav-off-white: #F8F6FC;
  --lav-light: #EDE8F5;
  --lav-main: #C5B8DE;
  --lav-purple: #9B8ABF;

  /* Functional — derived from brand */
  --stellar: #4A70B5;
  --stellar-dim: rgba(74,112,181,0.15);
  --gold: #E8C830;
  --gold-glow: rgba(232,200,48,0.10);
  --aurora: #00B5A0;

  /* Text */
  --text: #c0c8d4;
  --text-dim: #8e96a8;
  --text-muted: #5a6274;
  --white: #F8F6FC;

  /* Surfaces */
  --surface: rgba(255,255,255,0.025);
  --border: rgba(255,255,255,0.06);
  --hover: rgba(255,255,255,0.06);
  --container: 1080px;
  --ease: 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* CONTAINER */
.container { max-width: var(--container); margin: 0 auto; padding: 0 48px; }

/* ========== STARS CANVAS ========== */
.stars { position: fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:0; }

/* ========== NAV ========== */
.nav {
  position: fixed; top:0; left:0; width:100%; z-index:100;
  padding: 0 48px;
  transition: background var(--ease), backdrop-filter var(--ease);
}
.nav.scrolled {
  background: rgba(6,8,16,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container); margin:0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: Georgia, 'Noto Serif JP', serif;
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--white);
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: Cambria, 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; color: var(--text-muted);
  text-transform: uppercase;
  transition: color var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--lav-main); }
.nav-toggle { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:8px; }
.nav-toggle span { display:block; width:20px; height:1.5px; background:var(--text-dim); transition:all 0.3s; }

/* ========== HERO ========== */
.hero {
  position: relative; z-index:1;
  min-height: 100vh;
  display: flex; align-items: center;
}
.hero-orb {
  position: absolute; border-radius:50%; pointer-events:none; filter:blur(100px);
}
.hero-orb-1 {
  width: 600px; height: 600px;
  top: 10%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(26,21,72,0.55) 0%, rgba(123,80,163,0.12) 40%, transparent 70%);
}
.hero-orb-2 {
  width: 350px; height: 350px;
  top: 30%; right: 5%;
  background: radial-gradient(circle, rgba(214,74,140,0.06) 0%, rgba(232,200,48,0.04) 50%, transparent 70%);
}
.hero-content { position: relative; z-index:2; }
.hero-label {
  font-family: Cambria, 'Inter', sans-serif;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 40px;
  opacity:0; animation: fadeUp 0.8s 0.3s forwards;
}
.hero-catch {
  font-family: Georgia, 'Noto Serif JP', serif;
  font-size: 3.2rem; font-weight: 700;
  line-height: 1.5; color: var(--white);
  margin-bottom: 20px;
  opacity:0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-catch-gradient {
  background: linear-gradient(135deg, var(--lav-off-white) 10%, var(--teal) 35%, var(--blue) 55%, var(--purple) 75%, var(--magenta) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-family: Cambria, 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.18em; color: var(--lav-main);
  opacity:0; animation: fadeUp 0.8s 0.9s forwards;
}
.hero-desc {
  margin-top: 48px;
  font-size: 0.95rem; font-weight: 300;
  line-height: 2.4; color: var(--text-dim);
  max-width: 520px;
  opacity:0; animation: fadeUp 0.8s 1.2s forwards;
}
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap:6px;
  opacity:0; animation: fadeUp 0.8s 1.5s forwards;
}
.hero-scroll span { font-family:'Inter',sans-serif; font-size:0.58rem; letter-spacing:0.25em; color:var(--text-muted); }
.hero-scroll-bar { width:1px; height:36px; background:linear-gradient(to bottom,var(--text-muted),transparent); animation:pulse 2.5s infinite; }

@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse { 0%,100%{opacity:0.2} 50%{opacity:0.8} }

/* ========== PAGE SECTIONS ========== */
.section { padding: 140px 0; position: relative; z-index:1; }
.section-sm { padding: 100px 0; }
.section-bordered { border-top: 1px solid var(--border); }
.section-tint { background: var(--bg2); }

.section-label {
  font-family: Cambria, 'Inter', sans-serif;
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--lav-main); margin-bottom: 16px;
}
.section-title {
  font-family: Georgia, 'Noto Serif JP', serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--white); line-height: 1.4;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 0.95rem; color: var(--text-dim);
  line-height: 2.2; max-width: 600px;
}

/* ========== CARDS ========== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 44px;
  transition: all var(--ease);
  position: relative; overflow: hidden;
}
.card:hover {
  background: rgba(18,22,46,0.85);
  border-color: rgba(197,184,222,0.18);
  transform: translateY(-3px);
}
.card-num {
  font-family: Georgia, serif;
  font-size: 3rem; font-weight: 200;
  color: rgba(74,112,181,0.10);
  line-height: 1; margin-bottom: 20px;
}
.card h3 {
  font-family: Georgia, 'Noto Serif JP', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--white); margin-bottom: 6px;
}
.card .tag {
  font-family: Cambria, 'Inter', sans-serif;
  font-size: 0.78rem; color: var(--lav-main);
  font-style: italic; margin-bottom: 16px;
}
.card p, .card li {
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.9;
}
.card li { padding-left: 16px; position: relative; margin-bottom: 6px; }
.card li::before {
  content:''; width:4px; height:4px; background:var(--teal);
  border-radius:50%; position:absolute; left:0; top:12px;
  box-shadow: 0 0 6px rgba(0,181,160,0.3);
}
.card h4 {
  font-family: Cambria, 'Inter', sans-serif;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin: 24px 0 10px;
}
.card h4:first-of-type { margin-top: 0; }

/* 6-color accent on division cards (01/02/03) */
.card:nth-child(1) { border-top: 2px solid var(--teal); }
.card:nth-child(2) { border-top: 2px solid var(--blue); }
.card:nth-child(3) { border-top: 2px solid var(--purple); }

/* ========== GRID LAYOUTS ========== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

/* ========== SERVICE APP CARDS ========== */
.app-card {
  border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--ease); display:flex; flex-direction:column;
}
.app-card:hover { border-color:rgba(197,184,222,0.2); transform:translateY(-4px); }
.app-visual {
  height: 180px; display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.app-visual-1 { background:linear-gradient(135deg,#0C1023 0%,#12162E 50%,#1A1548 100%); }
.app-visual-2 { background:linear-gradient(135deg,#0C1023 0%,#1A1548 50%,#251d5e 100%); }
.app-visual h3 { font-size:1.4rem; color:var(--white); z-index:2; text-align:center; line-height:1.6; }
.app-visual h3 { font-family: Georgia, 'Noto Serif JP', serif; }
.app-visual h3 span { display:block; font-size:0.62rem; font-weight:400; letter-spacing:0.22em; color:var(--lav-main); margin-top:6px; opacity:0.7; font-family: Cambria, 'Inter', sans-serif; }
.app-body { padding: 32px; flex:1; display:flex; flex-direction:column; }
.app-body .tagline { font-size:0.85rem; color:var(--lav-main); font-style:italic; margin-bottom:12px; }
.app-body p { font-size:0.85rem; color:var(--text-dim); line-height:1.9; flex:1; }
.app-link {
  display:inline-flex; align-items:center; gap:6px; margin-top:16px;
  font-family:Cambria,'Inter',sans-serif; font-size:0.75rem; font-weight:500;
  color:var(--teal); letter-spacing:0.08em; transition:color var(--ease);
}
.app-link:hover { color:var(--teal); opacity:0.8; }
.app-link::after { content:' →'; }

/* ========== ASSET ITEMS ========== */
.asset {
  display:flex; align-items:flex-start; gap:16px;
  padding: 24px 28px; background:var(--surface);
  border:1px solid var(--border); border-radius:8px;
  transition: all var(--ease);
}
.asset:hover { background:var(--hover); border-color:rgba(197,184,222,0.15); }
.asset-icon {
  width:36px; height:36px; border-radius:7px;
  background:rgba(123,80,163,0.12); border:1px solid rgba(123,80,163,0.18);
  display:flex; align-items:center; justify-content:center;
  color:var(--lav-main); font-size:0.9rem; flex-shrink:0;
}
.asset h4 { font-family: Georgia, 'Noto Serif JP', serif; font-size:0.92rem; color:var(--white); margin-bottom:4px; }
.asset p { font-size:0.78rem; color:var(--text-muted); line-height:1.6; }
.asset-featured {
  grid-column: 1 / -1;
  border-left: 3px solid var(--orange);
  background: rgba(232,112,48,0.06);
}
.asset-featured .asset-icon { background:rgba(232,112,48,0.12); border-color:rgba(232,112,48,0.2); color:var(--orange); }

/* ========== ABOUT TABLE ========== */
.info-table { width:100%; border-collapse:collapse; }
.info-table tr { border-bottom:1px solid var(--border); }
.info-table th { font-size:0.75rem; font-weight:600; color:var(--text-muted); text-align:left; padding:14px 0; width:110px; vertical-align:top; }
.info-table td { font-size:0.88rem; color:var(--text); padding:14px 0; line-height:1.8; }

/* ========== TIMELINE ========== */
.timeline { padding-left:24px; position:relative; }
.timeline::before { content:''; position:absolute; left:3px; top:6px; bottom:6px; width:1px; background:linear-gradient(to bottom,var(--teal),var(--blue),var(--purple),transparent); }
.tl-item { position:relative; margin-bottom:28px; }
.tl-item::before { content:''; position:absolute; left:-24px; top:7px; width:7px; height:7px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px rgba(0,181,160,0.35); }
.tl-item:nth-child(2)::before { background:var(--blue); box-shadow:0 0 8px rgba(74,112,181,0.35); }
.tl-item:nth-child(3)::before { background:var(--purple); box-shadow:0 0 8px rgba(123,80,163,0.35); }
.tl-item:nth-child(4)::before { background:var(--magenta); box-shadow:0 0 8px rgba(214,74,140,0.35); }
.tl-year { font-family:Cambria,'Inter',sans-serif; font-size:0.72rem; font-weight:600; color:var(--lav-main); letter-spacing:0.06em; margin-bottom:4px; }
.tl-item p { font-size:0.85rem; color:var(--text-dim); line-height:1.8; }

/* ========== ARCHIVE ========== */
.archive-quote {
  font-family: Georgia, 'Noto Serif JP', serif;
  font-size:1rem; color:var(--lav-main); font-style:italic;
  border-left:2px solid var(--purple); padding-left:20px;
  line-height:2; margin:32px 0;
}
.archive-item {
  display:flex; align-items:center; gap:14px;
  padding:16px 20px; background:var(--surface);
  border:1px solid var(--border); border-radius:6px;
  margin-bottom:10px; transition:background var(--ease);
}
.archive-item:hover { background:var(--hover); }
.archive-dot { width:6px; height:6px; border-radius:50%; background:var(--lav-purple); box-shadow:0 0 6px rgba(155,138,191,0.3); flex-shrink:0; }
.archive-item span { font-size:0.85rem; color:var(--text-dim); }

/* ========== THESIS FLOW (対立学) ========== */
.thesis-flow { display:grid; gap:20px; }
.thesis-step {
  display:flex; align-items:flex-start; gap:16px;
  padding:16px 20px;
  background:rgba(255,255,255,0.02);
  border:1px solid var(--border);
  border-radius:8px;
  transition:all var(--ease);
}
.thesis-step:hover {
  background:rgba(255,255,255,0.04);
  border-color:rgba(197,184,222,0.18);
}
.thesis-num {
  font-family:Cambria,'Inter',sans-serif;
  font-size:0.85rem; font-weight:700;
  color:var(--lav-off-white);
  width:32px; height:32px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(197,184,222,0.3);
  border-radius:50%; flex-shrink:0;
  background: rgba(123,80,163,0.12);
}
.thesis-step:nth-child(1) .thesis-num { color:var(--teal); border-color:rgba(0,181,160,0.3); background:rgba(0,181,160,0.08); }
.thesis-step:nth-child(2) .thesis-num { color:var(--magenta); border-color:rgba(214,74,140,0.3); background:rgba(214,74,140,0.08); }
.thesis-step:nth-child(3) .thesis-num { color:var(--yellow); border-color:rgba(232,200,48,0.3); background:rgba(232,200,48,0.08); }
.thesis-step p {
  font-size:0.82rem; color:var(--text-dim); line-height:1.7; margin:0;
}

/* ========== CONTACT ========== */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:start; }
.contact-cat {
  padding:20px 24px; border-radius:8px;
  background:var(--surface); border:1px solid var(--border);
  margin-bottom:12px; transition:all var(--ease);
}
.contact-cat:hover { background:var(--hover); border-color:rgba(197,184,222,0.15); }
.contact-cat h4 { font-family: Georgia, 'Noto Serif JP', serif; font-size:0.9rem; color:var(--white); margin-bottom:2px; }
.contact-cat p { font-size:0.75rem; color:var(--text-muted); }
.form { display:grid; gap:16px; }
.form label { font-size:0.72rem; font-weight:500; color:var(--text-muted); letter-spacing:0.05em; }
.form input, .form select, .form textarea {
  width:100%; padding:13px 16px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:6px; color:var(--text); font-size:0.88rem;
  font-family:inherit; outline:none; transition:border var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color:var(--lav-purple); }
.form select option { color:#111; background:#fff; }
.form textarea { resize:vertical; min-height:110px; }
.form input::placeholder, .form textarea::placeholder { color:var(--text-muted); }
.form-btn {
  padding:14px 44px; background:transparent;
  border:1px solid var(--lav-main); color:var(--lav-main);
  font-family:Cambria,'Inter',sans-serif; font-size:0.78rem; font-weight:500;
  letter-spacing:0.14em; border-radius:4px; cursor:pointer;
  transition:all var(--ease); justify-self:start;
}
.form-btn:hover { background:var(--lav-main); color:var(--bg); }

/* ========== FOOTER ========== */
.footer {
  position:relative; z-index:1;
  padding:48px 0 32px;
  border-top:1px solid var(--border);
}
.footer-inner { display:flex; justify-content:space-between; align-items:center; }
.footer-logo { font-family:Georgia,'Noto Serif JP',serif; font-size:0.88rem; font-weight:600; color:var(--white); letter-spacing:0.04em; }
.footer-copy { font-family:Cambria,'Inter',sans-serif; font-size:0.65rem; color:var(--text-muted); }

/* ========== FADE IN ========== */
.fi { opacity:0; transform:translateY(24px); transition:opacity 0.7s ease,transform 0.7s ease; }
.fi.v { opacity:1; transform:translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width:960px) {
  .container { padding:0 24px; }
  .nav { padding:0 24px; }
  .nav-links { display:none; }
  .nav-links.open {
    display:flex; flex-direction:column;
    position:fixed; inset:0;
    background:rgba(6,8,16,0.97);
    justify-content:center; align-items:center;
    gap:28px; z-index:99;
  }
  .nav-links.open a { font-size:0.95rem; color:var(--text) !important; }
  .nav-toggle { display:flex; z-index:101; }
  .hero-catch { font-size:2rem; }
  .section { padding:80px 0; }
  .grid-2, .grid-3, .contact-grid { grid-template-columns:1fr; gap:24px; }
  .card { padding:28px; }
}
@media (max-width:600px) {
  .hero-catch { font-size:1.6rem; }
  .section-title { font-size:1.6rem; }
}
