/* Header 固定レイアウト */
.header_fixed_body {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10000;
	transition: .3s;
	background: #fff;
}
.header_shadow .header_fixed_body {
	background: none;
}

/* ヘッダー内フレックスレイアウト */
.header_flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-left: 20px;
}

/* ヘッダーナビゲーション */
.header_main_nav {
	margin-left: -30px;
}
.header_main_nav > * {
	padding-left: 30px;
}
.header_main_nav a {
	text-decoration: none;
	font-weight: bold;
	color: #222;
	border-bottom: 3px solid rgba(69,130,236,0);
	letter-spacing: .08em;
	transition: .3s;
	display: flex;
	height: 60px;
	align-items: center;
}
.headroom--not-top .header_main_nav a,
body.header_shadow .headroom--not-top .header_main_nav a {
	color: #222;
}

/* ロゴ部分 */
.header_flex_item_01 img {
	transition: .3s;
	width: 300px;
}
.header_flex_item_01 h1 a {
	text-decoration: none;
	font-size: 20px;
	display: inline-flex;
	align-items: center;
}

/* 一般の方向けテキスト */
.header-text {
	font-size: 20px;
	color: #666;
	display: inline-flex;
	align-items: center;
}
.header-text::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 30px;
	background-color: #666;
	margin: 0 10px;
	align-self: center;
}

/* オープンメニューボタン */
.open_menu_open_btn {
	background: #3F76D6;
	width: 120px;
	height: 133px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: .3s;
}
.headroom--not-top .open_menu_open_btn {
	height: 80px;
}
.open_menu_open_btn_icon_width {
	width: 28px;
	height: 22px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
}
.open_menu_open_btn_icon span {
	display: inline-block;
	transition: all .7s;
	box-sizing: border-box;
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #fff;
	border-radius: 1px;
}
.open_menu_open_btn_icon span:nth-of-type(1) {
	top: 0;
}
.open_menu_open_btn_icon span:nth-of-type(2) {
	top: 10px;
}
.open_menu_open_btn_icon span:nth-of-type(3) {
	bottom: 0;
}

/* ハンバーガーメニューのアニメーション（PC用） */
.open_menu_open_btn_active .open_menu_open_btn_icon span:nth-of-type(1) {
	transform: translateY(10px) rotate(-315deg);
}
.open_menu_open_btn_active .open_menu_open_btn_icon span:nth-of-type(2) {
	opacity: 0;
}
.open_menu_open_btn_active .open_menu_open_btn_icon span:nth-of-type(3) {
	transform: translateY(-10px) rotate(315deg);
}

/* オープンメニュー左側の背景画像 */
.open_menu_left {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

/* オープンメニューグリッド幅 */
.open_menu_grid_width {
  max-width: 420px;
  margin: auto;
  padding-top: 100px; /* PCでの上部余白を増やす */
}

/* オープンメニュー左側の本体サイトへのリンク */
.open_menu_left_link {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
}

.open_menu_left_link a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  color: #3F76D6;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: .3s;
}

.open_menu_left_link a:hover {
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.open_menu_left_link a:after {
  content: "\f08e";
  font-family: FontAwesome;
  margin-left: 8px;
}

/* header_flex_item_02 スタイル */
.header_flex_item_02 {
  margin-left: auto;
  margin-right: 20px;
}

.header_flex_item_02 a {
  display: inline-block;
  background-color: #39be9e;
  border-radius: 100px;
  padding: 8px 15px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.header_flex_item_02 a:hover {
  opacity: 0.8;
}

/* モーダル表示時の本体サイトリンク非表示 */
.uk-modal-page .header_flex_item_02 {
    display: none;
}

/* ...必要に応じてheader関連のその他ルールを追加... */

/* レスポンシブ：screen and (max-width:640px)  [style-xs.css] */
@media screen and (max-width:640px) {
  .open_menu_grid_link_01_open a {
    pointer-events: none;
  }
  .open_menu_grid_link_ul_body {
    display: none;
    padding-bottom: 15px;
  }
  .open_menu_grid_link_01_top {
    margin-bottom: 0 !important;
  }
  .open_menu_grid .uk-grid-margin {
    margin-top: 10px;
  }
  .open_menu_grid_link_01.open_menu_grid_link_01_open a:after {
    content: "┼";
    font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
  }
  
  .open_menu_grid_link_01.open_menu_grid_link_01_open.active a:after {
    content: "─";
  }
  .open_menu_grid ul li {
    margin-top: 0;
    margin-bottom: 0.4em;
  }
  .open_menu_grid_width {
    max-width: 420px;
    margin: auto;
    padding-top: 100px; /* SPでメッセージの上部余白を少なくする */
  }
  
  .open_menu_grid_link_01 {
    font-size: 1.1em;
  }
  
  /* 超小型スマホでの一般の方向けのテキスト調整 */
  .header-text {
    font-size: 10px;
  }
  .header-text::before {
    height: 16px;
    margin: 0 4px;
  }
}

/* レスポンシブ：print, screen and (max-width:1199px)  [style-sm.css] */
@media print, screen and (max-width:1199px) {
  // header基本レイアウト（style-sm.cssより抽出）
  body {
    padding-top: 90px;
  }
  .header_flex_item_01 img {
    width: 170px;
  }
  .header_flex_item_02 {
    margin-right: 30px;
  }
  .header_main_nav {
    margin-left: -20px;
  }
  .header_main_nav > * {
    padding-left: 20px;
  }
  .headroom--not-top .open_menu_open_btn {
    height: 45px;
  }
  .open_menu_grid .uk-grid-margin {
    margin-top: 45px;
  }
  #open_menu .open_menu_right {
    padding-top: 120px; /* PCでボタンと干渉しないように上部の余白を調整 */
    padding-bottom: 80px;
  }
}

/* レスポンシブ：screen and (max-width:959px)  [style-s.css] */
@media screen and (max-width:959px) {
  // header基本レイアウト（style-s.cssより抽出）
  body {
    padding-top: 45px;
  }
  .header_flex_item_02 {
    display: none;
  }
  .header_flex_item_03 {
    margin-left: auto;
  }
  .open_menu_grid .uk-grid-margin {
    margin-top: 20px;
  }
  
  /* 一般の方向けのテキストをスマホ版で小さく */
  .header-text {
    font-size: 12px;
    line-height: 1.2;
  }
  .header-text::before {
    height: 18px;
    margin: 0 5px;
  }
  
  /* ロゴと一般の方向けテキストの配置調整 */
  .header_flex_item_01 h1 a {
    align-items: center;
  }
  
  .uk-modal-page .header_flex_item_01 {
    position: fixed;
    top: 0;

    z-index: 1001;
  }
  .uk-modal-page .header_flex_item_01 h1 {
    height: 60px;
    display: flex;
    align-items: center;
  }
  .header_flex_item_01 img {
    width: 170px;
  }
  .open_menu_open_btn {
    width: 60px;
    height: 60px;
  }
  .headroom--not-top .open_menu_open_btn {
    height: 60px;
  }
  .open_menu_open_btn_icon_width {
    width: 24px;
    height: 18px;
  }
  .open_menu_open_btn_icon span:nth-of-type(2) {
    top: 8px;
  }
  .uk-modal-page .open_menu_open_btn_icon span:nth-of-type(1) {
    transform: translateY(8px) rotate(-315deg);
  }
  .uk-modal-page .open_menu_open_btn_icon span:nth-of-type(3) {
    transform: translateY(-8px) rotate(315deg);
  }
  
  /* 移設：style-s.cssより */
  #open_menu .open_menu_right {
    padding-top: 60px;
    padding-bottom: 80px;
    color: #333;
  }

  /* メニューテキストのスタイル追加 */
  .open_menu_grid_link_01 a {
    color: #333 !important;
  }
}

/* レスポンシブ：print, screen and (min-width:960px)  [style-ml.css] */
@media print, screen and (min-width:960px) {
  // open_menuのul表示（style-ml.cssより抽出）
  .open_menu_grid_link_ul_body {
    display: block !important;
    padding: 0 !important;
    height: auto !important;
  }
}

/* レスポンシブ：print, screen and (min-width:960px) and (max-width:1199px)  [style-m.css] */
@media print, screen and (min-width:960px) and (max-width:1199px) {
  // headerナビゲーションリンクの高さ（style-m.cssより抽出）
  .header_main_nav a {
    height: 50px;
  }
}

/* レスポンシブ：only screen and (min-width:1200px)  [style-l.css] */
/* header.phpには直接影響するheader用ルールは現在ありません。*/

/* レスポンシブ：only screen and (min-width:1600px)  [style-xl.css] */
/* header.phpには直接影響するheader用ルールは現在ありません。*/

/* レスポンシブ：print  [print.css] */
/* header.phpには直接影響するheader用ルールは現在ありません。*/

/* SP用の本体サイトへのリンクバナー */
.sp_main_site_link {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background:#39be9e;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.sp_main_site_link a {
  display: block;
  color: #fff;
  padding: 12px 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.sp_main_site_link a:after {
  content: "\f08e";
  font-family: FontAwesome;
  margin-left: 8px;
}

/* PC/SP表示切り替え */
@media screen and (min-width: 960px) {
  .pc_none {
    display: none !important;
  }
}

@media screen and (max-width: 959px) {
  .sp_none {
    display: none !important;
  }
  
  /* SPでフッターの下部に余白を追加（固定バナーの高さ分） */
  footer {
    margin-bottom: 45px;
  }
  
  /* SPでページトップボタンを上に移動（固定バナーと干渉しないように） */
  .foot_pagetop_btn {
    bottom: 60px !important;
  }
}
