/* ============================================================
   LuvTech LP / style.css
   役割：
   ・サイト全体の色、文字、余白、レイアウト
   ・ドット背景とグラデーション
   ・レスポンシブ対応
   ・スクロール時の表示アニメーション
   ============================================================ */

:root {
  --black: #0B0B0D;
  --dark: #17171A;
  --white: #FFFFFF;
  --gray: #6E6E75;
  --line: rgba(11, 11, 13, 0.12);

  --pink: #e64983;
  --magenta: #ba4c97;
  --purple: #7546b0;

  --gradient: linear-gradient(115deg, var(--pink) 0%, var(--magenta) 48%, var(--purple) 100%);

  --content-width: 1240px;
  --side-padding: clamp(24px, 5vw, 80px);

  --header-height: 88px;
  --halftone-opacity: .95;
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family:
    "Helvetica Neue",
    "Noto Sans JP",
    Arial,
    sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.9;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

::selection {
  color: #fff;
  background: var(--purple);
}

/* ---------- Common Layout ---------- */

.section-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-inner {
  width: min(var(--content-width), calc(100% - (var(--side-padding) * 2)));
  margin: 0 auto;
}

.section-label {
  position: relative;
  padding-top: 8px;
  color: var(--gray);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  margin: 0 14px 3px 0;
  background: var(--gradient);
}

.mini-label {
  margin: 0 0 24px;
  color: var(--gray);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(16px, 2vw, 29px);
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 52px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(11, 11, 13, 0.35);
  font-size: 10px;
  letter-spacing: 0.18em;
  transition: border-color .3s ease, gap .3s ease;
}

.text-link:hover {
  gap: 18px;
  border-color: var(--purple);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-padding);
  transition: background .35s ease, box-shadow .35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 35px rgba(11, 11, 13, 0.05);
  backdrop-filter: blur(16px);
}

.brand {
  width: 118px;
}

.brand-logo--sp {
  display: none;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  position: relative;
}

.global-nav a {
  color: #4c4c52;
  font-size: 9px;
  letter-spacing: 0.12em;
  transition: color .25s ease;
}

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

.menu-toggle {
  display: none;
}

/* ---------- Background System ---------- */
/*
   #halftone-bg はサイト全体に固定するCanvas。
   JavaScriptが 02 CONCEPT / 04 COMPANY に入った時だけ表示します。
   そのため、セクションをまたいでも背景の位置が自然につながります。
*/
#halftone-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

#halftone-bg.is-active {
  opacity: var(--halftone-opacity);
  visibility: visible;
}

/* Motion background sections are transparent so the fixed halftone is actually visible. */
.section-motion-bg {
  background: transparent;
}

/* White sections intentionally cover the fixed motion layer. */
.hero,
.services {
  background: #fff;
}

.contact {
  background: #0b0b0d;
}

/* Content always stays above the motion canvas. */
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header is always fixed to the browser viewport. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* A very subtle white veil behind the text keeps readability while allowing the dots to show through. */
.section-motion-bg .section-inner {
  position: relative;
  z-index: 2;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 140px var(--side-padding) 80px;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 950px);
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px var(--side-padding) 70px;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 900px);
  text-align: center;
}

.hero-logo {
  width: min(230px, 42vw);
  margin: 0 auto 32px;
}

.hero-kicker {
  margin-bottom: 20px;
  color: var(--gray);
  font-size: 8px;
  letter-spacing: .14em;
}

.hero h1 {
  margin-bottom: 14px;
  font-size: clamp(15px, 1.7vw, 24px);
  letter-spacing: .01em;
}

.hero-jp {
  margin: 0;
  font-size: clamp(13px, 1.4vw, 18px);
  line-height: 2;
}

.hero-side-note {
  position: absolute;
  right: 25px;
  bottom: 80px;
  writing-mode: vertical-rl;
  color: rgba(11,11,13,.25);
  font-size: 8px;
  letter-spacing: .2em;
}







.concept-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 10vw;
  padding: 90px 0 100px;
}

.concept-heading h2 {
  max-width: 720px;
}

.concept-copy {
  max-width: 450px;
  padding-top: 16px;
  color: #55555b;
  font-size: 12px;
  line-height: 2.25;
}

.concept-copy p {
  margin-bottom: 24px;
}









.services-intro {
  padding: 105px 0 85px;
}

.services-intro h2 {
  max-width: 700px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  align-items: start;
  padding: 46px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .35s ease;
}

.service-card:hover {
  background: rgba(255,255,255,.5);
}

.service-number {
  color: var(--gray);
  font-size: 9px;
  letter-spacing: .15em;
}

.service-en {
  margin-bottom: 12px;
  color: #4e4e54;
  font-size: 9px;
  letter-spacing: .2em;
}

.service-body h3 {
  margin-bottom: 18px;
  font-size: clamp(15px, 1.7vw, 24px);
}

.service-body > p:last-child {
  max-width: 640px;
  margin-bottom: 0;
  color: #65656b;
  font-size: 11px;
  line-height: 2;
}

/* ---------- Company ---------- */

.company {
  padding: 160px 0 170px;
}

.company-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 9vw;
  padding: 110px 0 80px;
}

.company-heading h2 {
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -.02em;
}

.company-heading h2 span {
  color: #99999f;
}

.company-info dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-info dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 30px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.company-info dt {
  color: var(--gray);
}

.company-info dd {
  margin: 0;
}

.map-wrap {
  position: relative;
  overflow: hidden;
  height: 380px;
  border: 1px solid rgba(11,11,13,.08);
  background: #f2f2f3;
  filter: grayscale(100%);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  opacity: .8;
}

/* ---------- Contact ---------- */

.contact {
  min-height: 720px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0B0B0D;
}

.contact::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 80vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: .13;
  filter: blur(80px);
}

.contact-glow {
  position: absolute;
  z-index: 0;
  width: 45vw;
  height: 45vw;
  max-width: 600px;
  max-height: 600px;
  border: 1px solid rgba(230,73,131,.18);
  border-radius: 50%;
}

.contact-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact .section-label {
  color: rgba(255,255,255,.48);
}

.contact-logo {
  width: min(230px, 48vw);
  margin: 70px auto 34px;
}

.contact h2 {
  font-size: clamp(21px, 3vw, 40px);
}

.contact-copy {
  margin: 35px auto 0;
  color: rgba(255,255,255,.6);
  font-size: 11px;
  line-height: 2;
}

.contact-button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  min-width: 300px;
  margin-top: 55px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 9px;
  letter-spacing: .18em;
  transition: border-color .3s ease, background .3s ease;
}

.contact-button:hover {
  border-color: transparent;
  background: var(--gradient);
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px var(--side-padding);
  color: rgba(11,11,13,.48);
  background: #fff;
  font-size: 8px;
  letter-spacing: .08em;
  text-align: center;
}

.footer-copy {
  white-space: nowrap;
}

/* ---------- Scroll Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity .9s cubic-bezier(.22,1,.36,1),
    transform .9s cubic-bezier(.22,1,.36,1);
}

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

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .global-nav {
    gap: 20px;
  }

  .concept-grid,
  .company-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .concept {
    min-height: auto;
  }

  .company-heading {
    order: 0;
  }

  .company-info {
    order: 1;
  }

  .map-wrap {
    height: 330px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

/* ---------- Smartphone ---------- */

@media (max-width: 680px) {
  :root {
    --side-padding: 22px;
  }

  body {
    letter-spacing: .025em;
  }

  .brand {
    width: 100px;
  }

  .brand-logo--pc {
    display: none;
  }

  .brand-logo--sp {
    display: block;
    width: 100px;
  }

  .menu-toggle {
    position: relative;
    z-index: 2100;
    display: flex;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    margin-left: auto;
    background: var(--black);
    transition: transform .3s ease;
  }

  /* The dedicated .menu-close button is the only close control. */
  .menu-toggle.is-open {
    opacity: 0;
    pointer-events: none;
  }

  .menu-toggle.is-open span:first-child,
  .menu-toggle.is-open span:last-child {
    transform: none;
  }


  .global-nav a {
    font-size: 11px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 100px;
  }

  .hero-logo {
    width: min(115px, 32vw);
    margin-bottom: 24px;
  }

  .hero-kicker {
    max-width: 280px;
    margin: 0 auto 25px;
    line-height: 2;
  }

  .hero h1 {
    font-size: clamp(18px, 5vw, 25px);
    line-height: 1.5;
  }

  .hero-jp {
    font-size: 12px;
  }

  .hero-side-note {
    display: none;
  }

  .concept,
  .services,
  .company {
    padding-top: 105px;
    padding-bottom: 120px;
  }

  .concept-grid {
    padding: 75px 0 90px;
  }

  .concept-copy {
    font-size: 11px;
  }

  .service-card {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 36px 0;
  }

  .service-card:hover {
    padding-left: 0;
    background: transparent;
  }

  .service-body h3 {
    font-size: 17px;
  }

  .service-body > p:last-child {
    font-size: 10px;
  }

  .company-grid {
    padding: 75px 0 55px;
  }

  .company-info dl > div {
    grid-template-columns: 95px 1fr;
    gap: 15px;
    font-size: 10px;
  }

  .map-wrap {
    height: 280px;
  }

  .contact {
    min-height: 650px;
  }

  .contact-logo {
    width: min(150px, 45vw);
    margin-top: 50px;
  }

  .contact-copy br {
    display: none;
  }

  .contact-button {
    width: 100%;
    min-width: 0;
    gap: 20px;
  }

  .site-footer {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Motion Dot Content Layer ---------- */

/*
   ドットモーションは canvas を全面固定配置。
   コンテンツ側には白い半透明の面を置かず、
   背景の動きを「薄く透けて見せる」設計にしています。
*/
.section-motion-bg .section-inner {
  position: relative;
}

.concept-copy strong {
  color: var(--dark);
  font-weight: 500;
}

@media (max-width: 680px) {
  .motion-dots {
    opacity: .78;
  }
}


/* ==========================================================
   MOBILE MENU / FIXED HEADER STABILITY
   ----------------------------------------------------------
   ヘッダーは常時viewportに固定。
   ナビゲーションはheader内にあるためPCレイアウトが崩れず、
   スマホでは全画面の固定レイヤーとして表示します。
   ========================================================== */
@media (max-width: 680px) {
  .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 3000;
  }

  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .global-nav {
    position: fixed !important;
    inset: 0 !important;
    z-index: 3100 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh;
    margin: 0;
    padding: calc(var(--header-height) + 40px) 40px 60px;
    background: rgba(255,255,255,.975);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -10px, 0);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition: opacity .3s ease, transform .3s ease, visibility 0s;
  }

  .global-nav a {
    position: relative;
    z-index: 1;
    font-size: 11px;
  }

  .menu-toggle {
    position: relative !important;
    z-index: 3200 !important;
    display: flex;
  }

  /* メニュー右上の明確な閉じるボタン */
  .menu-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-close span {
    position: absolute;
    display: block;
    width: 25px;
    height: 1px;
    background: var(--black);
  }

  .menu-close span:first-child {
    transform: rotate(45deg);
  }

  .menu-close span:last-child {
    transform: rotate(-45deg);
  }
}

@media (min-width: 681px) {
  .menu-close {
    display: none;
  }
}
