﻿@charset "UTF-8";
:root {
    --header-height: 140px;
    --header-font-size: 2rem;
  }

  body {
    margin: 0;
    overflow-anchor: none;
  }
 
  header {
    background-color: rgb(4 70 104);
    transition: all 0.5s;
    height: var(--header-height);
    font-size: var(--header-font-size);
    position: sticky;
    top: 0;
    color: #fff;
    display: flex;
    z-index: 1000;
    height: 140px;
  } 

  header.sticky {
    height: calc(var(--header-height) * 0.5);
    font-size: calc(var(--header-font-size) * 0.5);
    /*background-color: rgb(4 70 104);*/
    color: #fff;
    display: flex;
    z-index: 1000;
  }

.navToggle.sticky {
    position: fixed;
    right: 9px;
    top: 2px;
    width: 42px;
    height: 10px;
    cursor: pointer;
    z-index: 1200;
    text-align: center;
    height: calc(var(--header-height) * 0.5);
    font-size: calc(var(--header-font-size) * 0.5);
}
.globalMenuSp .sticky {
  position: fixed;
  right: 9px;
  /*top: 7px;*/
  /*width: 42px;*/
  height: 51px;
  cursor: pointer;
  /*z-index: 1200;*/
  text-align: center;
  height: calc(var(--header-height) * 0.5);
  font-size: calc(var(--header-font-size) * 0.5);
  top: 0;
  width: 100%;
  z-index: 1000;
}

.globalMenuSp {/* 8/13追記メニューの位置をヘッダーに合わせる 動作に影響しているのはこちらのcss*/
  top: var(--header-height); /*CSS変数 (--header-height と --header-height-sticky) を使って、ヘッダーの通常の高さと収縮後の高さを定義しています。*/
  transition: top 0.5s;
}
header.sticky + .globalMenuSp {/*8/13追記*/
  top: var(--header-height-sticky);
}
  .dummy{
    position: relative;
    top: 50px;
    opacity: 0;
  }

/* 追加のスタイル */
.head_logo img .head_right .headtext .headtext2 .navToggle .globalMenuSp {
    transition: margin-top 0.5s;
}
header:not(.sticky) .head_logo img {
  max-width: 27%;
  margin-top: 0%; /* スクロール前の状態 */

}
header.sticky .head_logo img {
    max-width: 25%;
    margin-top: -2%; /* スクロール後の状態。適宜調整してください。 */
}

.sticky .headtext {
 margin-top: 5px; /* スクロール後の状態。適宜調整してください。 */
}

.sticky .headtext2 {
  margin-top: 0px; /* スクロール後の状態。適宜調整してください。 */
}
@media screen and (min-width: 1801px) {

  header {
  
    height: 150px;
  } 
  header.sticky {
    height: 120px;
  }
  }
@media screen and (min-width: 1401px) {

  header {
  
    height: 140px;
  } 
  header.sticky {
    height: 110px;
  }
  }
  /*
  @media screen and (min-width: 1201px) {

    header {
    
      height: 140px;
    } 
    header.sticky {
      height: 110px;
    }
    }*/

@media screen and (max-width: 1200px) {
  .header:not(.sticky).head_logo img {
    max-width: 27%;
    margin-top: 0%; /* スクロール後の状態。適宜調整してください。 */
  }
  header.sticky .head_logo img {
    max-width: 25%;
    margin-top: -1%; /* スクロール後の状態。適宜調整してください。 */
  }
}
@media screen and (max-width: 1000px) {
   .header:not(.sticky).head_logo img {
    max-width: 27%;
    margin-top: 0%; /* スクロール後の状態。適宜調整してください。 */
  }
   header.sticky .head_logo img {
    max-width: 25%;
    margin-top: -1%; /* スクロール後の状態。適宜調整してください。 */
  }
  .sticky .headtext {
    margin-top: 10px; /* スクロール後の状態。適宜調整してください。 */
   }
}
@media screen and (max-width: 999px) {
  .header:not(.sticky).head_logo img {
    max-width: 32%;
    margin-top: 0%; /* スクロール後の状態。適宜調整してください。 */
  }
    .navToggle.sticky {
      right: 9px;
      top: 2px;
  }
  
  header.sticky .head_logo img {
    max-width: 27%;
    margin-top: -1%; /* スクロール後の状態。適宜調整してください。 */
  }
}
@media screen and (min-width: 768px) {
  :root {
    --header-height: 140px;
    --header-font-size: 2rem;
  }
}
@media screen and (max-width: 750px) {
  header:not(.sticky) .head_logo img {
    max-width: 33%;
    margin-top: 0%;  
  }
  header.sticky .head_logo img {
    max-width: 30%;
    margin-top: -1%; 
  }
  .sticky .headtext {
    margin-top: 8px; /* スクロール後の状態。適宜調整してください。 */
   }
   .navToggle.sticky {
    right: 9px;
    top: 0px;
  }
}
@media screen and (min-width: 576px) and (max-width: 767px) {
  :root {
    --header-height: 100px;
    --header-font-size: 1.5rem;
  }
}
@media screen and (max-width: 575px) {
  :root {
    --header-height: 95px;
    --header-font-size: 1rem;
  }
}

@media screen and (max-width: 650px) {
  header:not(.sticky) .head_logo img {
    max-width: 41%;
    margin-top: 1%; 
  }
  header.sticky .head_logo img {
    max-width: 36%;
    margin-top: -1%; 
  }
  .sticky .headtext {
    /*margin-top: 2px;*/
  }
  .navToggle.sticky {
    right: 6px;
    top: -3px;
  }
}
@media screen and (max-width: 550px) {
  header:not(.sticky) .head_logo img {
    max-width: 45%;
    margin-top: 4%; 
  }
  header.sticky .head_logo img {
    max-width: 40%;
    margin-top: -2%;
  }
  .sticky .headtext {
    /*margin-top: 2px;*/
  }
  .navToggle.sticky {
    right: 6px;
    top: -3px;
  }
}

@media screen and (max-width: 500px) {
  header:not(.sticky) .head_logo img {
    max-width: 62%;
    margin-top: 11%;  
  }
  header.sticky .head_logo img {
    max-width: 57%;
    margin-top: 4%;
  }
  .sticky .headtext {
    /*margin-top: 1px;*/
  }
}
@media screen and (max-width: 450px) {
  header:not(.sticky) .head_logo img {
    max-width: 69%;
    margin-top: 15%;  
  }
  header.sticky .head_logo img {
    max-width: 64%;
    margin-top: 2%;  
  }
  .navToggle.sticky {
    right: 4px;
    top: -3px;
  }
}

@media screen and (max-width: 350px) {
  header:not(.sticky) .head_logo img {
    max-width: 72%;
    margin-top: 17%;
    margin-left: 8%;
  }
  header.sticky .head_logo img {
    max-width: 70%;
    margin-top: 9%;
    margin-left: 8%;
  }
  .sticky.headtext {
    margin-top: 1px;
  }
  .navToggle.sticky {
    right: 4px;
    top: -3px;
    
  }
}

@media screen and (max-width: 250px) {
  header:not(.sticky) .head_logo img {
    max-width: 85%;
    margin-top: 27%;
     margin-left: 8%;
   }
   header.sticky .head_logo img {
    max-width: 82%;
    margin-top: 14%;
     margin-left: 8%;
   }
   .navToggle.sticky {
    right: 4px;
    top: -3px;
  }
 }