/* =========================================================================
   Variables & Reset
   ========================================================================= */
:root {
  /* Colors */
  --c-magenta: #e4007f;
  /* IT, 創造性, 情熱 */
  --c-green: #38b48b;
  /* 農業, 福祉, 癒やし */
  --c-gold: #daa520;
  /* 天使の梯子, 光の筋 */

  --c-text: #333333;
  --c-text-light: #666666;
  --c-bg: #ffffff;
  --c-bg-light: #f9f9f9;

  --c-white: #ffffff;

  /* Fonts */
  --font-sans: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --w-container: 1100px;
  --h-header: 80px;

  /* Aesthetics */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(228, 0, 127, 0.15);
  /* Magenta tinted shadow */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--h-header);
}

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

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

.section {
  padding: 100px 0;
}

.section-bg-light {
  background-color: var(--c-bg-light);
}

/* =========================================================================
   Typography & Common
   ========================================================================= */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-en {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--c-gold);
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 16px;
}

.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--c-magenta), var(--c-gold));
  margin: 0 auto;
  border-radius: 2px;
}

/* =========================================================================
   Header & Navigation
   ========================================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--h-header);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.logo a {
  display: flex;
  align-items: center;
  height: var(--h-header);
  gap: 12px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.05em;
}

.global-nav ul {
  display: flex;
  gap: 32px;
}

.global-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.global-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--c-magenta);
  transition: var(--transition);
}

.global-nav a:hover {
  color: var(--c-magenta);
}

.global-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--c-text);
  transition: var(--transition);
}

.hamburger-line:nth-child(1) {
  top: 0;
}

.hamburger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
  bottom: 0;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--h-header);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Angel Ladder Gradient Background */
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 251, 240, 1) 50%, rgba(245, 235, 204, 0.4) 100%);
  z-index: -2;
}

.angel-ladder {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(155deg,
      transparent,
      transparent 40px,
      rgba(218, 165, 32, 0.05) 40px,
      rgba(218, 165, 32, 0.05) 80px);
  z-index: -1;
  animation: lightRays 60s linear infinite;
}

@keyframes lightRays {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(200px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero-main-copy {
  font-size: 3rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.hero-main-copy .highlight {
  /* Dynamic Magenta/Gold gradient text */
  background: linear-gradient(135deg, var(--c-magenta), #ff4b98, var(--c-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-top: 10px;
}

.hero-sub-copy {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-text-light);
  letter-spacing: 0.05em;
}

.sp-br {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================================
   About Section
   ========================================================================= */
.about {
  background-color: var(--c-bg);
}

.about-card {
  background: var(--c-white);
  padding: 60px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--c-gold);
  max-width: 800px;
  margin: 0 auto;
}

.about-card h3 {
  font-size: 1.5rem;
  color: var(--c-text);
  margin-bottom: 24px;
  text-align: center;
}

.about-card p {
  color: var(--c-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

/* =========================================================================
   Services Section
   ========================================================================= */
.services {
  background-color: var(--c-bg-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--c-white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: var(--transition);
}

#welfare::before {
  background-color: var(--c-green);
}

#app-dev::before {
  background-color: var(--c-magenta);
}

#coaching::before {
  background-color: var(--c-gold);
}

.service-card:hover {
  transform: translateY(-10px);
}

#welfare:hover {
  box-shadow: 0 20px 40px rgba(56, 180, 139, 0.2);
  /* Green */
}

#app-dev:hover {
  box-shadow: 0 20px 40px rgba(228, 0, 127, 0.2);
  /* Magenta */
}

#coaching:hover {
  box-shadow: 0 20px 40px rgba(218, 165, 32, 0.2);
  /* Gold */
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--c-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.color-green {
  color: var(--c-green);
}

.color-magenta {
  color: var(--c-magenta);
}

.color-gold {
  color: var(--c-gold);
}

.service-card:hover .service-icon {
  background: var(--c-white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.service-title .ja {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
}

.service-title .en {
  font-size: 0.85rem;
  color: #999;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-text {
  color: var(--c-text-light);
  line-height: 1.7;
  flex-grow: 1;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  background-color: #222222;
  color: #ffffff;
  padding: 60px 0 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.company-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.company-name-en {
  font-size: 0.85rem;
  color: #aaaaaa;
  font-family: 'Inter', sans-serif;
}

.footer-nav ul {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: #cccccc;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--c-gold);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333333;
  color: #888888;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media screen and (max-width: 991px) {
  .hero-main-copy {
    font-size: 2.5rem;
  }

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

  #coaching {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --h-header: 70px;
  }

  .logo img {
    height: 36px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .sp-br {
    display: block;
  }

  .section {
    padding: 80px 0;
  }

  /* Mobile Menu */
  .nav-toggle {
    display: block;
  }

  .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    top: var(--h-header);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--h-header));
    background: rgba(255, 255, 255, 0.98);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .global-nav.active {
    left: 0;
  }

  .global-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .global-nav a {
    font-size: 1.25rem;
  }

  .hero-main-copy {
    font-size: 2rem;
  }

  .hero-sub-copy {
    font-size: 1rem;
  }

  .about-card {
    padding: 40px 20px;
  }

  .about-card h3 {
    font-size: 1.25rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  #coaching {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .hero-main-copy {
    font-size: 1.75rem;
  }
}