body.contents {
  display: flex;
  flex-direction: column; /* ← 上下配置に変更 */
  height: 100vh;
  margin: 0;
}

.eye-catch{
  margin: 0;
  bottom: 35%;
}
.eye-catch img{ 
  height: 80vh;
}

/* ========================================
   上側のエリア（固定アイコン群）
======================================== */
.right-content {
  order: 1;
  height: 80vh;
  display: flex;
  overflow-x: auto;
  flex-direction: row;
  order: 1;
}

.stage,
.ws-expo,
.stall,
.activity{
  display: contents;
  flex-wrap: nowrap;
  overflow: visible;
  overflow-x: auto;
  gap: 4rem;
  padding: 2rem;
}

.main-event-display {
  flex: 0 0 auto;
  width: 40vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
  margin-top: 100px;
} 

.event-header{
  height: 45vh;
}

.main-event-icon{
  height: 40vh;
  width: 40vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-event-icon img {
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.event-title {
  padding: 15px 3px;
  background-color: #e2694c;
  transform: rotate(10deg) translateX(20px);
  transform-origin: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: white;
  bottom: 400px;
  font-size: 1rem;
  bottom: 85%;
  left: 90%;
  position: relative;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 10;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
}

.main-event-description {
  background: #9b9b9b;
  padding: 20px 30px;
  width: 50vh;
  position: relative;
  margin: 0 10px;
  padding: 0 10px;
  transform: skewX(-10deg);
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  
  /* 初期状態：右に隠れている */
  opacity: 0;
  transform: skewX(-10deg) translateX(100px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* アニメーション表示状態 */
.main-event-description.animate-in {
  opacity: 1;
  transform: skewX(-10deg) translateX(0);
}

/* テキストは背景と同期 */
.main-event-description p {
  color: #fff;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.button_apply a {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 10px auto;
    padding: 5px 10px;
    color: #FFF;
    transition: 0.3s ease-in-out;
    font-weight: 600;
    background: #a3b4c0;
    border-radius: 8px;
    border-bottom: solid 5px #7c9ab4;
}
.button_apply a:hover {
    border-bottom: solid 2px #7c9ab4;
    transform: translateY(3px);
}
/* ========================================
   背景に大きな文字を表示
======================================== */
body.contents::after {
  content: "STAGE";
  position: fixed ;
  top: 40% ;
  left: 50% ;
  transform: translate(-50%, -50%) ;
  font-size: clamp(120px, 20vw, 600px) ;
  font-weight: 900 ;
  color: #acc5c7;
  text-orientation: sideways ;
  letter-spacing: 0.05em;
  text-transform: uppercase ;
  white-space: nowrap ;
  user-select: none ;
  pointer-events: none ;
  z-index: -1 ;
  text-shadow:
    0 0 20px rgba(255,255,255,0.2),
    0 0 50px rgba(255,255,255,0.1);
  filter: blur(5px);
  /* フェードアニメーション */
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}
/* フェードアウト状態 */
body.contents.text-changing::after {
  opacity: 0;
}

/* ========================================
   下側のエリア（固定アイコン群）
======================================== */
.left-sidebar {
  order: 2;
  width: 100%;
  height: 20vh;
  display: flex;
  flex-direction: column; /* 上段＋下段 */
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid #ddd;
  position: fixed;
  bottom: 0;
  z-index: 10;
  backdrop-filter: blur(5px);
  order: 2;
}

/* 2行構成（上10個＋下9個） */
.icon-columns {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* 上段（10個） */
.icon-column.col-a {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
}

/* 下段（9個） → 少し右にずらす */
.icon-column.col-b {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 5px;
  transform: translateX(10px);
}

/* 個別アイコン */
.event-icon {
  height: 10vh;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 1px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(74, 144, 226, 0.3);
}

.event-icon img {
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
