@charset "utf-8";

/* ----------------------------------------------------
  ヘッダー
---------------------------------------------------- */
header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
  transition-duration: 300ms;
  overflow-x: hidden !important;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}
@media print, screen and (min-width: 768px) { header {padding: 10px 20px;}}
@media print, screen and (min-width: 992px) { header {padding: 10px 10px 18px 10px;}}

/* ----------------------------------------------------
  ヘッダー割合
---------------------------------------------------- */
.header-container {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 0 1fr; /* ロゴ：ボタン群＋ナビ：ハンバーガーメニュー */
}
@media print, screen and (min-width: 992px) {
.header-container {
  grid-template-columns: 2fr 6fr 0; /* ロゴ：ボタン群＋ナビ：ハンバーガーメニュー */
  }
}
@media print, screen and (min-width: 1600px) {
.header-container {
  display: grid;
  grid-template-columns: 1fr 1fr 0; /* ロゴ：ボタン群＋ナビ：ハンバーガーメニュー */
  }
}

/* ----------------------------------------------------
  ヘッダー　右側（ボタン群＋ナビ）
---------------------------------------------------- */
.header-right {
  display: flex;
  flex-direction: column; /* 縦並び　上：ボタン　下：ナビ */
  align-items: flex-end;  /* 右寄せ */
  gap: 12px;              /* ボタンとナビの間 */
}

/* ----------------------------------------------------
  ヘッダー　ボタン群
---------------------------------------------------- */
.nav-top-buttons {gap: 8px;}
@media print, screen and (min-width: 992px) {
.nav-top-buttons {
  display: flex;  
  gap: 0;
  }
}

.spare_yohaku {
  margin: 3px 20px 0 0
}

.spare_mt_03{margin-top: 3px;}
.spare_mr_10{margin-right: 10px;}
.spare_mr_20{margin-right: 20px;}

/*  spare_btn_01
---------------------------------------------------- */
.spare_btn_01 {
  font-size: 14px;
  color: #fff !important;
  background: #1c72c9; /* 背景色 */
  display: inline-block;
  padding: 10px;
  letter-spacing: 2px;
  border: 0;
  text-align: center;  
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
}
.spare_btn_01:visited {
  color: #fff !important;
}
.spare_btn_01:hover,
.spare_btn_01:active {
  color: #fff !important;  
  background: #222; /* 背景色 */
  text-decoration: none !important;
}
.spare_btn_01 i {
  font-size: 16px;
  margin: 0 0 0 5px;
  color: #fff;
}

@media print, screen and (min-width: 992px) {
.spare_btn_01 {
  padding: 6px 20px;
  background: #00458b; /* 背景色 */
  border-radius: 0px;
  }
}

/*  spare_btn_02
---------------------------------------------------- */
.spare_btn_02 {
  font-size: 14px;
  color: #fff !important;
  background: #97a4b1; /* 背景色 */
  display: inline-block;
  padding: 10px;
  letter-spacing: 2px;
  border: 0;
  text-align: center;  
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
}
.spare_btn_02:visited {
  color: #fff !important;
}
.spare_btn_02:hover,
.spare_btn_02:active {
  color: #fff !important;
  background: #222; /* 背景色 */
  text-decoration: none !important;
}
.spare_btn_02 i {
  font-size: 16px;
  margin: 0 0 0 5px;
  color: #fff;
}

@media print, screen and (min-width: 992px) {
.spare_btn_02 {
  padding: 6px 20px;
  border-radius: 0px;
  }
}

/* PC用　右側（ボタン群）
---------------------------------------------------- */
.pc-only {
  display: flex;
}

@media print, screen and (max-width: 991px) {
/* 992px未満のときに適用するCSS */
  .pc-only {
    display: none;
  }
}

/* 991以下用　右側（ボタン群）
---------------------------------------------------- */
.sp-only {
  display: none;
  flex-direction: column; /* 縦並び */
  margin-top: 2em;
}

@media print, screen and (max-width: 991px) {
/* 992px未満のときに適用するCSS */
  .sp-only {
    display: flex; /* 横並び */
  }
}

/* ----------------------------------------------------
  ロゴ
---------------------------------------------------- */
.header-logo {
  width: fit-content;
}
.logo-link {
  display: block;
  transition-duration: 300ms;
}

/* ----------------------------------------------------
  PC専用　右側エリア
---------------------------------------------------- */
.pc_contact {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1em;
}

/*  スマホでは非表示にする
---------------------------------------------------- */
@media print, screen and (max-width: 991px) {
/* 992px未満のときに適用するCSS */
  .pc_contact {
    display: none;
  }
}

/* ----------------------------------------------------
  ナビメニュー
---------------------------------------------------- */
@media print, screen and (max-width: 991px) {
/* 992px未満のときに適用するCSS */
  .nav-menu {
    position: fixed;
    z-index: 0;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    padding-right: clamp(30px, 8vw, 60px);
    padding-bottom: clamp(100px, 8vw, 60px);
    padding-left: clamp(30px, 8vw, 60px);
    transition-duration: 300ms;
    transform: translateX(100%);
    overflow: auto;
    background-color: rgba(0, 64, 136, 1.0); /* スマホタブレット背景色 */
  }
  .nav-menu.active {
    transform: translateX(0);
  }
}

@media print, screen and (min-width: 992px) {
  .nav-menu {
    padding-top: 0 !important;/* 絶対要る */
    padding-right: 10px;
  }
}

.menu-list{list-style: none;/* 中黒消す */}

/* 追加：メガメニューのポインター */
.menu-list a{cursor: pointer}

/* 追加：メガメニューの#について */
.menu-list a{text-decoration: none !important}

@media print, screen and (min-width: 992px) {
  .menu-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    gap: clamp(20px, 2.0833333333333335vw, 40px);
  }
  .menu-list a:link,
  .menu-list a:visited,
  .menu-list a:hover,
  .menu-list a:active{color:#222;}  
}

@media print, screen and (max-width: 991px) {
/* 992px未満のときに適用するCSS */
  .menu-item {
    border-style: solid;
    border-color: #fff;
    border-bottom-width: 1px;
  }
}

.menu-item i{color: #97a4b1;}

/* ----------------------------------------------------
  スマホ～タブレット時　メニューリンク基礎
---------------------------------------------------- */
@media print, screen and (max-width: 991px) {
/* 992px未満のときに適用するCSS */
  .menu-link {display: block;}  
  .nav-menu.active .menu-link {color: #fff;}
}

/* ----------------------------------------------------
  メニューリンク 文字サイズ／余白／配置／色
---------------------------------------------------- */
.menu-link {
  padding: 10px 0;
  text-align: center;
  color: #222; /* メニュー文字色 */
}

/* ----------------------------------------------------
  現在地を示す下線（.active）
---------------------------------------------------- */
@media print, screen and (max-width: 991px) {
/* 992px未満のときに適用するCSS */
.menu-link.active{color: #97a4b1 !important;}/* 文字色 */
}

@media print, screen and (min-width: 992px) {
  .menu-link {position: relative;}
  
/* 下線のスタイル
-------------------------------- */
  .menu-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px; /* 下線の太さ */
    background-color: #222; /* 下線の色 */
  }
  .menu-link.active::after {
    bottom: 0;
  }
  .menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #222; /* 下線の色 */
    transition: width 0.3s ease;
  }
  .menu-link.active::after, .menu-link:hover::after {
    width: 100%;
  }
}

/* ----------------------------------------------------
  ハンバーガーメニュー
---------------------------------------------------- */
/* bootstrap打消し
-------------------------------- */
.hamburger-button {
  border: none;         /* ボタンの枠線を消す */
  background: transparent; /* ボタンの背景を透明に */
  outline: none;        /* フォーカス時の枠を消す */
  padding: 0;
}
.hamburger-button:focus,
.hamburger-button:active {
  outline: none;
  box-shadow: none;     /* クリック時の影も消す */
}

/* タブレットサイズのみ幅を半分に変更
-------------------------------- */
@media print, screen and (min-width: 768px) {
  #hb-menu {
    width: 40%; /* 画面半分だけ表示 */
  }
}
@media print, screen and (min-width: 992px) {
  #hb-menu {
    width: 100%;
  }
}

/* ハンバーガーボタン
-------------------------------- */
.hamburger-button {
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
  height: clamp(13px, 3.466666666666667vw, 26px);
  margin-right: 0;
  margin-left: auto;
  cursor: pointer;
}

.hamburger-lines {
  display: block;
}

.hamburger-lines {
  position: relative;
  width: clamp(40px, 10.666666666666666vw, 90px);
  height: clamp(13px, 3.466666666666667vw, 26px);
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
}
@media (max-width: 1024px) {
  .hamburger-lines {
    width: clamp(40px, 10.666666666666666vw, 90px);
    height: clamp(13px, 3.466666666666667vw, 26px);
  }
}
@media (max-width: 768px) and (orientation: landscape) {
  .hamburger-lines {
    width: clamp(30px, 7.496251874062969vw, 50px);
    height: clamp(15px, 2.998500749625187vw, 20px);
  }
}
.hamburger-lines.active {
  height: 1px;
}

/* 線
-------------------------------- */
.hamburger-lines .line {
  position: absolute;
  right: 0;
  left: 0;
  display: block;
  width: 100%;
  height: clamp(1px, .26666666666666666vw, 2px);
  margin: auto;
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
  /* ハンバーガーメニューの線の色を変えたい時 */
  background-color: #000;
}

/* 線の色切替
-------------------------------- */
.hamburger-lines.active .line {
  /* ハンバーガーメニューオープン時の線の色を変えたい時 */
  background-color: #fff;
}

/* 2本線
-------------------------------- */
.hamburger-lines .line:nth-child(1) {
  top: 0;
}
.hamburger-lines .line:nth-child(2) {
  bottom: 0;
}

/* タブレット以上でハンバーガー非表示
-------------------------------- */
@media screen and (min-width: 992px) {
  .hamburger-button {
    display: none;
  }
}


/* ----------------------------------------------------
  メガメニューー
---------------------------------------------------- */
.mega-area {
  position: fixed;
  left: 0;
  width: 100vw;
  background: rgba(0,69,139,0.9); /* メガメニューの背景色 */
  z-index: 900;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}
.mega-area.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mega-inner {
  max-width: 1200px;       /* 全体最大幅 */
  margin: 0 auto;           /* ページ中央寄せ */
  padding: 40px 20px;
  display: flex;
  justify-content: center;   /* 見出し＋リストを横並び中央揃え */
  gap: 40px;                 /* 左右の間隔 */
  align-items: flex-start;   /* 上揃え */
}

/*  見出し（左）
---------------------------------------------------- */
.mega-lead {
  flex: 0 0 auto;
  text-align: left;
  padding-top: 30px;
}
.mega-title{
  color: #fff;  
	font-size: 17px;
	line-height: 30px;
  letter-spacing: 2px;
	}  
.mega-title span{
	font-size: 30px;
	}

@media print, screen and (min-width: 1200px) {
.mega-lead {
  padding-top: 50px;
}
.mega-title{
	font-size: 20px;
	line-height: 35px;
	}  
.mega-title span{
	font-size: 40px;
	}
}

/*  サムネリンク（右）
---------------------------------------------------- */
.mega-links {
  display: flex;
  justify-content: center;  /* 画像リストを中央揃え */
}

.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;            /* 横並び */
  gap: 30px;
}
@media print, screen and (min-width: 1200px) {
.mega-list {
  gap: 50px;
  }
}

.mega-list li {
  flex: 1 1 200px;   /* 基本幅200pxで伸縮可能 */
  min-width: 80px;  /* 最小幅 */
  max-width: 200px;  /* 最大幅 */
  display: flex;
  flex-direction: column;
}
@media print, screen and (min-width: 1200px) {
.mega-list li {
  flex: 1 1 300px;   /* 基本幅300pxで伸縮可能 */
  min-width: 80px;  /* 最小幅 */
  max-width: 300px;  /* 最大幅 */
  }
}

.mega-list li a {
  display: flex;
  flex-direction: column; /* 画像（上）、テキスト（下） */
  text-decoration: none;
}
.mega-list li .mega-img img {
  width: 100%;
  height: auto;
}

/*  サムネ（zoom）
---------------------------------------------------- */
.mask{
  display: block;
  line-height: 0;        /* 行の高さを0にする */
  overflow: hidden;      /* 拡大してはみ出る要素を隠す */
}
.zoomIn img{
  transform: scale(1);
  transition: .3s ease-in-out;
}
.zoomIn a:hover img{
  transform: scale(1.1);
}

/*  サムネリンク　テキスト
---------------------------------------------------- */
.mega-text-row {
  display: flex;
  align-items: center;
  padding: 10px 0 0 0;  
  justify-content: space-between; /* 左右に端揃え */
  background: transparent;
}
.mega-text { font-size: 16px; color: #fff;} /* リンクテキスト */
.mega-arrow {font-size: 19px; color: #97a4b1} /* 矢印マーク */

.mega-list a:link,
.mega-list a:visited{
  color:#fff !important;
  text-decoration:none;  
  transition-duration: 300ms;
}
.mega-list a:hover,
.mega-list a:active{
  color:#fff !important;  
  text-decoration:none;
  letter-spacing:2px;
  transition-duration: 300ms;
}

/* ----------------------------------------------------
  スマホ
---------------------------------------------------- */
.sp-submenu{
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
.sp-submenu li{
  margin: 0 !important;  
  text-align: center;
  background: #5a6a7a;
  border-top: 1px dashed #fff;
}
.sp-submenu li a{
  display: block;
  padding: 7px 0;
  color: #fff;
  text-decoration: none;
}

@media print, screen and (min-width: 992px) {
  .sp-submenu {
    display: none !important;
  }
}

@media print, screen and (max-width: 991px) {
/* 992px未満のときに適用するCSS */
  .mega-area {
    display: none !important;
  }
  .sp-submenu {
    display: none;
    padding-left: 1em;
  }
  .sp-submenu.is-open {
    display: block;
  }
}

/* pc sp　メガメニュー内メニュー　アクティブ */
.mega_active{
  color: #7dd3ff !important;
}