h2 {
  margin-top: 120px; /* ヘッダーの高さ + α */
}

.header-title {
  text-align: center;
  margin-top: -10px; /* 上下に10px移動 */
  margin-left: auto; /* 左右に10px移動 */
}
header {
  display: flex;
  width: 100%;
  height: 100px;
  background-color: white;
  align-items: center;
  position: fixed;
  z-index: 10;
}

.header-link {
    text-decoration: none;
    color: inherit; /* 元のh1の色を保つ */
}
.header-link:hover {
    text-decoration: underline;
    border-bottom: 3px solid #004DFF; /* ホバー時の色（自由に変更可） */
    text-decoration: none; /* ホバー時の線を非表示 */
}

/* 本来のborderは消す */
header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

header::before { /*横線*/
  content: "";
  position: absolute;
  left: 0px; /* 左右にずらす */
  bottom: 30px; /* 上下にずらす */
  width: calc(100% - 10px); /* 左にずらした分縮める */
  height: 5px;  /* 線の大きさ */
  background-color: #004DFF;
}

header::after { /*縦線*/
  content: "";
  position: absolute;
  top: 0;
  left: 30px; /* 左右にずらす */
  width: 5px; /* 線の大きさ */
  height: 100%;
  background-color: #004DFF;
}

h1 {
    padding-left: 30px;
} 


.title {
  margin-right: auto;
}

.nav{   /*ナビゲーション設定*/
  margin-left: auto;
  margin-right: auto;
  margin-top: -35px;
}

nav ul{
display: table;
margin: 0 auto;
padding: 0 ;
width: 100%;
text-align: center;
}
nav li{
display: table-cell;
min-width: 50px;
}
nav a{
display: block;
width: 100%;
text-decoration: none;
color: #555;
padding-bottom: 5px;
}
nav li.current{
border-top: 3px solid #004DFF;
}
nav li:hover{
color: #E7DA66;
border-top: 3px solid #00ff62;
}


.menu-item {
  list-style: none;
  display: inline-block;
  padding: 10px;
}


div{
    background: white;
}


.header-line {
    padding: 1rem 0rem;
    margin-bottom: 0.2rem;
    border-bottom: 10px solid #b2d5de;
    font-weight: bold;
    font-size: 20px;
    border-left: 10px solid red;
    padding-left: 20px;
}


/* PC時 */
@media screen and (min-width: 767px) {
  /*ウィンドウ幅が767px以上の場合に適用*/
}

/* タブレット用 */
@media screen and (max-width: 767px) {
  /*ウィンドウ幅が最大767pxまでの場合に適用*/
}

/* スマホ用 */
@media screen and (max-width: 479px) {
  /*ウィンドウ幅が最大479pxまでの場合に適用*/
  .allContents {
    display: block;
  }
  .menu-item a {
    font-size: 15px;
    line-height: 1.2;
  }
  .header-title{
    text-align: auto;
    margin-left: 15px;
    margin-bottom: 20px;
    font-size: 150%;
  }
  header::before {
    bottom: 20px; /* 青線を一番下に配置 */
  }
  .nav {
    margin-top: -20px; /* メニューを下にずらす */
  }
}


.site-footer {
    background-color: #f5f5f5;
    color: #333;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    margin-top: 40px;
    border-top: 1px solid #ccc;
}
