/* ============================================================
   UNITE Co., Ltd. — Corporate Website
   ============================================================ */

:root{
  --gold: #c2901f;
  --gold-soft: #d8ad4c;
  --gold-dark: #a5780f;
  --ink: #12161c;
  --ink-2: #1c222b;
  --paper: #faf8f3;
  --paper-2: #f2ede3;
  --grey: #5c626b;
  --grey-light: #8b919a;
  --line: rgba(18,22,28,.12);
  --line-light: rgba(255,255,255,.14);
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", sans-serif;
  --latin: "Jost", sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --container: 1180px;
}

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

html{ scroll-behavior:smooth; }

body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }

.container{ width:min(var(--container), 90%); margin-inline:auto; }

/* ============================================================
   Header
   ============================================================ */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  transition:background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.header-inner{
  width:min(var(--container), 92%); margin-inline:auto;
  display:flex; align-items:center; justify-content:space-between;
  height:84px; transition:height .4s var(--ease);
}
.site-header.scrolled{
  background:rgba(250,248,243,.88);
  backdrop-filter:blur(14px);
  box-shadow:0 1px 0 var(--line);
}
.site-header.scrolled .header-inner{ height:66px; }

.brand{ display:inline-flex; align-items:center; }
.brand-logo{
  height:50px; width:auto; object-fit:contain;
  transition:height .4s var(--ease);
}
.site-header.scrolled .brand-logo{ height:40px; }
/* white logo over the dark hero, original (dark) logo over the light scrolled header */
.brand-on-light{ display:none; }
.brand-on-dark{ display:inline-block; }
.site-header.scrolled .brand-on-dark{ display:none; }
.site-header.scrolled .brand-on-light{ display:inline-block; }

.nav{ display:flex; align-items:center; gap:38px; }
.nav a{
  font-size:.82rem; font-weight:500; letter-spacing:.04em;
  position:relative; color:var(--ink);
  transition:color .3s;
}
.nav a:not(.nav-cta)::after{
  content:""; position:absolute; left:0; bottom:-6px; height:1px; width:0;
  background:var(--gold); transition:width .35s var(--ease);
}
.nav a:not(.nav-cta):hover{ color:var(--gold-dark); }
.nav a:not(.nav-cta):hover::after{ width:100%; }
.nav-cta{
  padding:.6em 1.5em; border:1px solid var(--ink);
  border-radius:100px; font-size:.78rem;
  transition:background .3s, color .3s, border-color .3s;
}
.nav-cta:hover{ background:var(--ink); color:#fff; }

.lang-switch{
  margin-left:26px; padding:.5em 1.1em; border:1px solid var(--line);
  border-radius:100px; background:transparent; cursor:pointer;
  font-family:var(--latin); font-size:.74rem; letter-spacing:.12em; color:var(--ink);
  transition:background .3s, color .3s, border-color .3s;
  min-width:64px; text-align:center;
}
.lang-switch:hover{ background:var(--gold); color:#fff; border-color:var(--gold); }
/* over dark hero (header not scrolled) */
.site-header:not(.scrolled) .nav a:not(.nav-cta){ color:#fff; }
.site-header:not(.scrolled) .nav-cta{ border-color:rgba(255,255,255,.5); color:#fff; }
.site-header:not(.scrolled) .nav-cta:hover{ background:#fff; color:var(--ink); }
.site-header:not(.scrolled) .lang-switch{ border-color:rgba(255,255,255,.5); color:#fff; }
.site-header:not(.scrolled) .lang-switch:hover{ background:var(--gold); border-color:var(--gold); }
.site-header:not(.scrolled) .nav-toggle span{ background:#fff; }

.nav-toggle{
  display:none; flex-direction:column; gap:6px; width:34px; height:34px;
  background:none; border:none; cursor:pointer; justify-content:center; align-items:center;
}
.nav-toggle span{ width:26px; height:2px; background:var(--ink); transition:.35s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position:relative; min-height:100svh;
  display:flex; align-items:center;
  color:#fff; overflow:hidden;
  background:var(--ink);
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(194,144,31,.28), transparent 60%),
    radial-gradient(900px 700px at 12% 88%, rgba(194,144,31,.12), transparent 55%),
    linear-gradient(160deg, #0d1015 0%, #171d26 55%, #0d1116 100%);
}
.hero-bg::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
}
.hero-bg::after{
  content:""; position:absolute; right:-6%; top:50%; transform:translateY(-50%);
  width:min(52vw,720px); aspect-ratio:1;
  background:
    conic-gradient(from 45deg, transparent 0 25%, rgba(194,144,31,.10) 25% 50%, transparent 50% 75%, rgba(194,144,31,.10) 75%);
  border-radius:30px; rotate:45deg; filter:blur(1px);
  opacity:.5;
}
.hero-inner{
  position:relative; z-index:2;
  width:min(var(--container), 90%); margin-inline:auto;
  padding-top:84px;
}
.hero-eyebrow{
  font-family:var(--latin); letter-spacing:.42em; font-size:.8rem;
  color:var(--gold-soft); margin-bottom:1.6rem; text-indent:.42em;
}
.hero-title{
  font-family:var(--serif); font-weight:600;
  font-size:clamp(2.6rem, 6.4vw, 5.4rem);
  line-height:1.18; letter-spacing:.01em; margin-bottom:1.8rem;
}
.hero-title span{ display:block; }
.hero-title span:last-child{ color:var(--gold-soft); }
.hero-lead{
  font-size:clamp(.95rem,1.5vw,1.12rem); font-weight:300;
  color:rgba(255,255,255,.82); max-width:44ch; margin-bottom:2.6rem;
}
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding:1em 2.4em; border-radius:100px;
  font-size:.86rem; font-weight:500; letter-spacing:.06em;
  cursor:pointer; transition:transform .3s var(--ease), background .3s, color .3s, border-color .3s;
  border:1px solid transparent;
}
.btn:hover{ transform:translateY(-3px); }
.btn-primary{ background:var(--gold); color:#fff; }
.btn-primary:hover{ background:var(--gold-dark); }
.btn-ghost{ border-color:rgba(255,255,255,.4); color:#fff; }
.btn-ghost:hover{ background:#fff; color:var(--ink); border-color:#fff; }
.btn-block{ width:100%; }

.scroll-cue{
  position:absolute; bottom:34px; left:50%; transform:translateX(-50%);
  z-index:3; display:flex; flex-direction:column; align-items:center; gap:10px;
  font-family:var(--latin); font-size:.68rem; letter-spacing:.3em; color:rgba(255,255,255,.6);
}
.scroll-cue i{ width:1px; height:52px; background:linear-gradient(rgba(255,255,255,.7), transparent); position:relative; overflow:hidden; }
.scroll-cue i::after{
  content:""; position:absolute; top:-52px; left:0; width:1px; height:52px;
  background:var(--gold-soft); animation:scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine{ to{ top:52px; } }

/* ============================================================
   Marquee
   ============================================================ */
.marquee{
  background:var(--ink); color:rgba(255,255,255,.5);
  overflow:hidden; border-top:1px solid var(--line-light);
  padding:.9rem 0;
}
.marquee-track{
  display:flex; align-items:center; gap:2.4rem; white-space:nowrap;
  font-family:var(--latin); letter-spacing:.24em; font-size:.82rem;
  width:max-content; animation:marquee 28s linear infinite;
}
.marquee-track i{ color:var(--gold); font-size:.6rem; font-style:normal; }
@keyframes marquee{ to{ transform:translateX(-50%); } }

/* ============================================================
   Sections (generic)
   ============================================================ */
.section{ padding:clamp(5rem, 11vw, 9rem) 0; }

.section-head{ margin-bottom:clamp(2.6rem,5vw,4rem); }
.section-num{
  font-family:var(--latin); font-size:.8rem; letter-spacing:.3em; color:var(--gold-dark);
  display:block; margin-bottom:.8rem;
}
.section-title{
  font-family:var(--latin); font-weight:500;
  font-size:clamp(2rem,4.4vw,3.2rem); line-height:1.1; letter-spacing:.01em;
  display:flex; align-items:baseline; gap:1rem; flex-wrap:wrap;
}
.section-title span{
  font-family:var(--serif); font-size:.44em; font-weight:500; color:var(--grey);
  letter-spacing:.06em;
}
.section-head.light .section-num{ color:var(--gold-soft); }
.section-head.light .section-title{ color:#fff; }
.section-head.light .section-title span{ color:rgba(255,255,255,.6); }

/* ============================================================
   About
   ============================================================ */
.about-grid{
  display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(2rem,5vw,5rem);
  align-items:start; padding-bottom:clamp(3rem,6vw,5rem);
  border-bottom:1px solid var(--line);
}
.about-lead h3{
  font-family:var(--serif); font-weight:600; font-size:clamp(1.5rem,2.6vw,2.1rem);
  line-height:1.5;
}
.about-body p{ color:var(--grey); margin-bottom:1.4rem; font-weight:300; }
.about-body p:last-child{ margin-bottom:0; }

.stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
  margin-top:clamp(3rem,6vw,5rem);
}
.stat{ background:var(--paper); padding:2.2rem 1.6rem; }
.stat-num{
  font-family:var(--latin); font-weight:500; font-size:clamp(2.4rem,4vw,3.4rem);
  color:var(--ink); line-height:1; letter-spacing:-.01em;
}
.stat-num span{ font-family:var(--sans); font-size:.32em; color:var(--gold-dark); margin-left:.35em; letter-spacing:.02em; }
.stat p{ font-size:.82rem; color:var(--grey); margin-top:1rem; line-height:1.6; }

/* ============================================================
   Business (dark)
   ============================================================ */
.business{ background:var(--ink); color:#fff; }
.biz-card{
  display:grid; grid-template-columns:auto 1fr; gap:clamp(1.5rem,4vw,3.5rem);
  align-items:center; padding:clamp(2.4rem,5vw,3.6rem) 0;
  border-top:1px solid var(--line-light);
}
.biz-card:last-child{ border-bottom:1px solid var(--line-light); }
.biz-index{
  font-family:var(--latin); font-size:clamp(3rem,8vw,6rem); font-weight:300;
  color:transparent; -webkit-text-stroke:1px rgba(194,144,31,.55);
  line-height:1;
}
.biz-tag{
  font-family:var(--latin); letter-spacing:.28em; font-size:.72rem;
  color:var(--gold-soft); margin-bottom:.7rem;
}
.biz-content h3{
  font-family:var(--serif); font-weight:600; font-size:clamp(1.5rem,3vw,2.3rem);
  margin-bottom:1.1rem;
}
.biz-desc{ color:rgba(255,255,255,.72); font-weight:300; max-width:60ch; margin-bottom:1.6rem; }
.biz-list{
  display:flex; flex-wrap:wrap; gap:.6rem .8rem;
}
.biz-list li{
  font-size:.82rem; color:rgba(255,255,255,.85);
  padding:.5em 1.1em; border:1px solid var(--line-light); border-radius:100px;
  transition:border-color .3s, color .3s;
}
.biz-list li:hover{ border-color:var(--gold); color:var(--gold-soft); }
.biz-card.reverse{ grid-template-columns:1fr auto; }
.biz-card.reverse .biz-index{ order:2; text-align:right; }
.biz-card.reverse .biz-content{ order:1; }

/* ============================================================
   Strengths
   ============================================================ */
.str-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem;
}
.str-item{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:2.6rem 2rem; transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position:relative; overflow:hidden;
}
.str-item::before{
  content:""; position:absolute; top:0; left:0; width:100%; height:3px;
  background:linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform:scaleX(0); transform-origin:left; transition:transform .45s var(--ease);
}
.str-item:hover{ transform:translateY(-6px); box-shadow:0 22px 50px -28px rgba(18,22,28,.4); border-color:transparent; }
.str-item:hover::before{ transform:scaleX(1); }
.str-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:56px; height:56px; border-radius:12px;
  background:var(--paper-2); color:var(--gold-dark); font-size:1.5rem;
  margin-bottom:1.4rem;
}
.str-item h3{ font-family:var(--serif); font-weight:600; font-size:1.2rem; margin-bottom:.7rem; }
.str-item p{ color:var(--grey); font-size:.9rem; font-weight:300; }

/* ============================================================
   Profile (dark)
   ============================================================ */
.profile{ background:var(--ink-2); color:#fff; }
.profile-wrap{
  background:rgba(255,255,255,.02); border:1px solid var(--line-light); border-radius:16px;
  overflow:hidden;
}
.profile-table{ width:100%; border-collapse:collapse; }
.profile-table th, .profile-table td{
  text-align:left; padding:1.4rem clamp(1.4rem,3vw,2.4rem); vertical-align:top;
  border-bottom:1px solid var(--line-light);
}
.profile-table tr:last-child th, .profile-table tr:last-child td{ border-bottom:none; }
.profile-table th{
  width:26%; font-weight:500; color:var(--gold-soft); font-size:.9rem;
  letter-spacing:.04em; white-space:nowrap;
}
.profile-table td{ color:rgba(255,255,255,.86); font-weight:300; }
.profile-biz{ display:grid; gap:.5rem; }
.profile-biz li{ position:relative; padding-left:1.3em; }
.profile-biz li::before{ content:"◆"; position:absolute; left:0; color:var(--gold); font-size:.6em; top:.5em; }

/* ============================================================
   Contact
   ============================================================ */
.contact{ background:var(--paper); }
.contact-inner{
  max-width:760px; margin-inline:auto; text-align:center;
}
.contact-eyebrow{ font-family:var(--latin); letter-spacing:.34em; color:var(--gold-dark); font-size:.8rem; margin-bottom:1rem; }
.contact-title{ font-family:var(--serif); font-weight:600; font-size:clamp(2rem,4.4vw,3rem); line-height:1.3; margin-bottom:1.4rem; }
.contact-lead{ color:var(--grey); font-weight:300; margin-bottom:3rem; }

.contact-form{
  display:grid; grid-template-columns:1fr 1fr; gap:1.4rem; text-align:left;
}
.field{ display:flex; flex-direction:column; gap:.5rem; }
.field.full{ grid-column:1 / -1; }
.field label{ font-size:.82rem; font-weight:500; }
.field label span{ color:var(--gold-dark); }
.field input, .field textarea{
  font-family:inherit; font-size:.95rem; color:var(--ink);
  padding:.9em 1.1em; border:1px solid var(--line); border-radius:10px;
  background:#fff; transition:border-color .3s, box-shadow .3s; resize:vertical;
}
.field input:focus, .field textarea:focus{
  outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(194,144,31,.12);
}
.form-note{ margin-top:1rem; font-size:.86rem; text-align:center; min-height:1.2em; }
.form-note.ok{ color:var(--gold-dark); }
.form-note.err{ color:#c0392b; }

.contact-alt{ margin-top:3rem; padding-top:2.4rem; border-top:1px solid var(--line); }
.contact-alt p{ font-size:.84rem; color:var(--grey); margin-bottom:.4rem; }
.contact-mail{
  font-family:var(--latin); font-size:1.4rem; letter-spacing:.04em; color:var(--ink);
  border-bottom:1px solid var(--gold); padding-bottom:.15em; transition:color .3s;
}
.contact-mail:hover{ color:var(--gold-dark); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{ background:var(--ink); color:rgba(255,255,255,.7); }
.footer-inner{
  display:grid; grid-template-columns:1fr 1fr; gap:3rem;
  padding:clamp(3rem,6vw,4.5rem) 0 clamp(2rem,4vw,3rem);
}
.footer-logo{ height:54px; width:auto; margin-bottom:1.2rem; }
.footer-brand p{ font-family:var(--serif); font-size:1.05rem; color:#fff; }
.footer-cols{ display:grid; grid-template-columns:1fr 1fr; gap:2rem; }
.footer-col h4{
  font-family:var(--latin); letter-spacing:.2em; font-size:.78rem; color:var(--gold-soft);
  margin-bottom:1.2rem; text-transform:uppercase;
}
.footer-col a, .footer-col p{ display:block; font-size:.86rem; margin-bottom:.7rem; font-weight:300; transition:color .3s; }
.footer-col a:hover{ color:var(--gold-soft); }
.footer-bottom{
  border-top:1px solid var(--line-light);
  display:flex; align-items:center; justify-content:space-between;
  width:min(var(--container),90%); margin-inline:auto; padding:1.6rem 0;
}
.footer-bottom p{ font-size:.76rem; letter-spacing:.05em; color:var(--grey-light); }
.to-top{
  background:none; border:1px solid var(--line-light); color:rgba(255,255,255,.7);
  padding:.6em 1.3em; border-radius:100px; font-family:var(--latin); font-size:.74rem;
  letter-spacing:.14em; cursor:pointer; transition:background .3s, color .3s, border-color .3s;
}
.to-top:hover{ background:var(--gold); color:#fff; border-color:var(--gold); }

/* ============================================================
   Reveal animation
   ============================================================ */
[data-reveal]{ opacity:0; transform:translateY(28px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in{ opacity:1; transform:none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:900px){
  .nav{
    position:fixed; inset:0 0 0 auto; width:min(80vw,340px);
    background:var(--paper); flex-direction:column; justify-content:center;
    align-items:flex-start; gap:1.8rem; padding:2rem 2.4rem;
    transform:translateX(100%); transition:transform .45s var(--ease);
    box-shadow:-20px 0 50px -30px rgba(0,0,0,.4);
  }
  .nav.open{ transform:translateX(0); }
  .nav a{ font-size:1.05rem; }
  /* mobile panel always has light bg -> keep links dark even over hero */
  .site-header:not(.scrolled) .nav a:not(.nav-cta){ color:var(--ink); }
  .site-header:not(.scrolled) .nav-cta{ border-color:var(--ink); color:var(--ink); }
  .nav-toggle{ display:flex; z-index:101; }
  .lang-switch{ margin-left:auto; margin-right:14px; }

  .about-grid{ grid-template-columns:1fr; }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .str-grid{ grid-template-columns:1fr 1fr; }
  .footer-inner{ grid-template-columns:1fr; }
}
@media (max-width:600px){
  .biz-card, .biz-card.reverse{ grid-template-columns:1fr; gap:1rem; }
  .biz-card.reverse .biz-index{ order:0; text-align:left; }
  .biz-card.reverse .biz-content{ order:0; }
  /* stack the business tags vertically (one per row) on mobile */
  .biz-list{ flex-direction:column; align-items:flex-start; gap:.6rem; }
  .str-grid{ grid-template-columns:1fr; }
  .stats{ grid-template-columns:1fr 1fr; }
  .contact-form{ grid-template-columns:1fr; }
  .profile-table th{ width:38%; font-size:.82rem; }
  .profile-table th, .profile-table td{ padding:1.1rem 1.2rem; }
  .footer-cols{ grid-template-columns:1fr; }
}
