/* すべてのページに適用される設定 */
html {
    font-size: 14px;
    font-family: sans-serif;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0 0 0 0;
}
body {
    padding: 0 0 0 0;
}
p, li, td{
    line-height: 1.7;
}

/* aと:とlinkの間にスペースを入れないように注意 */
a:link {
    color: black;
    text-decoration: underline;
}
a:visited {
    color: #56a6f6;
    text-decoration: underline;
}
a:hover {
    color: #56a6f6;
    text-decoration: underline;
}
a:active {
    color: #56a6f6;
    text-decoration: underline;
}
img {
    max-width: 100%;
}
/* すべてのページに適用 - ヘッダー */
.header {
    margin: 0;
    padding-top: 10px;  
}
/*.logo {
    text-align: left;
}
.logo img {
    width: 360px;
    height: auto;
  }
*/
.logo {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.logo img {
  display: block;
  margin-bottom: 20px;
  width: 46%;
  max-width: 100%;
  height: auto;
}


.nav ul {
    padding: 10px 0;
    list-style-type: none;
    background-color: #CAE3FB;
    display: flex;
    justify-content: center;
    gap: 50px;
    line-height: 1.0;
  ;
}

.nav ul li{
    line-height: 1.2;
}
.nav a:link {
    color: #253958;
    text-decoration: none;
}
.nav a:visited {
    color: #56a6f6;
    text-decoration: underline;
}
.nav a:hover {
    color: #56a6f6;
    text-decoration: underline;
}
.nav a:active {
    text-decoration: none;
}
.eng-nav a:link{
  font-size: 0.8rem;
  color: #56a6f6;
}
/* すべてのページに適用 - ヒーロー */
.hero {
    margin: 0;
    padding: 50px 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #FFFFFF;
    text-align: center;
}
.hero.index {
    padding: 30px 0;
    background-image: url(../images/hero.jpg);
}
.hero.info {
    background-image: url(../images/hero.jpg);
}
.hero.access {
    background-image: url(../images/hero.jpg);
}
.hero.limited {
    background-image: url(../images/hero.jpg);
    padding: 10px 0;
}
.hero.contact {
    background-image: url(../images/hero.jpg);
}

/* すべてのページに適用 - パンくずリスト */


/* すべてのページに適用 - メイン */
main {
    margin: 30px auto 90px auto;
    max-width: 800px;
}
main h2 {
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #253958;
    padding: 0 0 5px 0;
    color: #253958;
    font-size: 1.3rem;
}
main h3 {
    margin: 30px 0 10px 0;
    padding: 0 0 5px 0;
    color: #253958;
    font-size: 1.2rem;
}
main h4 {
    margin: 10px 0 0 0;
}

/* すべてのページに適用 - フッター */
.gotop {
    text-align: center;
}
.gotop img {
    width: 50px;
    height: auto;   
}
.links {
    padding: 20px 0 20px 0;
    
    display: flex;
    justify-content: center;
    gap: 40px;
    line-height: 1.0;
    margin: 0;
}
.links a:link {
    color: #253958;
    text-decoration: none;
}
.links a:hover {
    text-decoration: underline;
}
.copyright {
  margin-top: 0;
    padding-top: 25px;
    padding-bottom: 25px;
    background-color: #253958;
    color: #FFFFFF;
    text-align: center;
}*/

/* 個別のスタイル */
/* index.html */
h1 {
    margin-bottom: -20px; /* 必要に応じて調整 */
  }
main.index-main{
    display: flex;
    } 
.column-left{
    margin-top: 20px;
}
.item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0px 30px 0px 0px;
}
/* 左のカラムの幅を26%に指定 */
.column-left {
    width: 26%;
}
/* 右のカラムの幅を74%に指定 */
.column-right {
    width: 74%;
}
.news li {
    margin-bottom: 12px; /* お知らせの項目の間隔 */
}
.news ul li {
    list-style-type: square;
}
.sitemap-wrapper {
  margin: -50px auto 0 auto;
  background: #e8f4ff;
  padding: 10px 10px;
  font-family: sans-serif;
}
.sitemap-title {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #253958;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.sitemap-wrapper {
  text-align: left;
}
.sitemap {
  max-width: 800px;
  margin: 0 auto; /* 中央に配置 */
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.sitemap ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.sitemap ul ul {
  padding-left: 18px; /* リストの階層を表す字下げの幅 */
}
.sitemap li {
  margin: 4px 0;
}
.sitemap a {
  color: #253958;
  text-decoration: none;
}
.sitemap a:hover {
  text-decoration: underline;
}
.sitemap > .column > ul > li > a {
  font-weight: bold;
}


/* info.html */
.info{
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 10px;
}
.eng{
    color: #253958;
}
.eng a{
    color: #253958;
}
.eng a:hover{
    color: #56a6f6;
}
.button {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 2px;
  justify-content: center; /* 中央寄せ */
  margin-bottom: 20px;
}
.button a {
  background-color: #fff;
  border: solid 1px #253958;
  color: black;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;    
  flex: 0 1 240px; /* 最小幅220pxで折り返し可能に！ */
  box-sizing: border-box;
}
.button a:hover {
  color: #253958;
  background-color: #CAE3FB;
}

/*上に戻るボタンを右中央に置きたいときは、以下を使う*/
/*.back-to-top {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000;
}*/

/*上に戻るボタンを右下に置きたいときは、以下を使う*/

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
.back-to-top img {
  width: 50px;
  height: auto;
  cursor: pointer;
}

/* access.html */
.map {
  width: 90%;
  display: block;
  margin: 0 auto;
}

/* institute.html */
.point{
  padding: .6em 1em;/*文字周りの余白*/
  margin-left: 40px;
  margin-right: 80px;
  margin-top:20px;
  border: 1px solid #253958;
}
.button2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px;
  justify-content: center;
  margin-bottom: 20px;
}
.button2 a {
  background-color: #fff;
  border: solid 1px #253958;
  color: black;
  padding: 8px 30px;
  text-decoration: none;
  font-size: 1em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 310px;
  box-sizing: border-box;
}
.button2 a:hover {
  color: #253958;
  background-color: #CAE3FB;
}
.button-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.small-text {
  font-size: 80%;
}


/* モバイル対応 */
@media(max-width: 590px) {
    .nav ul {
        flex-wrap: wrap;
        gap: 20px;
    }
    .links {
        flex-wrap: wrap;
        gap: 20px;
    }
    main {
        padding: 0 4%;
        display: grid;
    }
    main.index-main{
        padding: 0 4%;
        display: grid;
    }
   /* index.html */
    .items {
    grid-template-columns: 1fr;
    padding: 0 100px 0 100px;
    }
    .column-left {
    width: 100%;
}
    .column-right {
    width: 100%; 
}
    .hero.index {
    padding: 5vh 0;
    }   
    .map img {
    width: 100%;
    height: auto;     /* アスペクト比を保って縮む！ */
    display: block;
    }
}


