/*
Theme Name: AETHER
Theme URI: https://gttatjrw.gensparkclaw.com/wp
Author: Novamor
Author URI: https://novamor.co.jp
Description: エディトリアル × アシンメトリ × アニメーション。株式会社Novamorのコーポレートサイトテーマ。
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aether
Tags: corporate, one-page, full-site-editing, custom-colors, custom-logo
*/

/* ============================================
   Novamor Corporate Site — style.css
   ============================================ */

/* ── Variables ── */
:root {
  --bg: #FFFFFF;
  --fg: #0A0A0A;
  --accent1: #0033FF;
  --accent2: #FF6B6B;
  --muted: #6B6B6B;
  --border: rgba(10,10,10,0.1);
  --font-ja: 'Noto Serif JP', serif;
  --font-en: 'Inter', sans-serif;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
}

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* ── Section Base ── */
.section {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.section-dark {
  background: var(--fg);
  color: var(--bg);
}

.section-light {
  background: #F6F6F4;
}

.section-blue {
  background: var(--accent1);
  color: var(--bg);
}

.section-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 16px;
}

.section-label.light { color: rgba(255,255,255,0.5); }

.section-title {
  font-family: var(--font-ja);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title.light { color: var(--bg); }

.section-header {
  margin-bottom: 80px;
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}

#nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

#nav.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 48px;
}

.nav-logo {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

.nav-links .nav-cta {
  opacity: 1;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}

.nav-links .nav-cta:hover {
  background: var(--accent1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--fg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu ul {
  text-align: center;
}

.mobile-menu li { margin: 24px 0; }

.mobile-link {
  font-family: var(--font-ja);
  font-size: 36px;
  font-weight: 700;
  color: var(--bg);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.mobile-link:hover { opacity: 1; }

/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  padding-top: var(--nav-h);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-ja);
  font-size: clamp(80px, 12vw, 220px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 48px;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line span {
  display: inline-block;
}

.hero-sub-wrap {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-sub {
  font-family: var(--font-en);
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 360px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 100px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.5s forwards;
}

.hero-scroll-hint span {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-lr;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollLine 2s var(--ease-out) infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Hero Ticker ── */
.hero-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 48px;
  background: var(--fg);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-inner {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

.ticker-inner span {
  font-family: var(--font-ja);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 500;
  padding: 16px 36px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.4s forwards;
}

.btn-primary:hover {
  background: var(--accent1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 500;
  padding: 16px 36px;
  border-radius: 100px;
  border: 1.5px solid var(--fg);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.btn-outline:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  color: var(--accent1);
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 700;
  padding: 18px 44px;
  border-radius: 100px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-white:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* ── ABOUT ── */
#about {
  padding: 140px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.about-lead {
  font-family: var(--font-ja);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 32px;
}

.about-body {
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 56px;
}

.about-stats {
  display: flex;
  gap: 56px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-num {
  font-family: var(--font-en);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent1);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-ja);
  font-size: 12px;
  color: var(--muted);
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 48px 40px;
  transition: background 0.4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent1);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.card-number {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 32px;
}

.card-icon {
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  transition: color 0.3s;
}

.service-card:hover .card-icon { color: var(--bg); }

.card-title {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.card-desc {
  font-family: var(--font-ja);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
  transition: color 0.3s;
}

.service-card:hover .card-desc {
  color: rgba(255,255,255,0.8);
}

.card-link {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}

.service-card:hover .card-link {
  color: var(--bg);
}

/* ── CASES ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 64px;
}

.case-item {
  border: 1px solid var(--border);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}

.case-item:hover {
  border-color: var(--accent1);
  transform: translateY(-4px);
}

.case-large {
  grid-row: span 2;
  min-height: 320px;
}

.case-accent {
  background: var(--fg);
}

.case-accent .case-logo { color: var(--bg); }
.case-accent .case-meta { color: rgba(255,255,255,0.4); }

.case-logo {
  font-family: var(--font-en);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.case-meta {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cases-cta {
  text-align: center;
}

/* ── NEWS ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s;
}

.news-card:hover {
  border-top-color: var(--accent1);
}

.news-date {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.news-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent1);
  background: rgba(0,51,255,0.08);
  padding: 4px 12px;
  border-radius: 100px;
  width: fit-content;
}

.news-title {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  flex: 1;
}

.news-link {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent1);
  transition: letter-spacing 0.3s;
}

.news-card:hover .news-link {
  letter-spacing: 0.1em;
}

/* ── RECRUIT ── */
#recruit {
  padding: 160px 0;
}

.recruit-inner {
  max-width: 760px;
}

.recruit-title {
  font-family: var(--font-ja);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--bg);
  margin: 24px 0 32px;
}

.recruit-body {
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
  margin-bottom: 56px;
  max-width: 520px;
}

.recruit-btn {
  font-size: 16px;
}

/* ── FOOTER ── */
footer {
  background: var(--fg);
  color: var(--bg);
  padding: 80px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-ja);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-nav {
  display: flex;
  gap: 64px;
}

.footer-nav-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer-nav-col ul li {
  margin-bottom: 12px;
}

.footer-nav-col a {
  font-family: var(--font-ja);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-nav-col a:hover {
  color: var(--bg);
}

.sns-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sns-link {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.sns-link:hover {
  color: var(--bg);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: var(--font-ja);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Magnetic Button ── */
.magnetic {
  position: relative;
  display: inline-flex;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-large { grid-row: span 1; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer-sns {
    grid-column: span 2;
  }

  .footer-nav {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-inner {
    padding: 0 24px;
  }

  #hero { min-height: 100svh; }

  .hero-content {
    padding: 0 24px;
    padding-top: calc(var(--nav-h) + 24px);
  }

  .hero-sub-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-scroll-hint {
    right: 24px;
    bottom: 80px;
  }

  .section { padding: 80px 0; }

  .section-header { margin-bottom: 48px; }

  .about-stats {
    flex-wrap: wrap;
    gap: 32px;
  }

  .services-grid,
  .cases-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .case-large { min-height: 160px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-sns { grid-column: 1; }

  .footer-nav {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .recruit-inner {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(56px, 15vw, 80px);
  }
}

/* ── WordPress Admin Bar adjustment ── */
.admin-bar #nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #nav {
    top: 46px;
  }
}
