@charset "UTF-8";
/* ============================================================
   株式会社昭光電業社 サイト共通スタイル
   - リセット / CSS変数 / 共通ヘッダー / 共通フッター
   - 全ページで読み込まれる（functions.php: mytheme_enqueue_assets）
   フォント:
   - 欧文: Aktiv Grotesk（Adobe Fonts。未読込時はHelvetica系にフォールバック）
   - 和文: Noto Sans JP (Google Fonts)
   ============================================================ */
:root {
  --white: #fff;
  --black: #000;
  --ink: #1e1e1e;
  --gray: #939393;
  --overlay: rgba(35, 24, 21, 0.8);
  --font-en: "aktiv-grotesk", "Aktiv Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
}

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

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

ul,
ol {
  list-style: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

.pc {
  display: block;
}

@media (max-width: 768px) {
  .pc {
    display: none;
  }
}
.sp {
  display: none;
}

@media (max-width: 768px) {
  .sp {
    display: block;
  }
}
/* ============ HEADER ============ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: 6.25rem;
  color: var(--white); /* ロゴマーク(currentColor)の基準色 */
}

.site-header__brand {
  position: absolute;
  left: 2.5rem;
  top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5625rem;
}

.site-header__mark {
  width: 4.375rem;
  height: 3.875rem;
  color: inherit;
  display: block;
}

/* インラインSVGロゴを親のcolorで着色（ページごとに白/黒を切替） */
.site-header__mark path {
  fill: currentColor;
}

.site-header__logo {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 3.925rem;
  letter-spacing: 0.3997em;
  line-height: 1;
  color: var(--white);
}

.site-header__menu {
  position: absolute;
  top: 1.25rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  z-index: 10;
  width: 3.125rem;
  height: 3.125rem;
  border: none;
  outline: none;
}

.site-header__menu.active .site-header__bars span:nth-child(1) {
  top: 0;
  left: 0;
  transform: rotate(-45deg);
}

.site-header__menu.active .site-header__bars span:nth-child(2) {
  opacity: 0;
}

.site-header__menu.active .site-header__bars span:nth-child(3) {
  top: 0;
  left: 0;
  transform: rotate(45deg);
}

.site-header__bars {
  position: relative;
  width: 3.125rem;
  display: block;
}

.site-header__bars span {
  display: block;
  position: absolute;
  width: 3.125rem;
  height: 0.125rem;
  background: var(--black);
  transition: 0.3s ease-in-out;
}

.site-header__bars span:nth-child(1) {
  top: -0.5rem;
}

.site-header__bars span:nth-child(2) {
  top: 0;
}

.site-header__bars span:nth-child(3) {
  top: 0.5rem;
}

/* ---- 追従ヘッダー（スクロール700px超でフェードイン） ---- */
.site-header.is-fixed {
  position: fixed;
  top: 0;
  /* ロゴマーク(currentColor)を黒に */
  animation: siteHeaderFadeIn 0.4s ease both;
}

/* ---- 追従ヘッダーの配色 ----
   背景の明暗に応じて common.js が .is-dark / .is-light を付与する。
   セクション側に data-header-theme="dark" / "light" を書いておくこと。
   dark（暗い背景）→ ロゴ・ハンバーガーを白 / light（明るい背景）→ 黒。
   __mark はインラインSVG（fill: currentColor）なので color で切替わる。
   ページ側SCSSの .site-header__mark { color: ... } に負けないよう明示的に指定する。 */
.site-header__logo,
.site-header__mark,
.site-header__bars span {
  transition: color 0.3s ease, background-color 0.3s ease, fill 0.3s ease;
}

.site-header.is-dark,
.site-header.is-dark .site-header__logo,
.site-header.is-dark .site-header__mark {
  color: var(--white);
}

.site-header.is-dark .site-header__bars span {
  background: var(--white);
}

.site-header.is-light,
.site-header.is-light .site-header__logo,
.site-header.is-light .site-header__mark {
  color: var(--ink);
}

.site-header.is-light .site-header__bars span {
  background: var(--ink);
}

/* ドロワーを開いている間は背景が白系パネル（.drawer）になるため、
   セクションの明暗に関係なくヘッダーまわりを黒で固定する。
   .is-dark / .is-light と同詳細度なので、必ずこの後ろに書くこと。 */
.site-header.is-menu-open,
.site-header.is-menu-open .site-header__logo,
.site-header.is-menu-open .site-header__mark {
  color: var(--ink);
}

.site-header.is-menu-open .site-header__bars span {
  background: var(--ink);
}

@keyframes siteHeaderFadeIn {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1500px) {
  .site-header__brand {
    left: 1.25rem;
  }
  .site-header__menu {
    right: 1.25rem;
  }
}
@media (max-width: 767px) {
  .site-header {
    height: 3.75rem;
    top: 0;
    right: 0;
  }
  .site-header__brand {
    gap: 0.75rem;
    left: 1.25rem;
    top: 1.25rem;
  }
  .site-header__mark {
    width: 2rem;
    height: 1.75rem;
  }
  .site-header__logo {
    font-size: 1.75rem;
    letter-spacing: 0.4em;
  }
  .site-header__menu {
    top: 0.5rem;
    right: 1.25rem;
    width: 3.125rem;
    height: 3.125rem;
  }
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 8;
  width: 100%;
  min-height: 16.375rem;
  overflow-y: auto;
  transform: translateY(-101%);
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(0.78125rem);
  backdrop-filter: blur(0.78125rem);
  isolation: isolate;
  contain: paint;
}

.drawer.active {
  transform: translateY(0);
}

.drawer__nav {
  position: relative;
  padding: 7.5rem 2.5rem;
}

.drawer__nav ul {
  display: flex;
  justify-content: center;
  gap: 5rem;
}

.drawer__nav ul li a {
  font-weight: 700;
  font-size: 1.5625rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: #1E1E1E;
  position: relative;
}

.drawer__nav ul li a::before {
  content: "";
  width: 0;
  height: 0.0625rem;
  background-color: var(--black);
  position: absolute;
  bottom: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.drawer__nav ul li a:hover::before {
  width: 2.5rem;
}

@media (max-width: 1240px) {
  .drawer__nav ul {
    gap: 2.5rem;
  }
}
@media (max-width: 767px) {
  .drawer {
    height: 100dvh;
  }
  .drawer__nav {
    position: relative;
    padding: 9.25rem 2.5rem;
  }
  .drawer__nav ul {
    flex-direction: column;
    align-items: center;
    gap: 3.375rem;
  }
  .drawer__nav ul li a {
    font-weight: 400;
    font-size: 1rem;
  }
}
/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  min-height: 5.5625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.site-footer__inner {
  max-width: 77.5rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-footer__nav {
  display: flex;
  gap: 2.625rem;
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.site-footer__copy {
  position: absolute;
  right: 5rem;
  font-family: var(--font-en);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* PC中間幅（768〜1500px）での崩れ防止 */
@media (min-width: 768px) and (max-width: 1500px) {
  .site-footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.25rem 1.25rem;
  }
  .site-footer__nav {
    position: static;
    justify-content: center;
  }
  .site-footer__copy {
    position: static;
    width: 100%;
    text-align: right;
  }
}
@media (max-width: 767px) {
  /* ---- FOOTER ---- */
  .site-footer {
    height: auto;
    flex-direction: column;
    padding: 2.875rem 1.25rem 1.625rem;
    gap: 2.5rem;
  }
  .site-footer__nav {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.375rem 3.125rem;
    max-width: 17.5rem;
    margin: auto;
  }
  .site-footer__copy {
    position: static;
    align-self: flex-end;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-align: center;
  }
}
.fixed__bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.fixed__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleY(-1);
}

.fixed__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/*# sourceMappingURL=common.css.map */
