/*
 * header-renew02.css
 * renew02ヘッダー専用CSS（下層ページ用）
 * renew02/assets/css/style.css から必要な部分のみ抽出
 */

/* =============================================
   横スクロール防止
   ============================================= */
html {
  overflow-x: hidden;
}

/* =============================================
   CSS Variables
   ============================================= */
:root {
  --color-primary: #ED0000;
  --color-secondary: #1F1F25;
  --color-bg: #121212;
  --color-bg-two: #1A1A1A;
  --color-bg-three: #252525;
  --color-body: #555555;
  --color-body-two: #B5B5B5;
  --color-gray: #F6F6F6;
  --color-heading: #050B20;
  --color-white: #fff;
  --color-border: #DDD8F9;
  --f-light: 300;
  --f-regular: 400;
  --f-medium: 500;
  --f-semi-bold: 600;
  --f-bold: 700;
  --f-extra-bold: 800;
  --f-black: 900;
  --transition: all 0.3s;
  --font-primary: "Outfit",'Noto Sans JP', sans-serif;
  --font-secondary: "Inter",'Noto Sans JP', sans-serif;
  --font-3: "fontawesome";
}

/* =============================================
   Bootstrap utility subset（ヘッダー内レイアウト用）
   ============================================= */
.container {
  box-sizing: border-box;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1280px;
}
.d-block { display: block; }
.d-flex  { display: flex; }
.align-items-center     { align-items: center; }
.justify-content-between { justify-content: space-between; }

/* =============================================
   ヘッダー全体
   ============================================= */
header.header-one {
  padding: 15px 0;
}

.header-wrapper-area {
  display: flex;
  align-items: center;
  position: relative;
}
.header-wrapper-area .header-right {
  width: 100%;
}
.header-wrapper-area .header-right .bottom .logo-area {
  min-width: 0;
  flex-shrink: 1;
}
.header-wrapper-area .header-right .bottom h1.logo-area {
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: inherit;
  font-weight: inherit;
}
.header-wrapper-area .header-right .bottom .logo-area img {
  max-height: 54px;
  max-width: 100%;
  width: auto;
  height: auto;
}
.header-right.d-block .d-flex {
  gap: 15px;
}

/* =============================================
   .header-one（ヘッダーバリアント）
   ============================================= */
.header-one .header-wrapper-area .header-right .bottom .bottom-right {
  display: flex;
  align-items: center;
  gap: 30px;
}
@media (min-width: 992px) {
  .header-one .header-wrapper-area .header-right .bottom .bottom-right {
    display: none;
  }
}
.header-one.sticky .header-wrapper-area .header-right .bottom .logo-area {
  display: block;
}

/* =============================================
   .header-four（ヘッダーバリアント）
   ============================================= */
.header-four .header-wrapper-area .header-right .bottom .nav-area ul li a {
  color: var(--color-white);
  display: flex;
  align-items: center;
}

/* =============================================
   スティッキーヘッダー
   ============================================= */
.header--sticky {
  transition: 0.3s;
  background: var(--color-bg);
}
.header--sticky.sticky {
  position: fixed !important;
  top: 0;
  display: block;
  width: 100%;
  box-shadow: 0px 7px 18px rgba(24, 16, 16, 0.05);
  background: var(--color-bg);
  z-index: 9999;
  animation: stickyanimations 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  transition: var(--transition);
}

@keyframes stickyanimations {
  0%   { transform: translateY(-100px); }
  100% { transform: translateY(0px); }
}

/* =============================================
   ハンバーガーメニューボタン
   ============================================= */
.menu-btn {
  display: none;
  height: 45px;
  width: 45px;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  left: 0;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top:  6px; }

/* =============================================
   ナビゲーションエリア
   ============================================= */
header .nav-area {
  display: flex;
  gap: 15px;
  flex-direction: column;
}
header .home-nav {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  order: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
header .lower-nav {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  order: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-area ul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav-area ul li {
  margin: 0;
  padding: 0;
}
.nav-area ul li a {
  color: var(--color-white);
  font-weight: var(--f-semi-bold);
  gap: 5px;
}
.nav-area ul li a:hover {
  color: var(--color-primary) !important;
  transition: all 0.3s;
}
.nav-area ul li a:hover i {
  background: var(--color-primary) !important;
  transition: all 0.3s;
}

/* =============================================
   電話ボタン（モバイル）
   ============================================= */
.tel-btn {
  display: none;
  height: 45px;
  width: 45px;
  line-height: 45px;
  text-align: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 45px;
  overflow: hidden;
  cursor: pointer;
}
.tel-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 電話アイコン（SVGマスク） */
i.tel-icon {
  display: block;
  content: "";
  width: auto;
  height: 20px;
  aspect-ratio: 1/1;
  background: white;
  -webkit-mask-image: url("../images/common/tel-receiver.svg");
  -webkit-mask-position: center;
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../images/common/tel-receiver.svg");
  mask-position: center;
  mask-size: cover;
  mask-repeat: no-repeat;
}

/* =============================================
   モバイルサイドバー
   ============================================= */
.side-bar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 465px;
  padding: 40px 30px;
  padding-top: 50px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
  backdrop-filter: blur(7px);
  z-index: 10003;
  transition: all 600ms ease;
  overflow-y: auto;
}
@media only screen and (max-width: 575px) {
  .side-bar {
    width: 310px;
  }
}
.side-bar.show {
  right: 0;
}
.side-bar button.close-icon-menu {
  max-width: max-content;
  border: none;
  color: #ffffff;
  border-radius: 0;
  display: flex;
  padding: 10px 12px;
  align-items: center;
  justify-content: center;
  margin-left: -30px;
  margin-top: -53px;
  font-size: 27px;
  line-height: 1;
  background: var(--color-primary);
  cursor: pointer;
}
.mobile-menu-main {
  margin-top: 30px;
}
.mobile-menu-main nav ul {
  padding: 0 20px;
  display: block;
  list-style: none;
  margin: 0;
}
.mobile-menu-main nav ul li {
  margin: 0;
  padding: 0;
}
.mobile-menu-main nav ul li a {
  display: block;
  padding: 12px 0 17px 0;
  border-bottom: 1px solid #f3f3f3;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
}
.mobile-menu-main nav ul li a:hover {
  color: var(--color-primary);
}

/* =============================================
   モバイルサイドバー内 電話ボタン
   ============================================= */
.mobile-tel-btn {
  margin-top: 30px;
  padding: 0 20px;
}
.mobile-tel-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  padding: 16px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.mobile-tel-btn i.tel-icon {
  background: #1a1a1a;
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
  flex-shrink: 0;
}

/* =============================================
   検索エリア
   ============================================= */
.search-input-area {
  transition: all 500ms ease;
  visibility: hidden;
  transform: translateY(-100%);
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 57px 0;
  background: white;
  box-shadow: 1px 1px 50px rgba(0, 0, 0, 0.46);
  z-index: 10002;
  display: flex;
  justify-content: center;
  align-items: center;
}
.search-input-area.show {
  visibility: visible;
  transform: inherit;
  opacity: 1;
}
.search-input-area .search-input-inner {
  display: flex;
  align-items: center;
  position: relative;
}
.search-input-area .search-input-inner .input-div {
  width: 80%;
  display: flex;
  align-items: center;
  margin: auto;
}
.search-input-area .search-input-inner .input-div input {
  background: #F7F7F7;
  border-radius: 5px;
  height: 55px;
  border: 1px solid transparent;
}
.search-input-area .search-input-inner .input-div button {
  max-width: max-content;
  padding: 18px 21px;
  background: var(--color-primary);
  display: block;
  color: #fff;
  margin-left: -9px;
  border-radius: 0 5px 5px 0;
  border: none;
  cursor: pointer;
}
.search-input-area .search-close-icon {
  cursor: pointer;
  position: absolute;
  right: 38px;
  top: 22px;
}

/* =============================================
   ページトップへ（SVGプログレス）
   ============================================= */
.progress-wrap {
  position: fixed;
  right: 30px;
  bottom: 30px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  z-index: 10000;
  opacity: 1;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 200ms linear;
}
.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.progress-wrap svg path {
  fill: none;
}
.progress-wrap svg {
  color: var(--color-primary);
  border-radius: 50%;
  background: transparent;
}
.progress-wrap svg.progress-circle path {
  stroke: var(--color-primary);
  stroke-width: 4px;
  box-sizing: border-box;
  transition: all 200ms linear;
}

/* =============================================
   レスポンシブ（モバイル）
   ============================================= */
@media (max-width: 991.98px) {
  .tel-btn {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  header .home-nav,
  header .lower-nav,
  header .nav-area {
    display: none;
  }
}

/* =============================================
   アニメーション背景オーバーレイ（モバイルメニュー用）
   ============================================= */
#anywhere-home {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10002;
}
#anywhere-home.show {
  display: block;
}

/* =============================================
   旧CSS固定幅の横スクロール修正（980px以下）
   ============================================= */
@media screen and (max-width: 980px) {
  #main-wrapper > section {
    min-width: auto;
  }
  #main-wrapper > section > header {
    width: auto;
  }
  #main-footer {
    min-width: auto;
  }
  .std-table {
    width: auto;
  }
  .company-view-list {
    width: auto;
  }
}
