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

:root {
  --bg:       #0b0b18;
  --bg2:      #10101f;
  --surface:  rgba(255,255,255,0.04);
  --border:   rgba(255,255,255,0.08);
  --grad:     linear-gradient(135deg, #667eea, #764ba2);
  --grad2:    linear-gradient(135deg, #00d4aa, #0099cc);
  --purple:   #7c6ef0;
  --teal:     #00d4aa;
  --text:     #e8e8f0;
  --text2:    #9898b8;
  --radius:   14px;
  --radius-lg:22px;
  --shadow:   0 8px 40px rgba(0,0,0,0.4);
  --nav-h:    68px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 99px; }

/* ===== UTILITY ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.w-full { width: 100%; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(124,110,240,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,110,240,0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--purple); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* ===== SECTION COMMON ===== */
.section { padding: 100px 0; }

.sec-head { text-align: center; margin-bottom: 64px; }
.sec-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
  background: rgba(124,110,240,0.12);
  padding: 4px 14px;
  border-radius: 99px;
  border: 1px solid rgba(124,110,240,0.25);
}
.sec-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.sec-desc { color: var(--text2); max-width: 560px; margin: 0 auto; }

/* ===== SCROLL FADE ANIMATION ===== */
[data-fade] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-fade].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(11,11,24,0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text2);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:not(.nav-cta):hover { color: #fff; }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  padding: 8px 20px;
  border: 1.5px solid var(--purple);
  border-radius: 6px;
  color: var(--purple) !important;
  font-weight: 600;
  transition: var(--transition) !important;
}
.nav-cta:hover { background: var(--purple); color: #fff !important; }

.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(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 24px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #667eea, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #764ba2, transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #00d4aa, transparent 70%);
  top: 40%; left: 55%;
  opacity: 0.2;
  animation-delay: -5s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 760px;
}
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text2);
  margin-bottom: 44px;
  line-height: 1.85;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text2);
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}
.scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(124,110,240,0.3); }
.skill-card:hover::before { opacity: 0.04; }

.skill-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.skill-icon.purple { background: rgba(124,110,240,0.15); color: #9b8ef5; }
.skill-icon.yellow { background: rgba(245,197,66,0.15);  color: #f5c542; }
.skill-icon.blue   { background: rgba(33,150,243,0.15);  color: #42a5f5; }
.skill-icon.teal   { background: rgba(0,212,170,0.15);   color: #00d4aa; }
.skill-icon.orange { background: rgba(255,152,0,0.15);   color: #ffa726; }
.skill-icon.pink   { background: rgba(240,98,146,0.15);  color: #f06292; }

.skill-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.skill-card p  { font-size: 0.88rem; color: var(--text2); line-height: 1.7; margin-bottom: 20px; }

.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad);
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.skill-card.visible .skill-fill { width: var(--w); }

/* ===== WORKS ===== */
.works-section { background: var(--bg2); }

.works-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 48px;
  font-size: 0.9rem;
  color: var(--teal);
}
.works-notice i { margin-top: 2px; flex-shrink: 0; }
.works-notice p { color: var(--text2); }
.works-notice p { color: var(--text2); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.work-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.thumb-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.thumb-2 { background: linear-gradient(135deg, #00d4aa 0%, #0099cc 100%); }
.thumb-3 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.work-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  z-index: 1;
}
.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #111;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  transform: translateY(10px);
  transition: transform 0.3s;
}
.work-card:hover .work-link-btn { transform: translateY(0); }

.work-body { padding: 24px; }
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.work-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text2);
}
.work-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.work-body p  { font-size: 0.88rem; color: var(--text2); line-height: 1.65; }

/* ===== SERVICE & PRICE ===== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
  align-items: start;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured {
  border-color: var(--purple);
  background: linear-gradient(145deg, rgba(124,110,240,0.12), rgba(118,75,162,0.06));
}

.popular-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.price-head { text-align: center; margin-bottom: 28px; }
.plan-name { font-size: 1.05rem; font-weight: 700; color: var(--text2); margin-bottom: 14px; }
.price-num { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-bottom: 8px; }
.yen   { font-size: 1.4rem; font-weight: 600; color: var(--text2); }
.amount { font-size: 2.8rem; font-weight: 900; letter-spacing: -0.03em; }
.from  { font-size: 1.1rem; font-weight: 500; color: var(--text2); }
.price-card.featured .amount { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.plan-type { font-size: 0.85rem; color: var(--text2); }

.price-list { margin-bottom: 28px; }
.price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.price-list li:last-child { border-bottom: none; }
.price-list li.ok i  { color: var(--teal); width: 14px; }
.price-list li.no    { color: var(--text2); opacity: 0.4; }
.price-list li.no i  { color: var(--text2); width: 14px; }

/* ===== FLOW ===== */
.flow-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.flow-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flow-title i { color: var(--purple); }
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.flow-step {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  text-align: center;
}
.step-num {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.flow-step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.flow-step p  { font-size: 0.82rem; color: var(--text2); line-height: 1.6; }
.flow-arrow { color: var(--text2); opacity: 0.4; font-size: 1rem; margin-top: 20px; flex-shrink: 0; }

/* ===== ABOUT ===== */
.about-section { background: var(--bg2); }
.about-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-col { display: flex; justify-content: center; }
.avatar-box {
  position: relative;
  width: 220px; height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--grad) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-circle {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--text2);
  z-index: 1;
}
.avatar-deco {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
}
.deco-1 { width: 20px; height: 20px; background: var(--purple); top: 10px; right: 10px; opacity: 0.7; }
.deco-2 { width: 14px; height: 14px; background: var(--teal); bottom: 20px; left: 5px; opacity: 0.7; animation-delay: -2s; }

.about-name { font-size: 1.8rem; font-weight: 900; margin-bottom: 6px; }
.about-name-ja { font-size: 1rem; font-weight: 400; color: var(--text2); }
.about-role { font-size: 0.9rem; color: var(--purple); font-weight: 600; margin-bottom: 20px; }
.about-bio { color: var(--text2); font-size: 0.93rem; line-height: 1.9; margin-bottom: 24px; }

.about-info { margin-bottom: 24px; }
.about-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.about-info li:last-child { border-bottom: none; }
.about-info li i { color: var(--purple); width: 16px; }

.about-sns { display: flex; gap: 12px; }
.about-sns a {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 1rem;
  transition: var(--transition);
}
.about-sns a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }

/* ===== CONTACT ===== */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 760px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-row .form-group { margin-bottom: 0; }

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.req {
  font-size: 0.7rem;
  background: rgba(124,110,240,0.2);
  color: var(--purple);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
input, select, textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text2); opacity: 0.6; }
input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,110,240,0.15);
}
select option { background: #1a1a2e; }
textarea { resize: vertical; min-height: 130px; }

.form-submit { margin-top: 28px; text-align: center; }

/* ===== FOOTER ===== */
.footer {
  background: #07070f;
  border-top: 1px solid var(--border);
  padding: 36px 0 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: var(--text2); transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { text-align: center; font-size: 0.8rem; color: var(--text2); opacity: 0.5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; }
  .about-img-col { order: -1; }
  .flow-block { padding: 32px 24px; }
  .flow-arrow { display: none; }
  .flow-steps { gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(11,11,24,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; font-size: 1rem; color: var(--text); }
  .nav-links a::after { display: none; }
  .nav-cta { border: none !important; border-radius: 0 !important; padding: 14px 24px !important; }
  .hamburger { display: flex; }

  .hero-btns { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .skills-grid, .works-grid, .price-grid { grid-template-columns: 1fr; }
  .about-name { font-size: 1.4rem; }
}
