/* CSS Document */
/* style.css */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  overflow: hidden; /* body全体の縦スクロールを無効化 */
  background-color:  #000;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
}
a{
  color:#fff;
  text-decoration: none;
}


.site-header,
.site-footer {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.layout-wrapper {
  display: flex;
  height: 100vh;
  max-width: 1800px;
  margin: 0 auto;
}

.sidebar-left,
.sidebar-right {
  flex: 1; /* 残りの幅を左右で等分 */
  padding: 1rem;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.main-content {
  width: 778px; /* 中央カラムを固定幅に */
  overflow-y: auto;
  padding:0;
  box-sizing: border-box;
  position: relative;
}

.main-content h2{
  text-align: center;
  /*font-size:2.25em;*/
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.5rem);
  margin:3em 0 1em;
  font-family: "Anton", sans-serif;
  font-weight: bold;
}

.main-content h3{
  text-align: center;
  /*font-size:2em;*/
  font-size:clamp(1.2rem, 1.5vw + 0.5rem, 2rem);
  font-weight: bold;
  line-height: 1.4;
  margin:1em 0 1em;
}

.main-content p{
  text-align: center;
  /*font-size:1.25em;*/
  font-size:clamp(1rem, 1vw + 0.3rem, 1.25rem);
  padding:2em;
  line-height: 1.6em;
  letter-spacing: 0.05em;
}

.main-content p.copyright{
  font-size:0.85rem;
  text-align: center;
  height: auto;
}

.sidespace{
  padding:0 2em;
}

section{
  margin-bottom:8em;
}

nav{
  position: absolute;
  top:20%;  
}

nav ul li{
  font-size:2.5em;
  margin:1em 1em;
  font-family: "Anton", sans-serif;
  font-weight: bold;
  line-height: 1.4;
}


img{
  width:100%;
}


/*パーツ関連*/
.bttf_logo{
  max-width:256px;
  width:100%;
  position: absolute;
  bottom:5%;
  left: 50%;
  transform: translateX(-50%);
}

.comicon_logo{
  max-width:395px;
  width:100%;
  position: absolute;
  top:5%;
  left: 50%;
  transform: translateX(-50%);
}

.comicon_logo_tate{
  max-width:261px;
  width:100%;
}

.illsut{
  max-width:283px;
  width:100%;
}

.goods{
  max-width:200px;
  width:100%;
}

/*illstration section*/

.illustrator-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* 両端揃えで等間隔配置 */
  gap: 3rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  max-height: 928px; /* 初期表示：2行 × 約250px */
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.illustrator-list.collapsed {
  max-height: 928px;
}

.illustrator-list.collapsed li:nth-child(n + 5) {
  display: none;
}

.illustrator-list.expanded {
  max-height: 2810px; /* 十分に大きければOK */
}

.illustrator-list li {
  width: calc(50% - 0.5rem); /* 2列 */
  box-sizing: border-box;
  text-align: center;
}

.illustrator-list img {
  width: 100%;
  height: auto;
  display: block;
  margin:0 auto;
}

.illustrator-list figcaption {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/*Goods*/

.toggle-area {
  display: none;
}
.section-toggle{
  margin-bottom:3em;
}

/*開閉用アクション*/
.section-header {
  border: 1px solid #fff;
  color: #fff;
  font-weight: bold;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
}

.section-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.section-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.section-header.active .section-icon {
  transform: rotate(180deg);
}
.section-title{
  /*font-size:2em;*/
  font-size:clamp(1.3rem, 1.5vw + 0.3rem, 2.2rem);
}

/* ▼ 開閉制御用 */
.js-toggle-target {
  display: none;
}

.js-toggle-target.active {
  display: block;
}


.goods-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 3em 0;
  overflow: hidden;
  max-height: 790px; /* 初期表示：3行分（320px × 3） */
  transition: max-height 0.5s ease;
}

.goods-list.collapsed {
  max-height: 790px;
}

.goods-list:not(.expanded) li:nth-child(n+10) {
  display: none;
}

.goods-list.expanded {
  max-height: 3000px; /* 全件見せるのに十分な高さ */
}

.goods-list li {
  width: calc(33.333% - 0.67rem); /* 3列分割（gap考慮） */
  box-sizing: border-box;
  text-align: center;
}

.goods-list img.goods {
  width: 100%;
  height: auto;
  display: block;
  margin:0 auto;
}

.goods-list figcaption {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}


.bt-area{
  text-align: center;
  margin-top: 1rem;
}

.more-illust-bt,.more-bt{
  max-width:124px;
  width:100%;
  cursor: pointer;
}

/*ticket map p*/
#Ticket p,#Map p{
  padding:0 0 2em 0;
}



.sp{
  display:none;
}

.totop {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(345px); /* 778px / 2（中央カラムの右端） */
  z-index: 999;
  width: 64px;
  height: 64px;
  display: none;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.totop:hover {
  opacity: 1;
}

/* ハンバーガーボタン */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border: 2px solid #000;
  padding: 4px;
  box-sizing: border-box;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: #000;
  border-radius: 2px;
  margin: 4px 0;
  transition: 0.3s ease;
  transform-origin: center center;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
}



/* SPメニュー */
.sp-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff7700;
  z-index: 1000;
  transform: translateX(100%);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sp-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.sp-menu li {
  margin: 20px 0;
}

.sp-menu li a {
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  font-family: 'Anton', sans-serif;
  font-weight: bold;
}

/* フッター風ロゴ */
.sp-logo {
  margin: 50px auto 0;
}

.sp-logo img {
  max-width: 580px;
  width:90%;
  display: block;
  margin:0 auto;
}

/* 開いたとき */
.sp-menu.active {
  transform: translateX(0);
}


@media screen and (max-width:1200px) {
  .hamburger {
    display: flex;
  }
  
  .sidebar-left,
  .sidebar-right{
    display: none;
  }
  .main-content{
    margin:0 auto;
  }
  
  .sp{
    display: block;
  }
  .bottom{
    position: fixed;
    bottom:0;
    left: 50%;
    transform: translateX(-50%);
  }
  .main-content p.copyright{
    height:5em;
  }
  
  .totop{
    left:85%;
    transform: none;
    width: 40px;
    height:40px;
  }
}
@media screen and (max-width:768px) {
  .comicon_logo_tate{
    width:50%;
  }
}