:root {
  --bg: #f8f7f2;
  --ink: #111111;
  --muted: #62615b;
  --soft: #d8d5ca;
  --line: rgba(17, 17, 17, 0.12);
  --panel: rgba(255, 255, 255, 0.68);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background:
    radial-gradient(circle at 76% 8%, rgba(216, 213, 202, 0.7), transparent 30rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 42%, #ece9df 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: auto;
}

.has-custom-cursor { cursor: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--soft); border-radius: 10px; }

#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  color: var(--ink);
  transition: opacity 1s ease-in-out;
}

.loading-text {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 200;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

.loader-track {
  position: relative;
  width: 12rem;
  height: 1px;
  margin-top: 2rem;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.14);
}

#loading-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--ink);
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--ink);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(17, 17, 17, 0.45);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#webgl-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#content-layer,
main,
.site-footer {
  position: relative;
  z-index: 10;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  background: transparent;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.28em;
  font-weight: 900;
}

.site-nav {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  padding: 0.56rem 0.88rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-nav a:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.36);
}

.clip-text { overflow: hidden; }
.clip-text span { display: inline-block; }
.hero-reveal { transform: translateY(100%); }

.text-gradient {
  background: linear-gradient(135deg, #111111 0%, #6e6c64 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem clamp(1.5rem, 8vw, 9rem) 5rem;
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-title,
.page-hero h1 {
  margin: 0;
  max-width: min(980px, 58vw);
  font-size: clamp(4.4rem, 7.8vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-title > span {
  display: block;
}

.hero-copy-wrap {
  max-width: 740px;
  margin-top: 2rem;
}

.hero-lead,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 2;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2.3rem;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-link {
  background: var(--ink);
  color: #fff;
}

.secondary-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.32);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: rgba(17, 17, 17, 0.48);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-scroll-hint div {
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0.65), transparent);
}

.section-block {
  padding: clamp(5rem, 11vw, 10rem) clamp(1.5rem, 8vw, 9rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 5rem);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.glass-panel,
.feed-card,
.company-list {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.08);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.feed-card {
  position: relative;
  min-height: 330px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.5rem;
  overflow: hidden;
}

.feed-card:nth-child(2) {
  margin-top: 4rem;
}

.feed-card:nth-child(3) {
  margin-top: 2rem;
}

.feed-number {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  margin: 0;
  color: #d6d3c8;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1;
  font-weight: 900;
  z-index: -1;
}

.feed-label,
.product-kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 900;
}

.feed-card h3,
.product-showcase h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.feed-card p,
.product-showcase p {
  color: var(--muted);
  line-height: 1.9;
}

.feed-card a {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.78fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.product-showcase > div:first-child {
  max-width: 760px;
}

.product-showcase .primary-link {
  margin-top: 1.4rem;
}

.product-image {
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #ece9df;
  border: 1px solid var(--line);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.82);
  opacity: 0.88;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease, opacity 0.8s ease;
}

.product-image:hover img {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.company-list {
  padding: 0;
  overflow: hidden;
  border-radius: 1.5rem;
}

.company-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.company-list div:last-child { border-bottom: 0; }
.company-list dt { color: var(--muted); font-size: 0.86rem; }
.company-list dd { margin: 0; font-weight: 800; }
.company-preview .secondary-link { margin-top: 1.5rem; }

.contact-section {
  background: rgba(5, 5, 5, 0.9);
  color: #fff;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.contact-section .eyebrow,
.contact-section .section-heading h2 {
  color: #fff;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  color: #fff;
}

.contact-card h3 {
  max-width: 820px;
  margin: 0 0 1.2rem;
  font-size: clamp(2.5rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.contact-card p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.9;
}

.contact-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
}

.page-main { padding-top: 6rem; }
.page-hero { padding: 7rem clamp(1.5rem, 8vw, 9rem) 3rem; }
.company-list.detailed { margin: 0 auto 7rem; max-width: 980px; }

.policy-page .page-hero h1 {
  font-size: clamp(2.8rem, 8vw, 7rem);
}

.policy-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 8vw, 9rem) 7rem;
}

.policy-content h2 {
  margin: 3rem 0 1rem;
  font-size: 1.35rem;
}

.policy-content p {
  color: var(--muted);
  line-height: 2;
}

.policy-date { margin-top: 3rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(248, 247, 242, 0.82);
}

.site-footer div {
  display: flex;
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-section {
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: 12rem;
  }

  .hero-title,
  .page-hero h1 {
    max-width: 68vw;
    font-size: clamp(3.2rem, 9vw, 5.4rem);
    line-height: 0.92;
  }

  .section-heading,
  .company-list div,
  .product-showcase {
    grid-template-columns: 1fr;
  }

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

  .feed-card:nth-child(2),
  .feed-card:nth-child(3) {
    margin-top: 0;
  }

  .product-image {
    max-width: 520px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 1.35rem 1.35rem 0;
  }

  .site-nav {
    gap: 0.35rem;
  }

  .site-nav a {
    min-height: 2rem;
    padding: 0.42rem 0.58rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .hero-section {
    padding: 10.5rem 1.35rem 5rem;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.8rem, 12.5vw, 4rem);
    letter-spacing: -0.045em;
  }

  .hero-lead {
    max-width: 19rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link,
  .contact-placeholder {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  .hero-scroll-hint {
    right: 1.35rem;
    bottom: 1rem;
    left: auto;
    transform: none;
  }

  .section-block {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .contact-card h3 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}
