/* ===== ACT3 inc. — site stylesheet ===== */

:root{
  --black:#000000;
  --off-white:#ffffff;
  --gray:#9a9892;
  --hairline:rgba(255,255,255,0.14);
  --gold:#c9a14a;
  --red:#c0392b;
  --muted-text:#d8d6cf;
  --panel-bg:#050505;
  --serif: "Bodoni Moda", "Noto Serif JP", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --rounded: "Kosugi Maru", "Noto Sans JP", sans-serif;
}

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

html{ scroll-behavior:smooth; }

body{
  background:var(--black);
  color:var(--off-white);
  font-family:var(--sans);
  font-weight:300;
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
}

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

.brand-red{ color:var(--red); }

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

/* ---------- Header ---------- */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:28px 5vw;
  z-index:50;
  background:linear-gradient(to bottom, rgba(0,0,0,0.65), transparent);
  transition:background .3s ease, color .3s ease;
}

.site-header.is-scrolled{
  background:rgba(0,0,0,0.5);
  backdrop-filter:blur(8px);
}

.header-left{
  display:flex;
  align-items:center;
  gap:22px;
}

.logo-mark{
  display:flex;
  align-items:center;
}

.logo-mark-img{
  height:28px;
  width:auto;
}

.social-link{
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0.8;
  transition:opacity .3s ease;
}

.social-link:hover{ opacity:1; }

.header-right{
  display:flex;
  align-items:center;
  gap:14px;
}

.lang-toggle{
  font-size:11px;
  letter-spacing:0.1em;
  padding:5px 12px;
  border:1px solid var(--hairline);
  border-radius:20px;
  opacity:0.85;
  transition:opacity .3s ease, border-color .3s ease;
  white-space:nowrap;
  flex-shrink:0;
}

.lang-toggle:hover{
  opacity:1;
  border-color:var(--off-white);
}

.icon-x{
  width:17px;
  height:17px;
  fill:var(--off-white);
}

.menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  gap:6px;
  width:26px;
  height:20px;
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  flex-shrink:0;
}

.menu-toggle-line{
  display:block;
  width:100%;
  height:1px;
  background:var(--off-white);
  transition:transform .3s ease, opacity .3s ease, width .3s ease;
}

.menu-toggle.is-open .menu-toggle-line:nth-child(1){
  transform:translateY(7px) rotate(45deg);
  width:100%;
}
.menu-toggle.is-open .menu-toggle-line:nth-child(2){ opacity:0; }
.menu-toggle.is-open .menu-toggle-line:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
  width:100%;
}

.nav-backdrop{
  display:none;
}

.main-nav{
  display:flex;
  gap:26px;
  font-size:13px;
  letter-spacing:0.05em;
  flex-shrink:0;
}

.main-nav a{
  opacity:0.85;
  position:relative;
  padding-bottom:6px;
}

.main-nav a:hover{ opacity:1; }

.main-nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0%; height:1px;
  background:var(--off-white);
  transition:width .3s ease;
}

.main-nav a:hover::after{ width:100%; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  height:100vh;
  width:100%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-video{
  position:absolute;
  top:50%; left:50%;
  min-width:100%; min-height:100%;
  width:auto; height:auto;
  transform:translate(-50%,-50%);
  object-fit:cover;
  filter:grayscale(15%) brightness(1.05);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at center, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-letterbox{
  position:absolute;
  left:0; right:0;
  height:6vh;
  background:#000;
  z-index:3;
}
.hero-letterbox.top{ top:0; }
.hero-letterbox.bottom{ bottom:0; }

.hero-content{
  position:relative;
  z-index:4;
  text-align:center;
  padding:0 24px;
}

.hero-logo{
  width:min(48vw, 730px);
  max-height:14.5vh;
  object-fit:contain;
  margin:0 auto 22px;
  filter:drop-shadow(0 0 40px rgba(0,0,0,0.6));
  opacity:0;
  transform:scale(0.8);
  transition:opacity 1.5s cubic-bezier(.16,.8,.24,1), transform 1.5s cubic-bezier(.16,.8,.24,1);
}

.hero-logo.is-revealed{
  opacity:1;
  transform:scale(1);
}

.hero-tagline{
  font-family:var(--sans);
  font-weight:400;
  font-size:clamp(13px, 1.5vw, 17px);
  letter-spacing:0.35em;
  color:var(--off-white);
  margin-top:6px;
  opacity:0;
  transform:translateY(12px);
  transition:opacity 1.1s ease, transform 1.1s ease;
  transition-delay:.7s;
}

html[lang="ja"] .hero-tagline{
  letter-spacing:0.25em;
}

.hero-tagline.is-revealed{
  opacity:1;
  transform:translateY(0);
}

.scroll-cue{
  position:absolute;
  bottom:42px;
  left:50%;
  transform:translateX(-50%);
  z-index:4;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.scroll-cue-line{
  width:1px;
  height:34px;
  background:var(--gray);
  overflow:hidden;
  position:relative;
}
.scroll-cue-line::after{
  content:"";
  position:absolute;
  top:-100%;
  left:0;
  width:100%; height:100%;
  background:var(--off-white);
  animation:scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine{
  0%{ top:-100%; }
  60%{ top:100%; }
  100%{ top:100%; }
}

.scroll-cue-text{
  font-size:10px;
  letter-spacing:0.3em;
  color:var(--gray);
}

/* ---------- Sections ---------- */
.section{
  padding:140px 0;
  border-top:1px solid var(--hairline);
}

.section-inner{
  max-width:1080px;
  margin:0 auto;
  padding:0 6vw;
}

.section-head{ margin-bottom:64px; }

.eyebrow{
  font-size:11px;
  letter-spacing:0.3em;
  color:var(--gold);
  margin-bottom:18px;
}

.display-heading{
  font-family:var(--serif);
  font-optical-sizing:auto;
  font-weight:800;
  font-size:clamp(36px, 6vw, 64px);
  line-height:1.08;
  margin-bottom:14px;
}

.section-lead{
  font-size:14px;
  letter-spacing:0.15em;
  color:var(--gray);
}

/* ---------- Service list ---------- */
.service-list{
  list-style:none;
  border-top:1px solid var(--hairline);
}

.service-list li{
  display:flex;
  flex-wrap:wrap;
  gap:8px 32px;
  padding:16px 0;
  border-bottom:1px solid var(--hairline);
}

.service-title{
  font-family:"Kosugi","Noto Sans JP",sans-serif;
  font-weight:700;
  font-size:19px;
  min-width:260px;
}

.service-desc{
  color:var(--gray);
  font-size:14px;
  flex:1;
  min-width:240px;
}

/* ---------- Philosophy ---------- */
.section-philosophy{ background:var(--panel-bg); }

.philosophy-text{
  max-width:680px;
  font-size:16px;
  font-weight:300;
  color:var(--muted-text);
}

.philosophy-text p{ margin-bottom:30px; }

.philosophy-credo{
  font-family:var(--serif);
  font-optical-sizing:auto;
  font-weight:600;
  font-size:24px;
  color:var(--off-white);
  margin-top:48px;
  font-style:italic;
}

/* ---------- Company info ---------- */
.info-grid{ border-top:1px solid var(--hairline); }

.info-row{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:24px;
  padding:26px 0;
  border-bottom:1px solid var(--hairline);
}

.info-row dt{
  font-size:14px;
  letter-spacing:0.05em;
}

.info-en{
  display:block;
  font-size:10px;
  letter-spacing:0.2em;
  color:var(--gray);
  margin-top:4px;
}

.info-row dd{
  font-size:15px;
  color:var(--muted-text);
}

/* ---------- Member ---------- */
.member-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(420px, 1fr));
  gap:24px;
}

.member-card{
  background:var(--black);
  border:1px solid rgba(255,255,255,0.32);
  padding:64px 32px 56px;
  text-align:center;
}

:lang(en) .member-card{
  border:1px solid rgba(0,0,0,0.22);
}

.member-name{
  font-family:var(--rounded);
  font-weight:700;
  font-size:26px;
  letter-spacing:0.18em;
  margin-bottom:14px;
  white-space:nowrap;
}

.member-name-en{
  font-family:var(--sans);
  font-size:11px;
  letter-spacing:0.32em;
  color:var(--gray);
  text-transform:uppercase;
  margin-bottom:22px;
  white-space:nowrap;
}

.member-divider{
  width:32px;
  height:1px;
  background:var(--gold);
  margin:0 auto 16px;
}

.member-role{
  font-size:13px;
  color:var(--gray);
  letter-spacing:0.05em;
  line-height:1.8;
}

:lang(en) .member-name{
  font-family:var(--sans);
  font-weight:500;
  font-size:22px;
  letter-spacing:0.22em;
  text-transform:uppercase;
}

/* ---------- News ---------- */
.news-item{ border-top:1px solid var(--hairline); padding-top:48px; padding-bottom:48px; }
.news-item:last-child{ padding-bottom:0; }

.news-date{
  font-size:12px;
  letter-spacing:0.2em;
  color:var(--gray);
  margin-bottom:14px;
}

.news-title{
  font-family:var(--serif);
  font-optical-sizing:auto;
  font-weight:700;
  font-size:clamp(20px, 2.4vw, 28px);
  line-height:1.4;
  margin-bottom:40px;
  max-width:820px;
}

.news-media{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:40px;
  margin-bottom:40px;
}

.news-poster{
  border:1px solid var(--hairline);
}

.news-media-single{
  grid-template-columns:300px;
}

.news-media-wide{
  grid-template-columns:1fr;
  max-width:560px;
}

.news-video-wrap{
  display:flex;
  align-items:center;
}

.news-video{
  width:100%;
  border:1px solid var(--hairline);
  background:var(--black);
}

.news-text{
  max-width:820px;
  font-size:15px;
  color:var(--muted-text);
}

.news-text p{ margin-bottom:24px; }

.news-link{
  border-bottom:1px solid var(--off-white);
  padding-bottom:2px;
  transition:opacity .3s ease;
}

.news-link:hover{ opacity:0.7; }

/* ---------- Contact ---------- */
.contact-text{
  text-align:center;
  font-size:15px;
  color:var(--muted-text);
  margin-bottom:40px;
}

.contact-button-wrap{
  display:flex;
  justify-content:center;
  padding:24px 0;
}

.contact-button{
  display:inline-block;
  padding:24px 64px;
  border:1px solid var(--off-white);
  font-family:var(--sans);
  font-size:14px;
  letter-spacing:0.25em;
  transition:background .3s ease, color .3s ease;
}

.contact-button:hover{
  background:var(--off-white);
  color:var(--black);
}

/* ---------- Footer ---------- */
.site-footer{
  text-align:center;
  padding:40px 0;
  font-size:12px;
  color:var(--gray);
  border-top:1px solid var(--hairline);
}

/* ---------- EN light theme (body.theme-light) ----------
   Inverts everything below the hero to a white-base / black-text
   theme. The hero itself is intentionally excluded so it stays
   dark (video + black overlay + light logo), per the chosen scope. */
body.theme-light main{
  --black:#f5f3ee;
  --off-white:#16150f;
  --gray:#77756c;
  --hairline:rgba(0,0,0,0.12);
  --muted-text:#3a382f;
  --panel-bg:#f5f3ee;
  background:var(--black);
  color:var(--off-white);
}

body.theme-light .site-footer{
  --black:#f5f3ee;
  --gray:#77756c;
  --hairline:rgba(0,0,0,0.12);
  background:var(--black);
}

/* ---------- Scroll reveal ---------- */
.fade-up{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .8s ease, transform .8s ease;
}
.fade-up.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width:720px){
  .header-right{ gap:16px; }

  .menu-toggle{ display:flex; }

  .main-nav{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:0;
    position:fixed;
    top:0; right:0;
    width:min(78vw, 320px);
    height:100vh;
    background:rgba(5,5,5,0.97);
    border-left:1px solid var(--hairline);
    padding:100px 32px 40px;
    overflow-y:auto;
    transform:translateX(100%);
    transition:transform .35s ease;
    z-index:60;
  }

  .main-nav.is-open{ transform:translateX(0); }

  .main-nav a{
    width:100%;
    text-align:right;
    font-size:17px;
    padding:14px 0;
    border-bottom:1px solid var(--hairline);
  }

  .main-nav a::after{ display:none; }

  .main-nav .social-link{
    border-bottom:none;
    justify-content:flex-end;
    margin-top:18px;
    padding:0;
  }

  .nav-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.55);
    z-index:55;
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease;
  }

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

  .section{ padding:96px 0; }
  .service-title{ min-width:100%; }
  .member-grid{ grid-template-columns:1fr; }
  .member-name, .member-name-en{ white-space:normal; }
  .info-row{ grid-template-columns:1fr; gap:8px; }
  .news-media{ grid-template-columns:1fr; gap:24px; }
  .news-poster{ max-width:240px; margin:0 auto; }
}
