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

:root {
  --sumi: #1C1C1C;
  --sumi-light: #2D2D2D;
  --shiro: #FAF8F5;
  --washi: #F0EBE3;
  --sakura: #F4A7B9;
  --sakura-deep: #D4546A;
  --aka: #C53D43;
  --kincha: #C4A35A;
  --kincha-light: #E6D5A0;
  --asagi: #48929B;
  --fuji-purple: #8B6DAF;
  --matcha: #7B9E5F;
  --nezumi: #9E9E9E;
  --usuzumi: #DCDCDC;
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--shiro);
  color: var(--sumi);
  line-height: 1.8;
  overflow-x: hidden;
}

::selection {
  background: var(--sakura);
  color: var(--sumi);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sumi); }
::-webkit-scrollbar-thumb { background: var(--aka); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sakura-deep); }

/* ===== LOADING SCREEN ===== */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--sumi);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-kanji {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--shiro);
  letter-spacing: 16px;
  opacity: 0;
  animation: loaderFadeIn 1s ease 0.2s forwards;
}

.loader-line {
  width: 60px;
  height: 1px;
  background: var(--aka);
  margin-top: 24px;
  transform: scaleX(0);
  animation: loaderLine 1s ease 0.6s forwards;
}

@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loaderLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aka), var(--sakura), var(--kincha));
  z-index: 10001;
  width: 0%;
  transition: width 0.05s linear;
}


/* ===== MOUSE PETALS ===== */
.mouse-petal {
  position: fixed;
  pointer-events: none;
  z-index: 9995;
  border-radius: 50% 0 50% 50%;
  opacity: 0.8;
  animation: mousePetalDrop 1.2s ease-in forwards;
}

.mouse-flower {
  position: fixed;
  pointer-events: none;
  z-index: 9995;
  opacity: 0.85;
  animation: mouseFlowerDrop 1.6s ease-in forwards;
}

.mouse-flower svg { display: block; }

@keyframes mousePetalDrop {
  0% { opacity: 0.8; transform: translateY(0) rotate(0deg) scale(1); }
  60% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(80px) rotate(180deg) scale(0.3); }
}

@keyframes mouseFlowerDrop {
  0% { opacity: 0.85; transform: translateY(0) rotate(0deg) scale(1); }
  50% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(100px) rotate(120deg) scale(0.2); }
}

@media (hover: none) {
  .mouse-petal, .mouse-flower { display: none; }
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(28, 28, 28, 0.85);
  backdrop-filter: blur(12px);
  padding: 6px 16px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.lang-toggle:hover {
  background: rgba(28, 28, 28, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.lang-toggle span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.lang-toggle .lang-en { color: #fff; }
.lang-toggle .lang-jp { color: var(--nezumi); }
.lang-toggle .divider { color: var(--nezumi); font-size: 11px; }

[data-lang="ja"] .lang-toggle .lang-en { color: var(--nezumi); }
[data-lang="ja"] .lang-toggle .lang-jp { color: #fff; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  padding: 14px 40px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--sumi);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--sumi);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--aka);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--aka); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #08081a 0%, #0e0e30 35%, #1a1848 65%, #2a2058 100%);
}

/* ===== ATMOSPHERE LAYER ===== */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-stars {
  position: absolute;
  inset: 0;
  transition: opacity 1.5s ease;
}

.hero-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: starTwinkle var(--dur, 3s) ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-sun {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  left: 50%;
  top: 0;
  background: radial-gradient(circle, #ffe880 0%, #ffcc44 50%, #ffaa20 100%);
  box-shadow:
    0 0 20px 8px rgba(255, 210, 80, 0.4),
    0 0 60px 20px rgba(255, 180, 50, 0.12);
  opacity: 0;
  will-change: transform, opacity;
}

.hero-moon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  left: 62%;
  top: 22%;
  background:
    radial-gradient(circle at 55% 45%, rgba(70,70,90,0.2) 0%, transparent 45%),
    radial-gradient(circle at 40% 40%, #e4e4ec 0%, #c8c8d6 40%, #a8a8bc 75%, #9090a4 100%);
  box-shadow:
    0 0 10px 4px rgba(220, 220, 240, 0.25),
    0 0 30px 12px rgba(180, 180, 220, 0.08),
    inset -3px -2px 5px rgba(0,0,0,0.1);
  opacity: 0;
  will-change: opacity;
}

/* ===== SEASON LABEL ===== */
.season-label {
  position: absolute;
  bottom: 48px;
  right: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  transition: opacity 0.6s ease;
}

.season-name-en {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.season-name-jp {
  font-family: var(--font-serif);
  font-size: 28px;
  color: rgba(255,255,255,0.15);
  line-height: 1.2;
}

/* ===== SEASON PARTICLES ===== */
.season-particle {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.particle-sakura {
  border-radius: 50% 0 50% 50%;
  animation: pSakuraFall var(--fall-dur, 4s) ease-in forwards;
}

.particle-firefly {
  border-radius: 50%;
  background: #e8e080;
  box-shadow: 0 0 6px 2px rgba(230, 220, 100, 0.4);
  animation: pFireflyFloat var(--fall-dur, 5s) ease-in-out forwards;
}

.particle-leaf {
  border-radius: 2px 50% 50% 2px;
  animation: pLeafFall var(--fall-dur, 5s) ease-in forwards;
}

.particle-snow {
  border-radius: 50%;
  animation: pSnowFall var(--fall-dur, 6s) linear forwards;
}

@keyframes pSakuraFall {
  0% { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0.9; }
  100% { transform: translateY(100vh) rotate(360deg) translateX(40px); opacity: 0; }
}

@keyframes pFireflyFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  15% { opacity: 0.9; }
  40% { transform: translate(15px, -25px) scale(1.4); opacity: 0.4; }
  70% { transform: translate(-10px, -40px) scale(1); opacity: 0.9; }
  100% { transform: translate(5px, -55px) scale(0.6); opacity: 0; }
}

@keyframes pLeafFall {
  0% { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0.85; }
  40% { transform: translateY(40vh) rotate(200deg) translateX(-35px); }
  100% { transform: translateY(100vh) rotate(420deg) translateX(20px); opacity: 0; }
}

@keyframes pSnowFall {
  0% { transform: translateY(0) translateX(0); opacity: 0.7; }
  50% { transform: translateY(50vh) translateX(18px); opacity: 0.5; }
  100% { transform: translateY(100vh) translateX(-12px); opacity: 0; }
}

.hero-fuji {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 1600px;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--shiro);
  padding-bottom: 120px;
}

.hero-kanji {
  font-family: var(--font-serif);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 12px;
  opacity: 0;
  margin-bottom: 16px;
  font-weight: 400;
  animation: heroRevealSoft 0.8s ease 1.4s forwards;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5), 0 0 60px rgba(0,0,0,0.3);
  opacity: 0;
  animation: heroReveal 0.8s ease 1.6s forwards;
}

.hero-title {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0;
  margin-bottom: 40px;
  animation: heroRevealSoft 0.8s ease 1.9s forwards;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroRevealSoft {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 0.7; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--shiro);
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

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

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===== SECTIONS COMMON ===== */
section {
  position: relative;
  padding: 120px 40px;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--aka);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title-jp {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--nezumi);
  margin-bottom: 40px;
  font-weight: 400;
}

.divider-brush {
  width: 60px;
  height: 3px;
  background: var(--aka);
  margin-bottom: 48px;
  border-radius: 2px;
}

/* ===== WAVE SEPARATOR ===== */
.wave-separator {
  position: relative;
  height: 120px;
  overflow: hidden;
  margin-top: -2px;
  margin-bottom: -2px;
}

.wave-separator svg {
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* ===== ABOUT ===== */
.about {
  background: var(--shiro);
}

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

.about-text p {
  font-size: 16px;
  line-height: 2;
  color: var(--sumi-light);
  margin-bottom: 24px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.stat-card {
  padding: 28px;
  background: var(--washi);
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--aka);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--nezumi);
  font-weight: 500;
}

.about-visual {
  position: relative;
}

.profile-photo-wrapper {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  top: 40px;
}

.profile-photo {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 3 / 4;
  filter: grayscale(0.15);
  transition: filter 0.4s ease;
}

.profile-photo:hover {
  filter: grayscale(0);
}

.profile-photo-accent {
  position: absolute;
  top: 16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--aka);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.3;
}

.profile-photo-kanji {
  position: absolute;
  bottom: -20px;
  right: -24px;
  font-family: var(--font-serif);
  font-size: 72px;
  color: var(--aka);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

/* ===== EXPERIENCE ===== */
.experience {
  background: var(--sumi);
  color: var(--shiro);
}

.experience .section-label { color: var(--sakura); }
.experience .section-title { color: var(--shiro); }
.experience .section-title-jp { color: rgba(255,255,255,0.35); }
.experience .divider-brush { background: var(--sakura); }

.timeline {
  position: relative;
  margin-top: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sakura), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sakura);
  border: 3px solid var(--sumi);
  margin: 6px auto 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(244, 167, 185, 0.2);
}

.timeline-content {
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(244, 167, 185, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.timeline-item:nth-child(odd) .timeline-content { text-align: right; }
.timeline-item:nth-child(odd) .timeline-placeholder { order: 3; }
.timeline-item:nth-child(even) .timeline-content { order: 3; }

.timeline-year {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--sakura);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.timeline-role {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.timeline-company {
  font-size: 14px;
  color: var(--nezumi);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

/* ===== MILD FOUNDATION ===== */
.mild {
  background: var(--washi);
  position: relative;
  overflow: hidden;
}

.mild-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  opacity: 0.04;
}

.mild-header {
  text-align: center;
  margin-bottom: 72px;
}

.mild-logo {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.mild-tagline {
  font-size: 16px;
  color: var(--nezumi);
  letter-spacing: 2px;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--shiro);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--aka);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--washi);
  border-radius: 14px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--aka);
  fill: none;
  stroke-width: 1.5;
}

.service-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.service-desc {
  font-size: 13px;
  color: var(--nezumi);
  line-height: 1.7;
}

/* ===== SKILLS ===== */
.skills {
  background: var(--shiro);
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.skill-category h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--usuzumi);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 8px 16px;
  background: var(--washi);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sumi-light);
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.skill-tag:hover {
  background: var(--shiro);
  border-color: var(--aka);
  color: var(--aka);
  transform: translateY(-2px);
}

.skill-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--sumi);
  color: var(--shiro);
  position: relative;
  overflow: hidden;
}

.contact .section-label { color: var(--kincha); }
.contact .section-title { color: var(--shiro); }
.contact .section-title-jp { color: rgba(255,255,255,0.3); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-form-wrap {
  padding-top: 8px;
}

.contact-text {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-top: 32px;
  line-height: 1.9;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--kincha);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  margin-bottom: 48px;
  transition: opacity 0.3s;
}

.contact-email:hover { opacity: 0.7; }

.contact-email svg {
  width: 20px;
  height: 20px;
  stroke: var(--kincha);
  fill: none;
  stroke-width: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--shiro);
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--kincha);
}

.form-group textarea { min-height: 140px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit {
  align-self: flex-start;
  padding: 14px 40px;
  background: transparent;
  border: 1px solid var(--kincha);
  border-radius: 8px;
  color: var(--kincha);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--kincha);
  color: var(--sumi);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 163, 90, 0.2);
}

.form-success {
  display: none;
  padding: 24px;
  color: var(--kincha);
  font-size: 16px;
  letter-spacing: 1px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--sumi);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 40px;
  text-align: center;
}

.footer-text {
  font-size: 12px;
  color: var(--nezumi);
  letter-spacing: 1px;
}

.footer-text .heart { color: var(--sakura); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--sumi);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(20px);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-overlay.active { display: flex; }

.mobile-overlay a {
  font-family: var(--font-serif);
  font-size: 28px;
  text-decoration: none;
  color: var(--sumi);
  letter-spacing: 2px;
  transition: color 0.3s;
}

.mobile-overlay a:hover { color: var(--aka); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 80px 20px; }
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-name { font-size: clamp(36px, 10vw, 56px); }
  .hero-title { font-size: 12px; letter-spacing: 3px; }
  .season-label { right: 20px; bottom: 40px; }
  .season-name-jp { font-size: 22px; }
  .hero-sun { width: 40px; height: 40px; }
  .hero-moon { width: 34px; height: 34px; }

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

  .about-visual { order: -1; }
  .profile-photo-wrapper { max-width: 280px; }
  .profile-photo-accent { top: 12px; right: -12px; }
  .profile-photo-kanji { font-size: 48px; bottom: -12px; right: -12px; }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  .stat-card { padding: 20px 16px; }
  .stat-number { font-size: 28px; }

  .section-title { font-size: clamp(26px, 7vw, 36px); }

  .timeline::before { left: 20px; }

  .timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
  }

  .timeline-placeholder { display: none !important; }

  .timeline-dot {
    flex-shrink: 0;
    margin: 6px 0 0;
  }

  .timeline-content {
    text-align: left !important;
    order: unset !important;
    flex: 1;
  }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 20px; }

  .skills-categories { grid-template-columns: 1fr; gap: 28px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-email { font-size: 14px; }
  .form-submit { width: 100%; }

  .lang-toggle { padding: 5px 12px; }
  .lang-toggle span { font-size: 12px; }

  .wave-separator { height: 60px; }
}

@media (max-width: 380px) {
  section { padding: 60px 16px; }
  .hero-name { font-size: 32px; }
  .about-stats { grid-template-columns: 1fr; }
  .stat-card { padding: 16px; }
}

@media (hover: none), (max-width: 768px) {

}

/* ===== EN/JP TEXT SWITCHING ===== */
[data-lang="en"] [data-jp] { display: none; }
[data-lang="ja"] [data-en] { display: none; }
