/* --- 全体 --- */
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;
}


/* --- 見出し --- */
h1 {
    text-align: center;
    margin: 20px 0;
}

/* --- ジャンル --- */
h2.genre-title {
    margin: 30px 0 15px;
    border-left: 6px solid #4CAF50;
    padding-left: 10px;
    color: #333;
}

/* --- グリッド --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 10px;
}
@media (max-width: 600px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- カード --- */
.card {
    aspect-ratio: 4 / 2;   /* 横長 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    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;
    padding: 10px;
}
.card:hover { transform: scale(1.03); }

.card .info h3 {
    font-size: 1.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;
}

/* --- モーダル表 --- */
#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: 20%; background: #f0f0f0; }
#modalInfoTable td { width: 80%; }

.jump-buttons {
    display: flex;
    flex-direction: row;      
    flex-wrap: wrap;          
    align-items: center;
    justify-content: center;
    gap: 10px;                
}

/* --- スマホ用 --- */
@media (max-width: 600px) {
    .jump-buttons {
        flex-direction: column;  /* 縦並び */
        gap: 8px;                
    }
    .jump-buttons button {
        width: 80%;              
        max-width: none;          
        font-size: 1.2rem;
    }
}

.jump-buttons button {
    width: 17%;
    padding: 6px 3px;
    border: none;
    background: #4CAF50;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.jump-buttons button:hover {
    background: #005fa3;
}


.uni-name{
  text-align: center;
}