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

:root {
  /* Nature palette */
  --forest:       #2c4a35;
  --sage:         #5a8a6e;
  --sage-light:   #87b99c;
  --sage-pale:    #c5ddc5;
  --sage-mist:    #edf6ea;
  --sage-ultra:   #f6faf5;

  /* Warm neutrals */
  --cream:        #faf7f0;
  --warm-cream:   #f3ead8;
  --parchment:    #e8dfc6;
  --warm-white:   #fffef9;

  /* Earth */
  --earth:        #7a5a3c;
  --earth-mid:    #a07850;
  --earth-light:  #c8a878;

  /* Text */
  --text-dark:    #2a3325;
  --text-mid:     #4a5c45;
  --text-muted:   #7a8c75;
  --text-light:   #f8f5ee;

  /* Warm dark (IT / Contact sections) */
  --dark-warm:    #1c2c20;
  --dark-card:    #243028;
  --dark-border:  rgba(140,185,140,0.2);

  --white:        #ffffff;
  --font-sans:    'Space Grotesk', 'Noto Sans JP', sans-serif;
  --font-serif:   'Noto Serif JP', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

/* テントウムシカーソル */
#ladybug-cursor {
  position: fixed;
  width: 36px;
  height: 36px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%); /* rotate は JS で上書き */
  transition: opacity 0.3s;
  top: -100px;
  left: -100px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}
#ladybug-cursor svg { width: 100%; height: 100%; }

@media (hover: none) and (pointer: coarse) {
  #ladybug-cursor { display: none; }
}

/* ===========================
   NAVBAR
=========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.4s;
}
#navbar.scrolled {
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 24px rgba(60,80,50,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.logo-jp {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--warm-white);
  letter-spacing: 0.12em;
  transition: color 0.4s;
}
.logo-en {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3em;
  margin-top: 2px;
  display: block;
  transition: color 0.4s;
}
#navbar.scrolled .logo-jp { color: var(--forest); }
#navbar.scrolled .logo-en  { color: var(--sage); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--sage-light);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--warm-white); }
.nav-links a:hover::after { width: 100%; }
#navbar.scrolled .nav-links a { color: var(--text-mid); }
#navbar.scrolled .nav-links a:hover { color: var(--forest); }
#navbar.scrolled .nav-links a::after { background: var(--sage); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: none; }
.hamburger span { width: 24px; height: 1.5px; background: var(--warm-white); display: block; transition: 0.3s; }
#navbar.scrolled .hamburger span { background: var(--forest); }

/* ===========================
   HERO
=========================== */
#hero {
  position: relative;
  width: 100%; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-photo-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s ease;
  filter: brightness(0.78) saturate(1.1);
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(30,45,25,0.55) 0%, rgba(25,40,20,0.3) 50%, rgba(20,35,15,0.65) 100%);
  z-index: 1;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  opacity: 0.65;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
}
.hero-tag {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  color: rgba(220,240,210,0.85);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.65;
}
.hero-title .line1,
.hero-title .line2,
.hero-title .line3 {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title .line1 { animation: fadeUp 0.9s 0.5s forwards; }
.hero-title .line2 { animation: fadeUp 0.9s 0.75s forwards; color: var(--sage-pale); }
.hero-title .line3 { animation: fadeUp 0.9s 1.0s forwards; }
.hero-sub {
  margin: 1.8rem auto 2.5rem;
  font-size: 0.95rem;
  color: rgba(240,248,235,0.8);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeUp 0.8s 1.3s forwards;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(220,240,210,0.6);
  color: rgba(240,248,235,0.9);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  border-radius: 2px;
  transition: all 0.4s;
  opacity: 0;
  animation: fadeUp 0.8s 1.6s forwards;
  backdrop-filter: blur(4px);
}
.hero-btn svg { width: 18px; fill: currentColor; transition: transform 0.3s; }
.hero-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.8);
  color: var(--white);
}
.hero-btn:hover svg { transform: translateX(5px); }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}
.hero-scroll-indicator span {
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  color: rgba(220,240,210,0.6);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(180,220,180,0.7), transparent);
  animation: scrollLine 2s infinite;
}

/* ===========================
   SECTIONS
=========================== */
.section { padding: 6rem 0; position: relative; }

/* ライトセクション (About, Challenge, Products) */
.section:not(.sage-section):not(.warm-dark-section) {
  background: var(--cream);
}

/* 桑の世界 — sage tint */
.sage-section {
  background: var(--sage-ultra);
  position: relative;
}
.sage-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1540979388789-6cee28a1cdc9?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.06;
  pointer-events: none;
}

/* IT / Contact — warm dark */
.warm-dark-section {
  background: var(--dark-warm);
  color: var(--text-light);
}
.warm-dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
}
.warm-dark-section .section-tag  { color: var(--sage-light); }
.warm-dark-section .section-desc { color: rgba(255,255,255,0.5); }
.warm-dark-section .section-header h2 { color: var(--text-light); }
.warm-dark-section .section-header h2::after { background: var(--sage-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: var(--sage);
  margin-bottom: 0.8rem;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--forest);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 1px;
  background: var(--sage);
}
.section-desc {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 2;
}

/* ===========================
   ABOUT
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text .lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 2.1;
  color: var(--forest);
  margin-bottom: 1.5rem;
}
.about-text p {
  line-height: 1.9;
  color: var(--text-mid);
  font-size: 0.92rem;
}
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sage-pale);
}
.stat-item { text-align: center; }
.stat-num  { font-size: 2.5rem; font-weight: 700; color: var(--sage); font-family: 'Space Grotesk'; }
.stat-unit { font-size: 1rem; color: var(--earth-mid); }
.stat-label { display: block; font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.1em; margin-top: 0.3rem; }

.about-visual { position: relative; }
.visual-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(60,80,50,0.15);
}
.about-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}
.visual-frame:hover .about-photo { transform: scale(1.04); }
.leaf-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(30,50,30,0.35) 100%);
}
.about-badge {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  width: 90px; height: 90px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateBadge 15s linear infinite;
}
.badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  color: var(--white);
  letter-spacing: 0.08em;
}
.badge-en { font-size: 0.5rem; letter-spacing: 0.2em; margin-top: 2px; }

/* ===========================
   MULBERRY (sage-section)
=========================== */
.mulberry-bg-animation {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mulberry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.m-card {
  background: var(--white);
  border: 1px solid var(--sage-pale);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(60,90,60,0.07);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.m-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage-light), var(--sage));
  opacity: 0;
  transition: opacity 0.4s;
}
.m-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(60,90,60,0.14); border-color: var(--sage-pale); }
.m-card:hover::before { opacity: 1; }
.m-card.featured {
  background: linear-gradient(145deg, #fff, var(--sage-mist));
  border-color: var(--sage-pale);
}
.m-card-icon {
  width: 52px; height: 52px;
  color: var(--sage);
  margin-bottom: 1.5rem;
}
.m-card-icon svg { width: 100%; height: 100%; }
.m-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 1rem;
}
.m-card p { font-size: 0.85rem; line-height: 1.9; color: var(--text-mid); }
.m-card-tag {
  margin-top: 1.5rem;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--sage);
  opacity: 0.8;
}

/* ===========================
   TIMELINE (challenge)
=========================== */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sage-pale) 20%, var(--sage-pale) 80%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4.5rem;
}
.timeline-item:nth-child(even) .timeline-content { order: -1; text-align: right; }
.timeline-item:nth-child(even) .timeline-icon  { order: 0; }
.timeline-item:nth-child(even) .timeline-photo { margin-left: auto; margin-right: 0; }

.timeline-icon {
  width: 56px; height: 56px;
  background: var(--white);
  border: 1.5px solid var(--sage-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(60,90,60,0.1);
}
.timeline-icon svg { width: 26px; height: 26px; }

.timeline-photo {
  width: 100%;
  max-width: 320px;
  height: 180px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.4rem;
  box-shadow: 0 8px 30px rgba(60,80,50,0.12);
  overflow: hidden;
  position: relative;
}
.timeline-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(90,138,110,0.15) 0%, transparent 60%);
}

.timeline-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--sage);
  background: var(--sage-mist);
  border: 1px solid var(--sage-pale);
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}
.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 0.8rem;
}
.timeline-content p { font-size: 0.88rem; line-height: 1.9; color: var(--text-mid); }

/* ===========================
   IT SECTION (warm-dark)
=========================== */
.it-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.it-profile { text-align: center; }
.profile-frame {
  width: 180px; height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(140,185,140,0.35);
  box-shadow: 0 0 40px rgba(90,138,110,0.15);
}
.profile-circuit-bg {
  position: absolute;
  inset: 0;
  background: var(--dark-card);
  background-image:
    linear-gradient(rgba(90,138,110,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,138,110,0.12) 1px, transparent 1px);
  background-size: 15px 15px;
}
.profile-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--sage-light);
  z-index: 1;
}
.it-profile h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.profile-title {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--sage-light);
  margin-bottom: 1.2rem;
}
.it-profile p { font-size: 0.85rem; line-height: 1.9; color: rgba(255,255,255,0.55); }

.it-services-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--sage-pale);
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(140,185,140,0.2);
}
.service-items { display: flex; flex-direction: column; gap: 1.8rem; }
.service-item { display: flex; gap: 1.2rem; align-items: flex-start; }
.service-dot {
  width: 7px; height: 7px;
  background: var(--sage-light);
  border-radius: 50%;
  margin-top: 0.45rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--sage-light);
  animation: glowPulse 2.5s ease-in-out infinite;
}
.service-item h4 { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.4rem; }
.service-item p  { font-size: 0.82rem; line-height: 1.75; color: rgba(255,255,255,0.48); }

/* ===========================
   PRODUCTS
=========================== */
.product-link-box {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(60,90,50,0.12);
  transition: box-shadow 0.4s, transform 0.4s;
}
.product-link-box:hover { box-shadow: 0 16px 60px rgba(60,90,50,0.2); transform: translateY(-3px); }
.product-link-inner { display: grid; grid-template-columns: 1fr 1.5fr; }

.product-visual-left {
  background:
    linear-gradient(160deg, rgba(44,74,53,0.82) 0%, rgba(90,138,110,0.7) 100%),
    url('https://images.unsplash.com/photo-1564890369478-c89ca6d9cde9?auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.leaf-pattern-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(140,185,140,0.1) 0%, transparent 35%);
}
.leaf-pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 25px 25px;
}
.product-text-overlay { position: relative; z-index: 1; color: white; }
.product-label { font-size: 0.68rem; letter-spacing: 0.3em; color: rgba(220,240,210,0.8); margin-bottom: 0.5rem; }
.product-name  { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 300; margin-bottom: 0.8rem; }
.product-desc-text { font-size: 0.8rem; line-height: 1.7; color: rgba(255,255,255,0.7); }

.product-right {
  padding: 2.5rem;
  background: var(--warm-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.product-badge-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.badge-item {
  font-size: 0.68rem;
  padding: 0.25rem 0.7rem;
  background: var(--sage-mist);
  border: 1px solid var(--sage-pale);
  border-radius: 20px;
  color: var(--sage);
  letter-spacing: 0.05em;
}
.product-right p { font-size: 0.88rem; line-height: 1.9; color: var(--text-mid); }

.product-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.8rem;
  background: var(--sage);
  color: white;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: all 0.3s;
  align-self: flex-start;
}
.product-link-btn:hover { background: var(--forest); transform: translateX(4px); }
.product-link-btn .btn-icon  { width: 16px; fill: currentColor; }
.product-link-btn .btn-arrow { width: 14px; fill: currentColor; margin-left: auto; }

/* ===========================
   CONTACT (warm-dark)
=========================== */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item svg { width: 20px; height: 20px; fill: var(--sage-light); flex-shrink: 0; margin-top: 3px; }
.ci-label { display: block; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--sage-light); margin-bottom: 0.3rem; }
.ci-value { font-size: 0.88rem; color: rgba(255,255,255,0.65); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(140,185,140,0.22);
  border-radius: 4px;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
  appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.22); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--sage-light);
  background: rgba(90,138,110,0.07);
}
.contact-form select option { background: var(--dark-warm); color: var(--text-light); }
.contact-form textarea { resize: vertical; }

/* Google フォームリンク */
.contact-gform {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.8rem;
}
.gform-desc {
  font-size: 0.92rem;
  line-height: 2;
  color: rgba(255,255,255,0.6);
}
.gform-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.2rem;
  background: transparent;
  border: 1.5px solid var(--sage-light);
  color: var(--sage-light);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: background 0.35s, color 0.35s, transform 0.3s;
  align-self: flex-start;
}
.gform-btn:hover {
  background: var(--sage-light);
  color: var(--dark-warm);
  transform: translateX(4px);
}
.gform-icon  { width: 20px; fill: currentColor; flex-shrink: 0; }
.gform-arrow { width: 16px; fill: currentColor; margin-left: auto; flex-shrink: 0; }

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--sage-light);
  color: var(--sage-light);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  border-radius: 4px;
  cursor: none;
  transition: all 0.4s;
  align-self: flex-start;
}
.submit-btn svg { width: 16px; fill: currentColor; }
.submit-btn:hover { background: var(--sage-light); color: var(--dark-warm); }

/* ===========================
   FOOTER
=========================== */
#footer {
  background: #111a13;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(90,138,110,0.12);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; text-align: center; }
.footer-inner .nav-logo { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: 1rem; }
.footer-inner .logo-jp { color: var(--sage-pale); }
.footer-inner .logo-en { color: var(--sage-light); }
.footer-catch { font-size: 0.82rem; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; margin-bottom: 2rem; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--sage-light); }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.18); letter-spacing: 0.1em; }

/* ===========================
   AOS
=========================== */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"]  { transform: translateX(30px); }
[data-aos="zoom-in"]    { transform: scale(0.92); }
[data-aos].aos-animate  { opacity: 1; transform: none; }

/* ===========================
   KEYFRAMES
=========================== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@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; }
}
@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--sage-light); }
  50%       { opacity: 0.4; box-shadow: 0 0 14px var(--sage-light); }
}

/* ===========================
   RESPONSIVE
=========================== */
/* タッチデバイスはテントウムシ非表示（上部で定義済み） */

/* Tablet 〜1024px */
@media (max-width: 1024px) {
  .container { padding: 0 1.8rem; }
  .nav-inner  { padding: 1rem 2rem; }
  .about-grid { gap: 2.5rem; }
  .it-grid    { gap: 3rem; }
  .mulberry-cards { gap: 1rem; }
  .m-card { padding: 1.8rem 1.4rem; }
  .timeline-item { gap: 1.5rem; }
}

/* Tablet 縦 〜900px */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(237,246,234,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    z-index: 9990;
    backdrop-filter: blur(10px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.15rem; color: var(--forest); letter-spacing: 0.15em; }
  .nav-close-item { list-style: none; position: absolute; top: 1.4rem; right: 1.5rem; }
  #navCloseBtn {
    background: none;
    border: 2px solid var(--forest);
    border-radius: 50%;
    width: 44px; height: 44px;
    font-size: 1.2rem;
    color: var(--forest);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.25s, color 0.25s;
    line-height: 1;
  }
  #navCloseBtn:hover { background: var(--forest); color: var(--sage-mist); }
  .hamburger { display: flex; z-index: 1001; position: relative; }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .about-grid,
  .it-grid,
  .contact-grid,
  .product-link-inner { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .about-stats { justify-content: space-around; }
  .mulberry-cards { grid-template-columns: 1fr; }

  .timeline::before { display: none; }
  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
  }
  .timeline-item:nth-child(even) .timeline-content { order: 1; text-align: left; }
  .timeline-item:nth-child(even) .timeline-icon  { order: 0; }
  .timeline-item:nth-child(even) .timeline-photo { margin-left: 0; }
  .product-visual-left { min-height: 200px; }
  .it-profile { margin-bottom: 2.5rem; }
  .section { padding: 4.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
}

/* スマートフォン 〜600px */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.2rem; }
  .nav-inner { padding: 0.9rem 1.2rem; }
  .logo-jp { font-size: 1rem; }

  .hero-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-sub   { font-size: 0.82rem; padding: 0 1rem; }
  .hero-btn   { padding: 0.75rem 1.8rem; font-size: 0.78rem; }
  .hero-scroll-indicator { display: none; }

  .section-header h2  { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .section-desc { font-size: 0.85rem; padding: 0 0.5rem; }

  .about-text .lead { font-size: 1rem; }
  .about-stats { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .stat-num { font-size: 2rem; }

  .m-card { padding: 1.5rem 1.2rem; }
  .m-card-icon { width: 44px; height: 44px; }

  .timeline-icon { width: 44px; height: 44px; }
  .timeline-icon svg { width: 22px; height: 22px; }
  .timeline-photo { height: 140px; }
  .timeline-content h3 { font-size: 1.05rem; }

  .profile-frame { width: 140px; height: 140px; }
  .service-item h4 { font-size: 0.85rem; }

  .product-visual-left { min-height: 170px; padding: 1.5rem; }
  .product-name  { font-size: 1.3rem; }
  .product-right { padding: 1.5rem; gap: 1rem; }
  .product-link-btn { width: 100%; justify-content: center; font-size: 0.8rem; }

  .gform-btn { width: 100%; justify-content: center; font-size: 0.9rem; padding: 1rem 1.5rem; }

  .footer-links { gap: 1.2rem; }
  .footer-catch  { font-size: 0.75rem; line-height: 1.8; }
}

/* 極小 〜380px */
@media (max-width: 380px) {
  .hero-title  { font-size: 1.55rem; }
  .about-stats { gap: 0.8rem; }
  .stat-num    { font-size: 1.8rem; }
  .m-card { padding: 1.2rem 1rem; }
}
