/*
 * Next ITM 共通スタイルシート（全ページで読み込み）
 * フロントページ専用は front_page.css、固定ページ・投稿ページ専用は page.css を参照
 * Base
 * Common
 * Header
 * Footer
 */
:root {
  --black: #000;
  --font_en: "Avenir", "Lato", "Noto Sans JP", sans-serif;
  --font_main: "Noto Sans JP", sans-serif;;
  --font_sub: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font_size-xs: 0.75rem;   /* 12px */
  --font_size-sm: 0.875rem;  /* 14px */
  --font_size-md: 1.125rem;  /* 18px */
  --font_size-lg: 1.25rem;   /* 20px */
  --font_size-xl: 1.5rem;    /* 24px */
  --font_size-2xl: 1.625rem;  /* 26px */
  --font_size-3xl: 2.25rem;  /* 36px */
  --font_size-4xl: 2.5rem ;  /* 40px */
  /* 1.75rem 28px */
  /* 1.875rem 30px */
  /* 2.8125rem 45px */
  /* 4.375rem 70px */
  /* 5rem 80px */
}

@media (max-width: 767px) {
  :root {
    --font_size-lg: 1rem;
    --font_size-xl: 1.125rem;
    --font_size-2xl: 1.5rem;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

/* 別ページからのハッシュリンク遷移時の初期ジャンプはスムーススクロールさせない。
   ページ読み込み完了後に main.js が is-smooth-scroll を付与し、
   以降のページ内リンククリックのみスムーススクロールにする。 */
html.is-smooth-scroll {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Loading Screen
   読み込み完了（load イベント）まで .loading_screen でコンテンツを覆い、
   html から is-loading が外れたらフェードアウトする。
   ========================================================================== */
html.is-loading body {
  overflow: hidden;
}

.loading_screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

html:not(.is-loading) .loading_screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading_screen_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading_screen_logo {
  width: 120px;
  animation: loadingPulse 1.6s ease-in-out infinite;
}

.loading_screen_bar {
  position: relative;
  display: block;
  width: 160px;
  height: 2px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.2);
}

.loading_screen_bar_fill {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background-color: #fff;
  animation: loadingBar 1.4s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.94);
  }
}

@keyframes loadingBar {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading_screen_logo,
  .loading_screen_bar_fill {
    animation: none;
  }
}

body {
  background-color: #000;
  color: var(--black);
  font-family: var(--font_main);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  line-height: 2.2;
  min-height: 100vh;
  margin: 0;
}

@media (max-width: 767px) {
  body {
    font-size: 0.75rem;
    line-height: 2;
  }
}

h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}
h1, h2, h3, h4, p {
  margin-block-start: 0;
}

h1, h2, h3, h4 {
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

iframe, video {
  max-width: 100%;
}

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

ul[role=list],
ol[role=list] {
  margin: 0;
  padding: 0;
  list-style: none;
}

input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

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

.font_en {
  font-family: var(--font_en);
}

/* ==========================================================================
   Common
   ========================================================================== */

.c-inner {
  width: min(82%, 1200px);
  margin-inline: auto;
  &.lg {
    width: min(82%, 1400px);
  }
}

/*
 * 黒背景 / 白背景それぞれに重ねるノイズフィルター
 * Photoshop: 描画モード「輝度」・不透明度90%
 */
.c-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-repeat: repeat;
  mix-blend-mode: luminosity;
  opacity: 0.9;
  pointer-events: none;
}

.c-noise--black {
  background-image: url("../img/noise_black.png");
}

.c-noise--white {
  background-image: url("../img/noise_white.png");
  z-index: -1;
}

/*
  スクリーンリーダー用
 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
  ボタンスタイル
 */
.c-btn {
  border: 1px solid #fff;
  border-radius: 999px;
  color: #000;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: 0.1em;
  overflow: hidden;
  width: 200px;
  height: 60px;
  padding-inline: 20px;
  position: relative;
  transition: color 0.4s ease;
}

@media (max-width: 767px) {
  .c-btn {
    font-size: 0.875rem;
    width: 180px;
    height: 50px;
  }
}

.c-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #fff;
  transform: scaleX(1);
  transform-origin: 100% 50%;
  transition: transform 0.4s ease;
}

.c-btn_text {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.c-btn_icon {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
}

.c-btn_dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  background-color: #000;
  border-radius: 50%;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.c-btn_arrow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: auto;
  opacity: 0;
  transform: translateY(-50%) translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.c-btn:hover {
  color: #fff;
}

.c-btn:hover::before {
  transform: scaleX(0);
}

.c-btn:hover .c-btn_dot {
  opacity: 0;
  transform: translateX(8px);
}

.c-btn:hover .c-btn_arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.c-btn--dark {
  border-color: #000;
  color: #fff;
}

.c-btn--dark::before {
  background-color: #000;
}

.c-btn--dark .c-btn_dot {
  background-color: #fff;
}

.c-btn--dark:hover {
  color: #000;
}

/*
   Common background movie
 */
.common_bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.common_bg_movie {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/*
   Common Section heading
 */
.c-heading {
  margin: 0;
  font-family: var(--font_en);
  font-size: clamp(1.8rem, 4vw, 2.625rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-heading.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .c-heading {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.c-heading_sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font_sub);
  font-size: var(--font_size-md);
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .c-heading_sub {
    font-size: 1rem;
  }
}

/*
   画像カーソル
 */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100px;
  height: 100px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.custom-cursor.is-active {
  opacity: 1;
}


/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
}

.header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 32px;
}

.header .logo {
  margin: 0;
  line-height: 0;
}

.header .logo img {
  width: 146px;
  transition: filter 0.3s ease;
}

/*
  ロゴ・ハンバーガーの配色切り替え
  背後のセクションが明るい背景（[data-header-theme="light"]）に重なった時、
  JS（main.js）が .header に .is-light を付与する。
 */
.header.is-light .logo img {
  filter: brightness(0);
}

.header.is-light .menu_toggle_line {
  background-color: #000;
}

.header.is-nav-open .logo img {
  filter: none;
}

.header.is-nav-open .menu_toggle_line {
  background-color: #fff;
}

.menu_toggle {
  position: relative;
  width: 30px;
  height: 18px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 100;
}

.menu_toggle_line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #fff;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu_toggle_line:nth-child(1) {
  top: 0;
}
.menu_toggle_line:nth-child(2) {
  bottom: 8px;
}

.menu_toggle.is-active .menu_toggle_line:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
}
.menu_toggle.is-active .menu_toggle_line:nth-child(2) {
  bottom: 50%;
  transform: rotate(-45deg);
}

.main_navigation {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: rgba(0, 0, 0, 0.95);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  overflow-y: scroll;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.main_navigation.is-active {
  opacity: 1;
  visibility: visible;
}

.main_navigation_list {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90%, 500px);
  transform: translateY(-50%);
}

.main_navigation_item {
  border-bottom: 1px solid #2e2e2e;
  max-width: 500px;
}

.main_navigation_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 30px;
  color: #fff;
}

.main_navigation_link_text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s ease;
}

.main_navigation_link_en {
  font-family: var(--font_en);
  font-size: clamp(1.5rem, 1.87vw, 1.875rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.main_navigation_link_ja {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.main_navigation_link_icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.main_navigation_link_dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 1;
  transform: translate(0, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.main_navigation_link_arrow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: auto;
  opacity: 0;
  transform: translate(-8px, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.main_navigation_link:hover .main_navigation_link_dot {
  opacity: 0;
  transform: translate(8px, -50%);
}

.main_navigation_link:hover .main_navigation_link_arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

.main_navigation_link:hover .main_navigation_link_text {
  transform: translateX(20px);
}

@media (max-width: 767px) {
  .header .logo img {
    width: 120px;
  }
  .menu_toggle {
    width: 25px;
    height: 16px;
  }
  .main_navigation_list {
    left: 50%;
    width: min(72%, 500px);
    transform: translate(-50%, 0%);
    top: 90px;
  }

  .main_navigation_link {
    padding-block: 24px;
  }

  .main_navigation_link_ja {
    font-size: var(--font_size-sm);
    line-height: 1.2;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  color: #fff;
  overflow: hidden;
  padding-bottom: 100px;
  position: relative;
  z-index: 1;
}

.footer_contact_wrap {
  border-bottom: 1px solid #2e2e2e;
}

.footer_contact_inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px 110px;
  padding-block: 100px;
}

.footer_contact_heading {
  font-family: var(--font_en);
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: 0;
}

.footer_main {
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.footer_brand {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 90px;
}

.footer_nav_list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 40px;
}

.footer_nav_label {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.footer_nav_sublist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer_nav_sublist a {
  opacity: 0.5;
}

.footer_links {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 16px;
  width: 100%;
  max-width: 280px;
  margin-left: auto;
}

.footer_links_label {
  display: block;
  margin-bottom: 0;
  font-family: var(--font_en);
  font-size: var(--font_size-xs);
  letter-spacing: 0.1em;
}

.footer_links_card {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  aspect-ratio: 280 / 100;
  padding-inline: 16px;
  overflow: hidden;
  border-radius: 6px;
}

.footer_links_card_bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer_links_card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.35);
}

.footer_links_text {
  position: relative;
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.5;
}

.footer_links_text .en {
  font-family: var(--font_en);
  font-size: var(--font_size-lg);
}

.footer_links_icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.footer_links_dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 1;
  transform: translate(0, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer_links_arrow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: auto;
  opacity: 0;
  transform: translate(-8px, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer_links_card:hover .footer_links_dot {
  opacity: 0;
  transform: translate(8px, -50%);
}

.footer_links_card:hover .footer_links_arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

.footer_branding {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 20px 72px;
  margin-block: 86px 72px;
}

.footer_branding_catch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font_en);
  font-size: clamp(3.8rem, 8.25vw, 8.25rem);
  font-weight: 700;
  line-height: 0.6;
  letter-spacing: 4px;
}

.footer_branding_row-1 {
  display: block;
}

.footer_branding_with {
  display: inline-block;
  width: 1.86em;
  margin-left: -0.2em;
}
.footer_branding_with img {
  max-width: inherit;
  width: 2.4em;
  position: relative;
  right: -0.2em;
  top: -0.1em;
}

.footer_branding_row-2 {
  position: relative;
  top: -0.24em;
}

/* ALWAYS（右から）/ with（上から）/ YOU（左から）をふんわり表示する（TOP FVと同様） */
.footer_branding_row-1,
.footer_branding_with,
.footer_branding_row-2 {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer_branding_row-1 {
  transform: translateX(40px);
}
.footer_branding_with {
  transform: translateY(-30px);
  transition-delay: 0.15s;
}
.footer_branding_row-2 {
  transform: translateX(-40px);
  transition-delay: 0.3s;
}

.footer_branding.is-inview .footer_branding_row-1,
.footer_branding.is-inview .footer_branding_with,
.footer_branding.is-inview .footer_branding_row-2 {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .footer_branding_row-1,
  .footer_branding_with,
  .footer_branding_row-2 {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.footer_branding_sub {
  flex-shrink: 0;
  margin: 0;
  font-family: var(--font_sub);
  font-size: var(--font_size-2xl);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.1em;
  position: relative;
}

@media (min-width: 768px) {
  .footer_branding_sub {
    top: -1.1vw;
  }
}

.copyright small {
  font-family: var(--font_en);
  font-size: var(--font_size-xs);
  letter-spacing: 0.1em;
}

@media (max-width: 767px) {
  .footer {
    padding-bottom: 80px;
  }

  .footer_contact_inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-block: 60px;
  }

  .footer_contact_heading {
    font-size: 1.25rem;
  }

  .footer_main {
    padding-bottom: 64px;
  }

  .footer_brand {
    gap: 40px;
  }

  .footer_logo img {
    width: 140px;
  }

  .footer_nav_label {
    font-size: var(--font_size-sm);
  }

  .footer_links {
    margin: 0;
    width: 76%;
  }

  .footer_links_text {
    font-size: max(0.9rem, 2.4vw);
  }
  .footer_links_text .en {
    font-size: max(0.875rem, 2.13vw);
  }

  .footer_branding {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
    margin-block: 62px 72px;
  }

  .footer_branding_sub {
    font-size: 1.25rem;
  }
}

