/* リセット・基本設定 */
* {
  margin: 0;
  padding: 0;
  box-box: border-box;
}

body {
  font-family: "源ノ角ゴシック JP", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

.container {
  width: 1024px;
  margin: 0 auto;
}

/* ヘッダー */
.site-header {
  padding-top: 10px;
  border-top: 10px solid;

  /* グラデーションを指定 */
  border-image: linear-gradient(90deg, #0B2948 0%, #385F85 58%, #238FAB 100%);
  border-image-slice: 1;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 10px;
}

.logo-area {
  width: 90%;
  max-width: 350px;
  min-width: 300px;
}

.logo-area img {
  width: 90%;
  max-width: 350px;
  min-width: 300px;
}

.sub-text {
  font-size: 11px;
  color: #666;
}

.header-contact {
  display: flex;
  align-items: center;
}

.header-contact .tel-number {
  font-size: 27px;
  color: #E86A33;
  font-weight: bold;
  margin-left: 5px;
}

.hours {
  font-size: 12px;
  text-align: right;
  margin-top: -5px;
}

.mail-icon {
  width: 30px;
  height: 30px;
  background: #1F3A5F;
  color: white;
  padding: 10px;
  border-radius: 50%;
  margin-left: 15px;
  font-size: 25px;
  text-align: center;
  display: flex;
  align-items: flex-end;
  line-height: 1.3;
  justify-content: center;
  text-decoration: none;
}

.mail-icon:hover {
  opacity: 0.7;
}

.main-nav ul {
  list-style: none;
}

.main-nav li {
  flex: 1;
  text-align: center;
}

.main-nav li a {
  display: block;
  text-decoration: none;
  color: #1F3A5F;
  font-weight: bold;
}

.main-nav li a:hover {
  opacity: 0.7;
}

/* --- [PC用] 1025px以上：通常の横並び --- */
.main-nav {
  background-color: #fff;
}

.nav-wrapper {
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  /* PCは横並び */
  list-style: none;
  width: 100%;
  margin-top: 5px;
}

.nav-list li {
  flex: 1;
  border-right: 2px solid #1F3A5F;
  height: 30px;
}

.nav-list li:last-child {
  border-right: none !important;
}

.nav-list li a {
  padding-top: 3px;
  display: block;
  text-align: center;
  color: #1F3A5F;
  text-decoration: none;
  font-weight: bold;
}


/* メインビジュアル */
.main-visual {
  width: 100%;
  max-width: 1024px;
  height: 265px;
  background: url('../img/main.png') center/cover;
  color: white;
  display: flex;
  align-items: center;
  margin: 0 auto;
  margin-top: 10px;
}

.mv-content h2 {
  font-size: 42px;
  margin-bottom: 15px;
  padding-left: 40px;
  line-height: 1.4;
}

.mv-content p {
  padding-left: 40px;
}

/* レイアウト */
.main-wrapper {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
}

.main-content {
  width: 730px;
}

.sidebar {
  width: 270px;
}



/* お知らせ */
.section-title-blue {
  background: #004BB1;
  color: white;
  padding: 8px 15px;
  font-size: 16px;
}

.info-body {
  border: 2px solid #004BB1;
  padding: 20px;
  position: relative;
  margin-bottom: 30px;
}

.btn-more {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: #2C5D8A;
  color: white;
  text-decoration: none;
  padding: 7px 25px;
  font-size: 12px;
}

.btn-more:hover {
  opacity: 0.9;
}

.btn-grid:hover {
  opacity: 0.9;
}

/* グリッドメニュー */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-item {
  border-radius: 4px;
  color: #333;
  position: relative;
  min-height: 180px;
  height: 220px;
}

.grid-item h4 {
  margin-bottom: 10px;
  padding-bottom: 5px;
  font-size: 18px;
  text-align: center;
  color: #fff;
  padding-top: 3px;
}

.grid-item ul {
  list-style: none;
  font-size: 16px;
  padding-left: 15px;
  padding-top: 15px;
  line-height: 1.7;
}

.grid-item-img {
  position: absolute;
  right: 20px;
  top: 80px;
}

.grid-item-img01 {
  top: 70px;
}


.grid-item-img03 {
  top: 70px;
}




.grid-item.navy {
  background: #eef2f7;
  border: solid 2px #1F3A5F;
}

.grid-item.navy h4 {
  background: #1F3A5F;
}

.grid-item.gray h4 {
  background: #2B3A42;
}

.grid-item.green h4 {
  background: #2F4F3A;
}

.grid-item.orange h4 {
  background: #7A3A1E;
}


.grid-item.gray {
  background: #f5f5f5;
  border: solid 2px #2B3A42;
}

.grid-item.green {
  background: #f1f8f1;
  border: solid 2px #2F4F3A;
}

.grid-item.orange {
  background: #fdf5ef;
  border: solid 2px #7A3A1E;
}

.btn-grid {
  position: absolute;
  right: 15px;
  bottom: 15px;
  background: #2C5D8A;
  color: white;
  padding: 7px 25px;
  text-decoration: none;
  font-size: 12px;
}

/* コラム */
.section-title-line {
  border-bottom: 2px solid #031B30;
  margin: 40px 0 20px;
  padding-bottom: 5px;
  border-left: 5px solid #031B30;
  padding-left: 10px;
}

.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.col-item {
  border: 2px solid #333;
  padding: 20px 10px 10px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  background: #F9F9F9;
  text-decoration: none;
  color: #333;
}

.col-item:hover {
  opacity: 0.8;
}



/* サイドバー */
.side-banner {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  font-weight: bold;
  position: relative;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.4;
  text-decoration: none;
}

.side-banner:hover {
  opacity: 0.8;
}

.side-banner h5 {
  font-size: 20px;
  padding-left: 15px;
  width: 175px;
}

.side-banner span {
  display: block;
  font-size: 14px;
  font-weight: normal;
  margin-top: 3px;
}

.side-banner img {
  height: 70px;
  margin-right: 17px;
}

.side-banner-01 {
  background: transparent linear-gradient(180deg, #D7D9F200 0%, #ECEEFA 100%) 0% 0% no-repeat padding-box;
  color: #0E065A;
}

.side-banner-02 {
  background: transparent linear-gradient(180deg, #D6E3FF00 0%, #EDF3FF 100%) 0% 0% no-repeat padding-box;
  color: #06277D;
}

.side-banner-03 {
  background: transparent linear-gradient(180deg, #CFE7E100 0%, #EAF6F3 100%) 0% 0% no-repeat padding-box;
  color: #003628;
}

.side-banner-04 {
  background: transparent linear-gradient(0deg, #FFF2DD 0%, #FFE2B80D 100%) 0% 0% no-repeat padding-box;
  color: #5B3801;
}



.side-banner-05,
.side-banner-06,
.side-banner-07 {
  background: transparent linear-gradient(0deg, #F0F1F4 0%, #D9DCE100 100%) 0% 0% no-repeat padding-box;
  color: #031B30;
}



.side-banner-08 {
  background: transparent linear-gradient(0deg, #F6EDD1 0%, #EEEBCF00 100%) 0% 0% no-repeat padding-box;
  color: #031B30;
}

.side-banner img {
  height: auto;
}


.slide-img-01 {
  width: 65px;
}

.slide-img-02 {
  width: 65px;
}

.slide-img-03 {
  width: 65px;
}

.slide-img-04 {
  width: 55px;
}

.slide-img-05 {
  width: 74px;
}

.slide-img-06 {
  width: 50px;
}

.slide-img-07 {
  width: 60px;
}

.slide-img-08 {
  width: 52px;
}

.side-banner-04 h5 {}

.red {
  background: #AB5253;
  color: #fff;
  margin-left: 15px;
  width: 80px;
  text-align: center;
  padding: 2px 8px;
  margin-bottom: 2px;
  font-weight: bold !important;
}


.external-link {
  margin-top: 30px;
}

.external-link p {
  border-left: 5px solid #031B30;
  border-bottom: 2px solid #031B30;
  padding-left: 7px;
  font-weight: bold;
}

.link-banner {
  margin-top: 10px;
  text-align: center;
}

.link-banner:hover {
  opacity: 0.8;
}

/* フッター */
.site-footer {
  background: #fff;
  border-top: 5px solid;

  /* グラデーションを指定 */
  border-image: linear-gradient(90deg, #0B2948 0%, #385F85 58%, #238FAB 100%);
  border-image-slice: 1;
  padding-top: 30px;
  color: #031B30;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding-bottom: 30px;
}

.footer-nav {
  display: flex;
  gap: 50px;
  font-size: 13px;
  margin-bottom: 25px;
}

.font-mincho {
  font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  font-weight: bold;
}

.footer-info {
  max-width: 330px;
  line-height: 1.3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.f-logo {
  width: 70px;
  height: auto;
  margin-top: 10px;
  margin-right: 10px;
}

.footer-info h4 {
  font-size: 18px;
}

.footer-info p {
  font-size: 13px;
}

.footer-info span {
  font-size: 13px;
}

.footer-info .f-tel {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.8;
}

.footer-nav ul {
  list-style: none;
}

.nav-title {
  font-weight: bold;
}

.footer-nav ul li a {
  text-decoration: none;
  color: #031B30;
  line-height: 2;
  font-size: 14px;
}

.footer-nav ul li a:hover {
  opacity: 0.8;
}

.copyright {
  background: #1F3A5F;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 11px;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */

@media (max-width: 1024px) {
  .container {
    width: 100%;
    /* 幅を100%にしてパディングで調整 */
    padding: 0 15px;
    box-sizing: border-box;
  }

  .main-wrapper {
    flex-direction: column;
    margin-top: 30px;
    /* 縦並びに変更 */
  }

  .main-content,
  .sidebar {
    width: 100%;

    /* メインもサイドバーも全幅に */
  }

  .sidebar {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .side-banner {
    width: 47%;
  }

  .external-link {
    width: 100%;
    margin-bottom: 30px;
  }

  .link-banner {
    width: 47%;
  }

  .sidebar {
    margin-top: 40px;
    /* サイドバーの上に余白を作る */
  }
}

@media (max-width: 540px) {
  .sidebar {
    flex-direction: column;
  }

  .side-banner {
    width: 100%;
  }

}

@media (max-width: 768px) {
  .header-contact {
    margin-top: 15px;
  }

  .main-nav li {
    flex: none;
    width: 50%;
    /* 2列表示 */
    border-bottom: 1px solid #ddd;
  }

  .main-nav li:last-child {
    width: 100%;
    /* 奇数の場合は最後を横いっぱいに */
  }

  /* メインビジュアルの文字サイズ調整 */
  .main-visual h2 {
    font-size: 28px;
  }

  .main-visual p {
    font-size: 14px;
  }

  /* お知らせボタンの調整 */
  .info-body {
    padding-bottom: 50px;
  }

  /* 4枚のグリッドカードを1列に */
  .grid-container {
    grid-template-columns: 1fr;
  }

  /* コラムを1列に */
  .column-grid {
    grid-template-columns: 1fr;
  }

  /* フッターを縦並びに */
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }

}

/* --- [共通] リセット追加 --- */
button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

/* --- [PC用] メニュー表示 --- */
.hamburger {
  display: none;
  /* PCでは隠す */
}

/* 提示いただいたPCスタイルを維持 */
.nav-list {
  display: flex;
  list-style: none;
  width: 100%;
}

/* --- [スマホ・タブレット用] 1024px以下 --- */
@media (max-width: 768px) {
  .header-contact {
    display: none;
  }

  .nav-wrapper {
    position: relative;
    /* メニューの基準点 */
    height: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #fff;
  }

  /* ハンバーガーボタン */
  .hamburger {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 100;
  }

  .hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #1F3A5F;
    transition: 0.3s;
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 10px;
  }

  .hamburger span:nth-child(3) {
    top: 20px;
  }

  /* ×アニメーション */
  .hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* 【修正】スライドダウン形式のメニュー */
  .nav-list {
    display: none;
    /* 初期状態は非表示 */
    position: absolute;
    /* 親要素(.nav-wrapper)の直下に配置 */
    top: 60px;
    /* ヘッダーの高さ分下げる */
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* 浮き出し効果 */
    border-top: 1px solid #eee;
  }

  .nav-list.open {
    display: flex;
    /* ボタンクリックで表示 */
  }

  .nav-list li {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
  }

  .nav-list li a {
    display: block;
    color: #1F3A5F;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: bold;
    text-align: left;
    /* 左寄せで見やすく */
    text-decoration: none;
  }

  .nav-list li a:active {
    background-color: #f5f5f5;
    /* タップ時の反応 */
  }
}