@charset "utf-8";

html {
  overflow-x: hidden;
}

body {
  position: relative;
  overflow: hidden;
}

body::before {
  background: linear-gradient(to right, #86cee6 0%, #00a2d3 100%);
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

.flex {
  display: flex;
}

.site_header {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 30px;
  gap: 20px;
}

.site_title a {
  transition: opacity 0.3s ease;
}

.site_title a:hover {
  opacity: 0.5;
}

.site_title a img {
  width: 350px;
}

.header_links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header_links_list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  gap: 20px;
}

.header_links_list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  position: relative;
}

.header_links_list div::before {
  content: '';
  background: #00a29a;
  opacity: 0.2;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 24px;
}


.header_links_list div li a {
  background: #e8f4fa;
  width: 200px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: end;
  flex-direction: column;
  color: #333;
  text-decoration: none;
  padding: 10px;
  font-size: 14px;
  position: relative;
  gap: 2px;
  transition: opacity 0.3s ease;
}

.header_links_list div li a:hover {
  opacity: 0.8;
}

.header_links_list div li a img {
  width: 30px;
}

.header_links_list div li:nth-child(2) a img {
  width: 40px;
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 三点リーダー メニューボタン */
.nav_toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 98px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;
  background: #e8f4fa;
  border-radius: 50%;
}

.nav_toggle:hover,
.nav_toggle:focus {
  opacity: 0.8;
}

.nav_toggle_dots {
  font-weight: bold;
}

.nav_toggle_dots p:first-child {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

/* メニュー開放時は「MENU」のテキストのみ非表示（ドットは残す） */
body.nav_open .nav_toggle_dots p:first-child {
  display: none;
}

/* --- ナビゲーション制御 --- */

/* 初期状態：JSが動かない環境や初期状態では完全に消す */
.main_navigation[hidden] {
  display: none;
}

.main_navigation {
  display: block;
  /* hiddenが外れたら表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 90;
  padding: 140px 40px 60px;
  /* ヘッダーと重ならないよう調整 */
  overflow-y: auto;

  /* アニメーションの準備 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

/* 開いた時の状態：背面コンテンツより確実に前面に */
.main_navigation.is_open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 9998;
}

/* メニュー開放中はヘッダー全体を最前面にし、背面の fixed/relative コンテンツがクリックを奪わないようにする */
body.nav_open .site_header {
  z-index: 9999;
}

body.nav_open .site_main {
  position: relative;
  z-index: 0;
}

/* ボタンの演出：開いている時は「×」に見えるように回転させる例 */
.nav_toggle {
  z-index: 9999;
  /* メニューより上に配置 */
  transition: background-color 0.3s ease;
}

.nav_toggle[aria-expanded="true"] .nav_toggle_dots {
  display: inline-block;
  transform: rotate(90deg);
  color: #00a2d3;
  transition: transform 0.3s ease;
}

/* メニュー内のレイアウト（保険会社らしい整然とした配置） */
.main_navigation ul {
  list-style: none;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px 50px;
}

.main_navigation li strong {
  display: block;
  font-size: 1.1rem;
  color: #00a2d3;
  border-left: 4px solid #00a2d3;
  padding-left: 15px;
  margin-bottom: 15px;
  margin-top: 20px;
}

.main_navigation li a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  display: block;
  padding: 8px 0 8px 19px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.main_navigation li a:hover {
  background-color: #f5fbfe;
  color: #00a2d3;
  padding-left: 25px;
}

/* 大きい項目（会社概要・お知らせ）：strong と同じ見た目でリンク */
.main_navigation li.nav_item_large a {
  font-size: 1.1rem;
  font-weight: bold;
  color: #00a2d3;
  border-left: 4px solid #00a2d3;
  padding-left: 15px;
  margin-bottom: 15px;
  margin-top: 20px;
  border-bottom: none;
}

.main_navigation li.nav_item_large a:hover {
  color: #036eb8;
  background-color: #f5fbfe;
}

footer {
  position: relative;
  background: linear-gradient(to right, #036eb8, #0a143a);
  border-radius: 24px 24px 0 0;
  padding: 50px 100px 30px;
  color: #fff;
}

.footer_inner {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.footer_info {
  width: 60%;
}

.footer_info .footer_site_title {
  margin-bottom: 20px;
}

.footer_info .footer_site_title a {
  transition: opacity 0.3s ease;
}

.footer_info .footer_site_title a:hover {
  opacity: 0.8;
}

.footer_info .footer_site_title a img {
  width: 400px;
}

.footer_info_tel {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.footer_info_tel p a {
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease;
}

.footer_info_tel p a:hover {
  opacity: 0.5;
}

.ssi_cbt_img {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.ssi_cbt_img div a {
  transition: opacity 0.3s ease;
}

.ssi_cbt_img div a:hover {
  opacity: 0.6;
}

.ssi_cbt_img img {
  width: 100%;
}

.footer_portal_link {
  margin-top: 15px;
  width: calc(50% - 10px);
}

.footer_portal_link div a {
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease;
  font-size: 20px;
}

.footer_portal_link img {
  width: 100%;
}

.footer_portal_link div a:hover {
  opacity: 0.5;
}

.footer_links {
  display: flex;
  justify-content: end;
  gap: 10%;
  width: 100%;
  margin-top: 20px;
}

.footer_links div p {
  font-size: 20px;
  margin-bottom: 20px;
}

.footer_links div ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer_links div ul li a {
  text-decoration: none;
  color: #aed1e5;
  transition: opacity 0.3s ease;
}

.footer_links div ul li a:hover {
  opacity: 0.5;
}

.color_white {
  margin-top: 20px;
}

.color_white a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  transition: opacity 0.3s ease;
}

.color_white a:hover {
  opacity: 0.5;
}

/* フッター右：ページトップへ（上側が半円・下辺フラット） */
.footer_back_to_top {
  position: absolute;
  right: 100px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  width: 150px;
  height: 75px;
  padding: 6px 8px 7px;
  background: #fff;
  color: #036eb8;
  border-radius: 75px 75px 0 0;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  z-index: 2;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer_back_to_top:hover {
  opacity: 0.92;
}

.footer_back_to_top_arrow {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.footer_back_to_top_text {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.copyright {
  text-align: center;
  margin-top: 50px;
}

/*フェードイン*/

.effect-fade {
  opacity: 0;
  transform: translate(0, 30px);
  /* フェードインで動く高さを指定 */
  transition: all 2000ms;
  /* フェードインにかかる時間を指定 */
}

.effect-fade.visible,
.effect-fade2.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/*フェードイン*/

/*フェードイン(左右)*/

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.sp_only {
  display: none;
}

@media (min-width: 1501px) {
  .site_title a img {
    width: 400px;
  }
}

@media (max-width: 1400px) {

  .site_title a img {
    width: 350px;
  }

  .site_header,
  .header_links_list,
  .header_links {
    gap: 15px;
  }

  .header_links_list div li a {
    width: 150px;
    font-size: 12px;
    gap: 5px;
  }

  .nav_toggle {
    width: 80px;
    height: 80px;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1300px) {

  .footer_links {
    gap: 5%;
  }

  .footer_info .footer_site_title a img {
    width: 300px;
  }

  .footer_links div p {
    font-size: 18px;
  }

  .color_white a {
    font-size: 18px;
  }
}

@media (max-width: 1100px) {
  .header_links_list {
    display: none;
  }

}

@media screen and (min-width: 1025px) and (max-width: 1200px) {

  .site_title a img {
    width: 300px;
  }
}

@media (max-width: 1024px) {


  .header_links_list {
    display: none;
  }

  footer {
    padding: 50px 50px 30px;
  }

  .footer_back_to_top {
    right: 50px;
  }

  .footer_inner {
    flex-direction: column;
  }

  .footer_info {
    width: 100%;
  }

  .footer_links {
    justify-content: unset;
  }

  .footer_back_to_top {
    width: 100px;
    height: 50px;
    border-radius: 50px 50px 0 0;
  }

}

@media (max-width: 767px) {
  .pc_only {
    display: none;
  }

  .sp_only {
    display: block;
  }

  .site_header {
    padding: 20px 5%;
  }

  .site_title a img {
    width: 250px;
  }


  .header_links {
    gap: 10px;
  }

  .header_links_list {
    gap: 10px;
  }

  .nav_toggle {
    width: 75px;
    height: 75px;
  }

  .emergency_section_mobile {
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .emergency_section_mobile a {
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
    text-align: center;
  }

  .emergency_section_mobile a div {
    display: flex;
    justify-content: center;
  }

  .emergency_section_mobile a div img {
    width: 60px;
    margin-top: 2px;
  }

  .emergency_section_mobile a div p {
    font-size: 32px;
    font-weight: bold;
    color: #036eb8;
  }

  footer {
    padding: 50px 5% 30px;
  }

  .footer_back_to_top {
    right: max(16px, 4%);
    bottom: 68px;
    width: 88px;
    height: 88px;
    border-radius: 44px;
    padding: 5px 6px 6px;
    justify-content: center;
  }

  .footer_inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer_info {
    width: 100%;
  }

  .footer_info .footer_site_title a img {
    width: 250px;
  }

  .footer_info p {
    font-size: 14px;
  }

  .footer_info_tel {
    gap: 10px;
  }

  .footer_links {
    flex-direction: column;
    gap: 20px;
  }

  .footer_links div {
    width: 100%;
  }

}

/* スマホ時：メニューをアコーディオンで画面に収める */
@media (max-width: 767px) {

  .main_navigation {
    padding: 130px 20px 60px;
  }

  .main_navigation ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: none;
    padding: 0 20px 20px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .main_navigation .nav_accordion_trigger {
    cursor: pointer;
    user-select: none;
    list-style: none;
    position: relative;
    padding-right: 36px;
  }

  .main_navigation .nav_accordion_trigger::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #00a2d3;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
  }

  .main_navigation .nav_accordion_section.is_open .nav_accordion_trigger::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* 閉じているときは中身を隠す */
  .main_navigation .nav_accordion_section:not(.is_open)>li:not(.nav_accordion_trigger),
  .main_navigation .nav_accordion_section:not(.is_open)>div {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    border: none;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .main_navigation .nav_accordion_section.is_open>li:not(.nav_accordion_trigger),
  .main_navigation .nav_accordion_section.is_open>div {
    max-height: 800px;
    opacity: 1;
  }

  .main_navigation .nav_accordion_section li strong {
    padding: 8px 0 8px 19px;
    margin: 0;
  }

  .main_navigation .sp_only {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .main_navigation li.nav_item_large a {
    margin: 0;
  }

  .copyright {
    font-size: 12px;
  }
}