/* =========================================
   基本設定
========================================= */

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

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;

  background-color: #EEEEEC !important;

  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  position: relative;
}


/* =========================================
   背景の図形
========================================= */

.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.85;
}

.shape {
  position: absolute;
}


/* 三角形 */

.s1 {
  top: 5%;
  left: -50px;
  width: 0;
  height: 0;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 170px solid #c85c72;
  transform: rotate(-25deg);
}

.s2 {
  top: 25%;
  left: -35px;
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 130px solid #8060a8;
  transform: rotate(20deg);
}

.s3 {
  bottom: 5%;
  left: -30px;
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 180px solid #d1a92f;
  transform: rotate(12deg);
}

.s4 {
  bottom: 28%;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 120px solid #3f9da9;
  transform: rotate(-15deg);
}

.s5 {
  top: 12%;
  right: -80px;
  width: 0;
  height: 0;
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  border-bottom: 260px solid #4f9fa5;
  transform: rotate(30deg);
}

.s6 {
  bottom: -40px;
  right: -30px;
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 190px solid #c85c72;
  transform: rotate(-15deg);
}

.s7 {
  top: 8%;
  right: 40px;
  width: 0;
  height: 0;
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  border-bottom: 100px solid #8060a8;
  transform: rotate(35deg);
}

.s8 {
  bottom: 20%;
  right: 40px;
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 130px solid #d1a92f;
  transform: rotate(-20deg);
}


/* 四角形 */

.bg-shapes::before,
.bg-shapes::after {
  content: "";
  position: absolute;
  display: block;
}

.bg-shapes::before {
  width: 85px;
  height: 150px;
  left: 7%;
  top: 45%;
  background: #9b668f;
  transform: rotate(28deg);
}

.bg-shapes::after {
  width: 110px;
  height: 70px;
  right: 4%;
  top: 55%;
  background: #4b8f9b;
  transform: rotate(-20deg);
}

.s9 {
  top: 38%;
  left: 12%;
  width: 90px;
  height: 55px;
  background: #b85d72;
  transform: rotate(-18deg);
}

.s10 {
  top: 70%;
  left: 18%;
  width: 65px;
  height: 100px;
  background: #66558f;
  transform: rotate(25deg);
}

.s11 {
  top: 32%;
  right: 15%;
  width: 75px;
  height: 75px;
  background: #c49b35;
  transform: rotate(18deg);
}

.s12 {
  bottom: 10%;
  right: 20%;
  width: 100px;
  height: 55px;
  background: #438f98;
  transform: rotate(-30deg);
}


/* =========================================
   ローディング
========================================= */

#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 99999;

  transition: opacity 0.5s ease;
}

.loader-text {
  font-size: 28px;
  color: #ff4d6d;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}


/* =========================================
   ヘッダー
========================================= */

#header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  margin: 0;
  padding: 0;

  z-index: 10000;
}

#header header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;

  padding: 6px 16px;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);

  z-index: 10001;
}

header h1 {
  font-size: 14px;
  color: #ff4d6d;
  white-space: nowrap;
}


/* ヘッダー内部 */

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  padding: 0 12px;
}


/* =========================================
   ハンバーガーメニュー
========================================= */

.menu-btn {
  width: 24px;
  height: 16px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  margin-right: 5px;

  cursor: pointer;
}

.menu-btn span {
  display: block;

  width: 100%;
  height: 2px;

  background: #ff4d6d;
}


/* =========================================
   ナビゲーション
========================================= */

.nav {
  display: none;

  position: absolute;

  top: 60px;
  right: 10px;

  background: #fff;

  flex-direction: column;

  width: 220px;

  padding: 10px;

  border-radius: 12px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.nav.active {
  display: flex;
}

.nav a {
  display: block;

  padding: 12px 14px;
  margin: 5px 0;

  background: #fff;

  color: #000;
  text-decoration: none;
  font-weight: bold;

  border-radius: 10px;
  border: 1px solid #ddd;

  transition: 0.2s;
}

.nav a:hover {
  background: #f5f5f5;
}

.nav a:active {
  background: #eee;
  transform: scale(0.98);
}


/* 上部ナビ */

.top-nav {
  display: flex;
  gap: 25px;
}

.top-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-decoration: none;
  color: #333;

  font-size: 13px;
  font-weight: bold;

  transition: 0.2s;
}

.top-nav .en {
  font-size: 13px;
  letter-spacing: 1px;
}

.top-nav .jp {
  font-size: 10px;
  opacity: 0.7;
}

.top-nav a:hover {
  color: #ff4d6d;
}

.top-nav a.active {
  color: #ff4d6d;
}

.top-nav a.active::before {
  content: "▶";
  font-size: 10px;
  margin-bottom: 2px;
}


/* =========================================
   ヒーロー
========================================= */

/*
  ヘッダーの実際の高さをJSから取得。
  JSがまだ実行されていない場合は80px。
*/

:root {
  --header-height: 80px;
}

.hero {
  position: relative;

  width: 100%;
  max-width: 100%;

  /*
    固定ヘッダーと重ならないようにする。
    80px固定ではなく、実際のヘッダー高さを使用。
  */
  margin-top: var(--header-height);

  padding: 0;

  overflow: hidden;

  line-height: 0;

  text-align: center;
}


/* 背景画像 */

.hero > img.hero-bg {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  margin: 0;
  padding: 0;
}


/*
  前面画像

  ここでは absolute + top:50% を使わない。
  画像自身の高さを基準にすることで、
  後から画像が上下に動くのを防ぐ。
*/

.hero > img.hero-front {
  position: relative;

  display: block;

  width: 100%;
  height: auto;

  max-width: 100%;

  margin: 0;
  padding: 0;

  transform: none;

  object-fit: initial;

  z-index: 100;

  pointer-events: none;
}


/* =========================================
   ヒーロータイトル
========================================= */

.hero-title-wrap {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  z-index: 150;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  max-width: 100%;

  padding: 0 20px;

  text-align: center;

  line-height: normal;
}

.hero h1 {
  font-size: clamp(20px, 10vw, 80px);

  line-height: 1.1;

  letter-spacing: 0;

  margin: 0;

  color: #ff4d6d;

  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

  white-space: normal;
  word-break: keep-all;
}

.hero-subtitle {
  font-size: clamp(12px, 5vw, 42px);

  font-weight: 700;

  color: #ff4d6d;

  margin-top: 10px;

  line-height: 1.2;

  white-space: normal;
  word-break: keep-all;
}


/* =========================================
   ticker
========================================= */

.ticker {
  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 30px;

  background: rgba(0, 0, 0, 0.85);

  overflow: hidden;

  display: flex;
  align-items: center;

  z-index: 500;

  line-height: normal;
}

.ticker-track {
  display: flex;

  white-space: nowrap;

  animation: scrollLoop 20s linear infinite;
}

.ticker span {
  color: #fff;

  font-size: 14px;

  padding-right: 100px;
}

@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


/* =========================================
   セクション
========================================= */

.banner-section {
  padding: 40px 0;
}

#about {
  padding: 60px 20px 40px;
  text-align: center;
}

#events {
  padding: 40px 20px;
}

#access {
  padding: 40px 20px 60px;
  text-align: center;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ff4d6d;
}


/* =========================================
   お知らせカード
========================================= */

.info-links {
  display: flex;

  gap: 20px;

  margin-top: 30px;

  flex-wrap: wrap;
}

.info-card {
  flex: 1;

  min-width: 260px;

  border-radius: 20px;

  overflow: hidden;

  display: block;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

  transition: 0.3s;
}

.info-card img {
  display: block;

  width: 100%;
  height: 150px;

  object-fit: cover;
}

.info-card:hover {
  transform: translateY(-5px) scale(1.03);
}


/* =========================================
   企画・イベント
========================================= */

.events-title {
  text-align: center;

  margin-bottom: 20px;

  font-size: 32px;

  color: #ff4d6d;
}


/* スライダー */

.slider {
  position: relative;

  overflow: hidden;

  max-width: 900px;

  margin: auto;

  padding: 20px 0;
}

.slides {
  display: flex;

  align-items: center;

  transition: 0.5s;
}


/* カード */
.card {
  flex: 0 0 300px;

  margin: 0 10px;

  background: #fff;

  border-radius: 20px;

  overflow: hidden;

  text-decoration: none;

  color: inherit;

  display: block;

  transition: 0.4s;
}

.card img {
  display: block;

  width: 100%;
  height: 180px;

  object-fit: cover;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
}

.card div {
  padding: 8px 10px;

  text-align: center;
}

.card h3 {
  font-size: 16px;

  margin: 0;
}


/* ドット */

.dots {
  display: none !important;
}


/* =========================================
   メインボタン
========================================= */

.main-btn {
  display: flex;

  align-items: center;
  justify-content: space-between;

  max-width: 280px;

  margin: 30px auto;

  padding: 12px 14px;

  text-decoration: none;

  color: #fff;

  font-weight: bold;
  font-size: 14px;

  border-radius: 999px;

  background: linear-gradient(
    135deg,
    #1e1e2f,
    #2a2a3f
  );

  box-shadow: 0 6px 0 #4b1fd1;

  transition: 0.2s;
}

.main-btn span {
  flex: 1;

  text-align: center;
}

.main-btn .arrow {
  width: 36px;
  height: 36px;

  font-size: 16px;

  background: #ff2e7a;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;
}

.main-btn:hover {
  transform: translateY(3px);

  box-shadow: 0 3px 0 #4b1fd1;
}

.main-btn:active {
  transform: translateY(10px);

  box-shadow: 0 0 0 #3aa0d8;
}


/* =========================================
   バナースライダー
========================================= */

.banner-slider {
  position: relative;

  overflow: hidden;

  max-width: 1000px;

  margin: auto;
}

.banner-track {
  display: flex;

  transition: 0.5s;

  will-change: transform;
}

.banner {
  flex: 0 0 80%;

  margin: 0 10px;
}

.banner img {
  display: block;

  width: 100%;
  height: 120px;

  object-fit: cover;

  border-radius: 15px;
}


/* バナードット */

.banner-dots {
  display: flex;

  justify-content: center;

  margin-top: 10px;

  gap: 8px;
}

.banner-dots span {
  width: 8px;
  height: 8px;

  background: #999;

  border-radius: 50%;

  opacity: 0.5;
}

.banner-dots span.active {
  background: #ff4d6d;

  opacity: 1;
}


/* =========================================
   アクセス
========================================= */

.access-row {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 20px;

  flex-wrap: wrap;

  margin-top: 20px;
}

.map-btn {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 260px;
  height: 56px;

  background: #000;

  color: #fff;

  text-decoration: none;

  font-weight: bold;
  font-size: 16px;

  border-radius: 999px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  transition: 0.2s;
}

.map-btn:hover {
  transform: translateY(-2px);
}

.map-btn:active {
  transform: translateY(2px);
}


/* =========================================
   フロアマップ
========================================= */

.title {
  text-align: center;

  margin: 20px 0;
}

.map-container {
  position: relative;

  width: 90%;
  max-width: 500px;

  margin: auto;
}

.main-map {
  display: block;

  width: 100%;
}

.floor-btn {
  position: absolute;

  padding: 10px 14px;

  background: rgba(0, 0, 0, 0.75);

  color: white;

  font-weight: bold;

  border-radius: 10px;

  text-decoration: none;

  transform: translate(-50%, -50%);
}

.floor-btn:active {
  background: rgba(255, 255, 255, 0.8);

  color: black;
}

.f4 {
  top: 18%;
  left: 65%;
}

.f3 {
  top: 35%;
  left: 60%;
}

.f2 {
  top: 52%;
  left: 55%;
}

.f1 {
  top: 70%;
  left: 50%;
}


/* 戻るボタン */

.back-btn {
  display: inline-block;

  padding: 10px 16px;

  margin: 10px;

  background: black;

  color: white;

  border-radius: 8px;

  text-decoration: none;
}


/* =========================================
   フッター
========================================= */

footer {
  position: relative;

  z-index: 1;

  text-align: center;

  padding: 20px 0;

  background: #000;

  color: #fff;

  border-top: 3px solid #ff4d6d;
}

footer p {
  font-size: 14px;

  color: #fff;

  letter-spacing: 1px;
}


/* =========================================
   背景・コンテンツの重なり
========================================= */

.hero,
.banner-section,
section,
footer {
  position: relative;

  z-index: 1;
}


/* =========================================
   スマホ
========================================= */

@media (max-width: 768px) {

  /* -------------------------
     ヘッダー
  ------------------------- */

  #header header {
    padding: 6px 12px;
  }


  /* -------------------------
     ヒーロー
  ------------------------- */

  .hero {
    /*
      ここでも80pxを使わない。
      JSが取得したヘッダー高さを使う。
    */
    margin-top: var(--header-height);

    width: 100%;

    height: auto;

    overflow: hidden;
  }

  .hero > img.hero-front {
    position: relative;

    width: 100%;
    height: auto;

    max-width: 100%;

    margin: 0;

    transform: none;

    object-fit: initial;
  }


  /* タイトル */

  .hero h1 {
    font-size: 56px;

    letter-spacing: 3px;
  }

  .hero-subtitle {
    font-size: 24px;

    margin-top: 6px;
  }


  /* -------------------------
     見出し
  ------------------------- */

  h2 {
    font-size: 26px;
  }


  /* -------------------------
     ナビ
  ------------------------- */

  .top-nav {
    gap: 10px;
  }

  .top-nav a {
    font-size: 11px;
  }


  /* -------------------------
     お知らせ
  ------------------------- */

  .info-links {
    flex-direction: column;
  }

  .info-card {
    width: 100%;

    min-width: auto;
  }


  /* -------------------------
     企画カード
  ------------------------- */
.card {
  flex: 0 0 280px;

  margin: 0 8px;
}

.card img {
  width: 100%;
  height: 170px;

  object-fit: cover;
}

  .card div {
    padding: 6px 8px;
  }

  .card h3 {
    font-size: 14px;
  }


  /* -------------------------
     アクセス
  ------------------------- */

  .access-row {
    flex-direction: column;

    gap: 15px;

    text-align: center;
  }

  .map-btn {
    width: 90%;

    max-width: 300px;
  }


  /* -------------------------
     メインボタン
  ------------------------- */

  .main-btn {
    width: 90%;

    max-width: 280px;
  }


  /* -------------------------
     バナー
  ------------------------- */

  .banner {
    flex: 0 0 90%;
  }

  .banner img {
    height: 100px;
  }


  /* -------------------------
     背景図形
  ------------------------- */

  .s1 {
    top: 5%;
    left: -50px;

    border-left-width: 90px;
    border-right-width: 90px;
    border-bottom-width: 170px;
  }

  .s2 {
    top: 25%;
    left: -35px;

    border-left-width: 70px;
    border-right-width: 70px;
    border-bottom-width: 130px;
  }

  .s3 {
    bottom: 5%;
    left: -30px;

    border-left-width: 100px;
    border-right-width: 100px;
    border-bottom-width: 180px;
  }

  .s4 {
    bottom: 28%;
    left: 20px;

    border-left-width: 60px;
    border-right-width: 60px;
    border-bottom-width: 120px;
  }

  .s5 {
    top: 12%;
    right: -80px;

    border-left-width: 150px;
    border-right-width: 150px;
    border-bottom-width: 260px;
  }

  .s6 {
    bottom: -40px;
    right: -30px;

    border-left-width: 100px;
    border-right-width: 100px;
    border-bottom-width: 190px;
  }

  .s7 {
    top: 8%;
    right: 40px;

    border-left-width: 55px;
    border-right-width: 55px;
    border-bottom-width: 100px;
  }

  .s8 {
    bottom: 20%;
    right: 40px;

    border-left-width: 70px;
    border-right-width: 70px;
    border-bottom-width: 130px;
  }

}

/* ===== トップ画像のタイトルを非表示 ===== */

.hero-title-wrap {
  display: none !important;
}

/* =========================================
   ヘッダー固定による他ページの隠れ防止
========================================= */

body:not(:has(.hero)) {
  padding-top: var(--header-height) !important;
}

/* =========================================
   背景図形よりコンテンツを前面にする
========================================= */

#header {
  position: fixed !important;
  z-index: 10000 !important;
}

main,
section,
article,
.exhibition,
.exhibition-page {
  position: relative;
  z-index: 1;
}

footer {
  position: relative;
  z-index: 1;
}

/* =========================================
   exhibitionページ
   背景図形よりコンテンツを前面に表示
========================================= */

.tabs,
.content {
  position: relative;
  z-index: 10;
}

/* ヘッダーと重ならないようにする */
.tabs {
  margin-top: var(--header-height);
}

/* コンテンツも背景図形より前面 */
.group,
.group-title,
.grid,
.card {
  position: relative;
  z-index: 10;
}
