/* ============================================
   DANC - Stylesheet
   ============================================ */

/* --- Parts --- */
@import url('parts/text-fit.css');
@import url('parts/text-sticker.css');
@import url('parts/image-sticker.css');
@import url('parts/events-section-header.css');
@import url('parts/event-item.css');
@import url('parts/upcoming-events-list.css');
@import url('parts/news-item.css');
@import url('parts/past-event-item.css');
@import url('parts/view-more.css');
@import url('parts/activity-card.css');
@import url('parts/slide-text.css');
@import url('parts/no-results.css');
@import url('parts/guest-list.css');
@import url('parts/pagination.css');
@import url('roll-up-hold.css');
@import url('lenis-smooth-scroll.css');

/* --- Font Face --- */
@font-face {
  font-family: "Geo";
  src: url("../font/Geo/Geo-Thin.woff2") format("woff2");
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Geo";
  src: url("../font/Geo/Geo-XLight.woff2") format("woff2");
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Geo";
  src: url("../font/Geo/Geo-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Geo";
  src: url("../font/Geo/Geo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geo";
  src: url("../font/Geo/Geo-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Geo";
  src: url("../font/Geo/Geo-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Geo";
  src: url("../font/Geo/Geo-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Geo";
  src: url("../font/Geo/Geo-XBlack.woff2") format("woff2");
  font-weight: 950;
  font-display: swap;
}

@font-face {
  font-family: "MONOLITHDVF";
  src: url("../font/Monolith/MONOLITHDVF.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 200%;
  font-display: swap;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #fff;
  --color-black: #000;
  --color-white: #fff;
  --font-en: "Geo", sans-serif;
  --font-ja: "FOT-TsukuGo Pro B", "筑紫ゴシック Pro B", "Hiragino Sans", "ヒラギノ角ゴ ProN", sans-serif;
  --font-en-ja: "Geo", "FOT-TsukuGo Pro B", "筑紫ゴシック Pro B", "Hiragino Sans", "ヒラギノ角ゴ ProN", sans-serif;
  --font-logo: "MONOLITHDVF", "MONOLITH D Extra Extended", "Geo", sans-serif;
  --ffs: "palt" 1, "pkna" 1, "ss01" 1, "ss03" 1;
  --ffs-pwid: "palt" 1, "pkna" 1, "ss01" 1, "ss03" 1, "pwid" 1;
  --padding-x: 36rem;
  --text-fit-size: 25rem;
  --color-cfc: #4771FF;
  --color-iep: #d2fa00;
  --color-pppa: #ff5933;
  --color-pppb: #ff2db6;
  --color-idw: #00e2cb;

  /* JA フォントを 700 で組むことで欧文 Regular 相当の見え方になる、というデザイン基準。
     EN コンテキストではフォント側で重みが切り替わるため html[lang="en"] で normal に上書きする。
     言語に依存しない真の太字（DANC ロゴや管理 UI）は 700 を直書きする。 */
  --font-weight-bold: 700;

  /* FV周りの共通スタイル */
  /* https: //karappo.slack.com/archives/C09SPES3A00/p1776928215543389 */
  --fv-padding-top: 259rem;
  --fv-title-font-size: 30rem;
  --fv-title-margin-bottom: 120rem;
  --fv-logo-margin-bottom: 113rem;
}

/* rem-vw 基準CSS
   PC: 1rem = 100 / 1440 vw
   SP: 1rem = 100 / 375 vw
   SP Switch Width: 700px */
html {
  font-size: clamp(0.694444px, 0.069444vw, 1px);
  scroll-behavior: smooth;
  scroll-padding-top: 84rem;
}

body {
  font-size: 16rem;
  background-color: var(--color-bg);
  color: var(--color-black);
  font-family: "Geo", "FOT-TsukuGo Pro B", "筑紫ゴシック Pro B", "Hiragino Sans", "ヒラギノ角ゴ ProN", sans-serif;
  font-feature-settings: var(--ffs);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

html[lang="ja"] .font-ja {
  font-family: var(--font-ja);
}

/* EN context では .font-ja の JA 用 letter-spacing / line-height を強制リセット。
   component 側で深くネストされた JA スペック (.archive-classes .course .desc 等) に
   詳細度負けしないよう !important で押し切る。 */
html[lang="en"] .font-ja {
  letter-spacing: 0 !important;
  line-height: 1.8 !important;
}

/* EN コンテキストでは JA フォントを Geo に置き換える（var(--font-ja) 直書き要素を一括 Geo 化）。
   合わせて JA 用 bold（700）も normal に解除する（--font-weight-bold 経由の要素に一括適用）。 */
html[lang="en"] {
  --font-ja: var(--font-en);
  --font-en-ja: var(--font-en);
  --font-weight-bold: normal;
}

/* --- Page Intro (Classes / Members / Contact 共通) --- */
.page-intro {
  font-size: 18rem;
  letter-spacing: 0.9rem;
  line-height: 2;
}

html[lang="en"] .page-intro {
  letter-spacing: 0;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .page-intro {
    font-size: 14rem;
    letter-spacing: normal;
    line-height: 2;
  }
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 94rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--padding-x);
  background-color: transparent;
  transition: color 0.3s;

  a {
    transition: color 0.3s, opacity 0.2s;
  }

  .header-logo {
    font-family: var(--font-en);
    font-size: 24rem;
    text-decoration: none;
    line-height: normal;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 30rem;
    margin-right: 4rem;
  }

  .header-nav {
    display: block;
  }

  .header-nav-list {
    display: flex;
    gap: 29rem;

    a {
      font-family: var(--font-en);
      font-size: 27rem;
      text-decoration: none;
      line-height: normal;
      cursor: pointer;
    }
  }

  .header-lang {
    position: relative;
    font-family: var(--font-en);
    font-size: 27rem;
    line-height: normal;
  }

  .header-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 6rem;
    cursor: default;

    /* fv-intro.js でラップされた時は inner 側にも flex を持たせて gap を維持
       （outer は inline-flex のまま — display を変えるとベースラインがずれて位置がずれる） */
    &.fx-intro-line .fx-intro-line-inner {
      display: inline-flex;
      align-items: center;
      gap: 6rem;
    }
  }

  .header-lang-arrow {
    width: 9rem;
    height: 8rem;
    flex-shrink: 0;
    transform: translateY(-5rem);

    path {
      stroke: currentColor;
    }
  }

  .header-lang-other {
    position: absolute;
    top: calc(100% - 4rem);
    left: 0;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .header-lang:hover .header-lang-other,
  .header-lang:focus-within .header-lang-other {
    opacity: 1;
    pointer-events: auto;
  }

  /* FV イントロアニメーション中は hover を無効化 */
  .header-lang:has(.header-lang-current.is-intro-pre) {
    pointer-events: none;
  }


  /* 暗い背景時: テキストを白に */
  &.header--light {
    color: var(--color-white);

    a {
      color: var(--color-white);
    }

    .header-hamburger {
      color: var(--color-white);

      &.is-open {
        color: var(--color-black);
      }
    }
  }

  .header-hamburger {
    display: none;
  }
}

/* --- SP Menu (PC: hidden) --- */
.sp-menu {
  display: none;
}

/* --- Pill (tag / badge / filter button) ---
   元々上下非対称だった値（目視調整時の参考用）:
     PC font-size 15rem:
       .news-fv-category        8rem 18rem 10rem
       .article-classes-pill    8rem 18rem 10rem (line-height: 1.81)
       .hero-bar-pill           8rem 18rem 10rem (line-height: 1.81)
     SP font-size 12rem:
       .news-fv-category        3rem 10rem 7rem
       .past-event-category     4rem 9rem 6rem
       .article-classes-pill    7rem 10rem 8rem
       .hero-bar-pill           7rem 10rem 8rem */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-black);
  border-radius: 100rem;
  line-height: 1;
  padding: 7rem 1em;
  white-space: nowrap;
}

.pill.is-active,
.pill.is-public {
  background-color: var(--color-black);
  color: #fff;
}

/* --- Section Heading --- */
.section-heading {
  font-family: var(--font-en);
  font-size: 32rem;
  font-weight: 400;
  line-height: normal;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-white);
  border-top: 1px solid #EBEBEB;
  padding: 0 var(--padding-x);
  margin-top: 240rem;
  --gap: 51rem;

  .footer-top {
    display: flex;
    align-items: baseline;
    padding: 150rem 0 0;

    .footer-brand {
      font-family: var(--font-en);
      font-size: 19rem;
      line-height: normal;
      width: calc(50% - 30rem);
      flex-shrink: 0;
    }

    .footer-slogan {
      font-family: var(--font-en);
      font-size: 19rem;
      line-height: normal;
      margin-left: var(--gap);
    }
  }

  .footer-main {
    display: grid;
    grid-template-columns: calc(50% - 30rem) 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--gap);
    row-gap: 80rem;
    padding: 67rem 0 22rem;
  }

  .footer-left {
    grid-row: span 2;
    display: grid;
    grid-template-rows: subgrid;
  }

  .footer-left-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .footer-tagline {
    font-family: var(--font-en);
    font-size: 15rem;
    line-height: 1.4;
    color: #404040;
  }

  .footer-copyright {
    font-family: var(--font-en);
    font-size: 13rem;
    line-height: 1.4;
    color: #404040;
    margin-bottom: 5rem;
  }

  .footer-right {
    grid-row: span 2;
    display: grid;
    grid-template-rows: subgrid;
  }

  .footer-right-top {
    display: flex;
    flex-direction: column;
  }

  .footer-nav {
    display: flex;
    gap: 40rem;
  }

  .footer-nav-col {
    flex: 0 0 195rem;
    display: flex;
    flex-direction: column;
    gap: 0;

    li {
      height: 67rem;
    }

    a {
      font-family: var(--font-en);
      font-size: 34rem;
      line-height: 2;
      text-decoration: none;
      transition: opacity 0.2s;

      &:hover {
        opacity: 0.6;
      }
    }
  }

  .footer-social {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 64rem;

    a {
      font-family: var(--font-en);
      font-size: 21rem;
      line-height: 1.8;
      text-decoration: none;
      transition: opacity 0.2s;

      &:hover {
        opacity: 0.6;
      }
    }
  }

  .footer-info {
    display: flex;
    flex-direction: column;
  }

  .footer-logos {
    margin-top: 6rem;
    display: flex;
    align-items: center;
    gap: 51rem;
  }

  .footer-logo--arts {
    width: 100.81rem;
    height: auto;
  }

  .footer-logo--kyushu {
    width: 316.8rem;
    height: auto;
  }

  .footer-program {
    font-size: 14rem;
    letter-spacing: 0.84rem;
    line-height: 1.7;
    margin-top: 42rem;
  }

  .footer-org {
    font-size: 14rem;
    letter-spacing: 0.84rem;
    line-height: 1.7;
    margin-top: 35rem;
  }
}

html[lang="en"] .footer-info .footer-program,
html[lang="en"] .footer-info .footer-org {
  letter-spacing: 0;
}

/* ============================================
   Responsive - SP
   ============================================ */
@media (max-width: 700px) {
  html {
    font-size: min(0.266667vw, 1.226667px);
    overflow-x: clip;
  }

  body {
    overflow-x: clip;
  }

  :root {
    --padding-x: 24rem;
    --text-fit-size: 10rem;

    /* FV周りの共通スタイル */
    --fv-padding-top: 172rem;
    --fv-title-font-size: 24rem;
    --fv-title-margin-bottom: 51rem;
    --fv-logo-margin-bottom: 55rem;
  }

  /* Header */
  .header {
    height: 67rem;

    .header-right {
      .header-nav {
        display: none;
      }
      .header-lang {
        display: none;
      }
    }

    .header-hamburger {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-end;
      gap: 8px;
      width: 52rem;
      min-height: 44px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      color: inherit;

      .header-hamburger-line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: currentColor;
        transition: transform 0.3s ease;
      }

      &.is-open .header-hamburger-line:first-child {
        transform: translateY(5px) rotate(45deg);
      }

      &.is-open .header-hamburger-line:last-child {
        transform: translateY(-5px) rotate(-45deg);
      }
    }
  }

  /* SP Menu */
  .sp-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    z-index: 99;
    padding: 67rem var(--padding-x) var(--padding-x);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;

    &.is-open {
      opacity: 1;
      visibility: visible;
    }
  }

  .sp-menu-nav {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .sp-menu-nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24rem;
    column-gap: 40rem;
    width: 100%;

    a {
      font-family: var(--font-en);
      font-size: 23rem;
      text-decoration: none;
      line-height: normal;
    }
  }

  .sp-menu-social {
    display: flex;
    flex-direction: column;
    gap: 20rem;

    a {
      font-family: var(--font-en);
      font-size: 16rem;
      text-decoration: none;
      line-height: normal;
    }
  }

  html.is-menu-open,
  html.is-menu-open body {
    overflow: hidden;
  }

  html.is-menu-open .header {
    color: var(--color-black);
    background-color: var(--color-white);

    a {
      color: var(--color-black);
    }
  }

  /* Section Heading */
  .section-heading {
    font-size: 22rem;
  }

  /* Footer */
  .footer {
    --col-width: 124rem;
    --sp-column-gap: 40rem;
    .footer-top {
      padding-top: 54rem;
      gap: var(--sp-column-gap);

      .footer-brand {
        font-size: 20rem;
        width: auto;
        flex-shrink: 1;
        flex: 0 0 var(--col-width);
      }

      .footer-slogan {
        font-size: 15rem;
        margin-left: 0;
        flex: 0 0 var(--col-width);
      }
    }

    .footer-main {
      display: grid;
      grid-template-columns: 1fr;
      padding: 0 0 24rem;
      row-gap: 0;
    }

    .footer-left,
    .footer-right,
    .footer-left-bottom,
    .footer-right-top {
      display: contents;
    }

    .footer-left-top {
      display: none;
    }

    .footer-tagline {
      grid-row: 1;
      font-size: 10rem;
      margin-top: 24rem;
    }

    .footer-copyright {
      grid-row: 5;
      font-size: 10rem;
      opacity: 0.4;
      margin-top: 80rem;
      white-space: nowrap;
      margin-bottom: 0;
    }

    .footer-copyright-br {
      display: none;
    }

    .footer-nav {
      grid-row: 2;
      column-gap: var(--sp-column-gap);
      margin-top: 78rem;
    }

    .footer-nav-col {
      gap: 7rem;
      flex-basis: var(--col-width);

      li {
        height: auto;
      }

      a {
        font-size: 23rem;
        line-height: normal;
      }
    }

    .footer-social {
      grid-row: 3;
      margin-top: 56rem;
      gap: 9rem;

      a {
        font-size: 16rem;
        line-height: normal;
      }
    }

    .footer-info {
      grid-row: 4;
      margin-top: 85rem;
    }

    .footer-logos {
      margin-top: 0;
      gap: 16rem;
    }

    .footer-logo--kyushu {
      width: 173rem;
    }

    .footer-logo--arts {
      width: 55rem;
    }

    .footer-program,
    .footer-org {
      font-size: 10rem;
      letter-spacing: 0.6rem;
      opacity: 0.4;
    }

    .footer-program {
      margin-top: 29rem;
      > p {
        display: inline;
      }
    }

    .footer-org {
      margin-top: 14rem;
    }
  }
}

/* --- 2-Column Grid --- */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--padding-x);
}

@media (max-width: 700px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

/* --- Weglot 純正の言語スイッチャーを非表示（独自スイッチャーを使用） --- */
.country-selector {
  display: none !important;
}

/* [data-wg-notranslate] {
  color: red !important;
} */
