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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #fff;
  line-height: 1.7;
  font-weight: 300;
  font-size: 1rem;
  background: #0a0a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
}

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

ul {
  list-style: none;
}

/* Selection */
::selection {
  background: rgba(255, 215, 0, 0.3);
  color: #fff;
}

/* Scrollbar — hidden */
::-webkit-scrollbar {
  display: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border: none;
  outline: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
  background: transparent;
  transition: opacity 0.6s ease;
}

.header--dark .logo {
  color: #1a1a1a;
}

.header--dark .nav-list a {
  color: rgba(0, 0, 0, 0.7);
}

.header--dark .hamburger span {
  background: #1a1a1a;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: #fff;
  text-transform: uppercase;
  z-index: 110;
  transition: color 0.3s ease;
}

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

.nav-list a {
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  transition: opacity 0.3s ease, color 0.3s ease;
  padding: 8px 0;
}

.nav-list a:hover {
  opacity: 0.6;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 110;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  position: absolute;
  left: 13px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 23px; }
.hamburger span:nth-child(3) { top: 30px; }

.hamburger.is-open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* ========================================
   Main flow
   ======================================== */
.main-flow {
  position: relative;
  z-index: 2;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 0 0;
  padding-bottom: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255,179,217,0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 40%, rgba(168,216,255,0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 60%, rgba(201,179,255,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(179,255,232,0.4) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 80%, rgba(255,240,168,0.4) 0%, transparent 40%),
    #0a0a1a;
  border: none;
  margin: 0;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 600px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(255, 255, 255, 0.5) 65%,
    rgba(255, 255, 255, 0.85) 85%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* --- ホログラフィックシマー --- */
.hero-shimmer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(168, 216, 255, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 179, 217, 0.35) 0%, transparent 50%);
  animation: shimmerDrift 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes shimmerDrift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(3%, -2%) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate(-2%, 1%) scale(1);
    opacity: 0.8;
  }
}

/* --- 星（パステル） --- */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  animation: starTwinkle 3s ease-in-out infinite alternate;
  will-change: opacity;
}

@keyframes starTwinkle {
  0%   { opacity: 0.2; }
  100% { opacity: 0.8; }
}

/* --- ノイズ --- */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Hero text --- */
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 4;
  text-align: left;
  will-change: transform;
  padding: 0;
  margin: 0;
}

/* --- Reveal animation --- */
@keyframes slideUp {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}

.hero-message-wrapper {
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.hero-message {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10vw;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  margin-bottom: 0;
  white-space: nowrap;
  padding: 0;
  padding-bottom: 0;
  text-align: center;
  width: 100%;
  display: block;
  animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.scroll-indicator span {
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 200;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  transform-origin: top;
  animation: scrollDraw 2s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes scrollDraw {
  0%   { transform: scaleY(0); opacity: 0; }
  30%  { transform: scaleY(1); opacity: 1; }
  70%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ========================================
   Section common
   ======================================== */
.section {
  position: relative;
  padding: 88px 0;
  margin: 0;
  border: none;
}

.section-label {
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}

.section-heading {
  font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  font-size: 3.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 0.05em;
  margin-bottom: 64px;
}

#portfolio {
  background: #ffffff;
  color: #1a1a1a;
  position: relative;
  z-index: 2;
}

#company {
  background-color: #ffffff;
  color: #1a1a1a;
}

/* ========================================
   Portfolio
   ======================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portfolio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  padding: 32px 24px;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
}

.portfolio-name {
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #000;
  margin-top: 16px;
}

.portfolio-tagline {
  font-family: "Noto Sans JP", "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #000000;
  opacity: 0.6;
  margin-top: 6px;
  text-align: center;
  line-height: 1.6;
}

.portfolio-card img {
  height: 36px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
}

.portfolio-card .logo-invert {
  filter: invert(1);
}


/* ========================================
   Company
   ======================================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 300;
  vertical-align: top;
  line-height: 1.8;
}

.company-table th {
  width: 140px;
  font-weight: 500;
  color: #1a1a1a;
  padding-right: 20px;
  letter-spacing: 0.06em;
}

.company-table td {
  color: #444;
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.company-map {
  min-height: 400px;
  height: 100%;
}

.company-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.representative {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rep-sns {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
}

.rep-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #1a1a1a;
  transition: opacity 0.3s ease;
}

.rep-sns a:hover {
  opacity: 0.4;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 336px 8% 38px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255,179,217,0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 40%, rgba(168,216,255,0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 60%, rgba(201,179,255,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(179,255,232,0.4) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 80%, rgba(255,240,168,0.4) 0%, transparent 40%),
    #0a0a1a;
}

/* 白→ホログラフィックのフェードイン（hero::afterの逆パターン） */
.footer-fade-in {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 336px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    rgba(255, 255, 255, 0.9) 15%,
    rgba(255, 255, 255, 0.85) 25%,
    rgba(255, 255, 255, 0.65) 35%,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(255, 255, 255, 0.2) 65%,
    rgba(255, 255, 255, 0.05) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* 星（.hero-starsと同一） */
.footer-stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* シマー（.hero-shimmerと同一） */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(168, 216, 255, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 179, 217, 0.35) 0%, transparent 50%);
  animation: shimmerDrift 20s ease-in-out infinite alternate;
  will-change: transform;
}

/* ノイズ（.hero-noiseと同一） */
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Footer text��hero-contentと同一構造） --- */
.footer-content {
  position: absolute;
  top: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  z-index: 4;
  text-align: left;
  padding: 0;
  margin: 0;
}

.footer-message-wrapper {
  margin: 0;
  padding: 0;
}

.footer-message {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10vw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  padding: 0;
  text-align: center;
  width: 100%;
  opacity: 0;
}

/* ========================================
   Responsive (768px)
   ======================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 26, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 105;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

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

  .nav-list a {
    font-size: 1.125rem;
    letter-spacing: 0.2em;
    padding: 12px 0;
  }



  .hero-content {
    bottom: 0;
    width: 100vw;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    font-size: 2.25rem;
  }

  .section-sub {
    margin-bottom: 40px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

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

  .company-map {
    min-height: 300px;
    height: 300px;
  }

  .company-map iframe {
    min-height: 300px;
    height: 300px;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table tr {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .company-table th {
    padding: 0 0 4px;
    border-bottom: none;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.45);
    text-transform: uppercase;
  }

  .company-table td {
    padding: 0;
    border-bottom: none;
    font-size: 1rem;
  }

  .footer {
    padding: 336px 24px 38px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* 320px narrow screens */
@media (max-width: 375px) {
  .section-heading {
    font-size: 1.75rem;
  }
}
