@charset "UTF-8";

/*
 * カスタムヘッダー
 */


/* ロゴ画像の右に余白（大きな画面用） */
.navbar-brand {
  margin-right: 3rem;
}

#custom-header{
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* カスタムヘッダーメニュー */
#custom-header .navbar-nav a{
  font-size:0.9em;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 4px;
  padding-right: 4px;
  font-weight: bold;
  color: #fff;
}

/* カスタムヘッダーの矢印 */
#custom-header-arrow{
  transform: scale(0.6); /* 80%のサイズに縮小 */
  transform-origin: center; /* 中心から縮小 */
}
/* 矢印のnav */
#arrow-nav{
  padding-right: 0 !important;
}

/* オーバーレイの文章 */
#overlay-sentence {
  /*
  font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, Apple SD Gothic Neo, Pretendard Variable, Pretendard, Roboto, Noto Sans KR, Segoe UI, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, sans-serif;
  font-style: normal;
  font-size: 90px;
  line-height: 92px;
  font-weight: 700;
  */
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 58px;
  line-height: 90px;
  font-weight: 700;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#overlay-sentence .original-font {
  font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, Apple SD Gothic Neo, Pretendard Variable, Pretendard, Roboto, Noto Sans KR, Segoe UI, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, sans-serif;
  font-style: normal;
  font-size: 100px;
  line-height: 92px;
  font-weight: 700;
}

/* ヘッダーメニューが折り返されるようにする */
#navbarSupportedContent{
  display: flex;             /* flexbox化（すでにされている可能性あり） */
  flex-wrap: wrap;           /* 折り返しを許可 */
  white-space: normal;       /* テキスト折り返しを許可 */
}

#custom-header_menu-left .nav-item a.active{
  text-decoration: underline;
  color: #0000f5 !important;
  font-style:italic;
}

/* ハンバーガーメニュー（スマホ以外）*/
#mobile-menu ul li a  {
  font-size: 1.95em;;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 6px;
  padding-left:6px;
  font-weight: bold;
  color: #fff;
}

/* ================================
 * カスタムフッター
 * ================================ */

#custon-footer {
  z-index: 999;
  font-size: 16px;
  line-height: 24px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding-top: .25rem !important;
  padding-bottom: .25rem !important;
  font-weight: 500;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1px) !important;
}
/* カスタムフッターのサブスク */
.custom-subsc{
  color: #000;
  text-decoration: none;
}

/* ================================
 * オーバーレイ全体の表示設定
 * ================================ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: #fff;
  display: none; /* 初期状態では非表示 */
  z-index: 999;
}
/* カスタムフッターのオーバーレイ内部のコンテンツ */
.overlay-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* 上下に分離配置 */
  align-items: flex-start;
  height: 100%;
  width: 100%;
  padding: 5rem 1rem 3vh;
  top: 100vh;
  left: 0;
  background: white;
  font-size: 4.5rem;
  font-weight: bold;
  transition: top 0.1s ease-out, opacity 0.1s ease-out;
  opacity: 0;
  box-sizing: border-box;
}

/* カスタムフッターのオーバーレイ表示時（フェードイン） */
.overlay.show .overlay-content {
  top: 2.0vh; /* 画面上からの距離 */
  opacity: 1;
}

/* カスタムフッターのオーバーレイ非表示時（フェードアウト） */
.overlay.hide .overlay-content {
  top: 100vh; /* 画面下へフェードアウト */
  opacity: 0;
}
/* カスタムフッターのオーバーレイの閉じるボタン（×）のスタイル */
#closeOverlay {
  position: fixed; /* 画面の右上に固定 */
  top: calc(env(safe-area-inset-top, 0px) + 2.5rem); /* セーフエリア + マージン */
  right: calc(env(safe-area-inset-right, 0px) + 0.5rem);
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #000;
  cursor: pointer;
  z-index: 10001; /* ヘッダーよりさらに前面に */
}

/* ===========================
 * overlay 内のフォーム調整
 * =========================== */
.overlay .newsletter-input-wrapper {
  display: flex;
  align-items: center; /* ✨ 垂直中央揃え */
  gap: 0.5rem;
}

.overlay .newsletter-submit {
  transform: none; /* ✨ translateY のズレを防ぐ */
  position: relative; /* ✨ relativeにして自然配置 */
  top: auto;
}

/* 下部に配置するフォーム全体 */
.newsletter-wrapper {
  margin-top: auto;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: calc(env(safe-area-inset-bottom, 1.5rem) + 0.8rem);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  #custon-footer{
    font-size: 0.7em;
  }
   #mobile-menu ul li a  {
    font-size: 1.2em;
    font-weight: 600;
  }
}
/* スマホ以上、タブレット未満（つまり 768px以上 1023px未満）*/
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #closeOverlay{
     top: 5.5vh; /* 画面上からの距離 */
  }
}

/* 1023px以下のとき */
@media screen and (max-width: 1023px) {
  #overlay-sentence{
    font-size: 28px;
    line-height: 41px;
    padding-left: 0;
    padding-right: 0;

    /*
     font-size: 38px;
     line-height: 41px;
    */
  }
  #overlay-sentence .original-font {
    font-size: 38px;
    line-height: 41px;
  }
  .overlay-content {
    margin-left: 0.1rem;
    margin-right: 0.1rem;
  }
  /* #navbarSupportedContent を非表示 */
  #navbarSupportedContent {
    display: none !important;
  }
}

/* スマホを横向きにした時 */
@media screen and (max-height: 500px) and (orientation: landscape) {

  .overlay-content{
    margin-top: 10vh !important;
  }
  /* オーバーレイのクローズボタンの位置調整 */
  #closeOverlay {
    top: 8vh !important; /* 画面上からの距離 */
  }
}

/* 画面が狭くなったら左寄せに変更 */
@media screen and (max-width: 1390px) {
  #custom-header_menu-left {
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 4px;
  }

  #custom-header_menu-left li {
    flex-shrink: 0;
  }

  .navbar-nav.ms-auto {
    display: flex !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    row-gap: 4px;
    white-space: normal;
  }

  .navbar-nav.ms-auto .nav-item {
    flex-shrink: 0;
  }
}
