@charset "UTF-8";

/* 全体 */
body {
  margin: 0;
  font-size: 16px;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* リンク処理 */
a:link {
  color: #000000;
  text-decoration: none;
}

a:visited {
  color: #000000;/*#999999;*/
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background-color: #006090;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  box-sizing: border-box;
}

header .logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
}

/* ハンバーガーメニュー */
nav .menu {
  display: none;
  flex-direction: column;
  background-color: #006090;
  position: absolute;
  right: 0;
  top: 70px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;

  /* 高さ制限とスクロール */
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

nav .menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.4em;
  padding: 10px;
  display: block;
  text-align: center;
}

.menu-icon {
  display: block;
  font-size: 2.5em;
  cursor: pointer;
  color: #fff;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .menu {
  display: flex;
}

/* ハンバーガーアイコン → 閉じるアイコンに切り替え */
.menu-icon::before {
  content: "\2630";
}

#menu-toggle:checked + .menu-icon::before {
  content: "\00d7";
  font-size: 1.5em;
}

/* サブメニュー */
nav .submenu {
  display: none;
  flex-direction: column;
  background-color: #004060;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav .submenu li a {
  font-size: 0.9em;
  padding: 10px 20px;
  display: block;
  color: #ddd;
  text-decoration: none;
}

nav .submenu li a:hover {
  background-color: #004060;
  color: #fff;
}

nav .submenu-header {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 15px;
}

/* 項目テキスト */
nav .parent-link {
  color: #fff;
  font-size: 1.4em;
  text-align: center;
  margin-right: 8px;
}

/* ＋／－アイコン */
nav .toggle-icon {
  font-size: 1.2em;
  color: #fff;
  cursor: pointer;
  margin-left: 10px;
}

/* ヒーローテキスト部分 */
.hero-text {
  width: 100%;
  height: 250px;
  background-color: #006090;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* ヘッダーの高さ分だけ下にずらす */
  margin-top: 70px;
}

/* 本題タイトル */
.main-title {
  font-size: 3.0em;
  font-weight: bold;
  color: #ffcc00;
  margin: 0;
  letter-spacing: 2px;
}

.sub-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-top: 10px;
}

/* コンテンツ */
main {
  padding-top: 90px;
}

.content-section {
  margin: 60px auto;
  max-width: 1000px;
  scroll-margin-top: 90px;
}

.content-section h2 {
  margin-bottom: 20px;
}

.content-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.content-box img {
  max-width: 350px;
  margin: 10px;
}

.content-box .text {
  max-width: 550px;
  margin: 10px;
  text-align: left;
}

.subcontent-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.subcontent-box img {
  max-width: 140px;
  margin: 10px;
}

.subcontent-box .text {
  max-width: 660px;
  margin: 10px;
  text-align: left;
}

.subcontent-box .text2 {
  max-width: 660px;
  margin: 10px;
  text-align: left;
}

/* サブタイトルのスタイル */
.subtitle {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 5px;
}

.sub-subtitle {
  font-size: 1em;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 5px;
}

/* 小項目リスト 横並び（PCでも適用） */
.sub-items {
  display: block;
  list-style-type: none;
  padding-left: 0;
  max-width: 700px;
  margin: 0 auto;
}

.sub-items li {
  background-color: #f0f8ff;
  margin: 0;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  text-align: center;
  word-wrap: break-word;
}

/* フッター */
footer {
  background-color: #303030;
  color: #fff;
  padding: 20px;
  margin-top: 40px;
}

/* レスポンシブ対応（幅768px以下の画面） */
@media (max-width: 768px) {
  .content-box .text {
    max-width: 550px;
    margin: 10px;
    text-align: left;
    font-size: 14px;
  }

  .subcontent-box .text {
    max-width: 660px;
    margin: 10px;
    text-align: left;
    font-size: 14px;
  }

  .subcontent-box .text2 {
    max-width: 660px;
    margin: 10px;
    text-align: left;
    font-size: 10px;
  }
}
