/* ========================================
   Poyokuma-Lab - Stylesheet
   ======================================== */

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

:root {
  --color-primary: #4f46e5;
  --color-primary-dark: #3730a3;
  --color-primary-light: #818cf8;
  --color-dark: #111827;
  --color-text: #374151;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-gray: #f9fafb;
  --color-bg-dark: #111827;
  --color-border: #e5e7eb;
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.pc-only {
  display: inline;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.footer__logo-img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav__link:hover {
  color: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(79, 70, 229, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero__sub {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero__desc {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  line-height: 1.9;
}

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  transform: translateY(-1px);
}

/* --- Section --- */
.section {
  padding: 100px 0;
}

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

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

.section__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section__label--light {
  color: var(--color-primary-light);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.section__title--light {
  color: #fff;
}

/* --- About --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about__text p {
  margin-bottom: 16px;
  color: var(--color-text);
  line-height: 2;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.info-table th,
.info-table td {
  padding: 16px 0;
  text-align: left;
  font-size: 0.9375rem;
}

.info-table th {
  font-weight: 600;
  color: var(--color-dark);
  width: 120px;
  white-space: nowrap;
}

.info-table td {
  color: var(--color-text);
}

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

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

/* --- Philosophy --- */
.philosophy__list {
  max-width: 700px;
}

.philosophy__item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.philosophy__item:first-child {
  padding-top: 0;
}

.philosophy__num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-light);
  flex-shrink: 0;
  line-height: 1.5;
  opacity: 0.7;
}

.philosophy__heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

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

/* --- Contact --- */
.contact__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
  line-height: 1.9;
}

#contact {
  text-align: center;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 5%;
  }
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }

  .header__inner {
    height: 64px;
  }

  html {
    scroll-padding-top: 64px;
  }

  .hero {
    padding-top: 64px;
  }

  /* Mobile Nav */
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 105;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.25rem;
    padding: 20px 40px;
    text-align: center;
  }

  /* Sections */
  .section {
    padding: 72px 0;
  }

  .section__title {
    margin-bottom: 36px;
  }

  .hero__inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .card {
    padding: 32px 24px;
  }

  .philosophy__item {
    gap: 16px;
    padding: 24px 0;
  }

  .philosophy__num {
    font-size: 1.25rem;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.875rem;
  }
}
