/*------------------ 共通スタイル ------------------*/

:root {
  --background07: rgba(186, 148, 52, 0.7);
  --background02: rgba(186, 148, 52, 0.2);
  --text: #fdfdfd;
  --nav: #fdfdfd;
  --newcount: rgba(234, 84, 29, 0.7);
}

body {
  background: url("../img/sp_background.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: "Hiragino Kaku Gothic ProN";
  width: 100%;  
  color: var(--text);
  box-sizing: border-box;
}

body.modal-opne {
  overflow: hidden;
}

body.is-loading {
  overflow: hidden;
}

body.is-loading > *:not(.loading-wrapper) {
  visibility: hidden;
}

.section-title {
  font-size: 2rem;
}

h3 {
  margin-bottom: 5px;
  font-size: 1.2em;
}

ul li {
  list-style: none;
}

.container {
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
}

.section-title__wrapper {
  margin-bottom: 50px;
  text-align: center;
}


.section-title__en {
  font-size: 0.8rem;
  margin-top: -3px;
}

.fadeup {
  /* Initial state of the animation */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* The class added by JavaScript to trigger the animation */
.fadeup-action {
  opacity: 1;
  transform: translateY(0);
}

/*------------------ ローディング画面 ------------------*/
/* loading */
.loading-wrapper {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-image: url(../img/background.jpg);

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

  opacity: 1;
  transform: scale(1);
  transition: opacity 1s ease, transform 0.6s ease;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.loading-visual {
  position: relative;
  width: 100%;
  height: 100%;
}

.loading-planet {
  position: absolute;
  max-width: 150%;
  width: 150%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.loading-character {
  position: absolute;
  max-width: 150%;
  width: 150%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.loading-text {
  margin-top: 70%;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: var(--main);
}


.loading-character {
  animation: character-rotate 10s linear infinite;
  max-width: 1000px;
}

.loading-wrapper {
  transition: opacity 0.4s ease;
}

.loading-wrapper.is-hide {
  opacity: 0;
  pointer-events: none;
}

@keyframes character-rotate {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading-wrapper {
  transition: opacity 0.4s ease;
}

/*------------------ ナビゲーション ------------------*/
/* ハンバーガーメニューのボタンとアイコン */
.menu-btn {
  display: none;
}

.menu-icon {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 100;
    cursor: pointer;
    background-color: var(--background07);
    backdrop-filter: blur(4px);
    border-radius: 10px;
}

/* メニューアイコン中棒 */
.navicon {
  display: inline-block;
  width: 60%;
  height: 2px;
  background: var(--nav);
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}
/* メニューアイコン下テキスト */
.navicon-text {
  display: flex;
  font-size: 0.7rem;
  color: var(--nav);
  padding-top: 0.9rem;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 1;
}
/* メニューアイコン上下棒 */
.navicon:before,
.navicon:after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  position: absolute;
  background: var(--nav);
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}
.navicon:before { top: 8px;}
.navicon:after { bottom: 8px;}

/* メニューボタンがチェックされたときのスタイル */
.menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
}
.menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before {
  top: 0;
}
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  bottom: 0;
}
.menu-btn:checked ~ .menu-icon .navicon {
  background: rgba(0, 0, 0, 0);
  transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}
.menu-btn:checked ~ .menu-icon .navicon-text {
  opacity: 0;
}
.menu-btn:checked ~ .menu-icon {
  background-color: rgba(61, 120, 204, 0.0);
}

.menu-btn:checked ~ .main-nav {
    transform: scale(1, 1);
    transform-origin: top;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.menu-btn:checked ~ .main-nav {
  opacity: 1;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
  pointer-events: auto;
}


.main-nav {
  background-color: var(--background07);
  position: fixed;
  right: 0;
  display: inline-block;
  padding: 30px 90px 30px 30px;
  opacity: 0;
  z-index: 99;
  backdrop-filter: blur(4px);
  border-radius: 10px;
  pointer-events: none;
}

.menu li {
    border-top: 1px solid #fdfdfd;
    padding: 15px 0 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.menu li:first-child {
  border-top: none;
}
.menu-btn {
    display: none;
}

.menu-nav {
  z-index: 1000;
}

.menu a {
  text-decoration: none;
  color: var(--text);
}

#event-details,#artists,#archive,#collection {
  scroll-margin-top: 100px;
}



/*------------------ ヒーロセクション ------------------*/
.hero {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.hero-banner_image {
  width: 100%;
  height: 100%;
  max-width: 1000px;
}

/*------------------ 開催概要 ------------------*/
.event-details{
  margin-top: 10vw;
  text-align: center;
  background-color: var(--background07);
  width: 100%;
  padding: 120px 0 100px;
  clip-path: polygon(0% 0%, 100% 10%, 100% 100%, 0% 90%);
}

.event-details dt {
  line-height: 1rem;
  padding-left: .2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.event-details dd {
  margin-bottom: 20px;
  text-align: center;
}

.event-details__liad {
  margin-bottom: 10px;
}

.section-box {
  border-top: dashed 2px #fff;
  padding-top: 40px;
  margin-top: 40px;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.link-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.link-button a {
  text-decoration: none;
  display: inline-block;
  padding: 5px 15px;
  background-color: #222;
  color: var(--text);
  border-radius: 999px;
}


/*------------------ アーティスト紹介 ------------------*/
.artists, .archive, .collection{
  margin-top: 100px;
}

.artists__country-map img{
  border-radius: 10px;
}

.artists__country-tab-button {
  display: flex;
  margin: 10px 0 30px;
  overflow-x: scroll;
  padding: 0 10px;
  font-size: 15px;
  font-weight: bold;
}

.tab {
  margin: 5px 5px 10px ;
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background-color: rgba(222, 222, 222, 0.3);
  box-shadow: 3px 3px rgba(0,0,0,0.5);
  white-space: nowrap;
  backdrop-filter: blur(4px);
  font-size: 1rem;
}

.artists__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.artists__card {
  padding-top: 2vw;
  padding-right: 2vw;
  padding-left: 2vw;
  padding-bottom: 3vw;
  background-color: rgba(222, 222, 222, 0.2);
  width: 100%;
  max-width: 300px;
  flex: 0 0 calc(50% - 10px);
  margin-bottom: 40px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.125);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.artists__card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  margin-bottom: 5px;
}

.artists__card-name {
  font-size: 1.2rem;
  margin-left: 3px;
  color: var(--text);
  font-weight: bold;
  margin-top: 5px;
}

.artists__exhibition-count {
  font-size: 0.8rem;
  background-color: var(--background07);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 100px;
  margin-left: 3px;
  margin-top: 10px;
}

.new-count {
  background-color: var(--newcount);
}


.legend-count {
  background-image: linear-gradient(
    -45deg,
    #FFD700,
    #DAA520,
    #B8860B
  );
}

/*------------------ コンテンツ非表示（アーティスト国別） --------------------*/
.artists__tab-contents > div {
  display: none;
}

.artists__country-map img {
  display: none;
}

.artists__country-map > img.active {
  display: block;
}

/* アクティブなコンテンツだけを表示する */
.artists__tab-contents > div.active {
  display: block;
}

/* タブの見た目 */
.tab.active {
  background-color: #f1f1f1; /* アクティブなタブの背景色 */
  border-bottom: 2px solid #222; /* 下線 */
  color: #222;
}


/*------------------ モーダルウィンドウのCSS ------------------ */
/* モーダルウィンドウ全体を非表示 */
.modal {
  display: none;
  position: fixed;
  z-index: 100; /* 他の要素より手前に表示 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* モーダルのコンテンツ部分 */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  color: #222;
  display: flex;
  flex-direction: column;
}

/* 閉じるボタン */
.close-button {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  justify-content: flex-end;
}

.close-button:hover,
.close-button:focus {
  color: #222;
  text-decoration: none;
  cursor: pointer;
}

/* モーダル表示時のスタイル */
.modal.active {
  display: block;
}

.modal-body {
  text-align: center;
  margin-bottom: 30px;
}

.modal-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-body img {
  margin-bottom: 30px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.2);
}

.modal-info {
  display: flex;
  align-items: start;
  gap: 20px;
  margin-top: 30px;
}

.modal-info img {
  max-width: 30%;
  flex: none;
}

#modal-name {
  border-left: 5px solid #222;
  padding: 0 10px;
  display: inline-block;
}

.modal-info-text {
  text-align: left;
  flex-grow: 1;
}

.modal-info-text p {
  margin-top: 10px;
}

.modal-sns-title {
  text-align: center;
  margin-bottom: 5px;
}

.modal-sns-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.modal-sns img {
  width: 30px;
  height: auto;
  margin-top: 10px;
}

/*------------------ コレクション --------------------*/
.collection-contant {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 3px;
}

.collection-center-item {
  grid-row: 2 / span 2;
  grid-column: 2 / span 2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.collection-center-item::before {
  content: "気になるソフビをクリックで拡大"; /* ここでテキストを表示 */
  position: absolute;
  top: 50%;
  left: 38%;
  transform: translate(-30%, -40%);
  font-family: "DotGothic16", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  text-align: center;
  color: #fff;
  z-index: 1; /* 画像の上に表示されるようにする */
}

.collection-center-item.has-image::before {
  display: none;
}

.collection-item {
  background: linear-gradient(to bottom #444, #222);
  border: 2px solid #666;
  border-radius: 5px; 
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5),
  0 5px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  padding-top: 100%;
}


.collection-item:hover {
  transform: translateY(-3px);
  box-shadow: 
    inset 0 0 5px rgba(0,0,0,0.5), 
    0 8px 15px rgba(0,0,0,0.7);
}

.collection-center-item {
  background-color: #8d8d8d; /* 中央は少し異なる色に */
  border: 4px solid #464646; /* 太い枠線 */
}

.collection-center-item-text {
  font-family: "DotGothic16", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  text-align: center;
  padding: 10px;
}

.shuffle-button-contant {
  margin-top:15px;
}
#shuffle-button {
  display: flex;
  width: 98%;
  margin: 0 auto;
  justify-content: center;
  align-items: center; 
  background-color: #f9f9f9;
  border: 2px solid #464646;
  transition: transform 0.2s, box-shadow 0.2s;
}

#shuffle-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    inset 0 0 5px rgba(0,0,0,0.5), 
    0 8px 15px rgba(0,0,0,0.7);
}
#shuffle-button:active {
  background-color: #f9f9f9; /* さらに濃い色に変更 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(1px); /* 少し下に動かすことで、ボタンが押されたように見せる */
}

.collection-item-btn-container {
  margin-top: 30px!important;
}

.collection-item-btn-contant {
  width: 98%;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  gap: 10px;
}


.collection-item-btn {
  background-color: var(--background07);
  padding: 12px 20px 12px ;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.collection-item-btn:hover {
  background-color: rgba(61, 120, 204, 1);
  transform: translateY(-2px); 
}

.collection-item-btn:active {
  background-color: rgba(61, 120, 204, 1);
  transform: translateY(2px); 
}

.collection-item-btn a {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
}

/*------------------ アーカイブ --------------------*/

.archive{
  background-color: var(--background07);
  width: 100%;
  padding: 50px 0 80px;
  backdrop-filter: blur(1px);
}

.archive__wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.archive__content {
  display: flex;
  gap: 30px;
}

.archive__image {
  max-width: 30%;
  flex:none;  
  align-self: flex-start;
}

.archive__info {
  flex: 1;
}

.archive__link {
  color: rgb(61, 120, 204);
  background-color: rgb(241, 241, 241);
  border: 2px solid rgb(61, 120, 204);
  padding: 5px 10px;
}

.archive__info a {
  margin-top: 20px;
  display: inline-block;
  text-decoration: none;
  border-radius: 99px;
}

/*------------------ 注意事項 --------------------*/
.important-notice {
  margin-top: 100px;
}

.important-notice__container {
  background-color: rgba(44, 44, 44, 0.7);
  border-radius: 10px;
}

.important-notice__wrapper ol {
  list-style: decimal;
  padding: 10%;
  margin: 0 auto;
  list-style-position: inside; 
}

.important-notice__wrapper ol .no-list-style {
  list-style: none;
  padding: 10px 5px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
}

.important-notice__wrapper a{
  list-style: none;
  padding: 10px 20px 14px;
  background-color: #444;
  border-radius: 10px;
  color: #f0f0f0;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.important-notice__wrapper a:hover{
  background-color: #666;
}

.important-notice__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/*------------------ フッター --------------------*/

#footer {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.copy p{
  color: #f0f0f0;
  font-size: 0.7rem
}

/* ========================================================= */
/* PC対応（768px以上） */
/* ========================================================= */
@media (min-width: 780px) and (max-width:1049px){
  html {
    font-size: 1.1rem;
  }
  body {
    background:url("../img/background.jpg") no-repeat fixed center/cover;
  }

  .container {
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
  }

  .artists__card {
    flex: 0 0 calc(50% - 20px);
    max-width: 600px;
    cursor: pointer;
  }

  .menu-btn {
    display: none;
  }
  .menu-icon {
      width: 80px;
      height: 80px;
  }
  .navicon {
    height: 3px;
  }
  .navicon-text {
    font-size: 0.7rem;
    padding-top: 1.1rem;
  }
  .navicon:before,
  .navicon:after {
    content: "";
    height: 3px;
}
  .navicon:before { top: 13px;}
  .navicon:after { bottom: 13px;}
}

/* ========================================================= */
/* PC（大画面、1060px以上） */
/* ========================================================= */
@media (min-width: 1050px) {
  html {
    font-size: 1.2rem;
  }
  body {
    display: flex;
    flex-direction: row;
    background:url("../img/background.jpg") no-repeat fixed center/cover;
  }


  main {
    flex: 1;
    margin-right: 15%!important;
  }

  .menu-icon {
    display: none;
  }
  
  
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 15%;
    height: 100vh;
    padding: 0;
    opacity: 1;
    z-index: 99;
    background-color: var(--background02);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
  }
  
  .menu {
    display: inline-block;
    flex-direction: column;
    align-items: center;
    text-align: right;
    padding: 0;
  }
  
  .menu li {
    padding: 15px 0;
    margin: 0;
    opacity: 1;
  }

  .container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
  }

  .artists__card {
    max-width: 800px;
    flex: 0 0 calc(50% - 25px);
    padding-top: clamp(17px, 2vw, 25px);
    padding-right: clamp(17px, 2vw, 25px);
    padding-left: clamp(17px, 2vw, 25px);
    padding-bottom: clamp(17px, 3vw, 30px);
    cursor: pointer;
  }

  .artists, .archive{
    margin-top: 200px;
  }

  .archive{
    background-color: var(--background07);
    width: 100%;
    padding: 100px 0 160px;
    backdrop-filter: blur(1px);
  }
    .event-details{
    margin-top: 0px;
    text-align: center;
    background-color: var(--background07);
    width: 100%;
    padding: 120px 0 100px;
    clip-path: polygon(0% 0%, 100% 10%, 100% 100%, 0% 90%);
  }
  .hero-banner_image {
    width: 100%;
    height: 100%;
    max-width: 1700px;
  }
    .modal-content {
    max-width: 1000px;
}
}


/* 500px */
@media (max-width: 500px){
  body {
    background: url("../img/sp_background.png") repeat fixed;
    background-size: contain;
  }
  html {
    font-size: 0.8rem;
  }
  .artists__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .artists__card {
    max-width: 70%;
    margin: 0 auto 20px;
    cursor: pointer;
  }
  .archive__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .archive__image {
    max-width: 100%;
    flex:none;  
    align-self: flex-start;
  }
  .archive__wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
}




/* ========================================================= */
/* アニメーション */
/* ========================================================= */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(1000px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}