@charset "utf-8";

*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  font-weight: bold;
}

body {
  font-family: sans-serif;
  font-size: 16px;
  color: black;
  line-height: 1;
  background-color: white;
}

img {
  max-width: 100%;
}

.center-image {
    width: 80%;
    max-width: 500px; 
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  }

.header-inner {
  max-width: 1200px;
  height: 110px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-menu-button {
  display: none;
}

.header-rogo {
  display: block;
  width: 200px;
}

.site-menu ul {
  display: flex;
}

.site-menu ul li {
  margin-left: 15px;
  margin-right: 15px;
}

.footer {
  color: white;
  background-color:#003C82;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-rogo {
  display: block;
  width: 200px;
  margin-top: 90px;
}

.footer-tel {
  font-size: 26px;
  font-weight: bold;
  margin-top: 28px;
}

.footer-time {
  font-size: 13px;
  margin-top: 16px;
}

.copyright {
  width: 100%;
  background-color: #002864;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  margin-top: 90px;
}

.container {
  max-width: 1200px;
  margin: 10px auto 80px auto;
  padding: 0 40px;
}

.container h3{
  margin-top: 40px;
  margin-bottom: 20px;
}

.container p {
  line-height: 2;
  text-align: left;
}

/* h2の横に罫線をひく設定 */
.h2-line {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 25px;
  margin-bottom: 25px;
}

.h2-line h2 {
  margin: 0;
  padding-right: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}

.h2-line .bk-line {
  flex-grow: 1;
  max-width: calc(100% - 60%);
  height: 1px;
  background-color: black;
}

/* 箇条書きのスタイル */
.rist ul {
  list-style: none;
  padding-left: 1.5em;
  line-height: 1.7;
}

.rist ul>li::before {
  content: "● ";
  color: #204C97;
  font-size: 0.9em;
}

.rist p{
  margin-bottom: 10px;
}

/* 黒く四角いリンクボタンの設定 */
.button-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.button-container:has(.view-all-button:nth-child(4)) {
  /* 4個以上になった場合は左合わせ */
  justify-content: flex-start;
}

.view-all-button {
  display: inline-block;
  position: relative;
  overflow: hidden;
  width: calc((100% - 80px) / 3);
  padding: 20px 0px;
  text-align: center;
  background-color: #00286E; /* ここからデフォルトの黒ボタン */
  color: #ffffff;
  border: 1px solid #00286E;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background-color 0.6s ease;
  z-index: 1;
}

.view-all-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #001450;
  transform: translateX(-100%);
  transition: transform 0s ease;
  z-index: -1;
}

.view-all-button:hover::before {
  transform: translateX(0);
  transition: transform 0.3s ease;
}

/* ここから白ボタン */
.white-button {
  background-color: #ffffff;
  color: #333;
  border: 2px solid #333;
  z-index: 0; /* ::beforeの影響を受けないように調整 */
  padding-top: 10px;
  padding-bottom: 10px;
}

.white-button::before {
    display: none;
}

.white-button:hover {
  background-color: #001450;
  color: #ffffff;
  border-color: #001450;
}

/* ボタン内のテキスト設定 */
.button-text-container {
  /* ボタン全体の左右の余白をここで設定 */
  padding: 0 25px; 
}

.button-text-container .button-text-title {
  font-size: 20px; 
  font-weight: 600; 
  text-align: center; /* 中央揃え */
  margin-top: 0px;
  margin-bottom: 5px;
}

.button-text-container .button-text-normal {
  font-size: 14px; 
  font-weight: 400; 
  text-align: center;
  line-height: 1.6;
  margin-top: 5px;
  margin-bottom: 0;
}

/* ページ下に自動で表示するトップへ戻るボタン */
.to-top-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 5px 20px;
  background-color: black;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.is-visible {
  opacity: 1;
  visibility: visible;
}


@media (max-width: 800px) {
  .site-menu ul {
    display: block;
    text-align: center;
  }

  .site-menu li {
    margin-top: 20px;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    height: 50px;
    z-index: 10;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  }

  .header-inner {
    padding-left: 10px;
    padding-right: 10px;
    height: 100%;
    position: relative;
  }

  .header-rogo {
    width: 125px;
  }

  .header-site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    color: white;
    background-color: #736E62;
    padding-top: 30px;
    padding-bottom: 50px;
    display: none;
  }

  .header-site-menu.is-show {
    display: block;
  }

  .toggle-menu-button {
    display: block;
    width: 44px;
    height: 34px;
    background-image: url(../img/icon-menu.png);
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    border-radius: 0;
    outline: none;
  }

  .main {
    padding-top: 50px;
  }

  .footer-rogo {
    margin-top: 60px;
  }

  .footer-tel {
    font-size: 20px;
  }

  .copyright {
    margin-top: 50px;
  }

    /* 黒く四角いボタンコンテナを縦並びにする */
  .button-container {
    flex-direction: column; /* 縦一列にする */
    gap: 20px; /* 縦の隙間を調整 */
    align-items: center; /* ボタンを中央揃えにする */
  }
 
  .view-all-button {
    width: 80%; /* ボタンの幅を小さくする */
    padding: 15px 0;
  }

  .container {
    padding: 0 10px
  }

}