/*Access アクセス & Note 注意事項*/
/* 灰色の帯 */
#access .section-bg, #note .section-bg {
  background-color: var(--base); /* 灰色部分 */
  padding: 25px 0; /* 上下の余白 */
}

/* 中央寄せの内容 */
#access .section-inner, #note .section-inner {
  width: 90%; /* コンテンツ幅 */
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-background-gray);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
}

/* タイトル用ラベル */
#access h3, #note  h3{
  position: relative;
  display: inline-block;
  color: var(--color-black);
  padding: 0 0 5px 0;
  font-weight: bold;
}

/* チェックマーク */
#access  h3::before, #note h3::before{
    content: "";
    display: inline-block;
    background-image: url(../img/icon_check.svg);
    width: 30px;
    height: 30px;
    margin-right: 10px;
    margin-bottom: 3px;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}


/* タイトル下の灰色の線 */
#access .section-divider, #note .section-divider {
  border-bottom: 1px solid var(--color-black); /* 黒色の線 */
  margin-bottom: 20px; /* 線と本文の間の余白 */
}

#access ul, #note p {
  line-height: 1.8;
  font-size: var(--font-size-xs);
}

@media (min-width: 768px) {
    #access .section-bg, #note .section-bg {
        padding: 40px 0;
    }
        
    #access .section-inner, #note .section-inner {
        width: 80%;
    }


    #access ul, #note p {
        font-size: 16px;
    }
}

/*Access アクセス　追加*/
#access h4 {
    text-align: center;
    font-size: var(--font-size-md);
    margin-bottom: 20px;
    color: var(--color-black);    
    padding-top: 30px;
}

#access img {
  display: block;
  width: 90%;
  margin: 0 auto 20px auto;
  border: 1px solid var(--color-black);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    #access img {
        width: 70%;
    }
  
}



/* マップ用 */
#map{
  text-align: center;
}

/* ボタン用 */
/* top.cssから拝借　ありがとう */
.buttons {
    display: flex;
    justify-content: center;
    gap: clamp(0.2rem, 0.4rem + 1vw, 1.875rem);
    margin-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.buttons a {
    display: inline-block;
    padding: var(--spacing-sm) 24px;
    border-radius: var(--radius-pill);
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: bold;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s;
}

.buttons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transform: translateX(-101%);
    transition: transform 0.3s ease-in-out;
    z-index: -1;
}

.buttons a:hover {
    color: var(--color-white);
}

.buttons a:hover::before {
    transform: translateX(0);
}

.buttons a:hover .arrow,
.buttons a:hover .arrow::before {
    background-color: var(--color-white);
}

.buttons a .arrow {
    position: relative;
    display: inline-block;
    width: var(--spacing-lg);
    height: 2.4px;
    margin-left: 8px;
    border-radius: 9px;
    background-color: var(--color-primary);
    transition: background-color 0.3s;
    vertical-align: middle;
}

.buttons a .arrow::before {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    right: 0;
    width: 15px;
    height: 3px;
    border-radius: 9px;
    background-color: var(--color-primary);
    transform: rotate(45deg);
    transform-origin: calc(100% - 2px) 50%;
    transition: background-color 0.3s;
}

/* iPhone SE Galaxy Z Fold 用画面 */
@media (max-width: 376px) {
    .buttons .arrow,
    .buttons::before {
        visibility: hidden;
    }

    .buttons a {
        height: 45px;
        width: 175px;
    }

    .buttons a:last-child {
        width: 146px;
    }
}


/* 灰色の帯 */
#map .section-bg {
  background-color: var(--color-white); /* 灰色部分 */
  padding: 25px 0; /* 上下の余白 */
}

/* 中央寄せの内容 */
#map .section-inner {
  width: 90%; /* コンテンツ幅 */
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-background-gray);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
}

/* タイトル用ラベル */
#map .section-title {
  display: block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 8px 20px;
  font-weight: bold;
  text-align: center;
  margin: 0 auto 10px auto;
  width: 12em
}

/* タイトル下の灰色の線 */
#map .section-divider {
  border-bottom: 1px solid var(--color-black); /* 黒色の線 */
  margin-bottom: 20px; /* 線と本文の間の余白 */
}

#map .staffWearing {
  display: block;
  width: 90%;
  margin: 0 auto 20px auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#map .section-bg img{
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

#map p {
  line-height: 1.8;
  font-size: var(--font-size-xs);
}

/* モーダルのスタイル */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* 背景色 */
    opacity: 0; /* 初期状態では透明 */
    visibility: hidden; /* 初期状態では不可視 */
    transition: opacity 0.5s, visibility 0.5s; /* アニメーション効果 */
}

/* モーダルの画像スタイル */
.modal-content {
    display: block;
    width: 80%;
    max-width: 700px;
}

/* モーダルの閉じるボタン */
#close {
    position: absolute;
    top: 15px;
    left: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/* -------------------------------------- */
/* 全体設定 
/* -------------------------------------- */
.map-box {
  /* Flexboxを有効化 */
  display: flex;
  justify-content: flex-start;
  /* 項目が画面幅を超えたら次の行へ折り返す */
  flex-wrap: wrap;
  width: 90%;
  max-width: 700px;
  margin: 20px auto;
}

.map-box p {
  padding: 5px;
  text-align: left;
  /* デフォルトのSP表示: 2列 */
  width: 50%
}

/* 科展示だけ例外 */
.map-box-clear{
  text-align: left;
  margin: 10px auto;
  width: 90%;
  max-width: 700px;
}

/* 講義棟は3列 */
/* ロボコン、レスコンが長すぎる　なんなんだ */
#kogitoMap-box p{
  width: 100%;
}

/* -------------------------------------- */
/* PC版の設定 */
/* -------------------------------------- */
@media (min-width: 768px) {
  /* デフォルトのPC表示: 4列 */
  .map-box p{
    padding: 5px;
    text-align: left;
    width: 25%;
  }
  
  /* 一般科棟は3列 */
  .map-box.ippannMap-box p{
    width: calc(100%/3);
  }

  /* 講義棟は2列 */
  #kogitoMap-box p{
    width: 50%;
  }
}




/* PC用 */
@media (min-width: 768px) {
    #map .section-bg {
        padding: 40px 0;
    }
        
    #map .section-inner {
        width: 80%;
    }

    #map .section-title {
        font-size: var(--font-size-md);
        width: 15em;
    }

    #map .staffWearing {
        width: 70%;
    }

    #map p {
        font-size: 16px;
    }

    #gakunaiMap{
      grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }
}

/*Contact お問い合わせ*/
#contact h4 {
    text-align: center;
    font-size: var(--font-size-sm);
    margin-bottom: 20px;
    color: var(--color-black);    
    padding-top: 30px;
    line-height: 2.5;
}

footer::before{
    content: "";
    display: block;
    height: 40px; /* ここがスペースの高さ */
}

.comingSoon {
    display: block;
    width: 50%;
    margin: 0 auto 20px auto;
}