/* ============================================================
   LIMECROSS - Main Stylesheet
   Color Scheme: Lime Green (#4ECB71) → Light Blue (#56B8E6) gradient
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #4ECB71;
  --color-primary-dark: #38a85a;
  --color-accent: #56B8E6;
  --color-gradient: linear-gradient(135deg, #4ECB71 0%, #56B8E6 100%);
  --color-gradient-soft: linear-gradient(135deg, rgba(78, 203, 113, 0.08) 0%, rgba(86, 184, 230, 0.08) 100%);
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-text-muted: #888;
  --color-bg: #ffffff;
  --color-bg-light: #f8fafb;
  --color-border: #e0e6ea;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --header-height: 80px;
  --container-width: 1100px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ja);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.pc-only {
  display: inline;
}

.sp-only {
  display: none;
}

/* ---------- Scroll Fade Animation ---------- */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.header__logo img {
  height: 28px;
  width: auto;
}

@media (max-width: 951px) {
  .header__logo img {
    height: 22px;
  }
}

.header__nav-list {
  display: flex;
  gap: 40px;
}

.header__nav-link {
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  position: relative;
  transition: color 0.3s ease;
}

.header.is-scrolled .header__nav-link {
  color: var(--color-text);
}

.header__nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gradient);
  transition: width 0.3s var(--ease-out);
}

.header__nav-link:hover::after {
  width: 100%;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.header.is-scrolled .header__hamburger span {
  background: var(--color-text);
}

.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- HERO / MV ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero__slider {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  animation: none;
}

.hero__slide.is-active .hero__slide-img {
  animation: kenburns 7s ease-out forwards;
}

@keyframes kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(78, 203, 113, 0.45) 0%,
      rgba(78, 203, 113, 0.3) 25%,
      rgba(78, 203, 113, 0.1) 45%,
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.05) 50%,
      rgba(0, 0, 0, 0.3) 100%
    );
  z-index: 1;
}

.hero__content {
  position: absolute;
  bottom: 15%;
  left: 8%;
  z-index: 2;
  color: #fff;
}

.hero__catch-en {
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero__catch-ja {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Indicators */
.hero__indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.hero__indicator {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hero__indicator span {
  display: block;
  width: 0%;
  height: 100%;
  background: #fff;
  transition: none;
}

.hero__indicator.is-active span {
  width: 100%;
  transition: width 5s linear;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ---------- SECTION COMMON ---------- */
.section {
  padding: 120px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__label {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ---------- PAGE HERO (Sub-pages) ---------- */
.page-hero {
  padding: calc(var(--header-height) + 64px) 0 64px;
  background: var(--color-bg-light);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-hero .section__label {
  margin-bottom: 12px;
}

/* ---------- View More Link ---------- */
.section__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-primary);
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.section__more:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  gap: 12px;
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--color-bg);
}

.about__intro {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
}

.about__lead {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 2;
  margin-bottom: 24px;
  color: var(--color-text);
}

.about__text {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color-text-light);
}

.about__company {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 48px 56px;
  border: 1px solid var(--color-border);
}

.about__company-title {
  font-family: var(--font-en);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid transparent;
  border-image: var(--color-gradient) 1;
}

.about__company-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about__company-item {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.about__company-item:last-child {
  border-bottom: none;
}

.about__company-item dt {
  width: 120px;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.about__company-item dd {
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* ---------- ACCESS (About page) ---------- */
.about__access {
  max-width: 760px;
  margin: 60px auto 0;
}

.about__access-address {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.about__access-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.about__access-map iframe {
  display: block;
  width: 100%;
}

/* ---------- SERVICES ---------- */
.services {
  background: var(--color-bg-light);
}

.services__lead {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--color-text-light);
  margin-top: -32px;
  margin-bottom: 56px;
}

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

.services__card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.services__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(78, 203, 113, 0.08);
}

.services__card-number {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.services__card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.5;
}

.services__card-subtitle {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.services__card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.services__card-list li {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text-light);
  padding-left: 18px;
  position: relative;
}

.services__card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gradient);
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--color-bg);
}

.contact__inner {
  max-width: 680px;
  margin: 0 auto;
}

.contact__lead {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 48px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.required {
  font-size: 0.6875rem;
  color: #fff;
  background: var(--color-primary);
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.contact__form-group input,
.contact__form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font-ja);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact__form-group input:focus,
.contact__form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(78, 203, 113, 0.12);
}

.contact__form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact__form-recaptcha {
  margin-top: 8px;
  margin-bottom: 8px;
}

.recaptcha-error {
  color: #e53935;
  font-size: 0.875rem;
  margin-top: 8px;
}

.contact__form-submit {
  text-align: center;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-radius: 60px;
  transition: all 0.3s var(--ease-out);
}

.btn--primary {
  min-width: 240px;
  padding: 16px 48px;
  color: #fff;
  background: var(--color-gradient);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #38a85a 0%, #3a9bd5 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78, 203, 113, 0.25);
}

/* ---------- FOOTER ---------- */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 0 32px;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer__logo img {
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer__info {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer__nav {
  display: flex;
  gap: 28px;
}

.footer__nav a {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__copyright {
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- 951px以下: ハンバーガー + 2カラム ---------- */
@media (max-width: 951px) {
  :root {
    --header-height: 60px;
  }

  .section {
    padding: 80px 0;
  }

  .about__company {
    padding: 36px 32px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  /* Header Mobile */
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    transition: right 0.4s var(--ease-out);
    padding: 100px 40px 40px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
  }

  .header__nav-link {
    display: block;
    padding: 20px 0;
    font-size: 1rem;
    color: var(--color-text) !important;
    border-bottom: 1px solid var(--color-border);
  }

  /* Hero Mobile */
  .hero__content {
    bottom: 20%;
    left: 6%;
    right: 6%;
  }

  .hero__catch-en {
    font-size: 1.75rem;
    line-height: 1.35;
  }

  .hero__catch-ja {
    font-size: 0.8125rem;
  }

  .hero__scroll {
    right: 20px;
    bottom: 24px;
  }

  .hero__indicators {
    bottom: 24px;
  }

  /* Section Mobile */
  .section {
    padding: 64px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .section__title {
    font-size: 1.375rem;
  }

  /* About Mobile */
  .about__intro {
    margin-bottom: 48px;
    text-align: left;
  }

  .about__lead {
    font-size: 1rem;
  }

  .about__text {
    font-size: 0.875rem;
  }

  .about__company {
    padding: 28px 24px;
    border-radius: 12px;
  }

  .about__company-item {
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
  }

  .about__company-item dt {
    width: auto;
    font-size: 0.8125rem;
  }

  .about__company-item dd {
    font-size: 0.875rem;
  }

  .services__card-title {
    font-size: 1rem;
  }

  /* Contact Mobile */
  .contact__lead {
    text-align: left;
    margin-bottom: 32px;
  }

  .btn--primary {
    width: 100%;
    min-width: auto;
  }

  /* Footer Mobile */
  .footer {
    padding: 40px 0 24px;
  }

  .footer__nav {
    flex-direction: column;
    gap: 12px;
  }

  .footer__copyright {
    font-size: 0.6875rem;
  }
}

/* ---------- Small Mobile (~ 480px) ---------- */
@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero__catch-en {
    font-size: 1.5rem;
  }
}
