@charset "utf-8";

/* リセット */

input#journalSearch::placeholder {
  color: #777;
}

ul li {
  line-height: 1.6;
  padding: 0.2em 0;
}

ul li a {
  color: #0057a0;
  font-weight: bold;
}
ul li a:hover {
  text-decoration: underline;
}


body, h1, h2, h3, p, ul, li, a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
body {
  font-family: sans-serif;
  line-height: 1.6;
  padding-top: 60px; /* ヘッダーの高さ分 */
}

/* ヘッダーとナビゲーション */
#header {
  background-color: #004080;
  color: white;
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem; 
}

.logo {
  font-size: 1.5rem;
}

#navi {
  display: flex;
  gap: 0.5rem; /* PC時のリンク間隔を広げる */
}

#navi li a {
  color: white;
  font-weight: normal;
  font-size: 16px;
  /*padding: 0.5rem 0.75rem; */
   padding: 0.5rem 1rem;
}

.nav_btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 1.6rem; 
}

.hamburger_line {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.nav_bg {
  display: none;
}

/* メインビジュアル */
.hero {
  background-color: #e6f0ff;
  padding: 2rem;
  text-align: center;
}
.hero h2 {
  font-size: 1.8rem;
  color: #003366;
}
.hero p {
  font-size: 1.2rem;
}

/* レイアウト */
.flex-box {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
}
.main {
  flex: 3;
  padding: 1rem;
}
.sidebar {
  flex: 1;
  background: #f4f4f4;
  padding: 1rem;
  margin-left: 1rem;
}

/* セクション共通 */
section h2 {
  border-left: 5px solid #004080;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
}
.lines li, .lines2 li {
  margin-bottom: 0.5rem;
}

/*フッター */
.footer {
  background: #004080;
  color: white;
  text-align: center;
  padding: 1rem;
}


 トップに戻る */

#page-top {
  position: fixed;
  display: block;
  bottom: 80px;
  right: 20px;
  left: auto;
  z-index: 9999;
}

#page-top a {
  background: #004080;
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
} 

/* iPad縦向き（ポートレート）専用ハンバーガーメニュー */
@media only screen and (max-width: 834px) and (orientation: portrait) {
  .nav_btn {
    display: flex;
  }

  #navi {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 250px;
    background: #003366;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1rem;
    transition: right 0.3s ease;
    z-index: 999;
  }

  #navi li a {
    display: block;
    width: 100%;
    line-height: 2.2;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }

  body.nav_open #navi {
    right: 0;
  }

  .nav_bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    z-index: 998;
  }

  body.nav_open .nav_bg {
    display: block;
  }

  .flex-box {
    flex-direction: column;
  }

  .sidebar {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* 横向きや他デバイスでは通常メニューを表示 */
@media only screen and (min-width: 835px), (orientation: landscape) {
  .nav_btn {
    display: none;
  }

  #navi {
    display: flex;
    position: static;
    height: auto;
    width: auto;
    background: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 1.5rem;
  }

  .nav_bg {
    display: none;
  }
}

