@charset "utf8";
/* ヘッダーと、全てのページ共通のcssを書く */
a:hover {
  opacity: 0.8;
}

/*---------------------------
共通ヘッダー
---------------------------*/
header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap:calc(30vw / 19.2);
  width: 100%;
  margin: 0 auto;
  padding: 0 calc(40vw / 19.2);
  background: #ffffff;
  color: #000000;
  position: fixed;
  top: 0;
  left: 0;
  height: calc(80vw / 19.2);
  z-index: 1100;
  box-sizing: border-box;
}
@media screen and (max-width: 767px) {
  header {
    height: calc(40vw / 3.6);
    padding: calc(10vw / 3.6) 0 calc(10vw / 3.6) calc(10vw / 3.6);
  }
}
/*---------------------------
ロゴ
---------------------------*/
.header-logo {
  display: flex;
  align-items: center;
  height: calc(80vw / 19.2);
  width: auto;
  flex-shrink: 0;
  border: none;
  margin-right: calc(30vw / 19.2);
  margin-bottom:0;

}
@media screen and (max-width: 767px) {
  .header-logo {
    height: calc(40vw / 3.6);
    width: auto;
    max-width: 180px;
    position: relative;
    z-index: 1102;
  }
}
/*.header-logo h1{
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}*/
.header-logo img{
  width: calc(340vw / 19.2);
  height: auto;
  display: block;
}
@media screen and (max-width: 767px) {
  .header-logo img{
    width: 200px;
  }
}
/*---------------------------
ハンバーガーボタン
---------------------------*/
.header-menu-button {
  display: none;
}
@media screen and (max-width: 767px) {
  .header-menu-button {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin-right: 0;
    margin-left:  auto;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    z-index: 1105;
  }
  .header-menu-icon {
    width: 30px;
    height: 4px;
    margin: 4px 0;
    background: #757575;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }
  .header-menu-button.active .bar1 {
    transform: rotate(45deg) translate(9.4px, 7.5px);
  }
  .header-menu-button.active .bar2 {
    opacity: 0;
  }
  .header-menu-button.active .bar3 {
    transform: rotate(-45deg) translate(9.4px, -7.5px);
  }
}
/*---------------------------
メニュー
---------------------------*/
.header-menu {
  position: static;
  display: flex;
  justify-content: center;
  text-align: center;
  width: auto;
  margin: 0;
  margin-left: auto;
  flex-grow: 0;
  height: 0;
  background:transparent;
  opacity: 1;
  color: #00000000;
  font-size: calc(16vw / 19.2);
  padding: 0%;
  visibility: visible;
  transform: none;
}
@media screen and (max-width: 767px) {
  .header-menu {
    display: flex;
    position: fixed;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right:0;
    margin: 0;
    margin-left: 0;
    transform: translateX(100%);
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100vh;
    background:#00338d;
    box-shadow: none;
    border-radius: 0;
    padding: 20px ;
    opacity: 0;
    visibility: hidden;
    font-size: calc(16vw / 3.6);
    color: #757575;
    transition: all 0.3s ease;
    overflow-y: auto;
    z-index: 1101;
    overflow: hidden;
    box-sizing: border-box;
  }
}
.header-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  text-align: center;
}
.header-menu.visible .header-menu__list,
.header-menu.visible .sp-menu-btns {
  display: flex;
} 
.sp-menu-btns{
  display: none;
}
@media screen and (max-width:767px) {
  .sp-menu-btns{
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }
}
.sp-menu-btns.header__btn:first-child a {
  background-color: #ffffff;
  color: #00338d;
  border-radius: 8px;
  padding: 12px;
  display: block;
  text-align: center;
}
.sp-menu-btns.header__btn:last-child a {
  background-color: #00338d;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px;
  display: block;
  text-align: center;
}
.header-menu__list {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: auto;
  gap: calc(30vw / 19.2);
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none;
}
@media screen and (max-width: 767px) {
  .header-menu__list {
    display: flex;
    flex-direction: column;
    gap: calc(6vw / 3.6);
    text-align: center;
    width: 100%;
    margin: 0 0 calc(30vw / 3.6) 0;
    padding: 0;
  }
}
.header-menu__item {
  text-wrap: nowrap;
  width: 100%;
}
.header-menu__label {
  display: inline-block;
  padding: calc(10vw / 19.2);
  background: transparent;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: background-color 0.1s ease;
  font-size: calc(24vw / 19.2);
  font-weight: 600;
}
@media screen and (max-width: 767px) {
  .header-menu__label {
    position: relative;
    width: 96.8%;
    margin: 0 auto;
    background: none;
    color: #ffffff;
    font-size: calc(20vw / 3.6);
    font-weight: bold;
    padding: calc(10vw / 3.6) 0;
    text-align: center;
  }
}
.header-menu__label:hover {
  background: none;
  color: #00A8E5;
}
.header-menu.hidden {
  right: -100%;
}
.header-menu.visible {
  right: 0;
}
/*---------------------------
ボタン
---------------------------*/
.header__btn-group {
  display: flex;
  flex-shrink: 0;
  gap: calc(30vw / 19.2);
  margin-left: calc(30vw /19.2);
  margin-right: 0;
}
.header__btn {
  width: auto;
  display: flex;
  align-items: center;
}
.header__btn img {
  height:calc(60vw / 19.2);
  width: auto;
  display: block;
}
@media screen and (max-width: 767px) {
  /* メニューの中にボタンを表示させるための設定 */
  .header-menu .header__btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(9vw / 3.6);
    margin: 0 auto;
    width: 100%;
  }
  /* 白いボタン（投資ガイド） */
  .header-menu .header__btn:first-child a {
    display: block;
  }
  /* オレンジのボタン（無料相談） */
  .header-menu .header__btn:last-child a {
    border-radius: 8px;
    display: block;
    padding: 15px;
  }
  .header__btn img{
    width: calc(240vw / 3.6);
    height: unset;
  }
}
.header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 49, 144, 0.95); /* 濃い紺色の透過 */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1050; /* ヘッダー(100)より上、メニュー(1001)より下 */
}
.header-overlay.visible {
  opacity: 1;
  visibility: visible;
  /* transform: translate(-50%,-50%) scale(1); */
}
@media screen and (max-width: 767px) {
  /* メニューが開いている（activeクラスがある）時のヘッダー背景を透明に */
  header:has(.header-menu-button.active) {
    background: transparent !important; /* 念のため!importantをつけて白を確実に消します */
    box-shadow: none;
  }
  /* メニューが開いている時はロゴを隠す */
  header:has(.header-menu-button.active) .header-logo {
    opacity: 0;
    visibility: hidden;
  }
}
/* 2. ×印の時だけ棒の色を黒から白に変える */
.header-menu-button.active .header-menu-icon {
  background: #ffffff;
}

/* 全ページ共通css */
* {
  line-height: 1.7;
  margin: 0;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  overflow-x: hidden;
  margin: 0;
}
a:link, a:visited, a:hover, a:active {
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
@media screen and (max-width: 767px) {
  ._pc{ display: none; }
}

@media screen and (min-width: 768px) {
  ._sp{ display: none; }
}
/* h1タグ内のテキストをSEOに配慮して見えなくする */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}