/* === Custom Properties === */
:root {
  --bg: #F8F6F3;
  --bg-gray: #F2EFE9;
  --bg-dark: #1A1714;
  --text: #1C1917;
  --text-muted: #78716C;
  --brand: #776C68;
  --accent: #F5A800;       /* logo yellow */
  --accent-dark: #D4920A;  /* logo yellow dark */
  --white: #FFFFFF;
  --border: #E7E5E4;
  --font: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-full: 999px;
  --ease: 0.3s ease;
  --max-w: 1160px;
  --px: 1.5rem;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* === Layout === */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.section { padding: 6rem 0; }
.section--gray { background: var(--bg-gray); }
.section--dark { background: var(--bg-dark); }

.section__header { text-align: center; margin-bottom: 3.5rem; }
.section__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.section__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.section__title--light { color: var(--white); }
.section__subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0.75rem auto 0; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--ease);
  border: 2px solid transparent;
  cursor: pointer;
}
/* Yellow bg with dark text for readability */
.btn--primary { background: var(--accent); color: #1C1917; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,168,0,0.4); }
/* White outline for use on dark hero */
.btn--outline { background: transparent; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); }
.btn--outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

/* === Header / Nav — always white === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  transition: box-shadow var(--ease);
}
.header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; }

/* Real logo image in nav — PNG has generous whitespace so height is larger */
.nav__logo-link { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo-img { height: 60px; width: auto; display: block; }

/* Keep text logo style for footer only */
.nav__logo { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.nav__logo-flat { color: var(--text); }
.nav__logo-minima { color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; transition: color var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--accent) !important;
  color: #1C1917 !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
}
.nav__cta:hover { background: var(--accent-dark) !important; }
.nav__lang { display: flex; align-items: center; gap: 0.25rem; margin-left: 0.75rem; }
.nav__lang-sep { color: var(--border); font-size: 0.75rem; }
.nav__lang-btn { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); padding: 0.25rem 0.55rem; border-radius: var(--radius-sm); transition: all var(--ease); }
.nav__lang-btn:hover { color: var(--text); background: var(--bg-gray); }
.nav__lang-btn.is-active { color: var(--accent); background: rgba(245,168,0,0.1); }

.nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--ease); }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero — dark section with nav offset === */
.hero {
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px; /* white nav height */
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(119,108,104,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119,108,104,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero__orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
/* Yellow-tinted orbs matching logo accent */
.hero__orb--1 { width: 560px; height: 560px; background: rgba(245,168,0,0.10); top: -140px; right: -80px; animation: float1 8s ease-in-out infinite; }
.hero__orb--2 { width: 420px; height: 420px; background: rgba(119,108,104,0.09); bottom: -80px; left: 10%; animation: float2 10s ease-in-out infinite; }
.hero__orb--3 { width: 300px; height: 300px; background: rgba(245,168,0,0.06); top: 35%; left: -60px; animation: float1 12s ease-in-out infinite reverse; }

@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(25px); } }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.35rem 1rem;
  border: 1px solid rgba(245,168,0,0.4);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero__title--accent { color: var(--accent); }
.hero__title--line2 { display: block; white-space: nowrap; }
.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero__scroll { display: flex; align-items: center; gap: 0.75rem; color: rgba(255,255,255,0.35); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hero__scroll-line { width: 44px; height: 1px; background: rgba(255,255,255,0.12); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: '';
  position: absolute; left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { left: -100%; } 100% { left: 100%; } }

.hero__chart {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(8px);
}
.hero__svg { width: 100%; height: auto; }
.hero__chart-label {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 1rem;
  letter-spacing: 0.03em;
}

/* === About === */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about__text p { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.85; }
.about__text p strong { color: var(--text); font-weight: 600; }
.about__lead { font-size: 1.1rem !important; color: var(--text) !important; font-weight: 500; }
.about__stats { display: flex; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.about__stat { display: flex; flex-direction: column; gap: 0.25rem; }
.about__stat-number { font-size: 1.6rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.about__stat-label { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.about__card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.about__card-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.75rem; }
.about__eq-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.about__eq-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.5rem; }
.about__curve { width: 100%; height: auto; }

/* === FitStretch Lab (独立事業) === */
.fitstretch { background: var(--bg); }
.fitstretch__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.fitstretch__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1E6FAD;
  background: rgba(30,111,173,0.08);
  border: 1px solid rgba(30,111,173,0.2);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.fitstretch__lead { font-size: 1.1rem; font-weight: 500; color: var(--text); margin-bottom: 1rem; }
.fitstretch p { color: var(--text-muted); line-height: 1.85; margin-bottom: 1rem; }
.fitstretch__meta { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.25rem; margin-bottom: 2rem; }
.fitstretch__meta-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--text-muted); }
.fitstretch__logo-wrap {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fitstretch__logo-img { width: 100%; max-width: 260px; height: auto; border-radius: 10px; }

/* === Services === */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(245,168,0,0.5); }
.service-card--featured { background: linear-gradient(135deg, #FFFBF0, #FFF4CC); border-color: rgba(245,168,0,0.3); }
.service-card__tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
.service-card__icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: 1rem; }
.service-card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card__desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; flex: 1; margin-bottom: 1.25rem; }
.service-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(245,168,0,0.15);
  color: #8A5E00;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(245,168,0,0.3);
}
.service-card__link { font-size: 0.875rem; font-weight: 700; color: var(--brand); transition: gap var(--ease); display: inline-flex; gap: 0.25rem; margin-top: auto; }
.service-card__link:hover { gap: 0.5rem; color: var(--text); }

/* === Vision === */
.vision__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.vision p { color: var(--text-muted); line-height: 1.85; margin-bottom: 0.5rem; }
.vision__list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.vision__list li { display: flex; gap: 1rem; align-items: flex-start; }
.vision__list-icon { font-size: 1.25rem; width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; background: var(--bg-gray); border-radius: var(--radius-sm); flex-shrink: 0; }
.vision__list strong { display: block; font-weight: 600; margin-bottom: 0.2rem; font-size: 0.95rem; }
.vision__list p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

.vision__diagram { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.vision__circle { width: 130px; height: 130px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.3rem; }
.vision__circle span { font-weight: 800; font-size: 1rem; }
.vision__circle small { font-size: 0.68rem; line-height: 1.45; opacity: 0.85; }
.vision__circle--ai { background: linear-gradient(135deg, #1B3A6B, #2E6DAD); color: white; }
.vision__circle--wellness { background: linear-gradient(135deg, #2D5F2E, #4E9950); color: white; }
.vision__plus { font-size: 2rem; font-weight: 300; color: var(--text-muted); }
.vision__arrow { font-size: 1.5rem; color: var(--brand); }
/* Yellow result with dark text */
.vision__result { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #1C1917; padding: 0.85rem 1.75rem; border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 800; text-align: center; }

/* === Values === */
.values__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.06); border-radius: var(--radius); overflow: hidden; }
.value-card { padding: 2.5rem; background: var(--bg-dark); transition: background var(--ease); }
.value-card:hover { background: rgba(255,255,255,0.03); }
.value-card__number { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.75rem; }
.value-card__title { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 0.75rem; }
.value-card__desc { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.75; }

/* === Contact === */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__text > p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.85; }
.contact__info { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact__info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact__info-item svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.contact__info-item strong { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.2rem; }
.contact__info-item p, .contact__info-item a { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.contact__info-item a:hover { color: var(--brand); }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }

/* === Footer === */
.footer { background: #0F0E0D; padding: 3.5rem 0 1.5rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 1.5rem; }
/* Footer logo — white badge to show PNG on dark bg */
.footer__logo-link { display: inline-flex; align-items: center; background: white; border-radius: 10px; padding: 4px 8px; }
.footer__logo-img { height: 48px; width: auto; display: block; }
.footer__tagline { color: rgba(255,255,255,0.35); font-size: 0.85rem; margin-top: 0.75rem; }
.footer__links { display: flex; gap: 3rem; }
.footer__col h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__col a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color var(--ease); }
.footer__col a:hover { color: white; }
.footer__bottom { text-align: center; }
.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.2); }

/* === Animations === */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .fitstretch__inner { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .vision__inner { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__links { flex-wrap: wrap; gap: 2rem; }
  .about__stats { flex-wrap: wrap; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.25rem; color: var(--text); }
  .nav__hamburger { display: flex; position: relative; z-index: 100; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  :root { --px: 1rem; }
  .section { padding: 4rem 0; }
  .hero__title { font-size: 2.5rem; }
  .nav__logo-img { height: 44px; }
  .footer__logo-img { height: 36px; }
}
