/* ==========================================================
   グランドエルサン LP — Base styles
   白ベース × 水色・緑の差し色 / 爽やかで温かい雰囲気
   ========================================================== */

:root {
  --white: #ffffff;
  --bg-warm: #fdfdfb;
  --blue: #6ec6e0;
  --blue-deep: #3b9fc0;
  --blue-pale: #e3f5fa;
  --green: #7fb069;
  --green-deep: #5fa35e;
  --green-pale: #eaf7e8;
  --text: #33403c;
  --text-soft: #6b7671;
  --gold: #f4ede0;

  --font-heading: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --container: 1120px;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(79, 168, 198, 0.14);
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-warm);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--blue-deep);
  background: var(--blue-pale);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 36px);
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.section-lead {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 56px;
}

section { position: relative; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 12px 0;
  box-shadow: 0 6px 24px rgba(60, 90, 90, 0.08);
}
.logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.03em;
  color: var(--white);
  display: flex;
  align-items: center;
  transition: color 0.4s ease;
}
.site-header.is-scrolled .logo { color: var(--text); }

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nav-links a {
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s ease;
}
.site-header.is-scrolled .nav-links a { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-deep) !important;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(79, 168, 198, 0.25);
}
.nav-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  position: relative;
}
.site-header.is-scrolled .nav-menu-toggle { background: var(--blue-pale); }
.nav-menu-toggle span,
.nav-menu-toggle::before,
.nav-menu-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled .nav-menu-toggle span,
.site-header.is-scrolled .nav-menu-toggle::before,
.site-header.is-scrolled .nav-menu-toggle::after { background: var(--blue-deep); }
.nav-menu-toggle::before { top: 13px; }
.nav-menu-toggle span { top: 19px; }
.nav-menu-toggle::after { top: 25px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #cfeaf0;
}
.hero-yt-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #cfeaf0;
}
.hero-yt-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease 0.3s;
}
.hero-yt-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 */
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-yt-wrap.is-playing iframe { opacity: 1; }
.hero-yt-wrap.is-playing .hero-yt-thumb { opacity: 0; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,60,60,0.28) 0%, rgba(30,60,60,0.12) 45%, rgba(20,45,45,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}
.hero-content .eyebrow {
  background: rgba(255,255,255,0.22);
  color: var(--white);
}
.hero-copy {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 92px);
  line-height: 1.15;
  margin: 0 0 20px;
  text-shadow: 0 8px 30px rgba(0,0,0,0.25);
  letter-spacing: 0.02em;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
  box-shadow: 0 14px 34px rgba(79, 168, 198, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(79, 168, 198, 0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.3); transform: translateY(-3px); }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.24em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
}
.scroll-hint .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  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; }
}

/* ---------- Wave divider ---------- */
.wave {
  display: block;
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 3;
  margin-top: -2px;
}
.wave svg { width: 100%; height: auto; }

/* ---------- Making section ---------- */
.making {
  background: var(--white);
  padding: 110px 0 120px;
  text-align: center;
}
.making-frame {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: var(--green-pale);
}
.making-frame video,
.making-frame img { width: 100%; }
.making-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.making-caption {
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.play-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: var(--green-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.play-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- About ---------- */
.about {
  background: linear-gradient(180deg, var(--blue-pale) 0%, var(--white) 100%);
  padding: 40px 0 120px;
  text-align: center;
}
.about-intro {
  max-width: 720px;
  margin: 0 auto 64px;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: left;
  margin-bottom: 90px;
}
.biz-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(60, 90, 90, 0.08);
  border: 1px solid rgba(79,168,198,0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.biz-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(79,168,198,0.2);
}
.biz-card:hover .biz-photo img { transform: scale(1.08); }
.biz-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-pale);
}
.biz-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.biz-body {
  padding: 20px 18px 22px;
}
.biz-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text);
}
.biz-card .biz-en {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--blue-deep);
  margin-bottom: 8px;
  font-weight: 700;
}
.biz-card p {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 14px;
  line-height: 1.8;
}
.biz-link {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}

/* ---------- Recruit ---------- */
.recruit {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(79,168,198,0.58) 0%, rgba(95,163,94,0.62) 100%),
    url('../images/staff.jpg') center / cover no-repeat;
  color: var(--white);
}
.recruit::before,
.recruit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.recruit::before { width: 420px; height: 420px; top: -180px; left: -120px; }
.recruit::after { width: 320px; height: 320px; bottom: -160px; right: -80px; }
.recruit .container { position: relative; z-index: 2; }
.recruit .eyebrow { background: rgba(255,255,255,0.2); color: var(--white); }
.recruit h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 44px);
  margin: 0 0 20px;
  text-shadow: 0 4px 18px rgba(20,45,45,0.45);
}
.recruit p {
  max-width: 560px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  text-shadow: 0 2px 10px rgba(20,45,45,0.4);
}
.recruit .btn-primary {
  background: var(--white);
  color: var(--blue-deep);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}
.recruit .btn-primary:hover { color: var(--green-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: #2c3e3a;
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
  font-size: 13px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.03em;
  color: var(--white);
  display: flex;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: var(--white);
  z-index: 99;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  box-shadow: -12px 0 40px rgba(0,0,0,0.1);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--text);
}
.mobile-nav .btn-primary {
  justify-content: center;
  margin-top: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .biz-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu-toggle { display: block; }
  .making { padding: 80px 0 90px; }
  .about { padding: 20px 0 90px; }
  .biz-grid { grid-template-columns: 1fr; margin-bottom: 60px; }
  .recruit { padding: 90px 0; }
  .footer-top { flex-direction: column; }
}
