/* ============================================
   Teate Works — Maintenance Site CSS
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&family=Zen+Old+Mincho&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-light: #FAFAFA;
  --color-bg-dark: #1f1f1f;
  --color-text: #1f1f1f;
  --color-text-light: #4a4a4a;
  --color-text-muted: #767676;
  --color-text-white: #FFFFFF;
  --color-border: #bbb;
  --color-border-light: #d9d9d9;
  --color-focus: #1a6dca;
  --color-ai: #3B6B9E;
  --color-ai-light: #EBF2F8;
  --color-well: #5E9E7E;
  --color-well-light: #EDF6F1;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-heading: 'Inter', 'Noto Sans JP', sans-serif;
  --font-accent: 'Zen Old Mincho', serif;
  --header-height: 80px;
  --max-width: 1100px;
  --min-target-size: 44px;
  --transition: all 0.3s ease;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  min-height: var(--min-target-size);
  min-width: var(--min-target-size);
}

main {
  padding-top: var(--header-height);
}

/* ============================================
   Header (from original site)
   ============================================ */
.site-header {
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-logo a {
  display: block;
}

.site-logo a:hover {
  opacity: 1;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.nav-desktop a {
  font-weight: 500;
  position: relative;
  padding: 8px 10px;
  min-height: var(--min-target-size);
  display: inline-flex;
  align-items: center;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s ease;
}

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

.nav-desktop a:hover::after,
.nav-desktop a.is-active::after {
  width: 100%;
}

.nav-desktop .nav-contact-link {
  background-color: var(--color-text);
  border-radius: 30px;
  color: #fff;
  padding: 10px 22px;
  min-height: var(--min-target-size);
}

.nav-desktop .nav-contact-link::after {
  display: none;
}

.nav-desktop .nav-contact-link:hover {
  opacity: 0.8;
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.hamburger span {
  width: 28px;
  height: 1px;
  background: var(--color-text);
  display: block;
  position: absolute;
  left: 11px;
  transition: all 0.4s;
}

.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 25px; }
.hamburger span:nth-child(3) { top: 34px; }

.hamburger.is-active span:nth-child(1) {
  top: 24px;
  transform: rotate(-45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  top: 24px;
  transform: rotate(45deg);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  position: fixed;
  top: 0;
  left: -120%;
  z-index: 105;
  transition: left 0.5s ease;
  overflow-y: auto;
  padding: 80px 0;
}

.nav-mobile.is-open {
  left: 0;
}

.nav-mobile a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  min-height: var(--min-target-size);
  font-size: 15px;
  font-weight: 500;
  border-top: 1px solid var(--color-border-light);
}

.nav-mobile a:hover {
  opacity: 1;
  color: var(--color-ai);
}

.nav-overlay {
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 103;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.is-visible {
  opacity: 1;
}

/* ============================================
   Maintenance Content
   ============================================ */
.maintenance-page {
  min-height: calc(100vh - var(--header-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-light);
}

/* Animated background */
.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: floatCircle 20s ease-in-out infinite;
}

.bg-circle:nth-child(1) {
  width: 500px;
  height: 500px;
  background: var(--color-ai);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.bg-circle:nth-child(2) {
  width: 400px;
  height: 400px;
  background: var(--color-well);
  bottom: -120px;
  left: -80px;
  animation-delay: -7s;
}

.bg-circle:nth-child(3) {
  width: 300px;
  height: 300px;
  background: var(--color-ai);
  top: 40%;
  left: 60%;
  animation-delay: -14s;
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(10px, 10px) scale(1.02); }
}

.maintenance-container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px;
  max-width: 600px;
  width: 90%;
}

/* Page name label */
.page-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

/* Gear icon */
.maintenance-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
}

.maintenance-icon svg {
  width: 100%;
  height: 100%;
}

.gear-outer {
  animation: rotateCW 8s linear infinite;
  transform-origin: 40px 40px;
}

.gear-inner {
  animation: rotateCCW 6s linear infinite;
  transform-origin: 40px 40px;
}

@keyframes rotateCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Divider */
.divider {
  width: 40px;
  height: 1px;
  background: var(--color-text);
  margin: 0 auto 28px;
  opacity: 0.3;
}

/* Title */
.maintenance-title {
  font-family: var(--font-accent);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}

/* Subtitle */
.maintenance-subtitle {
  font-size: clamp(13px, 1.8vw, 15px);
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 40px;
}

/* Service tags */
.service-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.service-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 8px 20px;
  border-radius: 100px;
  text-transform: uppercase;
}

.service-tag--ai {
  background: rgba(59, 107, 158, 0.1);
  color: var(--color-ai);
}

.service-tag--well {
  background: rgba(94, 158, 126, 0.1);
  color: var(--color-well);
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.12s; }
.fade-in:nth-child(3) { animation-delay: 0.24s; }
.fade-in:nth-child(4) { animation-delay: 0.36s; }
.fade-in:nth-child(5) { animation-delay: 0.48s; }
.fade-in:nth-child(6) { animation-delay: 0.60s; }
.fade-in:nth-child(7) { animation-delay: 0.72s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 64px 5%;
  background: var(--color-bg-dark);
  color: var(--color-text-white);
}

.footer-info {
  width: 35%;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-address {
  font-size: 13px;
  line-height: 2;
  opacity: 0.7;
}

.footer-copy {
  font-size: 11px;
  opacity: 0.5;
  margin-top: 24px;
}

.footer-menu {
  width: 55%;
  display: flex;
  gap: 48px;
}

.footer-menu-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-menu-title a:hover {
  opacity: 0.7;
}

.footer-menu-list {
  list-style: none;
}

.footer-menu-list li {
  margin-bottom: 8px;
}

.footer-menu-list a {
  font-size: 13px;
  opacity: 0.7;
}

.footer-menu-list a:hover {
  opacity: 1;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-mobile {
    display: block;
  }

  .site-footer {
    flex-direction: column-reverse;
    padding: 60px 20px;
  }

  .footer-info {
    width: 100%;
    text-align: center;
  }

  .footer-menu {
    width: 100%;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
  }

  .maintenance-container {
    padding: 40px 20px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .bg-circle {
    animation: none;
  }
}

/* Inert */
[inert] {
  pointer-events: none;
  user-select: none;
}

[inert] * {
  pointer-events: none;
}
