﻿@charset "UTF-8";

@import "/Portals/0/Skins/font.css";
@import "/Portals/0/css/base.css";
@import "/Portals/0/css/contents_top_renewal.css";
/* ============================================================
 html
============================================================ */
/* font settings
------------------------------ */
body {
  text-align: initial;
  color: #222;
  font-size: 16px;
  line-height: 1.5;
}

/* ============================================================
 skin
============================================================ */
#divControlPanel {
  position: relative;
  z-index: 1;
}
#skin {
  position: relative;
  z-index: 0;
}
#blockskip {
  display: none;
}

body.adminMode #skin {
  padding-top: 0;
}

/* ============================================================
 header
============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
  z-index: 100;
}
#header .head_inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  min-height: 100px;
  padding: 15px 15px 18px 40px;
}
#header .left {
  display: flex;
  align-items: center;
}
#header .logo img {
  height: 30px;
}
#header .logo a {
  transition: opacity 0.3s ease-in-out;
}
#header .logo a:hover {
  opacity: 0.6;
}
#header .right {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 114px 0 0;
}
#header .head_top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
#header .head_link {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}
#header .head_link li {
  margin: 0;
  padding: 0;
}
#header .head_link li a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  transition: color 0.3s ease-in-out;
}
#header .head_link li a:hover {
  color: #004898;
}
#header .head_link li a:before {
  content: "";
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
}
#header .head_link li a.company:before {
  width: 11.25px;
  height: 14.48px;
  background-image: url(/Portals/0/images/top_renewal/ico_company.png);
}
#header .head_link li a.recruit:before {
  width: 17.82px;
  height: 15px;
  background-image: url(/Portals/0/images/top_renewal/ico_recruit.png);
}
#header .head_search .head_search_wrap {
  position: relative;
  width: 190px;
  font-size: 0;
}
#header .head_search .head_search_wrap input[type="text"] {
  width: 100%;
  padding: 7px 40px 7px 10px;
  border: 1px solid #004898;
  border-radius: 100vh;
  background: #fff;
  color: #999;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}
#header .head_search .head_search_wrap input[type="button"] {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 15px;
  height: 15px;
  border: none;
  background-color: transparent;
  background-image: url(/Portals/0/images/top_renewal/ico_search.png);
  background-size: contain;
  background-repeat: no-repeat;
  font-size: 0;
  transform: translateY(-50%);
}

#header .HeadContactTopRenewalPane {
  position: absolute;
  top: 0;
  right: 0;
}
#header .head_contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 94px;
  height: 72px;
  padding: 5px;
  border-radius: 6px;
  background-color: #00a0e9;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.3s ease-in-out;
}
#header .head_contact:hover {
  opacity: 0.6;
}
#header .head_contact:before {
  content: "";
  display: block;
  width: 27px;
  height: 18px;
  background-image: url(/Portals/0/images/top_renewal/ico_contact.png);
  background-size: contain;
  background-repeat: no-repeat;
}
#header .head_nav {
  display: flex;
  list-style: none;
  position: relative;
  gap: 35px;
  margin: 0;
  padding: 0;
}
#header .head_nav > li {
  position: relative;
  margin: 0;
  padding: 0;
}
#header .head_nav > li:has(.head_nav_sub):before {
  content: "";
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: 30px;
  height: 21px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  z-index: 1;
}
#header .head_nav > li > a {
  font-weight: 700;
  line-height: 1.7;
  transition: color 0.3s ease-in-out;
}
#header .head_nav > li > a:hover {
  color: #004898;
}
#header .head_nav .head_nav_sub {
  display: none;
  position: fixed;
  /* ヘッダー下端 + 8px（--header-bottom は JS が実測。上部ブロックの offset とヘッダー高さの両方を含む） */
  top: calc(var(--header-bottom, 108px) + 8px);
  left: 50%;
  width: calc(100% - 290px);
  padding: 50px 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  z-index: 0;
}
/* リンクとメニュー間に余白があり :hover では途切れるため JS で .open を付与して制御 */
#header .head_nav > li.open:before,
#header .head_nav > li.open .head_nav_sub {
  display: block;
}

#header .head_nav .head_nav_sub .head_nav_sub_title {
  margin: 0 0 30px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
#header .head_nav .head_nav_sub .head_nav_sub_menu {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}
#header .head_nav .head_nav_sub .head_nav_sub_menu li {
  width: calc((100% - 40px) / 3);
  margin: 0;
  padding: 0;
}
#header .head_nav .head_nav_sub .head_nav_sub_menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 10px 0;
  border-bottom: 1px solid rgba(0, 72, 152, 0.4);
  font-weight: 700;
  line-height: 1.7;
  transition: color 0.3s ease-in-out;
}
#header .head_nav .head_nav_sub .head_nav_sub_menu li a:hover {
  color: #004898;
}
#header .head_nav .head_nav_sub .head_nav_sub_menu li a:after {
  content: "";
  display: block;
  width: 24px;
  height: 15px;
  background-image: url(/Portals/0/images/top_renewal/arrow_link_txt.png);
  background-size: contain;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  #header .head_inner {
    min-height: 60px;
    padding: 16px 20px;
  }
  #header .logo img {
    height: 27px;
  }
}

/* バーガー（PC では非表示。SP のみ有効） */
#header .burger_btn,
#header .burger_overlay {
  display: none;
}

body.adminMode #header {
  position: relative;
  top: auto;
  left: auto;
}
body.adminMode #header .right {
  padding: 0;
}
body.adminMode #header .head_top {
  align-items: flex-start;
}
body.adminMode #header .HeadContactTopRenewalPane {
  position: relative;
  top: auto;
  right: auto;
}

/* ============================================================
 footer
============================================================ */
#footer {
  position: relative;
  z-index: 1;
}

.foot_inner {
  width: min(100%, 870px);
  margin: 0 auto;
  padding: 0 60px;
}
#footer .foot_top {
  position: relative;
  padding: 80px 0;
  background-color: #e6f6fd;
}
#footer .foot_bottom {
  padding: 40px 0;
  background-color: #004898;
}

#footer .foot_pagetop {
  position: absolute;
  bottom: 36px;
  right: 40px;
}
#footer .foot_pagetop a {
  display: block;
  width: 48px;
  height: 48px;
  background-image: url(/Portals/0/images/top_renewal/pagetop.png);
  background-size: contain;
  background-repeat: no-repeat;
  font-size: 0;
}

#footer .foot_logo {
  text-align: center;
}
#footer .foot_logo img {
  height: 30px;
}
#footer .foot_nav {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 10px 30px;
}
#footer .foot_nav a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
}
#footer .foot_top .foot_nav {
  margin: 48px 0 0;
}
#footer .foot_top .foot_nav a:hover {
  color: #004898;
}
#footer .foot_bottom .foot_nav {
  gap: 40px;
}
#footer .foot_bottom .foot_nav a {
  color: #fff;
}
#footer .foot_bottom .foot_nav a:hover {
  opacity: 0.6;
}
#footer .foot_bnr {
  display: flex;
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  justify-content: center;
  gap: 30px;
}
#footer .foot_bnr a {
  transition: opacity 0.3s ease-in-out;
}
#footer .foot_bnr a:hover {
  opacity: 0.6;
}
#footer .copyRight {
  margin: 20px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1;
}
@media (max-width: 768px) {
  .foot_inner {
    width: 100%;
    padding: 0;
  }
  #footer .foot_top {
    padding: 70px 0 60px;
  }
  #footer .foot_pagetop {
    bottom: 10px;
    right: 10px;
  }
  #footer .foot_top .foot_nav {
    flex-wrap: wrap;
    gap: 15px;
    margin: 50px 0 0;
  }
  #footer .foot_top .foot_nav li {
    display: block;
    width: 100%;
    padding: 0 0 15px;
    border-bottom: 1px solid rgba(0, 72, 152, 0.4);
  }
  #footer .foot_top .foot_nav a {
    padding: 0 20px;
    font-size: 16px;
  }
  #footer .foot_bottom .foot_nav {
    padding: 0 20px;
    gap: 40px;
  }
  #footer .foot_bnr {
    margin: 50px 0 0;
    padding: 0 20px;
  }
  #footer .copyRight {
    font-size: 10px;
  }
}

.fixed_link {
  position: fixed;
  display: block;
  top: 50%;
  right: 0;
  background-color: #fff;
  padding: 15px 11px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
  transform: translateY(-50%);
  z-index: 100;
}
.fixed_link .fixed_link_label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.fixed_link .fixed_link_links {
  display: flex;
  list-style: none;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
}
.fixed_link .fixed_link_links li {
  width: 40px;
  margin: 0;
  padding: 0;
}
.fixed_link .fixed_link_links a  {
  transition: opacity 0.3s ease-in-out;
}
.fixed_link .fixed_link_links a:hover {
  opacity: 0.6;
}
.fixed_link .fixed_link_links img {
  display: block;
}
@media screen and (max-width: 768px) {
  .fixed_link {
    display: flex;
    align-items: center;
    top: auto;
    right: auto;
    bottom: 10px;
    left: 20px;
    padding: 15px 19px;
    border-radius: 8px;
    transform: none;
  }
  .fixed_link .fixed_link_label {
    margin: 0 15px 0 0;
  }
  .fixed_link .fixed_link_links {
    flex-direction: row;
  }
  .fixed_link .fixed_link_links li {
    width: 30px;
  }
}

/* ============================================================
 main
============================================================ */
#main {
  position: relative;
}
.fig_bg {
  position: fixed;
  /* 要素が画面幅より大きくなっても中央に置くため translate で中央寄せ
     （inset:0 + margin:auto は要素が画面より小さい前提で、はみ出すと左寄せになる） */
  top: 50%;
  left: 50%;
  width: calc(100vw * 650 / 1280);
  height: calc(100vw * 650 / 1280);
  min-width: 475px;
  min-height: 475px;
  z-index: -1;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  /* JSから受け取るCSS変数（初期値）。中央寄せの translate に scale を統合 */
  transform: translate(-50%, -50%) scale(var(--bg-scale, 1));
  opacity: var(--bg-opacity, 1);
  will-change: transform, opacity;
}
.fig_bg .fig_bg_img {
  width: 100%;
  height: 100%;
  background-image: url(/Portals/0/images/top_renewal/fig_bg.png);
  background-size: cover;
  background-position: center;
  animation: rotate-animation 3.6s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
@keyframes rotate-animation {
  0%,
  20% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  70% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 768px) {
  /* ---- バーガーボタン（3本線 → ×） ---- */
  #header .burger_btn {
    display: block;
    position: relative;
    width: 30px;
    height: 21px;
    margin: auto 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 110; /* パネルより前面（開いた状態でも押せる） */
  }
  #header .burger_btn span,
  #header .burger_btn::before,
  #header .burger_btn::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #004898;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }
  #header .burger_btn::before {
    top: 0;
  }
  #header .burger_btn span {
    top: 50%;
    transform: translateY(-50%);
  }
  #header .burger_btn::after {
    bottom: 0;
  }
  #header.burgerOpen .burger_btn span {
    opacity: 0;
  }
  #header.burgerOpen .burger_btn::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  #header.burgerOpen .burger_btn::after {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
  }

  /* バーは不透明にしてパネルより前面に置き、パネルがヘッダーの裏からせり出すように */
  #header .head_inner {
    position: relative;
    background: #fff;
    z-index: 110;
  }

  /* ---- パネル本体（.right をヘッダー下へスライドダウン） ---- */
  #header .right {
    position: absolute;
    /* column-reverse は逆方向フレックスのため下端固定スクロールとなり、
       アコーディオン展開時に上（押したリンク）が押し出される。
       通常の column にし、表示順は order で維持する。 */
    flex-direction: column;
    gap: 0;
    top: 100%; /* ヘッダー直下 */
    left: 0;
    width: 100%;
    max-height: 0; /* 閉：高さ0で非表示 */
    padding: 0; /* 閉時は上下パディングなし */
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease;
    z-index: 90; /* バーより背面 */
  }
  #header.burgerOpen .right {
    max-height: calc(100dvh - var(--header-h, 100px));
    overflow-y: auto;
    box-shadow: 0 10px 10px -6px rgba(0, 0, 0, 0.3);
  }
  /* column-reverse 相当の表示順（nav を上、head_top を下）を order で維持 */
  #header .right .head_bottom {
    order: 1;
  }
  #header .right .head_top {
    order: 2;
  }
  /* パネル内では PC 固定配置を解除して縦積みに */
  #header .HeadContactTopRenewalPane {
    position: static;
  }

  /* ---- オーバーレイ ---- */
  #header .burger_overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 80;
  }
  #header.burgerOpen .burger_overlay {
    opacity: 1;
    visibility: visible;
  }

  #header .right .head_top {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 30px 20px 36px;
    background: #004898;
  }
  #header .head_link {
    justify-content: center;
  }
  #header .head_link li a {
    color: #fff;
  }
  #header .head_link li a.company:before {
    background-image: url(/Portals/0/images/top_renewal/ico_company_white.png);
  }
  #header .head_link li a.recruit:before {
    background-image: url(/Portals/0/images/top_renewal/ico_recruit_white.png);
  }

  #header .head_search .head_search_wrap {
    width: 100%;
  }

  #header .head_contact {
    flex-direction: row;
    gap: 10px;
    width: 100%;
    height: 40px;
    border-radius: 100vh;
  }

  /* ---- head_nav：SP はプルダウン（アコーディオン） ---- */
  #header .head_nav {
    display: block;
  }
  #header .head_nav > li:before {
    display: none !important; /* PC の吹き出しは不要 */
  }
  #header .head_nav > li > a {
    display: block;
    position: relative;
    padding: 20px 61px 20px 20px;
  }
  /* 開閉アイコン：閉じ＝＋ / 開き＝−（.head_nav_sub を持つ項目のみ） */
  #header .head_nav > li:has(.head_nav_sub) > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 23px;
    width: 18px;
    height: 18px;
    background:
      linear-gradient(#004898, #004898) center/100% 2px no-repeat,
      linear-gradient(#004898, #004898) center/2px 100% no-repeat;
    transform: translateY(-50%);
  }
  #header .head_nav > li.open:has(.head_nav_sub) > a::after {
    /* 縦棒を消して − に */
    background: linear-gradient(#004898, #004898) center/100% 2px no-repeat;
  }
  #header .head_nav > li + li {
    border-top: 1px solid #b8d3e8;
  }
  /* fixed のメガメニューを解除して各リンク直下に流し込む */
  #header .head_nav .head_nav_sub {
    position: static;
    width: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    transform: none;
  }
  /* SP は slideDown/Up（jQuery のインライン display）で開閉を制御するため、
     PC 用の .open による即時 display:block を無効化する（同詳細度で後勝ち） */
  #header .head_nav > li.open .head_nav_sub {
    display: none;
  }
  #header .head_nav .head_nav_sub .head_nav_sub_title {
    display: none;
  }
  #header .head_nav .head_nav_sub .head_nav_sub_menu {
    display: block; /* 1 カラム */
    background-color: #ccecfb;
  }
  #header .head_nav .head_nav_sub .head_nav_sub_menu li {
    width: auto;
  }
  #header .head_nav .head_nav_sub .head_nav_sub_menu li + li {
    border-top: 1px solid #b8d3e8;
  }
  #header .head_nav .head_nav_sub .head_nav_sub_menu li a {
    display: block;
    padding: 20px;
    border: none;
    font-weight: 500;
  }
  #header .head_nav .head_nav_sub .head_nav_sub_menu li a:after {
    display: none;
  }

  /* パネル表示中は背面スクロールを固定 */
  body.burgerLock {
    overflow: hidden;
  }
}
