/* ===========================
   style.css — Aiki Design Top
   =========================== */

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

:root {
  --color-bg: #fdfbf7;
  --color-bg-circle-1: #f5e8d4;
  --color-bg-circle-2: #ead9c0;
  --color-text: #2b2622;
  --color-text-sub: #6b635c;
  --color-accent: #C4BAE8;
  --color-line: #d8cdbd;
  --font-mincho: "BIZ UDMincho", serif;
  --font-sans: "Noto Sans JP", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ===========================
   Layout
   =========================== */
.stage {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  overflow: hidden;
}

/* 背景の円（ポートフォリオと統一感） */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.bg-circle--1 {
  width: 420px;
  height: 420px;
  background: var(--color-bg-circle-1);
  top: -120px;
  left: -120px;
  animation: float 14s ease-in-out infinite;
}

.bg-circle--2 {
  width: 360px;
  height: 360px;
  background: var(--color-bg-circle-2);
  bottom: -100px;
  right: -100px;
  animation: float 18s ease-in-out infinite reverse;
}

.bg-circle--3 {
  width: 220px;
  height: 220px;
  background: var(--color-bg-circle-1);
  top: 40%;
  right: 12%;
  opacity: 0.4;
  animation: float 22s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -20px);
  }
}

/* ===========================
   Main
   =========================== */
.inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--color-text-sub);
  text-transform: uppercase;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.1s forwards;
}

.brand::before,
.brand::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-line);
}

.title {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.3s forwards;
}

.title em {
  font-style: normal;
  color: var(--color-accent);
  position: relative;
}

.title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.4;
}

.lead {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 2;
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.5s forwards;
}

/* ===========================
   CTA
   =========================== */
.cta-wrap {
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.7s forwards;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 40px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.cta:hover::before {
  transform: translateX(0);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #EAE5F5;
}

.cta span,
.cta .arrow {
  position: relative;
  z-index: 1;
}

.cta .arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta:hover .arrow {
  transform: translateX(4px);
}

.cta-note {
  display: block;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--color-text-sub);
  letter-spacing: 0.08em;
}

/* ===========================
   Footer
   =========================== */
.foot {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--color-text-sub);
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.9s forwards;
  z-index: 1;
}

/* ===========================
   Animation
   =========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

/* ===========================
   SP
   =========================== */
@media (max-width: 640px) {
  .brand {
    font-size: 0.72rem;
    margin-bottom: 36px;
  }

  .brand::before,
  .brand::after {
    width: 20px;
  }

  .title {
    margin-bottom: 24px;
  }

  .lead {
    font-size: 0.88rem;
    line-height: 1.9;
    margin-bottom: 44px;
  }

  .cta {
    padding: 16px 32px;
    font-size: 0.9rem;
  }

  .bg-circle--1 {
    width: 280px;
    height: 280px;
  }

  .bg-circle--2 {
    width: 240px;
    height: 240px;
  }

  .bg-circle--3 {
    display: none;
  }
}

/* ===========================
   アクセシビリティ：reduced motion
   =========================== */
@media (prefers-reduced-motion: reduce) {

  .brand,
  .title,
  .lead,
  .cta-wrap,
  .foot {
    opacity: 1;
    animation: none;
  }

  .bg-circle {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}