/* --- 全体 --- */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}
  
.Header {
  width: 100%;
  height: 60px;
  /*background-color: #000;*/
  display: flex;
  justify-content: center;
  align-items: center;
}

.Logo {
  color: #fff;
  font-size: 32px;
  font-weight: bold;
}

.Main {
  width: 100%;
  padding-top: 12px;
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 32px;
  background-color: #eee;
}

.Section {
  margin-top: 20px;
  width: 100%;
  height: 400px;
  background-color: lightgreen;
}

.Menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: #fff;
  transform: translateX(100%);
  transition: all 0.3s;
}

.Menu-Header {
  width: 100%;
  height: 60px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 32px;
}

.Menu-List {
  width: 100%;
  padding-left: 8px;
  padding-right: 8px;
  list-style: none;
}

.Menu-List-Item {
  border-bottom: 1px solid #ccc;
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 32px;
  font-weight: bold;
}

.MenuIsOpen {
  transform: translateX(0);
}

.Button {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  height: 60px;
  padding-left: 10px;
  padding-right: 20px;
}

.Button-LineTop {
  position: absolute;
  top: 15px;
  width: 40px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s;
}

.ButtonIsOpen .Button-LineTop {
  /* 子孫セレクタ */
  transform: translateY(13.5px) rotate(45deg);
}

.Button-LineMedium {
  width: 40px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s;
}

.ButtonIsOpen .Button-LineMedium {
  opacity: 0;
}

.Button-LineBottom {
  position: absolute;
  bottom: 15px;
  width: 40px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s;
}

.ButtonIsOpen .Button-LineBottom {
  transform: translateY(-13.5px) rotate(-45deg);
}

.Overlay {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s;
}

.OverlayIsOpen {
  visibility: visible;
  opacity: 1;
}

.container{
    position: absolute;
    top: 70px;
    left: 1px;
    right: 1px;
}

.title{
    text-align: center  ;
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin-bottom: 30px;
}

.main{
    padding: 30px;
    padding-top: 30px;
    padding-bottom: 1px;
    margin-bottom: 40px;
    border-radius: 10px;
    margin-left: 8%;
    margin-right: 8%;
    background-color: #fffaf0;
    border: 5px;
    font-family: Arial, Helvetica, sans-serif;
}

/* --- 見出し --- */
h1 {
    text-align: center;
    margin: 20px 0;
}

/* --- ジャンルタイトル --- */
h2.genre-title {
    margin: 30px 0 15px;
    border-left: 8px solid #4CAF50;
    padding-left: 10px;
    color: #333;
}

/* --- グリッド --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 10px;
}
@media (max-width: 600px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- カード --- */
.card {
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
    cursor: pointer;
    overflow: hidden;
}
.card:hover { 
    transform: scale(1.03);
}
.card .slide-container {
    flex: 0 0 70%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.card .slide-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card .info {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
}
.card .info h3 {
    font-size: 1em;
    margin: 0;
}

/* --- モーダル --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
}
.modal-content {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 80%;
    max-height: 90vh;
    padding: 20px;
    position: relative;
    text-align: center;
    overflow-y: auto;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .modal-content { max-width: 95%; }
}
.close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    background: rgba(0,0,0,0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
}

/* --- モーダル内画像 --- */
.modal .slide-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}
.modal .slide-track {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.modal .slide-track img {
    padding: 4px;
    background: #fff;
    border: 3px solid #000;
    border-radius: 6px;
    height: 25vh;
    width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* --- モーダル表 --- */
#modalInfoTable table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
}
#modalInfoTable th,
#modalInfoTable td {
    border: 1px solid #ccc;
    padding: 4px 6px;
    text-align: left;
    vertical-align: top;
    font-size: 0.9em;
    word-wrap: break-word;
}
#modalInfoTable th { width: 15%; background: #f0f0f0; }
#modalInfoTable td { width: 85%;}



.uni-name{
  text-align: center;
}