/* 札設電建 TOP — PC_1366 基準 (1rem = 10px @1366) */
:root {
  --yellow: #fadb2a;
  --dark: #333333;
  --light: #f7f7f5;
  --gray: #6e6e6e;
  --font: "Noto Sans JP", sans-serif;
  --en: "Nova Square", "Noto Sans JP", sans-serif;
  --mincho: "Zen Old Mincho", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100vw / 136.6); -webkit-text-size-adjust: 100%; scroll-padding-top: 8.6rem; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark);
  background: var(--light) url(../img/noise.png) repeat;
  background-size: 40rem 40rem;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, address { margin: 0; font-style: normal; }

.page { position: relative; width: 136.6rem; overflow: hidden; overflow: clip; } /* clip: sticky を殺さずにはみ出しだけ切る */

/* ---------- decor layer ---------- */
.decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.decor > *, .fv-visual > *, .fv-person > img { position: absolute; }
.fv-visual, .fv-person { position: absolute; inset: 0; }
.decor__img { height: auto; }
.tone { left: 0; width: 136.6rem; background: var(--dark); }
.band { will-change: mask-image; }
.band-tip {
  position: absolute; pointer-events: none; opacity: 0;
  will-change: mask-image;
  filter: drop-shadow(0 0 .6rem #fadb2a) drop-shadow(0 0 1.6rem rgba(250, 219, 42, .8));
  transition: opacity .4s ease;
}

main, .header, .footer { position: relative; z-index: 1; }

/* ---------- marquee ---------- */
.marquee { left: 0; width: 136.6rem; height: 9.4rem; overflow: visible; pointer-events: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span {
  flex: none;
  padding-right: 3.2rem;
  font-family: var(--en);
  font-size: 12.8rem;
  line-height: 9.4rem;
  white-space: nowrap;
  color: rgba(148, 148, 148, .5);
}
@keyframes marquee { to { transform: translateX(calc(-100% / 3)); } }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 10; }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 8.6rem; padding: 1.6rem 5rem;
  background: rgba(255, 255, 255, .5);
}
.header__logo { font-size: 3.2rem; font-weight: 700; line-height: 3.84rem; letter-spacing: .1em; }
.header__nav { display: flex; align-items: center; gap: 4rem; }
.header__menu { display: flex; align-items: center; gap: 4rem; }
.header__menu a { font-size: 2rem; font-weight: 700; line-height: 2.4rem; letter-spacing: .1em; transition: color .3s; }
.header__menu a:hover { color: #b39a12; }
.header__contact {
  display: flex; align-items: center; gap: 1.6rem;
  height: 5.4rem; padding: .8rem 2.4rem;
  background: var(--yellow); border: .2rem solid #fff; border-radius: 1.6rem;
  font-size: 2rem; font-weight: 700; line-height: 3.4rem; letter-spacing: .11em;
  transition: box-shadow .3s;
}
.header__contact img { width: 2.4rem; height: 2.4rem; }
.header__contact:hover { box-shadow: 0 0 2rem rgba(250, 219, 42, .8); }

/* ---------- FV ---------- */
.fv { height: 92.2rem; padding: 2.4rem 5rem 0; }
.fv__copy { width: 70.4rem; }
.fv__lockup { position: relative; width: 70.4rem; height: 54.8rem; font-weight: 700; }
.fv__bolt { position: absolute; left: 15.9rem; top: 16.7rem; width: 29.7rem; height: 32.8rem; }
.fv__words { position: absolute; left: -5rem; top: -2.4rem; width: 0; height: 0; transform-origin: 0 0; transform: rotate(-6.76deg); }
.w { position: absolute; white-space: nowrap; color: var(--dark); }
.w--denki { left: 7.79rem; top: 8.22rem; font-family: var(--mincho); font-size: 20rem; line-height: 29rem; letter-spacing: .05em; }
.w--de { left: 49.7rem; top: 23.48rem; font-size: 9.6rem; line-height: 11.5rem; letter-spacing: .1em; }
.w--machi { left: 1.48rem; top: 29.97rem; font-family: var(--mincho); font-size: 12.8rem; line-height: 18.5rem; letter-spacing: .05em; color: #000; }
.w--atari { left: 14.28rem; top: 35rem; font-size: 8rem; line-height: 11.5rem; letter-spacing: .03em; }
.w-l { font-size: 9.6rem; }
.w--tsukuru { left: 13.21rem; top: 46.55rem; font-size: 10.5rem; line-height: 12.6rem; letter-spacing: .03em; }
.fv__sub {
  width: 58.3rem; margin-top: 3.8rem; padding: 0 4.6rem;
  font-size: 2.4rem; font-weight: 700; line-height: 2.9rem; letter-spacing: .5em; text-align: center; white-space: nowrap;
}

/* ---------- common ---------- */
.sec-title { font-family: var(--en); font-weight: 400; font-size: 4rem; line-height: 6rem; letter-spacing: .3em; color: var(--yellow); }
.sec-title--dark { color: var(--dark); }
.sec-title--white { color: #fff; }
.lead-title { font-size: 2.4rem; font-weight: 700; line-height: 1.7; letter-spacing: .2em; color: #fff; }
.lead-title--dark { color: var(--dark); }
.body-text { font-size: 2rem; font-weight: 500; line-height: 2.5; letter-spacing: .15em; color: #fff; }
.body-text--dark { color: var(--dark); }
.body-text--center { text-align: center; }
.more-link { display: inline-flex; align-items: center; gap: 2.4rem; font-size: 2.4rem; font-weight: 700; line-height: 6rem; letter-spacing: .15em; color: #fff; }
.more-link--dark { color: var(--dark); }
.more-link__arrow {
  display: grid; place-items: center; width: 6rem; height: 6rem; border-radius: 50%;
  background: var(--yellow); color: var(--dark); font-size: 2.8rem; line-height: 1; letter-spacing: 0;
  transition: transform .3s, box-shadow .3s;
}
.more-link:hover .more-link__arrow { transform: translateX(.6rem); box-shadow: 0 0 2rem rgba(250, 219, 42, .8); }

/* ---------- intro ---------- */
.intro { height: 93.4rem; padding: 20rem 10rem 10rem; color: #fff; }
.intro__head { position: relative; height: 47.4rem; display: flex; justify-content: flex-end; }
.intro__title { font-size: 4.8rem; font-weight: 700; line-height: 7.2rem; letter-spacing: .2em; white-space: nowrap; }
.is-yellow { color: var(--yellow); }
.intro__photo { position: absolute; }
.intro__photo img { width: 100%; height: auto; }
.intro__photo--1 { left: 8.2rem; top: -1.1rem; width: 36.6rem; }
.intro__photo--2 { left: 50.9rem; top: 21.2rem; width: 29.4rem; }
.intro__photo--3 { left: 88.7rem; top: 38.1rem; width: 24.3rem; }
.intro__text { margin-top: 1rem; font-size: 2rem; font-weight: 500; line-height: 2.5; letter-spacing: .15em; white-space: nowrap; }

/* ---------- business ---------- */
.business { position: relative; height: 159.2rem; padding: 10rem 10rem 20rem; }
.business .sec-title { width: 27.9rem; }
.business__row { display: flex; gap: 8rem; margin-top: 4rem; height: 119.2rem; }
.business__lead { flex: none; align-self: flex-start; position: sticky; top: 16rem; width: 50.2rem; display: flex; flex-direction: column; gap: 2.4rem; }
.business__lead .body-text { white-space: nowrap; }
.business__list { flex: none; width: 58.4rem; padding-top: 4rem; display: flex; flex-direction: column; gap: 12rem; }
.biz-item { display: flex; height: 30.4rem; align-items: center; }
.biz-item--right { justify-content: flex-end; }
.biz-circle {
  position: relative; width: 30rem; height: 30rem; margin: 0 .2rem; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  isolation: isolate;
}
.biz-circle::before {
  /* 黄色の円(半径15.3rem)を blur(1rem) した発光を放射グラデで再現(マスクで外側の光が切れないよう枠を広げる) */
  content: ""; position: absolute; inset: -3rem; z-index: -2; border-radius: 50%;
  background: radial-gradient(circle 18rem at 50% 50%, #fadb2a 13.3rem, rgba(250, 219, 42, .84) 14.3rem, rgba(250, 219, 42, .5) 15.3rem, rgba(250, 219, 42, .16) 16.3rem, rgba(250, 219, 42, .02) 17.3rem, rgba(250, 219, 42, 0) 18rem);
}
.biz-circle::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--dark); }
.biz-circle img { width: 15rem; height: 15rem; }
.biz-circle__label { font-size: 2.4rem; font-weight: 700; line-height: 1.7; letter-spacing: .2em; color: #fff; text-align: center; white-space: nowrap; }
.biz-circle__label--tight { line-height: 1.5; }
.biz-circle__label--left { text-align: left; }

.orbs { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.orb { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, var(--yellow) 45%, #fff 100%); will-change: transform; }
.orb--s { width: 5rem; height: 5rem; filter: blur(3.75rem); }
.orb--xs { width: 2.4rem; height: 2.4rem; filter: blur(1.5rem); }
.orb--l { width: 15rem; height: 15rem; filter: blur(10rem); }
.orb--m { width: 8.9rem; height: 8.9rem; filter: blur(8rem); }

/* ---------- strength ---------- */
.strength { height: 172.5rem; padding: 20rem 10rem; display: flex; flex-direction: column; align-items: center; gap: 8rem; }
.strength__head { display: flex; flex-direction: column; align-items: center; gap: 4rem; }
.strength__head .lead-title { margin-bottom: -1.6rem; }
.strength__head .body-text { white-space: nowrap; }
.strength__list { display: flex; flex-direction: column; gap: 10rem; width: 100rem; }
.cap {
  position: relative; height: 26rem; border-radius: 99rem; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 4rem 8rem; color: #fff; text-align: center;
}
.cap::after { content: ""; position: absolute; inset: 0; border: .6rem solid var(--yellow); border-radius: inherit; pointer-events: none; }
.cap__media { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; background: rgba(51, 51, 51, .9); }
.cap__img { position: absolute; top: 0; height: 100%; object-fit: cover; }
.cap__title { position: relative; font-size: 2rem; font-weight: 700; line-height: 5rem; letter-spacing: .15em; }
.cap__num { display: block; font-family: var(--en); font-weight: 400; color: var(--yellow); }
.cap__text { position: relative; font-size: 1.6rem; font-weight: 500; line-height: 2.88rem; letter-spacing: .1em; white-space: nowrap; }

/* ---------- company ---------- */
.company { position: relative; height: 76.1rem; padding: 0 10rem 12rem; }
.company__drawing { position: absolute; left: 0; top: -7.6rem; width: 136.6rem; height: auto; z-index: -1; }
.company__inner { display: flex; flex-direction: column; align-items: center; }
.company__inner .lead-title { margin-top: 4rem; }
.company__inner .body-text { margin-top: 2.4rem; white-space: nowrap; }
.company__inner .more-link { margin-top: 4rem; }

/* ---------- news ---------- */
.news { position: relative; height: 92.7rem; padding: 20rem 10rem 0; }
.news__head { display: flex; justify-content: space-between; align-items: center; }
.news__sub { margin-top: 1rem; font-size: 2.4rem; font-weight: 700; line-height: 1.7; letter-spacing: .2em; color: #fff; }
.news__list { margin-top: 8rem; display: flex; flex-direction: column; gap: 2.4rem; }
.news-item {
  display: flex; align-items: center; height: 8.8rem; padding: 2.4rem 5rem; border-radius: .8rem;
  background: rgba(110, 110, 110, .5); color: #fff;
  transition: background-color .3s;
}
.news-item time { width: 10.6rem; font-size: 1.6rem; font-weight: 700; letter-spacing: .15em; text-align: center; white-space: nowrap; }
.news-item__cat {
  margin-left: 4rem; padding: .6rem 2.4rem;
  background: var(--yellow); color: var(--dark); font-size: 1.6rem; font-weight: 700; line-height: 1; letter-spacing: .15em; white-space: nowrap;
}
.news-item__title { margin-left: 4rem; font-size: 2.4rem; font-weight: 700; letter-spacing: .15em; white-space: nowrap; }
.news-item__arrow {
  margin-left: auto; display: grid; place-items: center; width: 4rem; height: 4rem; border: .2rem solid #fff; border-radius: 50%;
  font-size: 2.4rem; font-weight: 700; line-height: 1; transition: transform .3s;
}
.news-item:hover { background: rgba(110, 110, 110, .75); }
.news-item:hover .news-item__arrow { transform: translateX(.6rem); }

/* ---------- contact ---------- */
.contact { position: relative; height: 81.2rem; padding: 20rem 10rem; color: #fff; }
.contact__row { display: flex; gap: 12rem; margin-top: 4rem; }
.contact__lead { width: 48.5rem; display: flex; flex-direction: column; gap: 2.4rem; }
.contact__lead .lead-title { white-space: nowrap; }
.contact__text { font-size: 2rem; font-weight: 700; line-height: 2.5; letter-spacing: .15em; white-space: nowrap; }
.contact__btns { width: 56.1rem; display: flex; flex-direction: column; gap: 4rem; }
.cbtn {
  display: flex; align-items: center; justify-content: space-between; height: 13.6rem;
  border: .2rem solid #fff; border-radius: 1.6rem;
  transition: box-shadow .4s, background-color .4s;
}
.cbtn--tel { padding: 2.4rem 2.3rem; background: rgba(110, 110, 110, .5); }
.cbtn--tel > img { width: 6rem; height: 6rem; }
.cbtn--form { padding: 4rem 2.4rem; background: var(--yellow); color: var(--dark); }
.cbtn--form > img { width: 5rem; height: 5rem; }
.cbtn__body { display: flex; flex-direction: column; width: 33.8rem; }
.cbtn__label { font-size: 1.6rem; font-weight: 700; line-height: 2.4rem; letter-spacing: .2em; }
.cbtn__num { font-size: 4rem; font-weight: 700; line-height: 6rem; letter-spacing: .1em; white-space: nowrap; }
.cbtn__form { width: 35.1rem; font-size: 3.2rem; font-weight: 700; line-height: 5.44rem; letter-spacing: .11em; white-space: nowrap; }
.cbtn__arrow {
  display: grid; place-items: center; width: 4rem; height: 4rem; border: .2rem solid currentColor; border-radius: 50%;
  font-size: 2.4rem; font-weight: 700; line-height: 1; transition: transform .3s;
}
.cbtn--form .cbtn__arrow { border-color: var(--dark); }
.cbtn:hover .cbtn__arrow { transform: translateX(.6rem); }
.cbtn--tel:hover { box-shadow: 0 0 2.4rem rgba(250, 219, 42, .55); }
.cbtn--form:hover { box-shadow: 0 0 3.2rem rgba(250, 219, 42, .9); }
.marquee--contact { position: absolute; top: 72rem; left: 0; z-index: -1; }

/* ---------- footer ---------- */
.footer { height: 40.6rem; padding: 8rem 10rem 2.4rem; background: var(--dark); color: #fff; }
.footer__glow { position: absolute; left: 7rem; top: 7.5rem; width: 3rem; height: 3rem; border-radius: 50%; background: radial-gradient(closest-side, var(--yellow) 45%, #fff 100%); filter: blur(2.75rem); }
.footer__row { display: flex; gap: 13rem; height: 17.6rem; }
.footer__info { flex: none; display: flex; flex-direction: column; gap: 4rem; }
.footer__brand { display: flex; align-items: center; gap: 2.4rem; }
.footer__logo { flex: none; white-space: nowrap; font-size: 3.6rem; font-weight: 700; line-height: 4.32rem; letter-spacing: .1em; }
.footer__name { display: flex; white-space: nowrap; flex-direction: column; gap: .4rem; font-size: 2rem; font-weight: 700; line-height: 2.4rem; letter-spacing: .1em; }
.footer__tag { font-size: 1.4rem; font-weight: 400; line-height: 1.68rem; letter-spacing: 0; }
.footer__addr { display: flex; flex-direction: column; gap: 2.4rem; font-size: 1.6rem; font-weight: 500; line-height: 2.4rem; letter-spacing: .1em; }
.footer__addr span:last-child { line-height: 1.92rem; }
.footer__nav { display: flex; gap: 8rem; }
.footer__nav ul { display: flex; flex-direction: column; gap: 4rem; }
.footer__nav a { position: relative; display: flex; align-items: center; gap: 1.6rem; font-size: 1.6rem; font-weight: 500; line-height: 1.92rem; letter-spacing: .1em; white-space: nowrap; transition: color .3s; }
.footer__nav a::before { content: ""; flex: none; width: .9rem; height: .9rem; border-radius: 50%; background: radial-gradient(closest-side, var(--yellow) 45%, #fff 100%); filter: blur(.5rem); }
.footer__nav a:hover { color: var(--yellow); }
.footer__copy { margin-top: 8rem; padding-top: 2.4rem; border-top: .1rem solid rgba(255, 255, 255, .5); text-align: center; }
.footer__copy small { font-size: 1.4rem; font-weight: 500; line-height: 2.1rem; letter-spacing: .2em; }

/* =========================================================
   motion (html.js のときだけ初期状態を隠す)
   ========================================================= */
/* FV opening */
.js .band--fv1, .js .band--fv2, .js .js-scrub { -webkit-mask-image: linear-gradient(transparent, transparent); mask-image: linear-gradient(transparent, transparent); }
.js .fv-person { opacity: 0; transform: translateX(4rem); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.js .fv__copy { opacity: 0; transform: translateY(2rem); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.js .header { transform: translateY(-100%); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.is-loaded .fv-person, .is-loaded .fv__copy { opacity: 1; transform: none; }
.is-loaded .header { transform: none; }
.js .fv__copy { transition-delay: .5s; }
.js .header { transition-delay: 1.1s; }

/* 背景トーン (elec-inc WHAT WE DO 踏襲): セクション単位ではなく画面全体の色をまとめて切り替える
   ABOUT 上端が画面の40%で暗転、STRENGTH 上端が40%で白へ (下り .6s / 戻り .3s は JS で指定) */
.tone--screen { display: none; }
.js .tone--screen { display: block; position: fixed; inset: 0; width: auto; height: auto; opacity: 0; transition: opacity .6s cubic-bezier(.25, .46, .45, .94); }
.js .tone--screen.is-dark { opacity: 1; }
.js .tone--1 { display: none; }
/* 白に戻ったあとも見えている BUSINESS 下端の文字は、背景に合わせて濃い色へ */
.business .sec-title, .business__lead .lead-title, .business__lead .body-text { transition: color .6s cubic-bezier(.25, .46, .45, .94); }
.js .business.is-light .sec-title, .js .business.is-light .business__lead .lead-title, .js .business.is-light .business__lead .body-text { color: var(--dark); }

/* 見出しは行ごとにマスクの下からせり上がる、本文は行ごとに浮き上がる (elec-inc 踏襲) */
.ln { display: block; }
.ln--mask { overflow: hidden; }
.ln__in { display: block; }
.js .js-rise .ln--mask .ln__in { transform: translateY(105%); transition: transform .35s ease-in; }
.js .js-rise .ln--fade .ln__in { opacity: 0; transform: translateY(2rem); transition: opacity .3s ease-in, transform .3s ease-in; }
.js .js-rise.is-in .ln--mask .ln__in { transform: none; transition: transform 1.1s cubic-bezier(.165, .84, .44, 1) var(--d, 0s); }
.js .js-rise.is-in .ln--fade .ln__in { opacity: 1; transform: none; transition: opacity .9s ease var(--d, 0s), transform 1.1s cubic-bezier(.165, .84, .44, 1) var(--d, 0s); }

/* ラインに沿って出る写真 */
.js .js-along { opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .6s ease, clip-path .9s cubic-bezier(.6, 0, .2, 1); }
.js .js-along.is-on { opacity: 1; clip-path: inset(0 0 0 0); }

/* 事業サークル: 帯が届いた点から光の輪が両側へ回り込み → アイコン通電 → ラベル */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.biz-item { --from: 60deg; }
.biz-item--right { --from: 325deg; }
.biz-item:nth-child(3) { --from: 35deg; }
.js .biz-circle::before {
  /* 入射点(180deg)を中心に ±--sweep の範囲だけ表示。最後は全周を覆うので継ぎ目が残らない */
  --sweep: 0deg; opacity: 0;
  -webkit-mask-image: conic-gradient(from calc(var(--from) + 180deg), transparent calc(180deg - var(--sweep)), #000 calc(200deg - var(--sweep)), #000 calc(160deg + var(--sweep)), transparent calc(180deg + var(--sweep)));
  mask-image: conic-gradient(from calc(var(--from) + 180deg), transparent calc(180deg - var(--sweep)), #000 calc(200deg - var(--sweep)), #000 calc(160deg + var(--sweep)), transparent calc(180deg + var(--sweep)));
  transition: --sweep .3s ease-in, opacity .3s ease-in;
}
.js .biz-circle img { filter: grayscale(1) brightness(.45); transition: filter .3s ease; }
.js .biz-circle__label { opacity: .25; transition: opacity .3s ease; }
.js .biz-item.is-lit .biz-circle::before { --sweep: 210deg; opacity: 1; transition: --sweep .45s cubic-bezier(.3, .7, .35, 1), opacity .12s linear; }
.js .biz-item.is-lit .biz-circle img { filter: none; animation: bizSurge .55s cubic-bezier(.25, .46, .45, .94) .12s both; }
.js .biz-item.is-lit .biz-circle__label { opacity: 1; transition: opacity .35s ease .25s; }
@keyframes bizSurge {
  0% { filter: grayscale(1) brightness(.45); }
  45% { filter: grayscale(0) brightness(1.45) drop-shadow(0 0 1.2rem rgba(250, 219, 42, .75)); }
  100% { filter: grayscale(0) brightness(1) drop-shadow(0 0 0 rgba(250, 219, 42, 0)); }
}

/* STRENGTH カプセル (elec-inc WHAT WE DO 踏襲): 黄色の楕円 → 中央から黒部分が広がる → 説明文 */
.js .cap { background: var(--yellow); will-change: transform; }
.js .cap.is-open { background: transparent; }
.js .cap__media { clip-path: inset(27% 18.5% round 99rem); will-change: clip-path; }
.js .cap__title, .js .cap__text { opacity: 0; transition: opacity .4s linear; }
.cap.is-active .cap__title, .cap.is-active .cap__text { opacity: 1; }
.js .cap.is-active .cap__text { transition-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  .js .band--fv1, .js .band--fv2, .js .band { -webkit-mask-image: none !important; mask-image: none !important; }
  .js .fv-person, .js .fv__copy, .js .header, .js .js-along, .js .cap, .js .cap__media, .js .cap__title, .js .cap__text { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .js .biz-circle::before { -webkit-mask-image: none; mask-image: none; }
  .js .biz-circle img, .js .biz-circle__label { filter: none; opacity: 1; animation: none !important; transition: none !important; }
  .js .tone--1 { display: block; }
  .js .tone--screen { display: none; }
  .js .cap { background: transparent; }
  .marquee__track { animation: none; }
}
